{"id":19029962,"url":"https://github.com/padosoft/laravel-notifier","last_synced_at":"2025-04-23T16:01:28.212Z","repository":{"id":31892844,"uuid":"130681419","full_name":"padosoft/laravel-notifier","owner":"padosoft","description":"laravel wrapper for Js notification","archived":false,"fork":false,"pushed_at":"2025-04-04T14:50:21.000Z","size":296,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-18T01:47:27.037Z","etag":null,"topics":["js","laravel","notifications","notifier","package"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/padosoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-23T10:42:39.000Z","updated_at":"2025-04-04T14:50:25.000Z","dependencies_parsed_at":"2025-04-20T06:46:30.651Z","dependency_job_id":null,"html_url":"https://github.com/padosoft/laravel-notifier","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/padosoft","download_url":"https://codeload.github.com/padosoft/laravel-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468272,"owners_count":21435451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["js","laravel","notifications","notifier","package"],"created_at":"2024-11-08T21:15:56.719Z","updated_at":"2025-04-23T16:01:28.118Z","avatar_url":"https://github.com/padosoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Package for beautifull JS notification.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/padosoft/laravel-notifier.svg?style=flat-square)](https://packagist.org/packages/padosoft/laravel-notifier)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Quality Score](https://img.shields.io/scrutinizer/g/padosoft/laravel-notifier.svg?style=flat-square)](https://scrutinizer-ci.com/g/padosoft/laravel-notifier)\n[![Total Downloads](https://img.shields.io/packagist/dt/padosoft/laravel-notifier.svg?style=flat-square)](https://packagist.org/packages/padosoft/laravel-notifier)\n[![SensioLabsInsight](https://img.shields.io/sensiolabs/i/3a39da13-6f5f-4041-9700-81e8c1f2e387.svg?style=flat-square)](https://insight.sensiolabs.com/projects/3a39da13-6f5f-4041-9700-81e8c1f2e387)\n\nThis package provides a wrapper of commands to Padosoft JS notifier, to display beautifull notifications with js plugin. \n\n![screenshoot](https://raw.githubusercontent.com/padosoft/laravel-notifier/master/resources/img/laravel-notifier.png)\n\nTable of Contents\n=================\n\n   * [Laravel Package to notify with beautifull JS notifier.](#laravel-package-to-notify-with-beautiful-js-notifier)\n      * [SCREENSHOOTS](#screenshoots)\n      * [Requires](#requires)\n      * [Installation](#installation)\n      * [USAGE](#usage)\n         * [EXAMPLE:](#example)\n      * [Change log](#change-log)\n      * [Testing](#testing)\n      * [Contributing](#contributing)\n      * [Security](#security)\n      * [Credits](#credits)\n      * [About Padosoft](#about-padosoft)\n      * [License](#license)\n\n##Requires\n  \n- \"php\" : \"\u003e=7.0.0\",\n- \"illuminate/support\": \"^5.0|^6.0|^7.0\",\n- \"illuminate/session\": \"^5.0|^6.0|^7.0\"\n  \n## Installation\n\nYou can install the package via composer:\n``` bash\n$ composer require padosoft/laravel-notifier\n```\n\n### FOR LARAVEL 5.6+\nNo additional steps required because the service provider use new L5.5+ autodiscovery feature.\n\n### FOR LARAVEL \u003c=5.5\nYou must install this service provider.\n\n``` php\n// config/app.php\n'provider' =\u003e [\n    ...\n    Padosoft\\Laravel\\Notification\\Notifier\\NotifierServiceProvider::class,\n    ...\n];\n```\n\n## USAGE\n\nCall one of these methods in your controllers to insert a notification:\n\n- `Notify::warning($message, $onlyNextRequest = false, $options = [])` - add a warning notification\n- `Notify::error($message, $onlyNextRequest = false, $options = [])` - add an error notification\n- `Notify::info($message, $onlyNextRequest = false, $options = [])` - add an info notification\n- `Notify::success($message, $onlyNextRequest = false, $options = [])` - add a success notification\n- `Notify::add($theme, $timeout, $type: warning|error|info|success, $layout, $text, $sounds = null, $soundsVolume = null)` - add a notification\n  - `Notify::clear()` - clear all current notification\n\nIf you need to show the notification only if a particular condition is true, you can use these methods:\n\n- `Notify::ifWarning($condition, $message, $onlyNextRequest = false, $options = [])` - add a warning notification if $condition is true\n- `Notify::ifError($condition, $message, $onlyNextRequest = false, $options = [])` - add an error notification if $condition is true\n- `Notify::ifInfo($condition, $message, $onlyNextRequest = false, $options = [])` - add an info notification if $condition is true\n- `Notify::ifSuccess($condition, $message, $onlyNextRequest = false, $options = [])` - add a success notification if $condition is true\n\nExample:\ninstead of use this:\n\n```php\nif($condition){\n    Notify::success('You have an email!');\n}\n```\n\nyou can use this:\n\n```php\nNotify::IfSuccess($condition, 'You have an email!');\n```\n\n```php\n{!! notify() !!}\n\n```\n### EXAMPLE:\n\n```php\nNotify::info('You have an email!');\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email instead of using the issue tracker.\n\n## Credits\n- [Lorenzo Padovani](https://github.com/lopadova)\n- [All Contributors](../../contributors)\n\n## About Padosoft\nPadosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadosoft%2Flaravel-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpadosoft%2Flaravel-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadosoft%2Flaravel-notifier/lists"}