Download the PHP package guiziweb/sylius-token-plugin without Composer
On this page you can find all versions of the php package guiziweb/sylius-token-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package sylius-token-plugin
Sylius Token Plugin
> **Buy tokens, spend them on anything.** Prepaid wallet for Sylius, the way AI SaaS products bill their users. ## How it works Customers buy **token packs**: ordinary Sylius products that grant tokens instead of being shipped. Tokens land in a **wallet** when the payment completes, and your own code spends them against a **price list** that says what each action costs. Every movement is written to an append-only ledger. Tokens are held in batches, each with its own acquisition date, purchase price and optional expiry, and spent oldest-expiring-first. A balance is always derived from those batches, so an expired batch stops counting the moment it expires. ## Requirements - PHP ^8.2 - Sylius ^2.1 - MySQL, MariaDB or PostgreSQL ## Quick install This plugin ships a [Symfony Flex recipe](https://github.com/Guiziweb/SyliusRecipes). With the Guiziweb recipe endpoint configured in your project (see linked repo), the install boils down to: The recipe registers the bundle and imports the configuration and the routes. One step cannot be automated: apply `TokenPackTrait` to your own `ProductVariant` entity, since a pack grants tokens through a field carried by your entity. Do it before running the migrations: Full step-by-step guide (with and without Flex): [installation](docs/installation.md). ## Documentation - [Installation](docs/installation.md) - full setup steps - [Usage](docs/usage.md) - selling packs, spending tokens, adjusting balances - [Extending](docs/extending.md) - expiration policy, overriding models ## License MIT - see [LICENSE](LICENSE).All versions of sylius-token-plugin with dependencies
PHP Build Version
Package Version
The package guiziweb/sylius-token-plugin contains the following files
Loading the files please wait ...