The only purpose of this package is to demonstrate usage and features of the package opus-online/yii2-ecom. Examples include:
- Example database setup with products, discounts, orders, invoices, users and payment log
- ActiveRecord models implementing Order and Product functionality
- Full order lifecycle (list → basket → order → payments → invoices)
- UI components to list all AR objects (plus shopping basket contents)
You need an environment running PHP 5.4+ and an empty database.
php composer.phar create-project opus-online/yii2-app-ecom ecom --stability=dev --prefer-dist
cd ecom
- Run
./yii init
and follow the instructions on the screen to set up the database - Open
<directory>/web
in your web browser
See the documentation for opus-online/yii2-ecom
for more.
This is the database schema used by the application. Active Record models have been generated using opus-online/yii2-advmodel.