Download the PHP package cyvelnet/laravel-easycart without Composer

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

Laravel EasyCart

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License

This project is still under development, it is far from ready for production.

Installation

Require this package with composer using the following command: ` After updating composer, add the ServiceProvider to the providers array in config/app.php ``

and register Facade And optionally add a new line to the aliases array:

'EasyCart' => Cyvelnet\EasyCart\Facades\EasyCart::class,

Usage

EasyCart::add()

Add new product or update quantity on existing cart item

EasyCart::update()

Update cart item

EasyCart::remove()

Remove an item from cart

EasyCart::get()

Get a row by rowId

EasyCart::destroy()

Wipe cart completely

EasyCart::qty()

Get the total number of quantity in cart.

EasyCart::subtotal()

Get the cart subtotal before a condition value is being added, use EasyCart::total() to retrieves the final price

EasyCart::total()

Get the cart total with condition values calculated

EasyCart::items()

Get the cart items EasyCart::content() is an aliase to EasyCart::items(), Cyvelnet\EasyCart\Collections\CartItemCollection instance is return

EasyCart::weight()

Get the cart total weight

Filtering

EasyCart::find()

Find a cart item by product id, a Cyvelnet\EasyCart\CartItem instance is return

EasyCart::findByIds()

Find a cart item by an array of ids, a Cyvelnet\EasyCart\Collections\CartItemCollection instance is return

Condition

EasyCart support condition, which is essential to ECommerces application, either provides discount or add additional prices are supported.

EasyCart::condition()

Adding a condition is simple, just instantiate a Cyvelnet\EasyCart\CartCondition object and you are ready to go.

Sometimes you want to only give an discount to only to a selected range of products instead of apply to the whole cart, it is easy

Life is not always easy, what if you need to give an discount of 20% but with a maximum up to $50 ?

EasyCart::removeConditionByType()

Remove condition by type

EasyCart::removeConditionByName()

Remove condition by name

Instances

EasyCart support multiple instances, no extra configuration is needed, just point it to instance and it works the same as normal

Instances Expiration

Sometimes a cart expiration is needed, maybe for reservation, or other usage, this is handful in EasyCart

To verify whether a cart is expired, use EasyCart::isExpired()

Since you may expire a cart, you might want to make a countdown too


All versions of laravel-easycart with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6|^7.0|^8.0
illuminate/support Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.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 cyvelnet/laravel-easycart contains the following files

Loading the files please wait ....