phidias/api.project

A boilerplate phidias/api project

1.0.0 2016-05-05 01:58 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:11:45 UTC


README

Step 0: Add a custom composer repository

composer config repositories.REPOSITORY_NAME composer REPOSITORY_URL

Step 1: Download some API modules

composer require phidias/calendar.api

Step 2: Import downloaded modules into your API

Edit the file public/index.php and call Server::import (before Server::run)

Server::import("../vendor/phidias/calendar.api");

Step 3: Go over your configuration settings

Look at all files inside the /configuration folder and edit as necessary

Step 4: Run the installation script

cd path/to/your/project/public (or wherever index.php resides) php ../vendor/phidias/api/scripts/install.php

... Run!

Make the /public directory available through a web server

Quick test: cd path/to/your/project/public php -S localhost:8000