Skip to content

A little example of how to build fast, small APIs using Expressive and Doctrine.

Notifications You must be signed in to change notification settings

nicdavies/expressive-api-example

Repository files navigation

Expressive API Example

A little example of how to build fast, small APIs using Expressive and Doctrine.

It includes:

  • Hal Responses
  • Hydrators
  • Doctrine ORM
  • Problem Details Responses

Console Tool

In the ./bin directory there's a console.php script which provides a few commands. You can also use the Doctrine ORM commands from this console script!

  • cache:clear - clears the config cache.

How To Install

  1. You'll want to clone this repo:
$ git clone git@github.com:nic-d/expressive-api-example.git ~/my_directory
  1. You'll then need to install composer dependencies, so:
$ composer install
  1. You'll also need to create a .env file, and add your db details:
$ cp .env.dist .env
  1. Now just run this command to set up the db schema:
$ php ./bin/console.php orm:schema-tool:update --force
  1. That's pretty much it.

About

A little example of how to build fast, small APIs using Expressive and Doctrine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages