https://github.com/elfsundae/xgpusher
https://github.com/elfsundae/xgpusher
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/elfsundae/xgpusher
- Owner: ElfSundae
- License: mit
- Created: 2017-06-18T23:35:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T14:15:25.000Z (almost 9 years ago)
- Last Synced: 2025-03-22T08:02:48.297Z (over 1 year ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Tencent Xinge Pusher
[](https://packagist.org/packages/elfsundae/xgpusher)
[](LICENSE.md)
[](https://travis-ci.org/ElfSundae/xgpusher)
[](https://styleci.io/repos/94719158)
[](https://insight.sensiolabs.com/projects/bf534253-a172-4e2d-a3bb-91f49e4cc85a)
[](https://scrutinizer-ci.com/g/ElfSundae/xgpusher)
[](https://scrutinizer-ci.com/g/ElfSundae/xgpusher/?branch=master)
[](https://packagist.org/packages/elfsundae/xgpusher)
## Installation
```sh
$ composer require elfsundae/xgpusher
```
## Laravel Integration
Register the service provider by adding the following to the `providers` array in `config/app.php`:
```php
ElfSundae\XgPush\PusherServiceProvider::class,
```
Add "xgpush" configuration in `config/services.php` of your app:
```php
'xgpush' => [
'key' => env('XGPUSH_KEY'),
'secret' => env('XGPUSH_SECRET'),
'environment' => env('XGPUSH_ENVIRONMENT', env('APP_ENV')),
'custom_key' => 'custom',
'account_prefix' => 'user',
],
```
## Testing
```sh
$ composer test
```
## License
This package is open-sourced software licensed under the [MIT License](LICENSE.md).