yacho / microphp-core
Core library for the MicroPHP filesystem-driven PHP framework.
Requires (Dev)
- ext-pdo_sqlite: *
- phpunit/phpunit: ^10.5
Suggests
- ext-mongodb: Required to use the MongoDB database driver.
- ext-pdo_mysql: Required to use MySQL or MariaDB.
- ext-pdo_pgsql: Required to use PostgreSQL.
- ext-pdo_sqlsrv: Required to use Microsoft SQL Server.
Provides
None
Conflicts
None
Replaces
None
README
yacho/microphp-core is the reusable framework library behind the
yacho/microphp application
skeleton. It contains the MicroPHP\ classes and globally available helper
functions; application code, configuration, public files, and writable runtime
directories belong to the skeleton.
Installation
Most users should create a complete application:
composer create-project yacho/microphp my-app
To add only the framework library to an existing Composer project:
composer require yacho/microphp-core
Composer maps the MicroPHP\ namespace to src/ and automatically loads
src/Helpers.php. The framework expects the host application to define its
paths and environment settings; use the official skeleton as the reference
bootstrap.
Requirements
- PHP 8.1 or newer
- JSON, PDO, and Session PHP extensions
- A PDO driver for the selected SQL database, or
ext-mongodbfor MongoDB
Development
composer install
composer validate --strict
composer test
Versions are derived from Git tags. Do not add a version field to
composer.json; tag stable releases with semantic versions such as v1.0.0.
License
MicroPHP Core is released under the MIT License.