appsketch/adfly 问题修复 & 功能扩展

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

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

appsketch/adfly

最新稳定版本:v1.1.1

Composer 安装命令:

composer require appsketch/adfly

包简介

An Adfly wrapper for Laravel 5 and 5.1.

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-16