Download the PHP package zephyrus-framework/core without Composer
On this page you can find all versions of the php package zephyrus-framework/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zephyrus-framework/core
More information about zephyrus-framework/core
Files in zephyrus-framework/core
Package core
Short Description Cohesive PHP 8.4+ framework — attribute routing, immutable HTTP, typed config, and security middleware out of the box.
License MIT
Informations about the package core
Zephyrus
A cohesive PHP 8.4+ framework core. Attribute-based routing, immutable HTTP objects, typed configuration, and a full security middleware stack — with ~98% test coverage throughout.
Getting Started
The fastest way to start a new project is the official application template:
This gives you a working application structure with controllers, views, config, and a dev server ready to go.
To use the core library directly in an existing project:
Overview
Routing
Define routes with PHP 8 attributes directly on controller methods:
Available verb attributes: #[Get], #[Post], #[Put], #[Patch], #[Delete], #[Head], #[Options].
Route parameters are injected by name with automatic type coercion. A type mismatch (e.g. "abc" for int $id) returns a 404.
Route Prefixing
Use #[Root] to apply a URL prefix to an entire controller. It supports inheritance — child controller prefixes are appended to parent prefixes:
Auto-Discovery
Instead of registering controllers one by one, scan a directory:
Middleware
Implement MiddlewareInterface and register globally or on specific routes:
Register globally on the kernel, or as a named middleware for use in route attributes:
Request
The Request object is immutable and composed of typed sub-objects:
Response
Responses are immutable — withHeader(), withStatus(), and withBody() return new instances.
Validation
Bootstrap
Wire everything together once at startup:
Requirements
| Requirement | Version |
|---|---|
| PHP | ^8.4 |
| Extensions | mbstring, pdo, intl, sodium |
Runtime dependencies: symfony/yaml, vlucas/phpdotenv, latte/latte, tracy/tracy, phpmailer/phpmailer.
Development
Run the test suite:
Run with coverage (requires Xdebug):
The project targets ~98% coverage. Every change should come with tests.
Documentation
Full documentation — including guides for sessions, security, validation, database access, localization, file uploads, events, mailer, and more — is available on the docs site (coming soon).
License
MIT — see LICENSE.
All versions of core with dependencies
ext-mbstring Version *
ext-pdo Version *
ext-intl Version *
ext-sodium Version *
symfony/yaml Version ^7.0
vlucas/phpdotenv Version ^5.6
latte/latte Version ^3.0
tracy/tracy Version ^2.10
phpmailer/phpmailer Version ^6.9