{"id":16294140,"url":"https://github.com/sarfraznawaz2005/noty","last_synced_at":"2025-10-17T00:05:18.623Z","repository":{"id":62540364,"uuid":"144579107","full_name":"sarfraznawaz2005/noty","owner":"sarfraznawaz2005","description":"Laravel package to incorporate beautiful noty notifications into laravel as flash messages.","archived":false,"fork":false,"pushed_at":"2020-09-11T06:54:22.000Z","size":44,"stargazers_count":32,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T23:01:47.181Z","etag":null,"topics":["alert","flash","flash-messages","laravel","laravel-package","noty","php"],"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/sarfraznawaz2005.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-13T12:49:36.000Z","updated_at":"2022-08-23T22:49:51.000Z","dependencies_parsed_at":"2022-11-02T16:16:20.560Z","dependency_job_id":null,"html_url":"https://github.com/sarfraznawaz2005/noty","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fnoty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fnoty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fnoty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fnoty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarfraznawaz2005","download_url":"https://codeload.github.com/sarfraznawaz2005/noty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244047647,"owners_count":20389206,"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":["alert","flash","flash-messages","laravel","laravel-package","noty","php"],"created_at":"2024-10-10T20:14:18.629Z","updated_at":"2025-10-17T00:05:13.576Z","avatar_url":"https://github.com/sarfraznawaz2005.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n# Laravel Noty\n\nLaravel package to incorporate beautiful noty notifications into laravel as flash messages.\n\n*Tested with version 3.2.0 of [noty](https://github.com/needim/noty).*\n\n## Screenshot\n\n![Main Window](https://github.com/sarfraznawaz2005/noty/blob/master/screen.jpg?raw=true)\n\n## Requirements\n\n - PHP \u003e= 5.6\n - Laravel 5\n - [noty](https://github.com/needim/noty)\n\n## Installation\n\nVia Composer\n\n``` bash\n$ composer require sarfraznawaz2005/noty\n```\n\nFor Laravel \u003c 5.5:\n\nAdd Service Provider to `config/app.php` in `providers` section\n```php\nSarfraznawaz2005\\Noty\\NotyServiceProvider::class,\n```\n\n---\n\nPublish package's config file by running below command:\n\n```bash\n$ php artisan vendor:publish --provider=\"Sarfraznawaz2005\\Noty\\NotyServiceProvider\"\n```\nIt should publish `config/noty.php` config file.\n\n## Setup Noty\n\nBefore using this package, make sure you include [noty](https://github.com/needim/noty) library into your project either by using npm/yarn/etc or directly including its css and js files:\n\n```html\n\u003chead\u003e    \n    \u003clink rel=\"stylesheet\" href=\"/noty.css\"/\u003e\n    \u003cscript type=\"text/javascript\" src=\"/noty.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n```\nand then add this in your view/layout file:\n\n```php\n@include('noty::view')\n```\n\n## Usage\n\nSyntax:\n```php\nnoty($message, $type = '', array $options = [])\n```\n\nIn your controllers, you can now do:\n\n```php\npublic function store()\n{\n    noty('Success Message', 'success');\n\n    return redirect()-\u003eback();\n}\n```\n\nFollowing are types of notifications you can send:\n\n```php\nnoty('Your Message'); // default (info)\nnoty('Your Message', 'success');\nnoty('Your Message', 'error');\nnoty('Your Message', 'warning');\nnoty('Your Message', 'alert');\n```\n\nWith `$options`, you can also override `noty` config values for individual notifications example:\n\n```php\nnoty('My Notification', null, ['layout' =\u003e 'top', 'timeout' =\u003e 5000]);\n```\n\n## Credits\n\n- [Sarfraz Ahmed][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nPlease see the [license file](license.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/sarfraznawaz2005/noty.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/sarfraznawaz2005/noty.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/sarfraznawaz2005/noty\n[link-downloads]: https://packagist.org/packages/sarfraznawaz2005/noty\n[link-author]: https://github.com/sarfraznawaz2005\n[link-contributors]: https://github.com/sarfraznawaz2005/noty/graphs/contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fnoty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarfraznawaz2005%2Fnoty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fnoty/lists"}