aphiria/app

The Aphiria skeleton application

v1.0.0-alpha5 2023-09-24 17:32 UTC

This package is auto-updated.

Last update: 2024-04-19 02:20:06 UTC


README

68747470733a2f2f7777772e617068697269612e636f6d2f696d616765732f617068697269612d6c6f676f2e737667

badge.svgCoverage Status 68747470733a2f2f73686570686572642e6465762f6769746875622f617068697269612f6170702f6c6576656c2e737667 68747470733a2f2f706f7365722e707567782e6f72672f617068697269612f6170702f762f737461626c652e737667 68747470733a2f2f706f7365722e707567782e6f72672f617068697269612f6170702f762f756e737461626c652e737667 68747470733a2f2f706f7365722e707567782e6f72672f617068697269612f6170702f6c6963656e73652e737667

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.