承接 kly/laravel-onesdk 相关项目开发

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

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

kly/laravel-onesdk

最新稳定版本:v2.0

Composer 安装命令:

composer require kly/laravel-onesdk

包简介

Laravel service provide for onesdk app php SDK

README 文档

README

One APP SDK to laravel binding service provider

Prerequisite

  • Laravel >= 5.5

Installation

If you are using composer you could get it with composer require kly/laravel-onesdk and you are all set. Load up the autoloader and Call the classes or factory you need.

Register the Service Provider

Add the Service Provider to your application's config/app.php file. Must be added to the providers array.

'providers' => [
    One\Provider\OneSdkServiceProvider::class
]

Publish the Package configuration

This will publish the configuration file to your app's config directory. The location will be config/one.php. Specify your API settings there.

<?php
return [
    'client-id' => 0,
    'client-secret' => 'some-secret-string-token',
    'access_token' => ''
       ];

php artisan vendor:publish

Usage

use Config;
use One\FactoryUri;
use One\Publisher;

new Publisher( Config::get('one.client_id'), Config::get('one.client_secret') );
new FactoryUri('https://username:password@www.example.com:85/kerap/254?page=1#idkomentar');


统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-27