承接 vaffel/silex-imbo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

vaffel/silex-imbo

Composer 安装命令:

composer require vaffel/silex-imbo

包简介

Imbo service provider for Silex

README 文档

README

Service provider making the Imbo accessible to your Silex application.

Build Status

Installation

Add "vaffel/silex-imbo": "XXX" to the composer.json file inside your project and do a composer install. Check Composer for the latest available version.

Setup instructions

Register the Imbo service provider in your Silex app like this;

$app->register(new ImboServiceProvider(), array(
    'imbo.serverUrls' => ['http://example.net', ...], // Array of urls to imbo installations
    'imbo.publicKey'  => $publicKey,                  // Public key
    'imbo.privateKey' => $privateKey,                 // Private key
    'imbo.user'       => $user,                       // User
));

Usage

After registering the Imbo service provider, the ImboClient instance can be accessed from the $app variable like this;

$response = $app['imbo']->addImage('/path/to/image.jpg');

Tests

The service provider comes with PHPUnit tests and can be run by doing a ./vendor/phpunit/phpunit/phpunit inside the silex-imbo folder.

Documentation

Read the full ImboClient documentation at imboclient-php.readthedocs.org.

License

License Copyright (c) 2014, Kristoffer Brabrand kristoffer@brabrand.no

Licensed under the MIT License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-02