PHPackages                             ethanhann/fizzy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ethanhann/fizzy

ActiveLibrary

ethanhann/fizzy
===============

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

0.2.3(10y ago)121MITPHPPHP &gt;=7

Since Dec 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ethanhann/Fizzy)[ Packagist](https://packagist.org/packages/ethanhann/fizzy)[ RSS](/packages/ethanhann-fizzy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

Fizzy
=====

[](#fizzy)

Installation
------------

[](#installation)

Create a composer.json file in your project root.

```
composer init

```

Add your namespace directory to your composer.json file.

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

Require Fizzy.

```
composer require ethanhann/fizzy

```

Configuration
-------------

[](#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.

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

Run the App
-----------

[](#run-the-app)

```
