PHP Classes

Flexible PHP Coupon System: E-commerce system that supports discount coupons

Recommend this page to a friend!
  Info   View files Documentation   Demos   View files View files (138)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 145 All time: 9,121 This week: 90Up
Version License PHP version Categories
coupons 1.0.0The PHP License5E-Commerce, PHP 7
Description 

Author

This package can implement an e-commerce system that supports discount coupons.

It provides an applications that can be installed in a Docker container that allows customers to add products to a shopping cart.

The application also allows customers to apply coupons to the purchase in a way that they can get discounts on the goods that they are buying.

Innovation Award
PHP Programming Innovation award nominee
June 2020
Number 3
This package can implement an e-commerce system that supports discount coupons.

It provides an applications that can be installed in a Docker container that allows customers to add products to a shopping cart.

The application also allows customers to apply coupons to the purchase in a way that they can get discounts on the goods that they are buying.

Manuel Lemos
Picture of Edward Paul
  Performance   Level  
Name: Edward Paul is available for providing paid consulting. Contact Edward Paul .
Classes: 17 packages by
Country: Nigeria Nigeria
Age: 33
All time rank: 274718 in Nigeria Nigeria
Week rank: 91 Up4 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

Documentation

<p align="center">A flexible Coupon System with various rules and discount .</p> <p align="center"><a href="https://medium.com/@infinitypaul">Creator</a> | <a href="https://coupon-infinitypaul.herokuapp.com/">Demo</a></p>

<p>&nbsp;</p>

Download Instruction

  1. Clone the project.
git clone https://github.com/infinitypaul/coupons.git projectname

  1. Install dependencies via composer.
composer install 

  1. Migrate and seed the Database.
php artisan migrate --seed

  1. Run php server.
php artisan serve

> You can also install the Application via Docker:

Pre-requisites

  • Docker running on the host machine.
  • Docker compose running on the host machine.
  1. Clone the project.
git clone https://github.com/infinitypaul/coupons.git projectname

  1. Run the testrig.sh file on the Project Root Folder on your terminal/Command Prompt, This script does everything you need to run your this project. It starts up the servers, ensures the database is booted, installs dependencies, runs database migrations, and runs database seeds. These services are exposed to your computer on the standard ports, then you can access your website on http:localhost

Note

Sample Coupon Code With Different Rules and Discount

>> FIXED10   PERCENT10, MIXED10, REJECTED100, ABC, ABCDE

Troubleshooting

  • Port number might be already in use, change from `80` to another number in your `docker-compose.yml` file.
  • If you have any other issues, report them.

Enjoy!

License

The Find Your Service App is open-sourced software licensed under the MIT license


  Flexible CouponExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Files folder image.idea (8 files, 1 directory)
