PHPackages                             niceopening/nice-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. niceopening/nice-laravel

ActiveLibrary[Framework](/categories/framework)

niceopening/nice-laravel
========================

Nice外部平台使用composer包(laravel)

030PHP

Since Jun 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nice-support/NiceOpening)[ Packagist](https://packagist.org/packages/niceopening/nice-laravel)[ RSS](/packages/niceopening-nice-laravel/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nice Opening SDK for Laravel
============================

[](#nice-opening-sdk-for-laravel)

[README of Chinese](https://github.com/aliyun/aliyun-oss-php-sdk/blob/master/README-CN.md)
------------------------------------------------------------------------------------------

[](#readme-of-chinese)

Overview
--------

[](#overview)

Nice is an externally oriented integrated management platform.

Run environment
---------------

[](#run-environment)

- PHP 7.2+.
- Firebase/php-jwt 5.4
- Guzzlehttp/guzzle 6.5.

Install Nice
------------

[](#install-nice)

- If you use the ***composer*** to manage project dependencies, run the following command in your project's root directory:

    ```
      composer require niceopening/nice-laravel

    ```

    You can also declare the dependency on Nice for Laravel in the `composer.json` file.

    ```
      "require": {
          "niceopening/nice-laravel": "dev-master"
      }

    ```

    Then run `composer install` to install the dependency. After the Composer Dependency Manager is installed, import the dependency in your PHP code:

    ```
      require_once __DIR__ . '/vendor/autoload.php';

    ```
- You can also directly download the packaged \[PHAR File\]\[releases-page\], and introduce the file to your code:

    ```
      require_once '/path/to/nice-opening.phar';

    ```
- Download the SDK source code, and introduce the `autoload.php` file under the SDK directory to your code:

    ```
      require_once '/path/to/nice-opening/autoload.php';

    ```

Quick use
---------

[](#quick-use)

### Common classes

[](#common-classes)

ClassExplanationlaravel\\NiceExternalNice external class. An NiceExternal instance can be used to call the interface.### Example

[](#example)

The nice keyword is the last two values of the request interface route. If you want to request the  interface, then your key should be project\_list

The SDK's operations for the Nice are performed through the NiceExternal class. The code below creates an NiceExternal object:

```
