lucassouzavieira / Silex-Arango-Skeleton

Basic skeleton for applications using ArangoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codacy Badge Code Triagers Badge Build Status Coverage Status

Silex Arango Skeleton

Basic skeleton for applications using ArangoDB

Dependencies

  • ArangoDB Driver for PHP
  • Respect Validator
  • Twig
  • Symfony YAML

Installation

Use composer:

composer create-project lvieira/silex-arango-skeleton MyAwesomeProject

  • Set public folder as web root of your application
  • Add your custom configurations to app.yml
  • Let's code !

Custom configurations

On the app.yml file you can add your own configurations.
To disable API prefixes set the configuration enabled to false under api block.

Controllers

Make sure your Controller is registered on src/Providers/ControllerServiceProvider.php
Example:

   $app['foo'] = function (Container $app) {
       return new FooController($app);
   };

Routes

Routes are defined on routes/routes.php file.

Using Docker

Put your custom configurations in docker-compose.yml file. Otherwise, you can simple run:
docker-compose up

About

Basic skeleton for applications using ArangoDB


Languages

Language:PHP 87.9%Language:HTML 12.1%