Newtron is a PHP framework designed around the principle of complex features with embarrassingly simple code. It's built to solve real developer pain points by making common, complex tasks trivially simple:
- Automatic query optimization
- Progressive enhancement by default
- Embarrassingly simple forms
- Shared hosting friendly
Newtron is currently a work in progress. In it's current state, Newtron can support simple static sites.
- Application container with dependency injection
- Request/Response abstraction
- Two routing modes (declarative or file-based)
- Middleware pipeline
- Quark, a custom templating engine
- Error handling and logging
WIP
Newtron Core provides the foundational components:
- Dependency injection with auto-resolution
- Service provider system for organizing registrations
- Environment detection and configuration
- Clean Request/Response abstractions
- Built on PHP superglobals (no external dependencies)
- Support for JSON, form data, file uploads
- Middleware pipeline
- Declarative:
Route::get('/users/{id}', UserController::class)
- File-based: Create
routes/users/[id].php
and extendFileRoute
- that's it - Route caching and optimization
- Parameter binding
- Lightweight, powerful templating
- Layout inheritance and named slots
- Designed for tight integration with Newtron features
- Support custom filters and directives
Every feature in Newtron follows these principles:
- Complex features should require embarrassingly simple code
- Progressive enhancement should be automatic, not optional
- Performance optimization should happen behind the scenes
- Deployment should work everywhere with minimal configuration
Newtron is in active development. All contributions that align with the core philosophy of making complex things simple are welcome.