-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fixes for subscriber and publisher semantics (#164)
- Loading branch information
1 parent
e131739
commit 02e406b
Showing
24 changed files
with
112 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ template/.phpunit.result.cache | |
.env | ||
template/.env | ||
.idea/ | ||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# BrokerAPI | ||
# AsyncAPI | ||
|
||
[//]: # "[![Latest Version on Packagist][ico-version]][link-packagist]" | ||
|
||
|
@@ -13,7 +13,7 @@ | |
[//]: # "[![Total Downloads][ico-downloads]][link-downloads]" | ||
|
||
|
||
BrokerAPI is a wrapper for Message-driven API's built on top of most used industry plugins such as [PHP AMQP lib](https://packagist.org/packages/php-amqplib/php-amqplib) for RabbitMQ. | ||
AsyncAPI is a wrapper for Message-driven API's built on top of most used industry plugins such as [PHP AMQP lib](https://packagist.org/packages/php-amqplib/php-amqplib) for RabbitMQ. | ||
It is built for usage altogether with [AsyncAPI specs and generators](https://github.com/asyncapi/generator) | ||
|
||
## Structure | ||
|
@@ -46,12 +46,12 @@ Once you hvae the generator installed, you can try to generate code from any val | |
|
||
Refer to the examples folder for further details on PHP usage | ||
``` bash | ||
$brokerAPI = new BrokerAPI(); | ||
$brokerAPI = new AsyncAPI(); | ||
$factory = $brokerAPI->init(); | ||
|
||
/** @var \{{ params.packageName }}\Applications\Producer $producer */ | ||
$producer = $factory->createApplication( | ||
PRODUCER_KEY, | ||
/** @var \{{ params.packageName }}\Applications\Subscriber $subscriber */ | ||
$subscriber = $factory->createApplication( | ||
SUBSCRIBER_KEY, | ||
[ | ||
BROKER_HOST_KEY => 'localhost', | ||
BROKER_USER_KEY => 'guest', | ||
|
@@ -68,7 +68,7 @@ $message = $factory->createMessage( | |
] | ||
); | ||
|
||
$producer->requestExampleById($message); | ||
$subscriber->requestExampleById($message); | ||
``` | ||
|
||
## Change log | ||
|
@@ -92,17 +92,17 @@ If you discover any security related issues, please email [email protected] ins | |
|
||
The MIT License (MIT). Please see [License File](../LICENSE.md) for more information. | ||
|
||
[ico-version]: https://img.shields.io/packagist/v/GA/BrokerAPI.svg?style=flat-square | ||
[ico-version]: https://img.shields.io/packagist/v/GA/AsyncAPI.svg?style=flat-square | ||
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square | ||
[ico-travis]: https://img.shields.io/travis/GA/BrokerAPI/master.svg?style=flat-square | ||
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/GA/BrokerAPI.svg?style=flat-square | ||
[ico-code-quality]: https://img.shields.io/scrutinizer/g/GA/BrokerAPI.svg?style=flat-square | ||
[ico-downloads]: https://img.shields.io/packagist/dt/GA/BrokerAPI.svg?style=flat-square | ||
|
||
[link-packagist]: https://packagist.org/packages/GA/BrokerAPI | ||
[link-travis]: https://travis-ci.org/GA/BrokerAPI | ||
[link-scrutinizer]: https://scrutinizer-ci.com/g/GA/BrokerAPI/code-structure | ||
[link-code-quality]: https://scrutinizer-ci.com/g/GA/BrokerAPI | ||
[link-downloads]: https://packagist.org/packages/GA/BrokerAPI | ||
[ico-travis]: https://img.shields.io/travis/GA/AsyncAPI/master.svg?style=flat-square | ||
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/GA/AsyncAPI.svg?style=flat-square | ||
[ico-code-quality]: https://img.shields.io/scrutinizer/g/GA/AsyncAPI.svg?style=flat-square | ||
[ico-downloads]: https://img.shields.io/packagist/dt/GA/AsyncAPI.svg?style=flat-square | ||
|
||
[link-packagist]: https://packagist.org/packages/GA/AsyncAPI | ||
[link-travis]: https://travis-ci.org/GA/AsyncAPI | ||
[link-scrutinizer]: https://scrutinizer-ci.com/g/GA/AsyncAPI/code-structure | ||
[link-code-quality]: https://scrutinizer-ci.com/g/GA/AsyncAPI | ||
[link-downloads]: https://packagist.org/packages/GA/AsyncAPI | ||
[link-author]: https://github.com/emilianozublena | ||
[link-contributors]: https://github.com/asyncapi/php-template/graphs/contributors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...asic/consumer/Handlers/ExampleHandler.php → ...ic/subscriber/Handlers/ExampleHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c/consumer/Handlers/RPCExampleHandler.php → ...subscriber/Handlers/RPCExampleHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.