Download the PHP package jord-jd/exiguous-ecommerce without Composer
On this page you can find all versions of the php package jord-jd/exiguous-ecommerce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jord-jd/exiguous-ecommerce
More information about jord-jd/exiguous-ecommerce
Files in jord-jd/exiguous-ecommerce
Package exiguous-ecommerce
Short Description Exiguous Ecommerce is a super simple ecommerce library, that uses flat files and takes a very minimalistic approach.
License LGPL-3.0-only
Informations about the package exiguous-ecommerce
🛒 Exiguous Ecommerce
Exiguous Ecommerce is a super simple ecommerce library, that uses flat files and takes a very minimalistic approach.
Installation
Just run the following Composer command to download/install Exiguous Ecommerce and create relevant autoload files.
If your framework does not already do so, you must add require_once "vendor/autoload.php" to any files in which you wish to use Exiguous Ecommerce.
Configuration
Exiguous Ecommerce stores all of its data within a data directory. An example data directory is provided in this package.
Before use, you should then copy the data directory to another location and then specify this location your project's environment.
If you are using Laravel, this can be done by setting an EXIGUOUS_ECOMMERCE_DATA_DIRECTORY variable in your .env file, as follows.
If you are not using a framework that supports this, you can use the standard PHP function putenv to set this environment variable.
Alternatively, you could use dotenv-loader to add .env file support to your project.
Please note that it is important the EXIGUOUS_ECOMMERCE_DATA_DIRECTORY variable is set with a trailing slash present.
For security reasons, you should place the data directory in a location which is not web-accessible. In case the data directory is placed in
a web accessible location by accident, a .htaccess file is provided that should deny web users access to the directory's content in most
common web server configurations.
Quick Start Examples
Getting products and categories:
Getting the current user's basket and adding a product to it:
Removing a product from a basket:
Setting/Offsetting the quantity of a product in the basket:
Migrating the basket to an order:
Getting and using settings: