Welcome to NSY PHP Framework

Simple. Layered. Harmony in MVC and HMVC.


NSY PHP Framework • v7.0.0 Gamelan is OUT! Try Now!

Documentation 23 guides

Getting Started

2

Overview

Composer · CLI · Config

Start here: installation, environment variables, MVC/HMVC layout, CLI commands and deployment.

772 lines Read → ↗

Deploy to Hosting

public_html · APP_DIR · chmod

Shared hosting setup: System/ outside public_html, env keys, writable dirs, mod_rewrite/AllowOverride.

484 lines Read → ↗

Core

9

Router

Route::get/post/group

Route registration, typed params, groups, middleware and security levels.

308 lines Read → ↗

Model & DB

DB::query() · NSY_DB::connect()

Unified single-source database access, models and fetch styles.

221 lines Read → ↗

Migration

Mig::createTable()

Chainable schema builder, DDL helpers and the run:migrate CLI runner.

266 lines Read → ↗

Seeder

Seeder::run() · factory() · run:seed

Fill the database with data: write a run() class, build rows with factories, run it with nsy run:seed.

217 lines Read → ↗

Maintenance Mode

nsy down/up · APP_MAINTENANCE

Take the site offline with a 503 page, allow-list your IP and toggle it from the CLI.

99 lines Read → ↗

Query Builder

qb()->whereIn()->paginate()

Fluent SQL builder: where, joins, grouping, pagination and raw queries.

275 lines Read → ↗

Class Aliases

Route:: · Add:: · Mig::

Map short names and backwards-compatible namespaces to real classes via App.php:aliases and NSY_AliasManager.

167 lines Read → ↗

Docs Viewer

Docs::render() · /docs/{slug}

Render docs/*.md as HTML inside the app: manifest, icons, categories and Markdown rules.

231 lines Read → ↗

Reference

12

Libraries

File · LanguageCodeCollection · Validate

File management, language codes, validation and Query Builder internals.

811 lines Read → ↗

Logging

LogManager::channel() · PSR-3

Dependency-light PSR-3 file logger: channels, JSONL, rotation and retention.

192 lines Read → ↗

JSON

Json::read() · Json::write()

Read/write JSON files atomically, plus encode/decode helpers.

60 lines Read → ↗

Cookie

Cookie::set() · Cookie::get()

Secure-by-default cookie helper (HttpOnly, SameSite, Secure).

86 lines Read → ↗

Encryption

Encryption::encrypt() · decrypt()

AES-256-GCM authenticated encryption with a versioned envelope.

81 lines Read → ↗

Session

Session::start() · Session::get()

Native session wrapper: start, get/set, regenerate and flash values.

81 lines Read → ↗

Curl

Curl::get() · Curl::post()

Chainable ext-curl HTTP client with JSON auto-decode and secure defaults.

107 lines Read → ↗

Validation

Validator::make() · validate()

Rule-based validation via rakit/validation, exposed as System\Libraries\Validator.

145 lines Read → ↗

Global Helpers

base_url() · is_filled()

URI, asset, config, string and array helpers — all env-aware.

439 lines Read → ↗

Dependencies

composer install · show

Every Composer package NSY installs — runtime, dev and transitive.

177 lines Read → ↗
No documentation matched your search.