Skip to content

Commit

Permalink
service Provider - composer file
Browse files Browse the repository at this point in the history
  • Loading branch information
BahaaAlhagar committed Jul 31, 2018
1 parent 9bc6d27 commit d39ff67
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 93 deletions.
82 changes: 0 additions & 82 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,83 +1 @@
# :package_name

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

**Note:** Replace ```:author_name``` ```:author_username``` ```:author_website``` ```:author_email``` ```:vendor``` ```:package_name``` ```:package_description``` with their correct values in [README.md](README.md), [CHANGELOG.md](CHANGELOG.md), [CONTRIBUTING.md](CONTRIBUTING.md), [LICENSE.md](LICENSE.md) and [composer.json](composer.json) files, then delete this line. You can run `$ php prefill.php` in the command line to make all replacements at once. Delete the file prefill.php as well.

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what
PSRs you support to avoid any confusion with users and contributors.

## Structure

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

```
bin/
config/
src/
tests/
vendor/
```


## Install

Via Composer

``` bash
$ composer require :vendor/:package_name
```

## Usage

``` php
$skeleton = new League\Skeleton();
echo $skeleton->echoPhrase('Hello, League!');
```

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Testing

``` bash
$ composer test
```

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.

## Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

## Credits

- [:author_name][link-author]
- [All Contributors][link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/:vendor/:package_name.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/:vendor/:package_name/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/:vendor/:package_name.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/:vendor/:package_name.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/:vendor/:package_name.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/:vendor/:package_name
[link-travis]: https://travis-ci.org/:vendor/:package_name
[link-scrutinizer]: https://scrutinizer-ci.com/g/:vendor/:package_name/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/:vendor/:package_name
[link-downloads]: https://packagist.org/packages/:vendor/:package_name
[link-author]: https://github.com/:author_username
[link-contributors]: ../../contributors
20 changes: 13 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"name": "BahaaAlhagar/YoutubeUploader",
"type": "library",
"description": ":package_description",
"description": ":simple Youtube wrapper",
"keywords": [
"BahaaAlhagar",
"YoutubeUploader"
"Youtube Uploader",
"PHP",
"laravel",
"google api",
"youtube",
],
"homepage": "https://github.com/BahaaAlhagar/YoutubeUploader",
"license": "MIT",
"authors": [
{
"name": ":author_name",
"email": ":author_email",
"homepage": ":author_website",
"name": ":BahaaAlhagar",
"email": ":[email protected]",
"homepage": ":github.com/BahaaAlhagar",
"role": "Developer"
}
],
"require": {
"illuminate/support": "~5.1",
"php" : "~5.6|~7.0"
"illuminate/support": "~5.4",
"php" : "~5.6|~7.0",
"google/apiclient": "^2.2",
"nesbot/carbon": "^1.22"
},
"require-dev": {
"phpunit/phpunit" : ">=5.4.3",
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/YoutubeUploaderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public function boot()
}

/**
* Register any package services.
*
* @return void
* Register the service provider.
*/
public function register()
{
//
$this->app->singleton('youtubeUploader', function($app) {
return new YoutubeUploader($app, new \Google_Client);
});
}
}

0 comments on commit d39ff67

Please sign in to comment.