aboutgoods / php-jakku-client
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (0.3.4) of this package.
0.3.4
2019-08-28 14:01 UTC
Requires
- aboutgoods/agrabbitmq: ^0.2
- composer/semver: >=1.4
- doctrine/annotations: >=1.4
- doctrine/cache: ^1.5
- doctrine/common: >=2.4
- php-amqplib/php-amqplib: 2.7.0
- ramsey/uuid: ^3.0
- symfony/property-access: >=3.2
- symfony/property-info: >=3.2
- symfony/serializer: >=3.2
- symfony/validator: >=3.2
Requires (Dev)
- dev-master
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.1
- 0.1.0
- 0.0.43
- 0.0.42
- 0.0.41
- 0.0.40
- 0.0.39
- 0.0.38
- 0.0.37
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.33
- 0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-dev
- dev-11-ajout-de-databag-datatype
- dev-6-ajouter-les-meme-donnees-que-sur-la-lib-kotlin
This package is auto-updated.
Last update: 2019-10-17 07:15:22 UTC
README
1. installation
add to your composer.json file:
...
"require": {
...
"aboutgoods/php-jakku-client": "dev-master"
}
Then run:
composer install
2. Usage
this is a basic usage to send an organization:
<?php
require __DIR__."/vendor/autoload.php";
use \Aboutgoods\Jakku\DataBag\Data\DataType;
use \Aboutgoods\Jakku\Connector;
use \Aboutgoods\Jakku\DataBag;
$connector = Connector::connect([
"address" => "localhost",
"port" => 5672,
"login" => "guest",
"password" => "guest",
"queue" => "jakku",
]);
$raw = new DataType\StringType("FNAC ANNECY");
$processed = (new DataType\OrganizationType())
->setSource(DataType\SourceType::stringRange("FNAC", 0, 3))
->setIdOrganization("123456")
->setName("Fnac")
->setLegalName("FNAC")
->setPointOfSales([
(new DataType\PointOfSaleType())
->setSource(DataType\SourceType::stringRange("FNAC ANNECY", 0, 10))
->setName("Fnac Annecy")
->setPlace(
(new DataType\PlaceType())
->setSource(DataType\SourceType::string("elasticsearch"))
->setName("Centre commercial Courier")
->setStreetAddress("65 Rue Carnot")
->setPostalCode("74000")
->setAddressCity("ANNECY")
->setAddressRegion("ARA")
->setAddressCountry("FRANCE")
->addGeo(new DataType\GeoType(45.904878, 6.122516))
->addGeo(new DataType\GeoType(45.905066, 6.123516))
->addGeo(new DataType\GeoType(45.904844, 6.124087))
->addGeo(new DataType\GeoType(45.903851, 6.124615))
->addGeo(new DataType\GeoType(45.903123, 6.123539))
),
])
;
$databag = (new DataBag\Organization(true))
->setDescription("A organization debug databag example")
->enableHumanVerification("parce que c'est pas tout a fait parfait")
->setFrom("example")
->setFromVersion("1.0.0")
->addRawData($raw)
->addProcessedData($processed)
;
Connector::emit($databag);
3. Update the project
Don't forget to add you classes and tag the commit version. Please also update this readme with the new version.git status git
4 Update the jakku bundle
Since you changed the client, you need to also update the jakku bundle project So tag the jakku bundle commmit and also update the version in the composer.json