Download the PHP package setono/sylius-gift-card-plugin without Composer

On this page you can find all versions of the php package setono/sylius-gift-card-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-gift-card-plugin

Sylius Gift Card Plugin

Latest Version on Packagist Build Status

Add gift card functionality to your store:

The administrator will have access to a dashboard showing the total outstanding balance of gift cards which can be used for auditing.

Screenshots

▶▶ Skip screenshots and go to installation

Api platform support

Everything related to Gift Card can be done via API. Whether it is admin or shop actions

Installation

Require plugin with composer:

Import configuration:

(Optional) Import fixtures

If you wish to have some gift cards to play with in your application during development.

Import routing:

or if your app doesn't use locales:

Add plugin class to your bundles.php:

Make sure you add it before SyliusGridBundle, otherwise you'll get You have requested a non-existent parameter "setono_sylius_gift_card.model.gift_card.class". exception.

Copy templates

You will find the templates you need to override in the test application.

Extend entities

Extend Product

Extend Order

Extend OrderItem

Extend OrderItemUnit

Extend OrderRepository:

Extend CustomerRepository:

Copy Api Resources

Resources declaration that need to be copied are:

If you already have them overriden, just change the following routes:

Order.xml

Update your database:

Install assets:

Clear cache:

Configuration

Change redirect routes on add/remove gift card to/from order

You can customize where you will be redirected after adding or removing a gift card. To do so, you can simply change the route configuration :

The same applies for the setono_sylius_gift_card_shop_partial_add_gift_card_to_order route

You can also override or decorate the service setono_sylius_gift_card.resolver.redirect_url to define a more custom way of redirecting

Usage

In order to find out how to use the GiftCard plugin, please refer to the usage.

Development

Testing

Playing

To run built-in application showing plugin at work, just run:

Contribution

Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.

Please, run composer all to run all checks and tests before making pull request.


All versions of sylius-gift-card-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-filter Version *
ext-mbstring Version *
api-platform/core Version ^2.6
doctrine/collections Version ^1.8
doctrine/dbal Version ^2.13 || ^3.0
doctrine/orm Version ^2.7
doctrine/persistence Version ^1.3 || ^2.5 || ^3.0
fakerphp/faker Version ^1.21
knplabs/knp-menu Version ^3.3
knplabs/knp-snappy Version ^1.4
knplabs/knp-snappy-bundle Version ^1.9
setono/doctrine-object-manager-trait Version ^1.1
sylius/api-bundle Version ^1.10
sylius/channel Version ^1.0
sylius/channel-bundle Version ^1.0
sylius/core Version ^1.0
sylius/core-bundle Version ^1.0
sylius/currency Version ^1.0
sylius/customer Version ^1.0
sylius/grid-bundle Version ^1.0
sylius/locale Version ^1.0
sylius/locale-bundle Version ^1.0
sylius/mailer-bundle Version ^1.6 || ^2.0
sylius/money-bundle Version ^1.0
sylius/order Version ^1.10
sylius/order-bundle Version ^1.0
sylius/product Version ^1.0
sylius/product-bundle Version ^1.0
sylius/promotion Version ^1.0
sylius/resource-bundle Version ^1.8
sylius/shipping-bundle Version ^1.0
sylius/ui-bundle Version ^1.0
sylius/user Version ^1.0
symfony/config Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/event-dispatcher Version ^5.4 || ^6.4
symfony/form Version ^5.4 || ^6.4
symfony/http-foundation Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4
symfony/messenger Version ^5.4 || ^6.4
symfony/options-resolver Version ^5.4 || ^6.4
symfony/property-access Version ^5.4 || ^6.4
symfony/routing Version ^5.4 || ^6.4
symfony/security-core Version ^5.4 || ^6.4
symfony/serializer Version ^5.4 || ^6.4
symfony/translation-contracts Version ^2.4
symfony/validator Version ^5.4 || ^6.4
twig/twig Version ^2.15 || ^3.5
webimpress/safe-writer Version ^2.2
webmozart/assert Version ^1.11
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 setono/sylius-gift-card-plugin contains the following files

Loading the files please wait ....