Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.67 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.67 KB

Cocos2d-html5 for Yii 2

Latest Stable Version Total Downloads Latest Unstable Version License Dependency Status

This is the Cocos2d-html5 extension for Yii 2. It have AssetBundle for including Cocos2d-html5 to your Yii 2 web application.

Please submit issue reports and pull requests to the main repository. For license information check the LICENSE-file.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist igogo5yo/yii2-cocos2d

or add

"igogo5yo/yii2-cocos2d": ">=1.0"

to the require section and change your minimum-stability option to

"minimum-stability": "dev",

in your composer.json file

Usage

For using this extension you may add in to your AssetBundle depends:

    public $depends = [
        'igogo5yo\cocos2d\Cocos2dAsset'
    ];

or register it self in your View:

	igogo5yo\cocos2d\Cocos2dAsset::register($this);