Download the PHP package codeboxr/coupondiscount without Composer

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

Coupon Discount php/laravel package

This is a PHP/Laravel package for Coupon Discount. This package can be used in laravel or without laravel/php projects. You can use this package for headless/rest implementation as well as blade or regular mode development. We created this package while working for a project and thought to made it release for all so that it helps. This package is available as regular php composer package.

Requirements

Installation

Usage

If you are using laravel this package in laravel you have to publish migration first and migrate by the following command.

coupons and coupon_histories two db table are created.

Note: If you are using raw PHP or other PHP framework you can have to import copuondiscount/database/sql SQL file manually in your database.

Action Name Method Explanation
Create Coupon add($array) Create coupon code by add() method it taken a array. Array formate given below
Update Coupon update($array,$couponId) Coupon Update by update() method it's taken two parameter first parameter is an array and second parameter is coupon id
Remove Coupon remove($couponId) Coupon Remove by remove() method it's taken one parameter. Parameter is Coupon id
Coupon List list() Fetch coupon list by list() method. You can chain any operation in Eluquarant after this method. For example: list()->where('status',1)->get();,list()->take(5)->get();,list()->first(); etc
Coupon Validity validity($couponCode, float $amount, string $userId, string $deviceName = null, string $ipaddress = null, string $vendorId = null) check coupon code validity by validity() method. It's take 6 parameter 3 parameter are required. 1st parameter is coupon code,second parameter is total amount,third parameter is user id,fourth parameter (optional) device name,fifth parameter (optional) is IP address and sixth parameter (optional) is vendor id or shop id
Coupon Apply apply($array) Apply coupon in a cart amount by apply() method. apply method taken one parameter is array, example given below
Coupon History List history() Fetch coupon history list by history() method. You can chain any operation in Eluquarant after this method. For example: history()->where('user_id',1)->get();,history()->take(5)->get();,history()->first(); etc
Remove History historyDelete($historyId) Coupon History Remove by historyDelete() method it's taken one parameter. Parameter is Coupon history id

1. Create new coupon

*** For Using Laravel Application

*** For Using Raw php or other php framwork

2. Update coupon

*** For Using Laravel Application

*** For Using Raw php or other php framwork

3. Remove coupon

*** For Using Laravel Application

*** For Using Raw php or other php framwork

4. Coupon List

*** For Using Laravel Application

*** For Using Raw php or other php framwork

5. Coupon validity check

*** For Using Raw php or other php framwork

note: validity() method first 3 method parameter are required others optional

6. Coupon apply

*** For Using Raw php or other php framwork

7. Coupon history list

*** For Using Laravel Application

*** For Using Raw php or other php framwork

8. Delete coupon history

*** For Using Laravel Application

*** For Using Raw php or other php framwork

Contributing

Contributions to the Coupon Discount package are welcome. Please note the following guidelines before submitting your pull request.

License

Coupon Discount package is licensed under the MIT License.

Copyright 2023 Codeboxr


All versions of coupondiscount with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1
illuminate/database Version ^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/pagination Version ^6.0|^7.0|^8.0|^9.0|^10.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 codeboxr/coupondiscount contains the following files

Loading the files please wait ....