Download the PHP package sablesoft/yii2-promo without Composer

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

This testwork yii2 extension. When this extension is used, a promo module with crud and rest api controllers will append to web app.

Installation

WARNING! You need a pre-installed yii2 application with a connected database. The preferred way to install this extension is through composer.

Just add

to the require section of your composer.json file and run

Migration

After the extension has been installed, start the migration:

After that you can test the module through the browser and through the api requests.

Web Browser Testing

Just open your installed yii2 application at route /promo and follow the instructions.

Rest Api Testing

Use curl or any request service, such as Postman, to make api requests with different methods and parameters.

Entry point:

You must use the authorization header of the form:

For testing try tokens adminToken, demoToken and disabled token. Also use the header for json content ( Content-Type and Accept ). You can receive or change promo codes for both id and code.

Example for getting some promo code by id:

Example for updating some promo code data by code:

For more information about api actions check the Yii2 RESTful Web Services Guide

Code Docs

To generate the documentation, use the command

For more info check the Yii2 original documentation.


All versions of yii2-promo with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.0.0
yiisoft/yii2-jui Version ^2.0
yiisoft/yii2-bootstrap Version ~2.0.0
yiisoft/yii2-swiftmailer Version ~2.0.0
yiisoft/yii2-apidoc Version ~2.1.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 sablesoft/yii2-promo contains the following files

Loading the files please wait ....