antimonial / framework
A PHP MVC framework where what you read is what runs.
Requires
- php: >=8.1
Requires (Dev)
- laravel/pint: ^1.18
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^10.5 || ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-02 16:36:33 UTC
README
Antimonial Framework
About Antimonial
Note: This repository contains the core code of the Antimonial framework. If you want to build an application using Antimonial, visit the main Antimonial application repository.
Antimonial is a minimal, explicit, and dependency-free PHP MVC framework. It is built under the philosophy that what you read is what runs — providing modern web primitives without magical reflection, hidden containers, or vendor baggage.
Antimonial takes the complexity out of PHP development while keeping the execution lifecycle linear, transparent, and completely typed:
- Fast, flexible routing engine supporting static lookups, regex parameters, and route groups.
- Fluent SQL query builder with prepared statements and identifier whitelisting for SQLite, MySQL, and PostgreSQL.
- Blade-style template engine parsed via PHP's native lexer with layout inheritance, directives, and automatic XSS escaping.
- Explicit CRUD models without heavy ORM relation guessing.
- Form and JSON validation supporting strings, numbers, file uploads, and database existence rules.
- Authentication and CSRF security with session-fixation defense and constant-time token verification.
- Database migrations with batch rollback tracking.
- Zero runtime dependencies with strict
declare(strict_types=1)and Level Max static analysis.
Learning Antimonial
Antimonial is designed to be learned in an afternoon. To get started:
- Read the complete documentation and guides on the Wiki.
- Create a new project with the Antimonial skeleton.
Contributing
Thank you for considering contributing to the Antimonial framework! You can contribute by opening an issue or submitting a pull request.
Before submitting code, please ensure all quality checks pass:
# Run test suite composer test # Run static analysis composer analyse # Check code formatting composer lint
Security vulnerabilities
If you discover a security vulnerability within Antimonial, please create a security advisory on GitHub or contact the maintainers. All vulnerabilities will be addressed promptly.
License
The Antimonial framework is open-sourced software licensed under the MIT license.