Simple Router
Define routes, patterns, and filters with just a few lines of code.
Inphinit is a small and fast framework with a simple router, built-in tools and no heavy dependencies. Start a project in minutes.
composer create-project inphinit/inphinit:^2.1 my-app
Optionally, you can download:
Define routes, patterns, and filters with just a few lines of code.
Cache responses with support for ETag, Expires, and 304 status codes.
Execute tasks based on an interval, a cron expression, or as a one-time event.
Query XML and HTML documents using familiar selectors, directly within PHP.
Validate fields and JSON inputs, with support for various formats and custom validation rules.
Handle forwarded headers originating from trusted proxies.
Validate your application and identify issues before deployment.
Built-in, highly customizable Markdown support that allows for conversion from strings and files into HTML.
Small core, low overhead and quick startup.
Fewer concepts to learn and less code to write.
Use only the parts you need in your project.
No. You can use it with plain PHP files. Composer is optional if you want extra packages.
Compatible with PHP 8, with backward compatibility for PHP 5.4.
Yes. You can add it gradually, one route at a time.
Yes. It runs on Apache, FrankenPHP, lighttpd, Nginx and IIS.
Open an issue or a pull request on GitHub .
Install Inphinit, create your first route and see it running.
Changelog between versions 2.0 and 2.1:
Inphinit\Experimental\Http\Method class refactored.x-forwarded-prefix header can now be used with RFC7239 (eg.: $forwarded->setFlags(Forwarded::PREFIX|Forwarded::RFC7239)).Forwarded::getPrefix().Inphinit\Dom\Selector class.Inphinit\Filesystem\File.Scheduler::prioritizeBackgroundTasks() in PHP<8.Storage:temp().create:command -> make:command.create:controller -> make:controller.create:view -> make:view.Built-in commands:
run create:command command.run create:controller command.run create:view command.run server command now checks whether the port is already in use.FileGenerator improved:
Forwarded support:
The framework provides its own checkup to help mitigate the CVE-2026-115560 issue, and the documentation offers further details.
The framework provides its own checkup to help mitigate the CVE-2026-109619 issue, and the documentation offers further details.
The framework provides its own checkup to help mitigate the CVE-2026-109618 issue, and the documentation offers further details.