承接 mikefl1986/shortio-laravel 相关项目开发

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

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

mikefl1986/shortio-laravel

最新稳定版本:v1.0.1

Composer 安装命令:

composer require mikefl1986/shortio-laravel

包简介

shortio-laravel Is A ShortIO Api For Laravel

README 文档

README

Laravel Shortio was created by, and is maintained by Carlos Herrera, and is a PHP API Client for Short.io bridge for Laravel. Feel free to check out the change log, releases, security policy, license, code of conduct, and contribution guidelines.

Build Status StyleCI Software License Packagist Downloads Packagist Version

Installation

Laravel GitLab requires PHP 7.2-7.4. This particular version supports Laravel 7.

To get the latest version, simply require the project using Composer.

$ composer require kirankumar/shortio-laravel

Once installed, if you are not using automatic package discovery, then you need to register the Shortio\Laravel\ShortioServiceProvider service provider in your config/app.php.

You can also optionally alias our facade:

        'Shortio'      => Shortio\Laravel\Facades\Shortio::class,

Configuration

Laravel GitLab requires connection configuration.

To get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish

This will create a config/shortio.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

Real Examples

Here you can see an example of just how simple this package is to use. Out of the box, the default adapter is main. After you enter your authentication details in the config file, it will just work:

use Shortio\Laravel\Facades\Shortio;
// you can alias this in config/app.php if you like

shortio::domains()->all();
// we're done here - how easy was that, it just works!

If you prefer to use models over facades like me, then you can easily inject the manager like so:

use Shortio\Laravel\Model\Link;

class Foo
{
    protected $link;

    public function __construct()
    {
        $this->link = new Link();
    }

    public function bar()
    {
        return $this->link->all();
    }
}
Further Information

There are other classes in this package that are not documented here. This is because they are not intended for public use and are used internally by this package.

Security

If you discover a security vulnerability within this package, please rise an issue. All security vulnerabilities will be promptly addressed. You may view our full security policy here.

License

Laravel GitLab is licensed under The MIT License (MIT).

Contributions

Special thanks to

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-14