Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omgzui/demo-sdk-for-laravel5.5
⚙demo-sdk-for-Laravel5.5
https://github.com/omgzui/demo-sdk-for-laravel5.5
laravel php sdk
Last synced: 15 days ago
JSON representation
⚙demo-sdk-for-Laravel5.5
- Host: GitHub
- URL: https://github.com/omgzui/demo-sdk-for-laravel5.5
- Owner: OMGZui
- License: mit
- Created: 2017-12-06T03:59:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-29T09:05:20.000Z (over 6 years ago)
- Last Synced: 2023-07-15T15:26:15.803Z (over 1 year ago)
- Topics: laravel, php, sdk
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# demo-sdk-for-Laravel5.5
一个Laravel5.5的扩展包示例
## Installation
Require this package with composer. It is recommended to only require the package for development.
```shell
composer require omgzui/omgzui
```Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
### Laravel 5.5+:
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
```php
\OMGZui\OMGZui\OMGZuiServiceProvider::class
```If you want to use the facade to log messages, add this to your facades in app.php:
```php
'OMGZui' => \OMGZui\OMGZui\Facades\OMGZui::class,
```Copy the package config to your local config with the publish command:
```shell
php artisan vendor:publish --provider="\OMGZui\OMGZui\OMGZuiServiceProvider"
```### Lumen:
For Lumen, register a different Provider in `bootstrap/app.php`:
```php
$app->register(\OMGZui\OMGZui\OMGZuiServiceProvider::class);```
To change the configuration, copy the file to your config folder and enable it:
```php
$app->configure('omgzui');
```## Usage
```php
OMGZui::getName(); //小粽子
```