Download the PHP package tanhongit/new-mvc-shop without Composer

On this page you can find all versions of the php package tanhongit/new-mvc-shop. 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 new-mvc-shop

Welcome to New PHP MVC by TANHONGIT

The NEW-MVC-SHOP is a free e-commerce website project for everyone to use. It is built in pure PHP language. And anyone can use it.

Support the project

Support this project :stuck_out_tongue_winking_eye: :pray:

PayPal buymeacoffee TanHongIT

1. Configuration requirements

  • Web Server: Apache
  • Version PHP >= 8.0
  • Composer >= 2.0
  • OpenSSL PHP Extension
  • Composer (Please install composer before running this project).
  • MySQL >= 8.0 (or MariaDB >= 10.0)

2. Technology

3. Feature

4. Download Database

This is the path to the database file for you to download: /admin/database/***.sql

Create a new database on PHPMyAdmin at your server, then import the .sql file that you just downloaded.

5. Request configuration

Clone the project to your computer:

Copy the .env.example file to .env:

Run composer install:

6. Installation instructions

After running the above command, you need to edit the following information in the .env file:

6.1 Edit Config

You need to change the path in the '.env' file to match the location of this source code on your server and must match the domain you registered.

Note:

The path of the config file that is using these environment variables is located at: /lib/config/config.php

6.2 Edit Connect Database

You need to change the connection information and import sql file to the database after you have cloned my repository so that the website can work.

This is the path to the sql file for you to import to your database: /admin/database/***.sql

And change the connection information to match your database in .env file:

Note:

The path of the database config file that is using these environment variables is located at: /lib/config/database.php

6.3 Edit .htaccess

Change RewriteBase - Recommend the path that matches your host address.

So we will have:


Note: This applies to the case where your project is in a subfolder, and you want it accessible from a subpath URL.

EXAMPLE:

So we will have:

6.4 Edit SMTP Mail

The third thing: You need to change the information about SMTP Mail to be able to use some functions about user account authentication, change passwords, notify users, ...

Update the following information in the .env file:

Change the value of the constant SMTP_UNAME and SMTP_PWORD to match the configuration you added on your Gmail.

Tips: https://support.google.com/accounts/answer/185833?hl=en

Where SMTP_PWORD is the application password for your gmail.com account.

Note:

The path of the email config file that is using these environment variables is located at: /lib/config/sendmail.php

7. Install with Docker (Optional)

Note:

Please skip this section if you have already installed the project in the above section.

If you want to run this project with Docker, you can edit .env file and use the following command:

Please edit the following information in the .env file:

(Please set ports for MYSQL_PORT, PHPMYADMIN_PORT, APP_PORT, SSL_PORT and not duplicate with other ports)

Example:

7.1 Installation with bash script:

If your OS is Linux, you can use the bash script to easily run the project with Docker.


If not, please follow the instructions below.

7.2 Installation with commands:

Run the following command:

After running the above command, you need to install the composer package for the project.

Finally, you need to import the database file into the database container.

8. Demo

  1. Front-End: https://chikoiquan.tanhongit.com
  2. Back-End: https://chikoiquan.tanhongit.com/admin.php

Account login on Backend

Demo Images

HomePage

Image


Slide of Homepage

Image


Product Page

Image


Admin Manager Page

Image

Image


license


All versions of new-mvc-shop with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
phpmailer/phpmailer Version ^v6.9
vlucas/phpdotenv Version ^v5.6
ext-mysqli 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 tanhongit/new-mvc-shop contains the following files

Loading the files please wait ....