Search by

vikry / nsy

kazuyamarino

Simple. Layered. Harmony in MVC and HMVC.

Package info

github.com/kazuyamarino/nsy

Type:project

pkg:composer/vikry/nsy

Statistics

Installs: 98

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

v6.1.5 2024-07-08 03:57 UTC

This package is auto-updated.

Last update: 2026-09-28 09:59:17 UTC


README

Simple. Layered. Harmony in MVC and HMVC.

PHP >=8.1 License: MIT PSR-4

Site: https://nsyframework.com/ · Docs: OVERVIEW · Libraries · Load & Asset · Helpers · Router · Migration · Model

Codename

Current Release Codename: Gamelan
Inspired by the traditional Indonesian ensemble, Gamelan represents harmony, modularity, and synchronized execution. Just as each instrument in a Gamelan orchestra plays a precise role to create a rich rhythm, NSY brings together lightweight core components and flexible modules (HMVC) into a unified, harmonious workflow.
(Note: Codename evolves with major version releases to honor Indonesian cultural heritage).

Features

  • MVC & HMVC with Razr templates
  • PSR-4 Autoloading + NSY CLI (nsy make:*, nsy run:migrate)
  • Asset Manager (Add::link/script/meta) with ?v=filemtime cache-busting
  • Unified DB (NSY_DB::connect) + powerful Migrations (DRY, quoted identifiers)

Requirements

  • PHP >= 8.1, Composer, MySQL/MariaDB/PostgreSQL/SQL Server (optional)

Quick Start

composer create-project kazuyamarino/nsy my-app
cd my-app
cp docs/env.example/env.example.php env.php
composer dump-autoload -o
nsy --setup

Configuration

  • env.php — APP_ENV, PUBLIC_DIR, SITE_TITLE, CSRF_TOKEN, DB_* (see docs/env.example/env.example.php)
  • System/Config/App.php & Site.php — env-aware with config_env() ?? fallback (no file edit in production)
  • System/Config/Mimes.php — 182 mime types (modern: webp, avif, woff2, wasm)

Documentation

License

MIT — see LICENSE.txt