Download the PHP package justbetter/laravel-akeneo without Composer
On this page you can find all versions of the php package justbetter/laravel-akeneo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download justbetter/laravel-akeneo
More information about justbetter/laravel-akeneo
Files in justbetter/laravel-akeneo
Package laravel-akeneo
Short Description Akeneo wrapper for Laravel
License MIT
Homepage https://github.com/justbetter/laravel-akeneo
Informations about the package laravel-akeneo
:warning: Abandoned: This package is abandoned, we have developed a new client.
Akeneo wrapper for Laravel
This package allows you to work with Akeneo in a more Laravel like way.
Requirements
- PHP 8 or above
- Akeneo installation
Installation
You can install the package via composer:
Configuration
Add the following values to your .env
file:
You can optionally publish the config file with:
This is the contents of the published config file:
Usage
supported features:
- Multiple Akeneo connections (WIP)
- Custom model classes
- Product Models
- Get all
- Get all lazily
- Find by code
- Save
- Products
- Get all
- Get all lazily
- Find by code
- Save
How to use
All
Get all of the resources from Akeneo
This will return a Collection
by default but can be modified
by overwriting the newCollection
method on your custom model.
The all()
method can also be cached by setting the TTL in the config
Lazy
Getting all of the resources lazily from Akeneo returns a LazyCollection
See the laravel docs on lazy collections for a full list of methods
Find
Find a resource by its code
Attributes
Calling an attribute code on a model will return a class of that attributes type. These are defined in the config and can be extended easily.
Options
Options can be constructed and passed to attributes compatible with them
Save
Save an altered model and persist it to akeneo
Testing
The workflow requires 99%
of the package to be tested.
Make sure to also run static analysis checks
Or combine the 2 requirements
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Quinten Buis
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-akeneo with dependencies
akeneo/api-php-client Version ^6.0
guzzlehttp/guzzle Version ^7.4
spatie/laravel-package-tools Version ^1.4.3
laravel/framework Version ^9.0