Download the PHP package furic/redeem-codes without Composer

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

laravel-redeem-codes

Packagist Packagist License Scrutinizer Code Quality Build Status

Redeem code generator and redeemer for Laravel 5.*. I developed this package while working for a redeem code solution in Sweaty Chair Studio catering for compensations and event rewards for players. This contains API for redeem code validation and a simple web console to create and edit the redeem codes. This package is aimed to be a plug-n-play solution, I would also recommend Laravel Promocodes and Laravel Vouchers that gives you more freedom and being able to build from scratch.

Table of Contents

Installation

Install this package via Composer:

If you are using Laravel 5.5 or later, then installation is done. Otherwise follow the next steps.

Open config/app.php and follow steps below:

Find the providers array and add our service provider.

Configuration

Publish config & migration file using Artisan command:

To create table for redeem codes in database run:

Usage

Web Console

After installation, you can simply browse to <server url>/redeem-codes to open the web console:

Laravel Redeem Codes web console

Here you can browse, create and edit the redeem codes.

Redeem Code Parameters

Redeem Validator API

GET <server url>/api/redeem/{code} Posts the redeem code (12 characters length) and returns the redeem code data. For valid redeem codes, 200 status code is returned with the redeem code JSON data. Otherwise, 400 is returned with the error.

API Document can be found here.

Unity Client Repo

You can simply import this repo in Unity to communicate with your Laravel server with this package.

TODO

License

laravel-redeem-codes is licensed under a MIT License.


All versions of redeem-codes with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
laravel/framework Version ~5.8||~6.0||~7.0||~8.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 furic/redeem-codes contains the following files

Loading the files please wait ....