···11+# Contributing
22+33+Contributions are welcome and will be fully credited.
44+55+Contributions are accepted via Pull Requests on [Github](https://github.com/social-dept/signal).
66+77+# Things you could do
88+If you want to contribute but do not know where to start, this list provides some starting points.
99+- Add license text
1010+- Remove rewriteRules.php
1111+- Set up TravisCI, StyleCI, ScrutinizerCI
1212+- Write a comprehensive ReadMe
1313+1414+## Pull Requests
1515+1616+- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
1717+1818+- **Document any change in behaviour** - Make sure the `readme.md` and any other relevant documentation are kept up-to-date.
1919+2020+- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
2121+2222+- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
2323+2424+- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
2525+2626+2727+**Happy coding**!
+5
license.md
···11+# The license
22+33+Copyright (c) Author Name <author@email.com>
44+55+...Add your license text here...
···11+# Signal
22+33+[![Latest Version on Packagist][ico-version]][link-packagist]
44+[![Total Downloads][ico-downloads]][link-downloads]
55+[![Build Status][ico-travis]][link-travis]
66+[![StyleCI][ico-styleci]][link-styleci]
77+88+This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.
99+1010+## Installation
1111+1212+Via Composer
1313+1414+```bash
1515+composer require social-dept/signal
1616+```
1717+1818+## Usage
1919+2020+## Change log
2121+2222+Please see the [changelog](changelog.md) for more information on what has changed recently.
2323+2424+## Testing
2525+2626+```bash
2727+composer test
2828+```
2929+3030+## Contributing
3131+3232+Please see [contributing.md](contributing.md) for details and a todolist.
3333+3434+## Security
3535+3636+If you discover any security related issues, please email author@email.com instead of using the issue tracker.
3737+3838+## Credits
3939+4040+- [Author Name][link-author]
4141+- [All Contributors][link-contributors]
4242+4343+## License
4444+4545+MIT. Please see the [license file](license.md) for more information.
4646+4747+[ico-version]: https://img.shields.io/packagist/v/social-dept/signal.svg?style=flat-square
4848+[ico-downloads]: https://img.shields.io/packagist/dt/social-dept/signal.svg?style=flat-square
4949+[ico-travis]: https://img.shields.io/travis/social-dept/signal/master.svg?style=flat-square
5050+[ico-styleci]: https://styleci.io/repos/12345678/shield
5151+5252+[link-packagist]: https://packagist.org/packages/social-dept/signal
5353+[link-downloads]: https://packagist.org/packages/social-dept/signal
5454+[link-travis]: https://travis-ci.org/social-dept/signal
5555+[link-styleci]: https://styleci.io/repos/12345678
5656+[link-author]: https://github.com/social-dept
5757+[link-contributors]: ../../contributors
+18
src/Facades/Signal.php
···11+<?php
22+33+namespace SocialDept\Signal\Facades;
44+55+use Illuminate\Support\Facades\Facade;
66+77+class Signal extends Facade
88+{
99+ /**
1010+ * Get the registered name of the component.
1111+ *
1212+ * @return string
1313+ */
1414+ protected static function getFacadeAccessor(): string
1515+ {
1616+ return 'signal';
1717+ }
1818+}
+8
src/Signal.php
···11+<?php
22+33+namespace SocialDept\Signal;
44+55+class Signal
66+{
77+ // Build wonderful things
88+}
+82
src/SignalServiceProvider.php
···11+<?php
22+33+namespace SocialDept\Signal;
44+55+use Illuminate\Support\ServiceProvider;
66+77+class SignalServiceProvider extends ServiceProvider
88+{
99+ /**
1010+ * Perform post-registration booting of services.
1111+ *
1212+ * @return void
1313+ */
1414+ public function boot(): void
1515+ {
1616+ // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'social-dept');
1717+ // $this->loadViewsFrom(__DIR__.'/../resources/views', 'social-dept');
1818+ // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
1919+ // $this->loadRoutesFrom(__DIR__.'/routes.php');
2020+2121+ // Publishing is only necessary when using the CLI.
2222+ if ($this->app->runningInConsole()) {
2323+ $this->bootForConsole();
2424+ }
2525+ }
2626+2727+ /**
2828+ * Register any package services.
2929+ *
3030+ * @return void
3131+ */
3232+ public function register(): void
3333+ {
3434+ $this->mergeConfigFrom(__DIR__.'/../config/signal.php', 'signal');
3535+3636+ // Register the service the package provides.
3737+ $this->app->singleton('signal', function ($app) {
3838+ return new Signal;
3939+ });
4040+ }
4141+4242+ /**
4343+ * Get the services provided by the provider.
4444+ *
4545+ * @return array
4646+ */
4747+ public function provides()
4848+ {
4949+ return ['signal'];
5050+ }
5151+5252+ /**
5353+ * Console-specific booting.
5454+ *
5555+ * @return void
5656+ */
5757+ protected function bootForConsole(): void
5858+ {
5959+ // Publishing the configuration file.
6060+ $this->publishes([
6161+ __DIR__.'/../config/signal.php' => config_path('signal.php'),
6262+ ], 'signal.config');
6363+6464+ // Publishing the views.
6565+ /*$this->publishes([
6666+ __DIR__.'/../resources/views' => base_path('resources/views/vendor/social-dept'),
6767+ ], 'signal.views');*/
6868+6969+ // Publishing assets.
7070+ /*$this->publishes([
7171+ __DIR__.'/../resources/assets' => public_path('vendor/social-dept'),
7272+ ], 'signal.assets');*/
7373+7474+ // Publishing the translation files.
7575+ /*$this->publishes([
7676+ __DIR__.'/../resources/lang' => resource_path('lang/vendor/social-dept'),
7777+ ], 'signal.lang');*/
7878+7979+ // Registering package commands.
8080+ // $this->commands([]);
8181+ }
8282+}