Download the PHP package a2-atu/a2commerce without Composer

On this page you can find all versions of the php package a2-atu/a2commerce. 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 a2commerce

A2 Commerce

Laravel package (a2-atu/a2commerce) for a decoupled, event-driven e-commerce core: cart, checkout helpers, PayPal, guest checkout, wishlist, and comparison—aligned with Vormia (package-first models/traits) and Livewire 4.

Versioning: Release lines are tagged in Git. At runtime, A2\A2Commerce\Support\PackageInfo::version() (and the container binding a2commerce.version) resolve the installed version via Composer’s InstalledVersions API—no duplicated constant in source.

Breaking change (current major)

This line is package-first only: the installer does not edit routes/api.php, does not remove stub-copied app/ trees, and does not delete legacy migration PHP files from the host database/migrations folder. If you still have artifacts from an old copy-based workflow, remove or migrate them manually before upgrading, or stay on the previous major.

How this package is structured

For end-to-end storefront patterns, see docs/guide.md.

Requirements

Installation

1. Require packages

Follow Vormia’s installation docs for auth, migrations, and User model traits.

2. Run the installer (housekeeping)

This does not copy models/services into app/. It:

Options

3. Environment

Set PayPal and commerce variables (see also php artisan a2commerce:help):

4. Migrate

5. Host app wiring

Optional: publish config

Usage (concepts)

Services (package)

Class Role
A2\A2Commerce\Services\A2\Commerce\CartService Cart session, guest + auth
A2\A2Commerce\Services\A2\Commerce\OrderService Orders from cart
A2\A2Commerce\Services\A2\Commerce\PaymentService / PayPalPaymentService Payments
A2\A2Commerce\Services\A2\Commerce\WishlistService Wishlist
A2\A2Commerce\Services\A2\Commerce\ComparisonService Comparison

Events (package)

Examples: CartUpdated, OrderCreated, PaymentCompleted, PaymentFailed, wishlist/comparison events. Listeners run from A2CommerceEventServiceProvider.

PayPal

  1. Create order (host checkout + OrderService).
  2. Client uses PayPal JS; server confirms via package services.
  3. Webhook hits /api/a2/payment/paypal/webhook for reconciliation.

Artisan commands

Command Purpose
php artisan a2commerce:install Append missing A2 env keys; optional migrate; reminds about publish
php artisan a2commerce:update Append missing A2 env keys (unless --skip-env); cache clear
php artisan a2commerce:uninstall Optional env strip; optional DB teardown (MySQL/MariaDB: drops a2_ec_* and prunes package rows from migrations when you confirm; other drivers: drop tables manually). Does not remove vendor
php artisan a2commerce:help Env keys, webhook URL, command summary

Development (this repo)

Tests use Orchestra Testbench and register Vormia + A2Commerce providers (see tests/TestCase.php).

Documentation

Long-form guides live under docs/ (single copy; there is no duplicate packageflow-md/ at the repository root).

Doc Content
docs/guide.md AI / contributor entry: package boundaries, boot path, truth sources
docs/packageflow-md/0-a_2_commerce_implementation_guide.md Host app integration, routes, Volt examples
docs/packageflow-md/1-a_2_commerce_schema.md Tables and relationships
docs/packageflow-md/2-a_2_event_flow.md Event flows
docs/packageflow-md/3-a_2_payment_guide.md Payment pipeline and webhooks
docs/packageflow-md/4-a_2_commerce_fixes_plan.md Planning / history notes
docs/packageflow-md/6-a_2_commerce_admin_order_review_shipping-guide-2.md Admin order / shipping notes

Troubleshooting

Issue What to check
Webhook not hit PayPal dashboard URL must be {APP_URL}/api/a2/payment/paypal/webhook; route is on api middleware
Wrong user model on relations config('vormia.user_model') and config('auth.providers.users.model')
Events not firing Dispatch A2\A2Commerce\Events\... classes; ensure A2CommerceServiceProvider is registered
“Class not found” for services Use A2\A2Commerce\Services\A2\Commerce\... — not App\Services\A2\...

Links


Thank you for using A2Commerce.


All versions of a2commerce with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
composer-runtime-api Version ^2.2
laravel/framework Version ^12.0|^13.0
vormiaphp/vormia Version ^5.4
livewire/livewire Version ^4.0
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 a2-atu/a2commerce contains the following files

Loading the files please wait ...