aphiria / app
The Aphiria skeleton application
Requires
- php: >=8.2
- ext-mbstring: *
- ext-pdo: *
- ext-sqlite3: *
- aphiria/aphiria: 1.x-dev
- robmorgan/phinx: 0.x-dev
- symfony/dotenv: ^6.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.2
- phpunit/phpunit: ^10.1
- vimeo/psalm: ^5.1
This package is auto-updated.
Last update: 2024-11-20 16:23:28 UTC
README
Note: This framework is not stable yet.
This application is a useful starting point for projects that use the Aphiria framework. Check out this repository, and get started building your own REST API.
Installation
Aphiria can be installed using Composer:
composer create-project aphiria/app --prefer-dist --stability dev
Running Locally
You can run your app locally (defaults to http://localhost:8080):
php aphiria app:serve
Demo
This app comes with a simple demo that can store, retrieve, and authenticate users from a local SQLite database. It uses Phinx to manage database migrations and seeding, which can be executed with the following commands, respectively:
vendor/bin/phinx migrate
vendor/bin/phinx seed:run
Phinx-specific configuration settings, eg the paths to migration and seed files, are located in phinx.php.
Learn More
To learn more about how to use Aphiria, read its documentation.