2017 © Pedro Peláez
 

library fizzy

A DTO-centric, PHP 7 micro Web API framework built on Silex.

image

ethanhann/fizzy

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  • Monday, December 14, 2015
  • by ethanhann
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Fizzy

Installation

Create a composer.json file in your project root., (*1)

composer init

Add your namespace directory to your composer.json file., (*2)

"autoload": {
    "psr-4": {
        "MyNamespace\\": "src/MyNamespace"
    }
},

Require Fizzy., (*3)

composer require ethanhann/fizzy

Configuration

Copy the config.dist.json to the project root. Adjust the baseUrl and namespacePrefix as appropriate. Note that the config file can be called anything, but the name in the index.php file will need to be updated., (*4)

{
  "baseUrl": "api",
  "namespacePrefix": "MyNamespace",
  "httpMethodNames": ["get", "getList", "post", "put", "delete"],
  "contentNegotiation" : {
    "priorities": ["json", "xml"]
  }
}

Run the App

<?php
// web/index.php
$loader = require_once __DIR__ . '/../vendor/autoload.php';
(new \Eeh\Fizzy\App('../config.json', $loader))
    ->configure()
    ->run();

The Versions

14/12 2015

dev-add_di

dev-add_di

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  Sources   Download

MIT

The Requires

 

by Ethan Hann

07/12 2015

dev-master

9999999-dev

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  Sources   Download

MIT

The Requires

 

by Ethan Hann

07/12 2015

0.2.3

0.2.3.0

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  Sources   Download

MIT

The Requires

 

by Ethan Hann

07/12 2015

0.2.2

0.2.2.0

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  Sources   Download

MIT

The Requires

 

by Ethan Hann

07/12 2015

0.2.1

0.2.1.0

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  Sources   Download

MIT

The Requires

 

by Ethan Hann

07/12 2015

0.2.0

0.2.0.0

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  Sources   Download

MIT

The Requires

 

by Ethan Hann

07/12 2015

0.1.0

0.1.0.0

A DTO-centric, PHP 7 micro Web API framework built on Silex.

  Sources   Download

MIT

The Requires

 

by Ethan Hann