Download the PHP package gp247/s-cart without Composer

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

Free, open-source software for e-commerce websites
composer create-project gp247/s-cart

Homepage | Demo | Documentation | FB Group

Packagist Downloads Latest Stable Version License Ask DeepWiki

(Vietnamese version: README_vi.md)

1. Overview

S-Cart is the best free e-commerce website project for individuals and businesses, built on the GP247 ecosystem (the Laravel Framework) and the latest technologies.

Our mission is "Effective and friendly for everyone":

S-Cart 2.x:

Backed by the GP247 ecosystem https://github.com/gp247net

Core Laravel framework 13.x https://github.com/laravel/laravel

UI built with Tailwind CSS 4

Screenshots

S-Cart features

Core capabilities

Professional storefront features

Powerful administration

Folder structure for a GP247-based website

Website-folder/
|
├── app
│     └── GP247
│           ├── Core(+) //Override Core controllers
│           ├── Helpers(+) //Auto-loads Helpers/*.php into the system
│           ├── Front(+) //Override GP247/Front controllers 
│           ├── Shop(+) //Override GP247/Shop controllers 
│           ├── Plugins(+) //Generated by `php artisan gp247:make-plugin --name=NameOfPlugin`
│           └── Templates(+) //Generated by `php artisan gp247:make-template --name=NameOfTempate`
├── public
│     └── GP247
│           ├── Core(+)
│           ├── Plugins(+)
│           └── Templates(+)
├── resources
│            └── views/vendor
│                           ├── gp247-admin(+) //Core view overrides
│                           ├── gp247-shop-admin(+) //Shop view overrides
│                           └── gp247-front-admin(+) //Front view overrides
├── vendor
│     ├── gp247/core
│     ├── gp247/front
│     └── gp247/shop
└──...

2. Quick installation guide

Method 1: Install with Composer (recommended)

1. Create the project

2. Check your .env configuration

Make sure the database settings are correct. If APP_KEY is not set yet, generate it with:

3. Install S-Cart

4. Install sample data (optional)

Method 2: Install with Git Clone

1. Clone the repository

2. Create .env and install dependencies

3. Configure the database in .env

4. Install S-Cart

Method 3: Install with Docker (supported from S-Cart 2)

No need to install PHP/Composer/MySQL on your machine — Docker is all you need. There are two clearly separate compose files for dev and prod — always use the right one for the environment:

DEV setup:

Open the site: http://localhost:8000

PROD setup:

⚠️ Always include -f docker-compose.prod.yml on prod — forgetting it accidentally applies the dev config (debug mode on, runs as root, installs Xdebug...). See the Q&A in DOCKER.md for that failure mode in detail.

For the full step-by-step guide and a detailed troubleshooting Q&A covering both dev and prod, see DOCKER.md.

Important note on folder permissions

If you installed with Method 1 or 2 (no Docker), make sure the following folders are writable, otherwise installation and various features won't work correctly:


3. Q&A

Q: How do I check the installed S-Cart version?

(Only available when S-Cart is installed directly, not via the component-by-component method)

Q: How do I update S-Cart?

Update each package with Composer:

Then run (only available when S-Cart is installed directly):

Q: How do I create a new plugin?

Also generate a zip file for distribution:

Q: How do I create a new template?

Also generate a zip file for distribution:

Q: How do I customize the upload (lfm) configuration?

Q: How do I customize the admin UI?

Each package publishes its admin views into its own views/vendor/<namespace> folder — publish only the tag you actually need to override:

Add --force if you need to overwrite files already published there.

Q: How do I customize the default template?

Add --force if you need to overwrite files already published there.

Q: How do I override the gp247_* helper functions?

  1. Add the list of functions you want to override to config/gp247_functions_except.php
  2. Create new PHP files containing the new functions in app/GP247/Helpers, e.g. app/GP247/Helpers/myfunction.php

Q: How do I override controllers in GP247/Core, GP247/Front, or GP247/Shop?

S-Cart lets you override any controller (including API controllers) in GP247/Core, GP247/Front, and GP247/Shop using the same mechanism: create the corresponding controller in app/GP247/{Core|Front|Shop}, extend the original controller, and prepend App to the original namespace.

Example, overriding a Core controller:

  1. Create the matching file under app/GP247/Core/Controllers/... (keep the same sub-path and filename as in the original package).
  2. Make the new controller extend the original controller from vendor/gp247/core/....
  3. Change the namespace from GP247\Core\Controllers to App\GP247\Core\Controllers (just prepend App, keep the rest as-is).

The same pattern applies to GP247\Front\* and GP247\Shop\* (becoming App\GP247\Front\* and App\GP247\Shop\*) and to API controllers (GP247\Core\Api\Controllers becomes App\GP247\Core\Api\Controllers).

Q: How do I add new routes for the admin area?

Use the GP247_ADMIN_PREFIX and GP247_ADMIN_MIDDLEWARE prefix/middleware constants in your route declarations.

Reference: https://github.com/gp247net/core/blob/master/src/routes.php

Q: What environment variables in .env should I know about?

Disable the API:

Database table prefix (cannot be changed after gp247 is installed):

Admin page path prefix:


All versions of s-cart with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
gp247/core Version ^2.0
gp247/front Version ^2.0
gp247/shop Version ^2.0
laravel/framework Version ^13.8
laravel/tinker Version ^3.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 gp247/s-cart contains the following files

Loading the files please wait ...