A set of common utilities to ease working with Magento. All helpers implement caching to reduce overhead. It will cache the results for a day by default. Caching can be disabled via the configuration file.
Currently, this packge provides the following utilities:
- Fetching all stores.
- Fetching all websites.
An example to fetch all websites.
use JustBetter\MagentoUtilities\Contracts\GetsWebsites;
$contract = app(GetsWebsites::class);
$websites = $contract->get();
Install the composer package.
composer require justbetter/laravel-magento-utilities
Optionally publish the configuration of the package.
php artisan vendor:publish --provider="JustBetter\MagentoUtilities\ServiceProvider" --tag=config
To ensure the quality of this package, run the following command:
composer quality
This will execute three tasks:
- Makes sure all tests are passed
- Checks for any issues using static code analysis
- Checks if the code is correctly formatted
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.