appsketch/adfly
最新稳定版本:v1.1.1
Composer 安装命令:
composer require appsketch/adfly
包简介
An Adfly wrapper for Laravel 5 and 5.1.
关键字:
README 文档
README
Installation
First, pull in the package through Composer.
composer require appsketch/adfly
And then, if using Laravel 5.1, include the service provider within app/config/app.php.
'providers' => [ Appsketch\Adfly\Providers\AdflyServiceProvider::class, ]
if using Laravel 5. include this service provider.
'providers' => [ "Appsketch\Adfly\Providers\AdflyServiceProvider", ]
The alias will automatically set.
Publish the config file to the config folder with the following command.
php artisan vendor:publish.
Fill out the config file. Note, key and uid are required. All configurations can be overwritten in the options array.
Usage
Within, for example the routes.php add this.
Route::get('/adfly', function() { // Adfly options. $options = [ 'title' => 'Link to Google' ]; // this will for example echo http://adf.ly/1KMh2Z. echo Adfly::create("http://www.google.com/", $options); });
统计信息
- 总下载量: 434
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-16