Download the PHP package webgriffe/sylius-back-in-stock-notification-plugin without Composer

On this page you can find all versions of the php package webgriffe/sylius-back-in-stock-notification-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-back-in-stock-notification-plugin

Back in Stock Notification Plugin

Plugin that add the possibility to receive an email notification when a product return in stock

Build Status

Features

Subscribe to get a Notification when a product return in stock

View your subscriptions in the apposite section of your account

View your client subscriptions in the apposite admin section

Requirements

Installation

  1. Run composer require webgriffe/sylius-back-in-stock-notification-plugin --no-scripts.

  2. Add the plugin to the config/bundles.php file:

  3. Import the plugin routes by creating a file in config/routes/webgriffe_sylius_back_in_stock_notification_plugin.yaml with the follwing content:

  4. Import required packages config in your config/packages/webgriffe_sylius_back_in_stock_notification_plugin.yaml file:

  5. Update the database schema and install assets:

  6. Install the plugin JS assets by adding the source to your webpack configuration:

  7. Run yarn build:

  8. Clear cache:

Configuration

This module sends mail using a Symfony Command. Unfortunately, the command line context does not know about your VirtualHost or domain name. To fix this, the Command loads the hostname from the Subscription's channel, if nothing set it defaults to localhost. In console commands, URLs use http by default. You can change this globally with these configuration parameters:

  1. Edit the config/services.yml file by adding the following content:

  2. As said early this module provides a command that check the stock of the product. You have to set the command bin/console webgriffe:back-in-stock-notification:alert in the crontab, once a day is enough:

Optional Configuration

If you want to use our Behat defined steps you have to include our Behat class in your autoloader-dev. To achieve this adds the following line to your composer.json:

Contributing

To contribute to this plugin clone this repository, create a branch for your feature or bugfix, do your changes and then make sure al tests are passing.

To be able to setup a plugin's database, remember to configure you database credentials in tests/Application/.env and tests/Application/.env.test.

Running plugin tests

PHPUnit

PHPSpec

Behat (non-JS scenarios)

Behat (JS scenarios)

  1. Install Symfony CLI command.

  2. Start Headless Chrome:

  3. Install SSL certificates (only once needed) and run test application's webserver on 127.0.0.1:8080:

  4. Run Behat:

Static Analysis

Psalm
PHPStan
Coding Standard

Opening Sylius with your plugin

License

This plugin is under the MIT license. See the complete license in the LICENSE file.

Credits

Developed by Webgriffe®.


All versions of sylius-back-in-stock-notification-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
doctrine/dbal Version ^2.7 || ^3.0
doctrine/migrations Version ^3.0
doctrine/orm Version ^2.13
psr/log Version ^2.0
sylius/mailer-bundle Version ^1.8 || ^2.0
sylius/resource Version ^1.9
sylius/resource-bundle Version ^1.9
sylius/sylius Version ^1.12
symfony/config Version ^5.4 || ^6.0
symfony/console Version ^5.4 || ^6.0
symfony/dependency-injection Version ^5.4 || ^6.0
symfony/form Version ^5.4 || ^6.0
symfony/framework-bundle Version ^5.4 || ^6.0
symfony/http-foundation Version ^5.4 || ^6.0
symfony/http-kernel Version ^5.4 || ^6.0
symfony/options-resolver Version ^5.4 || ^6.0
symfony/routing Version ^5.4 || ^6.0
symfony/translation-contracts Version ^2.0
symfony/validator Version ^5.4 || ^6.0
symfony/webpack-encore-bundle Version ^1.15
twig/twig Version ^2.0 || ^3.0
webmozart/assert Version ^1.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webgriffe/sylius-back-in-stock-notification-plugin contains the following files

Loading the files please wait ....