PHPackages                             justbetter/laravel-magento-prices - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. justbetter/laravel-magento-prices

ActivePackage[API Development](/categories/api)

justbetter/laravel-magento-prices
=================================

Generic package to push prices to Magento

2.4.7(7mo ago)2015.9k↓13.6%11MITPHPPHP ^8.3CI passing

Since Sep 20Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/justbetter/laravel-magento-prices)[ Packagist](https://packagist.org/packages/justbetter/laravel-magento-prices)[ RSS](/packages/justbetter-laravel-magento-prices/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (41)Used By (1)

[ ![Package banner](./art/banner.svg)](https://github.com/justbetter/laravel-magento-prices "JustBetter")Laravel Magento Prices
======================

[](#laravel-magento-prices)

 [![Tests](https://camo.githubusercontent.com/bd614cfd8f4507af239361d7b8c1fc5b2f8aa446af499707d485a62899b89235/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d7072696365732f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-prices) [![Coverage](https://camo.githubusercontent.com/79289d308e1e25911b245cca5801cfe801d2db3e72d445091df9c213810e32a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d7072696365732f636f7665726167652e796d6c3f6c6162656c3d636f766572616765267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-prices) [![Analysis](https://camo.githubusercontent.com/3617f23467a4a94f1ab870c2e7e98e309444e750bc4f273f99ee094612f50506/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d7072696365732f616e616c7973652e796d6c3f6c6162656c3d616e616c79736973267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-prices) [![Total downloads](https://camo.githubusercontent.com/7b492dd29976d42c94ef168fc7df2303fa46fb0f258af2308278d8dcbe3e1c14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d7072696365733f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-prices)

Package to send prices to Magento from a Laravel application using a configurable source.

Features
--------

[](#features)

The idea is that we want to push prices to Magento but we do not want to rewrite the logic of keeping track and updating prices to Magento. This package can:

- Retrieve prices from any source
- Push prices to Magento (base / tier / special)
- Only update prices in Magento when are modified. i.e. when you retrieve the same price ten times it only updates once to Magento
- Search for missing prices in Magento
- Automatically stop syncing when updating fails
- Supports Magento 2 async bulk requests for updating using [Laravel Magento Async](https://github.com/justbetter/laravel-magento-async)
- Logs activities using [Spatie activitylog](https://github.com/spatie/laravel-activitylog)
- Checks if Magento products exist using [JustBetter Magento Products](https://github.com/justbetter/laravel-magento-products)

> Also using customer specific prices? [See our other package!](https://github.com/justbetter/laravel-magento-customer-prices)We also have a [Magento Client](https://github.com/justbetter/laravel-magento-client) to easily connect Laravel to Magento!

Installation
------------

[](#installation)

Require this package: `composer require justbetter/laravel-magento-prices`

Publish the config: `php artisan vendor:publish --provider="JustBetter\MagentoPrices\ServiceProvider" --tag="config"`

Publish the activity log's migrations: `php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"`

Run migrations. `php artisan migrate`

> ***TIP:*** All actions in this package are run via jobs, we recommend Laravel Horizon or another queueing system to run these

### Laravel Nova

[](#laravel-nova)

We have a [Laravel Nova integration](https://github.com/justbetter/laravel-magento-prices-nova) for this package.

Usage
-----

[](#usage)

Add the following commands to your scheduler:

```
