Download the PHP package phil/commerce-bundle without Composer

On this page you can find all versions of the php package phil/commerce-bundle. 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 commerce-bundle

phil/commerce-bundle

Orders, prices, taxes, payments and receipts for a Symfony store, with modules plugged on top.

phil/commerce-bundle is the core of commerce in a Symfony application. It holds orders and their adjustments, with totals always computed in one currency, through their states: cart, quoted, placed, cancelled. It sells through channels, a site with its own domains or a point of sale, each with its currency, locale and tax zone. It keeps with each line the values of the options a catalogue declares — a text, a choice with its image, an ink, a value drawn once the order is paid —, so the same product with other values is another line, and charges what they add. It taxes each line after its promotions, with the rates of its configuration or of the application's resolver. It takes payments through the gateways the application plugs in, and moves each payment only on its processor's verified notifications. It issues the receipt of a placed order and the credit notes that reverse it, each series numbered without gaps, and renders them as a PDF invoice. It lets a placed order be paid later — a preorder, installments, a layaway — under one policy: a deposit, a balance called by a date, a shipment, the goods' arrival or someone of the shop, and the stock committed on the order or on the balance. Its life cycle is a workflow of symfony/workflow that journals each move and lets someone allowed force one; a placed order changes by versioned changes with their difference due, and expires when nobody pays it. It offers an order as a gift, wrapped or not, keeps shared wish lists others buy from, takes discounts granted by hand, takes offline payments and payment links that expire, refunds in two steps, numbers every document type of a register, and announces an order paid in full, refunded or cancelled for whoever listens. It never converts currencies, decides tax registration or place of supply, stores payment attempt states itself, talks to a payment processor, or credits part of a line's quantity.

It is for an application that sells, whether goods or access. Most stores sell access: they install the core and perhaps phil/commerce-subscription-bundle, never a catalogue. Products, price books and promotions belong to phil/commerce-catalog-bundle; logistics and wholesale are packages of their own. A module refuses to load without the core. The bundle has no resource registry or generic factories.

It is a Symfony bundle that stores orders, payments and receipts through Doctrine and exposes a webhook endpoint for payment notifications. Amounts are the Money of phil/money, and taxes are computed by phil/tax.

The design rests on ports wired by autoconfiguration: what is sold (SellableResolver), with which options (SellableOptions), at what unit price (UnitPriceResolver), the processors that recompute an order after each change (OrderProcessor), what a channel sells (SellableAvailability), the payment gateways (PaymentGateway) and who draws an option after payment (OptionDrawer). A payment attempt limiter, written as pure functions, keeps a single state per key; a robot verdict adds friction and never refuses on its own.

Status

Part State
Order, OrderLine, Adjustment, SellableReference, Sellable, PricingContext Implemented and tested
Order states — cart, quoted, placed, cancelled —, quotes, amending a placed order, and storage on Doctrine Implemented and tested
Channels: sites and points of sale, their domains, currency, locale, theme and selection Implemented and tested
Payments: split payments, gateways per processor, verified notifications applied once, abandoned payments, refunds, disputes, webhook endpoint Implemented and tested
Deferred sales — preorders, installments, layaways — as one policy: deposit, balance trigger, stock commitment, domain events and the StockCommitments port Implemented and tested
OrderModifier over SellableResolver, UnitPriceResolver, OrderProcessor, SellableAvailability Implemented and tested
Options: OptionSet, OptionDefinition, LineConfiguration, configured lines, OptionSupplementProcessor, OptionDraws, over SellableOptions and OptionDrawer Implemented and tested
TaxOrderProcessor, ConfiguredTaxRates and phil_commerce.tax_rates Implemented and tested
PaymentAttemptKey, PaymentAttemptPolicy, PaymentAttemptState, PaymentAttemptDecision, PaymentAttemptLimiter Implemented and tested
TaxRateResolver, PaymentAttemptStateStore Ports; the application implements them, ConfiguredTaxRates by default for the first
Receipts and credit notes, numbered without gaps, and their PDF invoice Implemented and tested
Order life cycle as the phil_commerce_order workflow, its journal, forced moves and statuses Implemented and tested
Gift options, the gift wrapping processor and shared wish lists Implemented and tested
Manual discounts on a line or the order Implemented and tested
Offline payments, payment links that expire, refunds in two steps, OrderPurchased, OrderRefunded, OrderCancelled Implemented and tested
Changes of placed orders, prepared, confirmed and versioned Implemented and tested
Expiry and deletion of unpaid orders, per channel Implemented and tested
The document register, each type listed, by direct link only, or kept for the store Implemented and tested
Partial-quantity credits Not started
Visibility of what is sold — listed, direct link only, absent —, orderable or not, priced or not Implemented and tested (channels)
Subscriptions, catalogue, logistics, wholesale, point of sale, returns, stored value, syndication Their own packages, each implemented and documented in its README (modules)

Documentation

Quick start

Requirements

PHP 8.5 or later with ext-filter, ext-json, ext-mbstring and ext-sodium; Doctrine ORM 3.7 and DBAL 4.5; phil/ddd-bundle, phil/money, phil/paged-media and phil/tax 0.1; psr/clock 1.0; symfony/event-dispatcher-contracts 3.6; symfony/config, symfony/dependency-injection, symfony/http-foundation, symfony/uid and symfony/workflow 8.2 or later.

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.

Every file is under this licence alone. The Sylius components served as a design model only.


All versions of commerce-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-filter Version *
ext-json Version *
ext-mbstring Version *
ext-sodium Version *
doctrine/dbal Version ^4.5
doctrine/orm Version ^3.7
phil/ddd-bundle Version ^0.1@dev
phil/money Version ^0.1@dev
phil/paged-media Version ^0.1@dev
phil/tax Version ^0.1@dev
psr/clock Version ^1.0
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/event-dispatcher-contracts Version ^3.6
symfony/http-foundation Version ^8.2
symfony/uid Version ^8.2
symfony/workflow Version ^8.2
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 phil/commerce-bundle contains the following files

Loading the files please wait ...