Download the PHP package melisplatform/melis-demo-commerce without Composer

On this page you can find all versions of the php package melisplatform/melis-demo-commerce. 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 melis-demo-commerce

Melis Demo Commerce

Module: melisplatform/melis-demo-commerce · Namespace: MelisDemoCommerce · melis-site: true · melis-module-category: commerce Audience: end users · developers · AI agents What it is: a ready-made demo e-commerce storefront site for MelisPlatform (the commerce counterpart of melis-demo-cms) — a full front office (catalog, product/variant pages, cart, multi-step checkout, account, orders) plus a one-time setup wizard that seeds a complete demo catalog (products, variants, categories, attributes, prices, stock, a coupon and sample clients/orders). Built on the melis-commerce engine.


A ready-made demo e-commerce site for the Melis Platform. It is the commerce counterpart of melis-demo-cms: a full storefront (catalog, product/variant pages, cart, checkout, account, orders) plus a seeded demo catalog (products, variants, categories, attributes, prices, stock, a coupon, and sample clients/orders).

This module is a site module — it is referenced from vendor/ and registered with the platform, then its demo data is installed through a one-time setup wizard.


Requirements

Before installing this module you need a working Melis Platform with:

The setup wizard adds a new site to your platform. It does not overwrite existing sites, and it resolves all database IDs at runtime — so it can be installed onto a platform that already hosts other sites (e.g. the CMS demo).


How the install works (in short)

  1. Composer places the module in vendor/melisplatform/melis-demo-commerce and records its extra.module-name so the platform can find it.
  2. You register the module so the platform loads it.
  3. You open /MelisDemoCommerce/setup on a domain that is not yet bound to another site.
  4. The wizard runs 15 steps, creating the site, pages, templates, sliders, news, the commerce catalog (attributes → products → categories → variants → prices → stock), a coupon and sample clients/orders. Unknown IDs are resolved as rows are inserted and written back into the site's generated config files (the [:token] placeholders in config/*.dist).

Manual installation

1. Get the module with Composer

If it is already listed in your project's composer.json, just install dependencies:

Otherwise add it:

If you edited the module after installing (e.g. pulled a branch), refresh Composer's autoload so the Module class and namespace map are picked up:

2. Register the module's path with the platform

This is a site module — it is loaded for its own front domain through the vhost's MELIS_MODULE env (step 4), not through the back-office module list.

⚠️ Do NOT add MelisDemoCommerce to config/melis.module.load.php. That file is the back-office module list; adding a site module there makes the platform treat every /MelisDemoCommerce/* URL as a back-office request and redirect it to /melis/login, so the setup wizard becomes unreachable.

The module only needs to be in the path map so the platform can locate it. Add it to config/melis.modules.path.php:

(Or simply delete config/melis.modules.path.php — it is regenerated on the next request from the installed packages, picking up this module via its composer.json extra.module-name.) Then clear the platform cache:

3. Make the required paths writable

The wizard copies product/category images and writes the site's generated config files, so these must be writable by the web server:

4. Set up a domain / virtual host

Point a virtual host at the project's public/ directory using a domain that is not already used by another site on this platform (the front engine routes by domain — a domain bound to another site will intercept /MelisDemoCommerce/setup). Declare the platform and this module via env vars:

Add the domain to your hosts file:

Restart/reload the web server.

5. Run the setup wizard

Open:

Fill in:

Click Start setup. The wizard runs these steps automatically (the products and variants steps are large and take longest — let it finish):

site → templates → pages → sliders → news → prospects_theme → document_types → attributes → product_text_types → products → categories → variants → coupons → client_and_orders → setup_main_page

When you see “MelisDemoCommerce setup completed.” the install is done.

6. Verify

Browse to http://www.mycommerce.local/ — you should see the demo storefront with categories, products and prices.


Re-running the install

Each run regenerates the site's config files from the *.dist templates, but it does not delete data it previously inserted — re-running on the same database will create duplicate rows. To start over cleanly, restore the database to its pre-install state first, then run the wizard again.


Troubleshooting

Symptom Cause / fix
/MelisDemoCommerce/setup redirects to /melis/login MelisDemoCommerce was added to config/melis.module.load.php (the back-office list) — remove it. A site module is loaded via the vhost's MELIS_MODULE, not that list.
Blank page / 404 at /MelisDemoCommerce/setup The domain is already bound to another site (use an unbound domain), or MELIS_MODULE isn't set on the vhost. Clear cache/.
Access permission denied … make … writable Make public/media/ and the module's config/ directory writable.
Current Platform "" has no data on database MELIS_PLATFORM isn't set for this vhost, or the platform isn't installed. Set SetEnv MELIS_PLATFORM.
Module won't initialize / class not found Run composer dump-autoload.
Setup stops on client_and_orders MELIS_MODULE isn't set for the vhost — add SetEnv MELIS_MODULE "MelisDemoCommerce".

Support


All versions of melis-demo-commerce with dependencies

PHP Build Version
Package Version
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 melisplatform/melis-demo-commerce contains the following files

Loading the files please wait ...