This package tracks if products exist in Magento by storing the status locally in the DB.

Overview

Magento Products

This package tracks if products exist in Magento by storing the status locally in the DB. We developed this to prevent multiple calls when multiple packages need to check product existance in Magento. This package does do the assumption that once a product exists in Magento it will always be there.

Installation

Require this package:

composer require justbetter/laravel-magento-products

Add the following to your schedule to automatically search for products in Magento.

$schedule->command(\JustBetter\MagentoProducts\Commands\CheckKnownProductsExistenceCommand::class)->twiceDaily();
$schedule->command(\JustBetter\MagentoProducts\Commands\DiscoverMagentoProductsCommand::class)->daily();

Usage

Checking if a product exists in Magento

You can use this package to determine if products exist in Magento. For example:

$exists = app(\JustBetter\MagentoProducts\Contracts\ChecksMagentoExistence::class)->exists('sku')

If it does not exist the sku will still be stored in the database. The \JustBetter\MagentoProducts\Commands\CheckKnownProductsExistenceCommand command will automatically check these known products for existence.

Retrieving product data

You can use this package to retrieve product data. This data will be saved in the database and automatically retrieved when it is older than X hours. You can configure the amount of ours in the config file For example:

$exists = app(\JustBetter\MagentoProducts\Contracts\RetrievesProductData::class)->retrieve('sku')

Events

When your application discovers new products in Magento you should dispatch one of the following events:

\JustBetter\MagentoProducts\Events\ProductDiscoveredEvent containing a single sku.

When a single product or multiple products appear in Magento, an event is dispatched:

\JustBetter\MagentoProducts\Events\ProductCreatedInMagentoEvent containing a single sku.

Quality

To ensure the quality of this package, run the following command:

composer quality

This will execute three tasks:

  1. Makes sure all tests are passed
  2. Checks for any issues using static code analysis
  3. Checks if the code is correctly formatted

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

You might also like...
GeoLocation-Package - This package helps you to know the current language of the user, the country from which he is browsing, the currency of his country, and also whether he is using it vpn
GeoLocation-Package - This package helps you to know the current language of the user, the country from which he is browsing, the currency of his country, and also whether he is using it vpn

GeoLocation in PHP (API) 😍 😍 😍 This package helps you to know a lot of information about the current user by his ip address 😍 😍 😍 This package h

Testbench Component is the de-facto package that has been designed to help you write tests for your Laravel package

Laravel Testing Helper for Packages Development Testbench Component is the de-facto package that has been designed to help you write tests for your La

πŸ₯³πŸ” This package is a Laravel package that checks if an email address is a spammer
πŸ₯³πŸ” This package is a Laravel package that checks if an email address is a spammer

This package is a Laravel package that checks if an email address is a spammer. It verifies your signups and form submissions to confirm that they are legitimate.

Collection of the Laravel/Eloquent Model classes that allows you to get data directly from a Magento 2 database.

Laragento LAravel MAgento Micro services Magento 2 has legacy code based on abandoned Zend Framework 1 with really ugly ORM on top of outdated Zend_DB

Magewire is a Laravel Livewire port for Magento 2.

Magewire is a Laravel Livewire port for Magento 2. The goal is to make it fun and easy to build modern, reactive and dynamic interfaces, without leaving the comfort of Magento's core layout and template systems. Magewire can be the missing piece when you intend to build dynamic and reactive features, but don't require or feel comfortable working with a full JavaScript framework like Vue or React.

A Magento Incident Response Plan Template

A Magento centric Incident Response Plan Template Introduction This will provide you with our defined process and procedures to use when responding to

Magento Data Migration Tool

Overview We're pleased you're considering moving from the world's #1 eCommerce platformβ€”Magento 1.xβ€”to the eCommerce platform for the future, Magento

Simple user messaging package for Laravel

Laravel Messenger This package will allow you to add a full user messaging system into your Laravel application. Leave some feedback How are you using

This package gives Eloquent models the ability to manage their friendships.

Laravel 5 Friendships This package gives Eloquent models the ability to manage their friendships. You can easily design a Facebook like Friend System.

Releases(1.1.0)
  • 1.1.0(Jan 2, 2023)

    What's Changed

    • Badges by @VincentBean in https://github.com/justbetter/laravel-magento-products/pull/3
    • Add action to check if product is enabled by @VincentBean in https://github.com/justbetter/laravel-magento-products/pull/4

    Full Changelog: https://github.com/justbetter/laravel-magento-products/compare/1.0.3...1.1.0

    Source code(tar.gz)
    Source code(zip)
  • 1.0.3(Oct 6, 2022)

    What's Changed

    • Add Github Actions for tests, static analysis and style by @VincentBean in https://github.com/justbetter/laravel-magento-products/pull/1
    • Fixed migration by @ramonrietdijk in https://github.com/justbetter/laravel-magento-products/pull/2

    New Contributors

    • @VincentBean made their first contribution in https://github.com/justbetter/laravel-magento-products/pull/1
    • @ramonrietdijk made their first contribution in https://github.com/justbetter/laravel-magento-products/pull/2

    Full Changelog: https://github.com/justbetter/laravel-magento-products/compare/1.0.2...1.0.3

    Source code(tar.gz)
    Source code(zip)
  • 1.0.2(Sep 20, 2022)

  • 1.0.1(Sep 20, 2022)

  • 1.0.0(Sep 20, 2022)

Owner
JustBetter
We're an innovative development agency from The Netherlands building awesome websites, webshops and web applications with Laravel and Magento.
JustBetter
A package for Laravel to perform basic git commands on locally integrated packages.

A package for Laravel to perform basic git commands on locally integrated development packages. If working within multiple local development packages or repositories at once this package is meant to ease the burden of navigating to each individual repository to perform basic git commands.

null 3 Jul 26, 2022
Razorpay payment gateway integration in laravel with submit form and storing details in payment table.

Integrating razorpay payment gateway in laravel with submit form and storing payment details in payment table. How to settup the project in your local

Mohammed-Thamnees 3 Apr 15, 2021
A filesystem-like repository for storing arbitrary resources.

The Puli Repository Component Latest release: 1.0.0-beta10 PHP >= 5.3.9 The Puli Repository Component provides an API for storing arbitrary resources

Puli 435 Nov 20, 2022
A Laravel package to monitor the status and history of jobs on the queue.

Monitored Jobs for Laravel Overview This package tracks the status and history of your queued jobs by hooking into the events that Laravel fires for i

Aryeo 9 Dec 9, 2022
πŸ“› An open source status page system for everyone.

Cachet is a beautiful and powerful open source status page system. Overview List your service components Report incidents Customise the look of your s

Cachet 13k Jan 4, 2023
With Laravel, search and lookup Amazon products easily.

Amazon ECS (E-Commerce Services) Package for Laravel If you need the ability to search Amazon's catalog of products or lookup an individual item with

Joe Dawson 51 Aug 4, 2022
Configurable products switcher

Easylife Switcher Configurable products switcher v2.3.2 Discontinued This extension is no longer supported by the developer (that's me). There will be

Marius Strajeru 172 Sep 13, 2022
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
This package provides extended support for our spatie/enum package in Laravel.

Laravel support for spatie/enum This package provides extended support for our spatie/enum package in Laravel. Installation You can install the packag

Spatie 264 Dec 23, 2022
A Laravel chat package. You can use this package to create a chat/messaging Laravel application.

Chat Create a Chat application for your multiple Models Table of Contents Click to expand Introduction Installation Usage Adding the ability to partic

Tinashe Musonza 931 Dec 24, 2022