Download the PHP package daikazu/flexicart without Composer

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

FlexiCart

PHP Version Require Laravel Version Latest Version on Packagist GitHub Tests Action Status PHPStan Total Downloads GitHub forks GitHub stars

Buy Me A Coffee

A flexible shopping cart package for Laravel with support for session or database storage, conditional pricing, cart merging, rules engine, and custom product attributes.

Table of Contents

Features

Installation

Requirements

Install the Package

Publish Configuration

Database Storage (Optional)

Then update your .env file:

Basic Usage

Adding Items to the Cart

Updating Items in the Cart

Removing Items from the Cart

Getting Cart Content and Calculations

Conditions

Understanding Conditions

Conditions are adjustments that can be applied to cart items or the entire cart:

Conditions can target:

Adding Conditions

Removing Conditions

Marking Items as Non-Taxable

Tax Conditions and the taxable Flag

Use PercentageTaxCondition or FixedTaxCondition to apply tax. Tax is calculated on a tax base composed of:

  1. The subtotal of items whose taxable attribute is true, plus
  2. Any conditions (cart-level or item-level) whose taxable flag is true.

Conditions default to taxable: false, which means they do not affect the tax base. Set taxable: true on a condition when its amount should be taxed (e.g. a taxable shipping fee) or when a discount should reduce the tax base.

Summary

Condition Effect on total Effect on tax base
Fee with taxable: false (default) Adds to total No change
Fee with taxable: true Adds to total Adds full fee amount
Discount with taxable: false Reduces total No change
Discount with taxable: true Reduces total Reduces by full amount

The same rule applies to item-level conditions: an item condition with taxable: false is included in the item's subtotal but excluded from the tax base.

Documentation

For detailed documentation on specific features, see the following guides:

Guide Description
Configuration Storage options, currency settings, cleanup, and all config options
Rules Engine Advanced promotional rules: Buy X Get Y, thresholds, tiered discounts
Cart Merging Merge strategies for guest-to-user carts, wishlists, and cart recovery
Events Cart lifecycle events for analytics, inventory, and integrations
Working with Prices Price object API, arithmetic operations, and formatting
Blade Templates Examples for displaying cart data in Blade views
Extending FlexiCart Custom conditions, storage drivers, models, and merge strategies

Testing

Troubleshooting

Common Issues

Cart data not persisting between requests

Price calculation errors

Condition not applying correctly

Memory issues with large carts

Changelog

Please see CHANGELOG for more information on what has changed recently.

Future Roadmap

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of flexicart with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-bcmath Version *
ext-intl Version *
brick/math Version >=0.14.2 <2.0
brick/money Version >=0.11 <1.0
illuminate/contracts Version ^10.0||^11.0||^12.0||^13.0
illuminate/session Version ^10.0||^11.0||^12.0||^13.0
illuminate/support Version ^10.0||^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
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 daikazu/flexicart contains the following files

Loading the files please wait ...