Files folder image.scripts (1 file)
Files folder imageapp (7 files, 5 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (13 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (5 files, 2 directories)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .env.testing Data Auxiliary data
Plain text file .phpstorm.meta.php Class Class source
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file package-lock.json Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file Procfile Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file testrig.sh Data Auxiliary data
Accessible without login Plain text file webpack.mix.js Data Auxiliary data
Plain text file _ide_helper.php Class Class source

  Files folder image Files  /  .idea  
File Role Description
Files folder imageinspectionProfiles (1 file)
  Accessible without login Plain text file 39dollarglasses.iml Data Auxiliary data
  Accessible without login Plain text file dictionaries Data Auxiliary data
  Accessible without login Plain text file misc.xml Data Auxiliary data
  Accessible without login Plain text file modules.xml Data Auxiliary data
  Accessible without login Plain text file php.xml Data Auxiliary data
  Accessible without login Plain text file symfony2.xml Data Auxiliary data
  Accessible without login Plain text file vagrant.xml Data Auxiliary data
  Accessible without login Plain text file vcs.xml Data Auxiliary data

  Files folder image Files  /  .idea  /  inspectionProfiles  
File Role Description
  Accessible without login Plain text file Project_Default.xml Data Auxiliary data

  Files folder image Files  /  .scripts  
File Role Description
  Accessible without login Plain text file composer.sh Data Auxiliary data

  Files folder image Files  /  app  
File Role Description
Files folder imageConsole (1 file)
Files folder imageExceptions (1 file)
Files folder imageHttp (1 file, 4 directories)
Files folder imageProviders (5 files)
Files folder imageTraits (1 file)
  Plain text file Cart.php Class Class source
  Plain text file Coupon.php Class Class source
  Plain text file FixedValueCoupon.php Class Class source
  Plain text file MinimumQuantityCoupon.php Class Class source
  Plain text file PercentOffCoupon.php Class Class source
  Plain text file Product.php Class Class source
  Plain text file User.php Class Class source

  Files folder image Files  /  app  /  Console  
File Role Description
  Plain text file Kernel.php Class Class source

  Files folder image Files  /  app  /  Exceptions  
File Role Description
  Plain text file Handler.php Class Class source

  Files folder image Files  /  app  /  Http  
File Role Description
Files folder imageControllers (5 files, 1 directory)
Files folder imageMiddleware (7 files)
Files folder imageRequests (1 file)
Files folder imageResources (1 file)
  Plain text file Kernel.php Class Class source

  Files folder image Files  /  app  /  Http  /  Controllers  
File Role Description
Files folder imageAuth (6 files)
  Plain text file CartController.php Class Class source
  Plain text file Controller.php Class Class source
  Plain text file CouponController.php Class Class source
  Plain text file HomeController.php Class Class source
  Plain text file ProductsController.php Class Class source

  Files folder image Files  /  app  /  Http  /  Controllers  /  Auth  
File Role Description
  Plain text file ConfirmPasswordController.php Class Class source
  Plain text file ForgotPasswordController.php Class Class source
  Plain text file LoginController.php Class Class source
  Plain text file RegisterController.php Class Class source
  Plain text file ResetPasswordController.php Class Class source
  Plain text file VerificationController.php Class Class source

  Files folder image Files  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file Authenticate.php Class Class source
  Plain text file CheckForMaintenanceMode.php Class Class source
  Plain text file EncryptCookies.php Class Class source
  Plain text file RedirectIfAuthenticated.php Class Class source
  Plain text file TrimStrings.php Class Class source
  Plain text file TrustProxies.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files  /  app  /  Http  /  Requests  
File Role Description
  Plain text file addToCartRequest.php Class Class source

  Files folder image Files  /  app  /  Http  /  Resources  
File Role Description
  Plain text file ProductResource.php Class Class source

  Files folder image Files  /  app  /  Providers  
File Role Description
  Plain text file AppServiceProvider.php Class Class source
  Plain text file AuthServiceProvider.php Class Class source
  Plain text file BroadcastServiceProvider.php Class Class source
  Plain text file EventServiceProvider.php Class Class source
  Plain text file RouteServiceProvider.php Class Class source

  Files folder image Files  /  app  /  Traits  
File Role Description
  Plain text file OrderableTrait.php Class Class source

  Files folder image Files  /  bootstrap  
File Role Description
  Plain text file app.php Class Class source

  Files folder image Files  /  config  
File Role Description
  Plain text file app.php Class Class source
  Plain text file auth.php Class Class source
  Accessible without login Plain text file broadcasting.php Aux. Auxiliary script
  Accessible without login Plain text file cache.php Aux. Auxiliary script
  Accessible without login Plain text file database.php Aux. Auxiliary script
  Accessible without login Plain text file filesystems.php Aux. Auxiliary script
  Accessible without login Plain text file hashing.php Aux. Auxiliary script
  Plain text file logging.php Class Class source
  Accessible without login Plain text file mail.php Aux. Auxiliary script
  Accessible without login Plain text file queue.php Aux. Auxiliary script
  Accessible without login Plain text file services.php Aux. Auxiliary script
  Accessible without login Plain text file session.php Aux. Auxiliary script
  Accessible without login Plain text file view.php Aux. Auxiliary script

  Files folder image Files  /  database  
File Role Description
Files folder imagefactories (1 file)
Files folder imagemigrations (9 files)
Files folder imageseeds (4 files)

  Files folder image Files  /  database  /  factories  
File Role Description
  Plain text file UserFactory.php Class Class source

  Files folder image Files  /  database  /  migrations  
File Role Description
  Plain text file 2014_10_12_000000_create_users_table.php Class Class source
  Plain text file 2014_10_12_100000_...rd_resets_table.php Class Class source
  Plain text file 2019_08_19_000000_...iled_jobs_table.php Class Class source
  Plain text file 2019_10_16_102705_..._products_table.php Class Class source
  Plain text file 2019_10_16_102801_create_carts_table.php Class Class source
  Plain text file 2019_10_16_134839_...e_coupons_table.php Class Class source
  Plain text file 2019_10_16_164949_...e_coupons_table.php Class Class source
  Plain text file 2019_10_16_165840_...f_coupons_table.php Class Class source
  Plain text file 2019_10_16_170037_...y_coupons_table.php Class Class source

  Files folder image Files  /  database  /  seeds  
File Role Description
  Plain text file CouponsTableSeeder.php Class Class source
  Plain text file DatabaseSeeder.php Class Class source
  Plain text file ProductsTableSeeder.php Class Class source
  Plain text file RulesTableSeeder.php Class Class source

  Files folder image Files  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file index.php Class Class source
  Accessible without login Plain text file mix-manifest.json Data Auxiliary data
  Accessible without login Plain text file robots.txt Doc. Documentation
  Accessible without login Plain text file web.config Data Auxiliary data

  Files folder image Files  /  public  /  css  
File Role Description
  Accessible without login Plain text file app.css Data Auxiliary data

  Files folder image Files  /  public  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data

  Files folder image Files  /  resources  
File Role Description
Files folder imagejs (2 files, 2 directories)
Files folder imagelang (1 directory)
Files folder imagesass (2 files)
Files folder imageviews (3 files, 2 directories)

  Files folder image Files  /  resources  /  js  
File Role Description
Files folder imagecomponents (2 files, 2 directories)
Files folder imagestore (1 file, 2 directories)
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.js Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  components  
File Role Description
Files folder imageLayouts (2 files)
Files folder imageShop (3 files)
  Accessible without login Plain text file ExampleComponent.vue Data Auxiliary data
  Accessible without login Plain text file ShopComponent.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  components  /  Layouts  
File Role Description
  Accessible without login Plain text file Message.vue Data Auxiliary data
  Accessible without login Plain text file TopBar.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  components  /  Shop  
File Role Description
  Accessible without login Plain text file MiniCart.vue Data Auxiliary data
  Accessible without login Plain text file Product.vue Data Auxiliary data
  Accessible without login Plain text file Products.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  store  
File Role Description
Files folder imageapi (1 file)
Files folder imagemodules (4 files)
  Accessible without login Plain text file index.js Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  store  /  api  
File Role Description
  Accessible without login Plain text file all.js Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  store  /  modules  
File Role Description
  Accessible without login Plain text file Cart.js Data Auxiliary data
  Accessible without login Plain text file Coupon.js Data Auxiliary data
  Accessible without login Plain text file FlashMessage.js Data Auxiliary data
  Accessible without login Plain text file Products.js Data Auxiliary data

  Files folder image Files  /  resources  /  lang  
File Role Description
Files folder imageen (4 files)

  Files folder image Files  /  resources  /  lang  /  en  
File Role Description
  Accessible without login Plain text file auth.php Aux. Auxiliary script
  Accessible without login Plain text file pagination.php Aux. Auxiliary script
  Accessible without login Plain text file passwords.php Aux. Auxiliary script
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files  /  resources  /  sass  
File Role Description
  Accessible without login Plain text file app.scss Data Auxiliary data
  Accessible without login Plain text file _variables.scss Data Auxiliary data

  Files folder image Files  /  resources  /  views  
File Role Description
Files folder imageauth (3 files, 1 directory)
Files folder imagelayouts (1 file)
  Accessible without login Plain text file home.blade.php Aux. Auxiliary script
  Accessible without login Plain text file shop.blade.php Aux. Auxiliary script
  Accessible without login Plain text file welcome.blade.php Aux. Auxiliary script

  Files folder image Files  /  resources  /  views  /  auth  
File Role Description
Files folder imagepasswords (3 files)
  Accessible without login Plain text file login.blade.php Aux. Auxiliary script
  Accessible without login Plain text file register.blade.php Aux. Auxiliary script
  Accessible without login Plain text file verify.blade.php Aux. Auxiliary script

  Files folder image Files  /  resources  /  views  /  auth  /  passwords  
File Role Description
  Accessible without login Plain text file confirm.blade.php Aux. Auxiliary script
  Accessible without login Plain text file email.blade.php Aux. Auxiliary script
  Accessible without login Plain text file reset.blade.php Aux. Auxiliary script

  Files folder image Files  /  resources  /  views  /  layouts  
File Role Description
  Accessible without login Plain text file app.blade.php Aux. Auxiliary script

  Files folder image Files  /  routes  
File Role Description
  Accessible without login Plain text file api.php Example Example script
  Accessible without login Plain text file channels.php Example Example script
  Accessible without login Plain text file console.php Example Example script
  Accessible without login Plain text file web.php Example Example script

  Files folder image Files  /  tests  
File Role Description
Files folder imageFeature (1 file)
Files folder imageUnit (1 file)
  Plain text file CreatesApplication.php Class Class source
  Plain text file TestCase.php Class Class source

  Files folder image Files  /  tests  /  Feature  
File Role Description
  Plain text file ExampleTest.php Class Class source

  Files folder image Files  /  tests  /  Unit  
File Role Description
  Plain text file ExampleTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:145
This week:0
All time:9,121
This week:90Up