This service fetches ghosts and throws them at every client requesting it, in the hope of being haunted.
Namespace: Trellis\MyService
- PHP >= 5.6.4
- OpenSSL PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- 666 Spirit Lifter Extension
- RabbitMQ
git clone
this repocd
service directorycomposer install --no-dev --prefer-dist
- Create a
.env
file at the root of the project by copying.env.example
- Update
.env
with the corresponding values
There are two ways to use this package:
limit
:int
(default =10
)traning_level
:string
(default =none
)order_by
:string
(default =name
, values = [id
,name
,occupation
])
{
"id": "hjkags768itaugsdhjf",
"name": "The Name",
"occupation": "airbender",
"created_at": "10-11-2016"
}
{
"error": {
"code": "666",
"message": "die"
}
}
{
"error": {
"code": "7373",
"message": "You shouldn't have done this"
}
}
- Type:
fanout
- Data
{
"key": "value",
"another": "one",
"and": "more",
"like": "the previous one"
}
- Type:
default
- Data
{
"something": "happened",
"and": "it was",
"successfully": "performed"
}
To setup this project for development:
- Install the dependencies with dev packages
composer install
- Run a database using
docker run -d -p 7474:7474 neo4j
- Configure the test environment in the
tests/config.php
file
'database' => [
'neo4j' => [
'host' => 'the-dev-host',
'port' => 7474
],
]
- Testing uses the PHPUnit tool so run them using
phpunit
(c) Vinelab 2016 dev@vinelab.com
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.