{"id":28509380,"url":"https://github.com/justbetter/laravel-akeneo-client","last_synced_at":"2026-03-17T14:17:19.498Z","repository":{"id":59452334,"uuid":"537342178","full_name":"justbetter/laravel-akeneo-client","owner":"justbetter","description":"A Laravel package for the Akeneo API","archived":false,"fork":false,"pushed_at":"2025-02-13T15:19:54.000Z","size":372,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-08T22:09:05.360Z","etag":null,"topics":["akeneo","client","laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justbetter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-16T06:57:41.000Z","updated_at":"2025-02-13T15:19:58.000Z","dependencies_parsed_at":"2023-09-23T04:12:58.880Z","dependency_job_id":"c559d741-1149-4218-9eb3-c5310d31c2e2","html_url":"https://github.com/justbetter/laravel-akeneo-client","commit_stats":{"total_commits":11,"total_committers":4,"mean_commits":2.75,"dds":0.5454545454545454,"last_synced_commit":"642873a5b6d9f2d00e795d95a86917fff4f85e3e"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/justbetter/laravel-akeneo-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Flaravel-akeneo-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Flaravel-akeneo-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Flaravel-akeneo-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Flaravel-akeneo-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justbetter","download_url":"https://codeload.github.com/justbetter/laravel-akeneo-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Flaravel-akeneo-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263232495,"owners_count":23434677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["akeneo","client","laravel"],"created_at":"2025-06-08T22:08:17.661Z","updated_at":"2026-03-17T14:17:14.429Z","avatar_url":"https://github.com/justbetter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/justbetter/laravel-akeneo-client\" title=\"JustBetter\"\u003e\n    \u003cimg src=\"./art/banner.svg\" alt=\"Package banner\"\u003e\n\u003c/a\u003e\n\n# Laravel Akeneo Client\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/justbetter/laravel-akeneo-client\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/justbetter/laravel-akeneo-client/tests.yml?label=tests\u0026style=flat\" alt=\"Tests\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/justbetter/laravel-akeneo-client\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/justbetter/laravel-akeneo-client/coverage.yml?label=coverage\u0026style=flat\" alt=\"Coverage\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/justbetter/laravel-akeneo-client\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/justbetter/laravel-akeneo-client/analyse.yml?label=analysis\u0026style=flat\" alt=\"Analysis\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/justbetter/laravel-akeneo-client\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/justbetter/laravel-akeneo-client?color=blue\u0026style=flat\" alt=\"Total downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nConnect to your Akeneo instance using the official [akeneo/api-php-client](https://github.com/akeneo/api-php-client).\nThis package will ease configuration, dependency injection and testing for Laravel.\n\nIt also has an endpoint available to receive Akeneo events, if enabled.\n\n## Example usage\n\n```php\n\u003c?php\n\nuse JustBetter\\AkeneoClient\\Client\\Akeneo;\n\npublic function __construct(Akeneo $akeneo)\n{\n    $product = $akeneo-\u003egetProductApi()-\u003eget('1000');\n}\n```\n\n## Installation\n\nInstall the composer package.\n\n```shell\ncomposer require justbetter/laravel-akeneo-client\n```\n\nBy default, this package will require the latest version of `akeneo/api-php-client`. You should take a look at the\n[compatibility table](https://github.com/akeneo/api-php-client) to see what version you need for your project.\n\n```shell\ncomposer require akeneo/api-php-client \"^9.0\"\n```\n\n## Setup\n\nOptionally, publish the configuration of the package.\n\n```shell\nphp artisan vendor:publish --provider=\"JustBetter\\AkeneoClient\\ServiceProvider\" --tag=config\n```\n\n## Configuration\n\nAdd the following values to your `.env` file.\n\n```\nAKENEO_URL=\nAKENEO_CLIENT_ID=\nAKENEO_SECRET=\nAKENEO_USERNAME=\nAKENEO_PASSWORD=\n\nAKENEO_EVENT_SECRET=\n```\n\n## Events\n\nIf you have [enabled](https://help.akeneo.com/pim/serenity/articles/manage-event-subscription.html) the event\nsubscription in Akeneo you will be to listen to these events.\n\nThe event webhook is `/akeneo/event`. This can be configured using the `prefix` in your `akeneo` config file.\n\n[All](https://api.akeneo.com/events-reference/events-reference-serenity/products.html) events are available.\n\n```php\n\u003c?php\n\nuse Illuminate\\Support\\Facades\\Event;\nuse JustBetter\\AkeneoClient\\Events\\ProductCreatedEvent;\n\nEvent::listen(function (ProductCreatedEvent $event): void {\n    //\n});\n```\n\n## Testing\n\nThis package makes testing and mocking Akeneo calls very easily.\n\n```php\n\u003c?php\n\nuse Illuminate\\Support\\Facades\\Http;\nuse JustBetter\\AkeneoClient\\Client\\Akeneo;\n\n// This will fake Akeneo credentials and a sign in.\nAkeneo::fake();\n\n// Fake the specific call you will be using\nHttp::fake([\n    'akeneo/api/rest/v1/products/1000' =\u003e Http::response([\n        'identifier' =\u003e '1000',\n        'enabled' =\u003e true,\n        'family' =\u003e 'hydras',\n        'categories' =\u003e [],\n        'groups' =\u003e [],\n        'parent' =\u003e null,\n        'values' =\u003e [\n            'name' =\u003e [\n                [\n                    'locale' =\u003e 'nl_NL',\n                    'scope' =\u003e 'ecommerce',\n                    'data' =\u003e 'Ziggy',\n                ],\n            ],\n        ],\n    ]),\n]);\n\n// Get the product with the fake response\n$response = $akeneo-\u003egetProductApi()-\u003eget('1000');\n```\n\n## Quality\n\nTo ensure the quality of this package, run the following command:\n\n```shell\ncomposer quality\n```\n\nThis will execute three tasks:\n\n1. Makes sure all tests are passed\n2. Checks for any issues using static code analysis\n3. Checks if the code is correctly formatted\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Ramon Rietdijk](https://github.com/ramonrietdijk)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n\u003ca href=\"https://justbetter.nl\" title=\"JustBetter\"\u003e\n    \u003cimg src=\"./art/footer.svg\" alt=\"Package footer\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbetter%2Flaravel-akeneo-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustbetter%2Flaravel-akeneo-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbetter%2Flaravel-akeneo-client/lists"}