whitesmoke / core
Whitesmoke Framework core: HTTP, routing, views, sessions, security, validation, database.
v0.2.9
2026-10-02 20:07 UTC
Requires
- php: >=8.3
- ext-fileinfo: *
- ext-mbstring: *
- ext-pdo: *
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- phpunit/phpunit: ^9.6 || ^10.5 || ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The engine of the Whitesmoke Framework. Install it through the whitesmoke/framework skeleton, not directly.
Contains: Application (front controller), .env loading (vlucas/phpdotenv), Request/Response, Router, View, Session, CSRF middleware, login Throttle, Validator, Database Connection (mysql, pgsql, sqlite, sqlsrv) and Query builder.
Requires PHP 8.3+ with pdo, mbstring and fileinfo.
Running the tests
composer install
composer test # SQLite in memory
Against a real database (use an empty, throwaway database; tests create and drop tables):
DB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_DATABASE=whitesmoke_test DB_USERNAME=me DB_PASSWORD=secret composer test
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_DATABASE=whitesmoke_test DB_USERNAME=me DB_PASSWORD=secret composer test
composer test runs phpunit --stderr; session tests need the --stderr flag.
License
MIT. See LICENSE.