PhriX is a simple, no-bloat PHP micro-framework built for small-to-medium web applications. It offers essential tools like routing, middleware, templating, and basic request/response handling -- nothing more, nothing less.
- Clean, chainable routing (
$route->get('/', 'welcome');) - Middleware support (
$route->get(...)->middleware('auth');) - Simple templating (
@include,@asset,@title) - Request & Response abstraction
- JSON, View, Text, and Redirect response types
- Slug/URL parameter support (
/post/{slug}) - Lightweight logging system
- Project boot file (
public/index.php) < 20 lines - No unnecessary magic
Most PHP frameworks try to be everything. Phrix focuses on only what's essential for early-stage projects:
- Simplicity over features
- Flat structure (everything is where you expect it)
- Readable source (you can skim the whole core in minutes)
- Designed for maintainability and quick iteration
Clone the repository and start:
git clone https://github.com/ujarhr/phrix-phpcd phrixcomposer dump-autoloadphp -S localhost:8000 -t public
Start editing your routes in
config/routes.php, templates inapp/Views, and partials inapp/Partials. You can find complete documentation at: PhriX Docs
- Basic routing (GET/POST)
- Middleware support
- Basic templating
- JSON/text response
- Logging
- CLI tool (optional)
- Prefix/group support
- Dependency injection?
Built with ❤️ by Reajul Hasan Raju, reach out to me via email hello@rhraju.com. PhriX is completely open-sourced and licensed under the MIT license.