Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethanhann/fizzy
A DTO-centric, PHP 7 micro Web API framework built on Silex.
https://github.com/ethanhann/fizzy
Last synced: about 2 months ago
JSON representation
A DTO-centric, PHP 7 micro Web API framework built on Silex.
- Host: GitHub
- URL: https://github.com/ethanhann/fizzy
- Owner: ethanhann
- License: mit
- Created: 2014-10-10T05:49:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-14T04:50:05.000Z (about 9 years ago)
- Last Synced: 2024-10-12T13:10:54.682Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fizzy
## Installation
Create a composer.json file in your project root.
```
composer init
```Add your namespace directory to your composer.json file.
```json
"autoload": {
"psr-4": {
"MyNamespace\\": "src/MyNamespace"
}
},
```Require Fizzy.
```
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.```json
{
"baseUrl": "api",
"namespacePrefix": "MyNamespace",
"httpMethodNames": ["get", "getList", "post", "put", "delete"],
"contentNegotiation" : {
"priorities": ["json", "xml"]
}
}
```## Run the App
```php
configure()
->run();
```