whackashoe/bstall 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

whackashoe/bstall

Composer 安装命令:

composer require whackashoe/bstall

包简介

Bathroom Stall for Laravel 4

README 文档

README

A bathroom stall for you to scratch on. Uses redis backend and canvas.

Installation

The Bstall Service Provider can be installed via Composer by requiring the whackashoe/bstall package and setting the minimum-stability to dev (required for Laravel 4) in your project's composer.json.

{
    "require": {
        "laravel/framework": "4.2.*",
        "whackashoe/bstall": "dev-master"
    },
    "minimum-stability": "dev"
}

Update your packages with composer update or install with composer install.

Usage

To use the Captcha Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

Find the providers key in app/config/app.php and register the Captcha Service Provider.

    'providers' => array(
        // ...
        'Whackashoe\Bstall\BstallServiceProvider',
    )

Find the aliases key in app/config/app.php.

    'aliases' => array(
        // ...
        'Bstall' => 'Whackashoe\Bstall\Facades\Bstall',
    )

Add the draw route to your routes.php file:

    Route::post('/bstall/draw/{id}', 'Whackashoe\Bstall\Controllers\BstallController@draw');

Example Usage

    <html>
        <head>
            <title>stall test</title>
        </head>
        <body>
            {{ Bstall::make("first_stall", 300, 300, 0xFFFFFF) }}
        </body>
    </html>

To clear all stalls quickly just run php artisan cache:clear

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-10