Skip to content

PhriX is a fast, minimal, and no-BS PHP micro-framework designed for small-scale projects, prototypes, or developers who want full control without the bloat of full-stack frameworks.

License

Notifications You must be signed in to change notification settings

ujaRHR/phrix-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phrix Logo

PhriX (A Lightweight PHP Micro Framework)

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.

🛠️ Features

  • 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

🛣️ Why PhriX?

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

✅ Getting Started

Clone the repository and start:

  1. git clone https://github.com/ujarhr/phrix-php
  2. cd phrix
  3. composer dump-autoload
  4. php -S localhost:8000 -t public

Start editing your routes in config/routes.php, templates in app/Views, and partials in app/Partials. You can find complete documentation at: PhriX Docs

📋 To-Do

  • Basic routing (GET/POST)
  • Middleware support
  • Basic templating
  • JSON/text response
  • Logging
  • CLI tool (optional)
  • Prefix/group support
  • Dependency injection?

⚖️ Credits and License

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.

About

PhriX is a fast, minimal, and no-BS PHP micro-framework designed for small-scale projects, prototypes, or developers who want full control without the bloat of full-stack frameworks.

Topics

Resources

License

Stars

Watchers

Forks