{"id":48515315,"url":"https://github.com/lizzyman04/fluxor","last_synced_at":"2026-04-07T19:01:11.700Z","repository":{"id":332349567,"uuid":"1084058418","full_name":"lizzyman04/fluxor","owner":"lizzyman04","description":"A lightweight PHP MVC engine with file-based routing and elegant Flow syntax.","archived":false,"fork":false,"pushed_at":"2026-04-07T09:24:37.000Z","size":97,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-07T11:24:05.985Z","etag":null,"topics":["file-based-routing","flow-syntax","lightweight","nextjs-inspired","php","php-framework","router"],"latest_commit_sha":null,"homepage":"https://lizzyman04.github.io/fluxor-php/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lizzyman04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-27T06:51:33.000Z","updated_at":"2026-04-07T09:24:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lizzyman04/fluxor","commit_stats":null,"previous_names":["lizzyman04/mvccore","lizzyman04/fluxor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lizzyman04/fluxor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizzyman04%2Ffluxor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizzyman04%2Ffluxor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizzyman04%2Ffluxor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizzyman04%2Ffluxor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lizzyman04","download_url":"https://codeload.github.com/lizzyman04/fluxor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizzyman04%2Ffluxor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31524531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-based-routing","flow-syntax","lightweight","nextjs-inspired","php","php-framework","router"],"created_at":"2026-04-07T19:00:55.240Z","updated_at":"2026-04-07T19:01:11.684Z","avatar_url":"https://github.com/lizzyman04.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluxor Core 🚀\n\n**The lightweight PHP MVC core that powers Fluxor framework** - File-based routing, elegant Flow syntax, and zero bloat.\n\n[![Latest Stable Version](https://poser.pugx.org/lizzyman04/fluxor/v/stable)](https://packagist.org/packages/lizzyman04/fluxor)\n[![Total Downloads](https://poser.pugx.org/lizzyman04/fluxor/downloads)](https://packagist.org/packages/lizzyman04/fluxor)\n[![License](https://poser.pugx.org/lizzyman04/fluxor/license)](https://packagist.org/packages/lizzyman04/fluxor)\n[![PHP Version Require](https://poser.pugx.org/lizzyman04/fluxor/require/php)](https://packagist.org/packages/lizzyman04/fluxor)\n\n## 📦 What is Fluxor Core?\n\nFluxor Core is the **engine behind the Fluxor PHP framework** - a minimal, elegant, and powerful MVC core designed for developers who want **simplicity without sacrificing functionality**.\n\nUnlike monolithic frameworks, Fluxor Core gives you:\n\n- 🚀 **Blazing fast performance** (boot under 10ms)\n- 📦 **Zero core dependencies** - just pure PHP!\n- 🔍 **Transparent code** - no magic, you can read everything\n- 🎯 **File-based routing** inspired by Next.js\n- 💎 **Elegant Flow syntax** for route definitions\n- 🔒 **Config locking** to protect critical settings\n- 🌐 **Built-in CORS support** (global + per-route)\n\n## 🚀 Quick Start\n\n```bash\ncomposer require lizzyman04/fluxor\n```\n\n```php\n\u003c?php\nrequire 'vendor/autoload.php';\n\n$app = new Fluxor\\App();\n$app-\u003erun();\n```\n\n## 🎯 Zero Config Import\n\nAll core classes are automatically re-exported for cleaner code:\n\n```php\nuse Fluxor\\App;\nuse Fluxor\\Request;\nuse Fluxor\\Response;\nuse Fluxor\\Flow;\nuse Fluxor\\View;\n```\n\n## 💡 Core Concepts\n\n### Application Instance\n```php\n$app = new Fluxor\\App();\n$basePath = $app-\u003egetBasePath();  // Auto-detected!\n$baseUrl = $app-\u003egetBaseUrl();    // Auto-detected!\n```\n\n### Global CORS Configuration\n```php\n$app = new Fluxor\\App();\n$app-\u003ecors()-\u003eallowOrigin('*')-\u003eenable();\n$app-\u003erun();\n```\n\n### File-based Routing\n```php\n// app/router/users/[id].php\nuse Fluxor\\Flow;\nuse Fluxor\\Response;\n\nFlow::GET()-\u003edo(function($req) {\n    $userId = $req-\u003eparam('id');\n    return Response::success(['user' =\u003e $userId]);\n});\n```\n\n### Router with Middleware\n```php\n$router = $app-\u003egetRouter();\n$router-\u003eaddMiddleware('auth', function($request) {\n    if (!$request-\u003eisAuthenticated()) {\n        return Fluxor\\Response::redirect('/login');\n    }\n});\n```\n\n### Request \u0026 Response\n```php\nuse Fluxor\\Response;\n\n$id = $request-\u003eparam('id');\n$email = $request-\u003einput('email');\n$token = $request-\u003ebearerToken();\n\nreturn Response::json(['user' =\u003e $user]);\nreturn Response::view('profile', ['user' =\u003e $user]);\n```\n\n### Flow Syntax\n```php\nuse Fluxor\\Flow;\n\n// Simple route\nFlow::GET()-\u003edo(fn($req) =\u003e 'Hello World');\n\n// Controller binding\nFlow::POST()-\u003eto(UserController::class, 'store');\n\n// Middleware\nFlow::use(fn($req) =\u003e $req-\u003eisAuthenticated() ? null : redirect('/login'));\n```\n\n### View System\n```php\n// In controller\nreturn Response::view('home', ['title' =\u003e 'Home']);\n\n// In view (home.php)\nView::extend('layouts/main');\nView::section('content');\n    \u003ch1\u003e\u003c?= View::e($title) ?\u003e\u003c/h1\u003e\nView::endSection();\n```\n\n### Global Helpers\n```php\n// Environment variables\n$debug = env('APP_DEBUG', false);\n$dbName = env('DB_NAME', 'database');\n\n// Path helpers\n$root = base_path();\n$url = base_url('api/users');\n$asset = asset('css/app.css');\n\n// HTTP helpers\nabort(404, 'Not Found');\nreturn redirect('/dashboard');\n\n// Debug helpers\ndump($user);\ndd($data);  // Dump and die\n```\n\n## 📚 Documentation\n\n**Full documentation available at:** 👉 [**https://lizzyman04.github.io/fluxor-php**](https://lizzyman04.github.io/fluxor-php)\n\nThe documentation includes:\n- Installation guide\n- File-based routing\n- Flow syntax reference\n- Views and layouts\n- Controllers and middleware\n- Environment configuration\n- Complete API reference with helper functions\n\n## 📄 License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n---\n\n**Fluxor** - Build elegant PHP applications with joy! 🎉","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizzyman04%2Ffluxor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flizzyman04%2Ffluxor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizzyman04%2Ffluxor/lists"}