{"id":15782562,"url":"https://github.com/yoeunes/toastr","last_synced_at":"2025-05-14T11:09:50.634Z","repository":{"id":28198222,"uuid":"116681064","full_name":"yoeunes/toastr","owner":"yoeunes","description":":eyes: toastr.js notifications for Laravel","archived":false,"fork":false,"pushed_at":"2025-02-26T14:14:23.000Z","size":181,"stargazers_count":409,"open_issues_count":13,"forks_count":57,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-13T09:00:37.587Z","etag":null,"topics":["cdn","equivalent","eyes","flash-messages","jquery","lumen","toastr","toastr-notifications"],"latest_commit_sha":null,"homepage":"https://php-flasher.io","language":null,"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/yoeunes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"yoeunes","custom":"https://www.paypal.com/paypalme/yoeunes"}},"created_at":"2018-01-08T13:36:33.000Z","updated_at":"2025-04-06T11:48:44.000Z","dependencies_parsed_at":"2024-03-16T17:06:57.232Z","dependency_job_id":"e60090a4-0f92-435f-b2cc-1f28d6946876","html_url":"https://github.com/yoeunes/toastr","commit_stats":{"total_commits":100,"total_committers":11,"mean_commits":9.090909090909092,"dds":0.49,"last_synced_commit":"1178236a0cf78444e316fcd2e46cba630ecc13ed"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoeunes%2Ftoastr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoeunes%2Ftoastr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoeunes%2Ftoastr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoeunes%2Ftoastr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoeunes","download_url":"https://codeload.github.com/yoeunes/toastr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129489,"owners_count":22019628,"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":["cdn","equivalent","eyes","flash-messages","jquery","lumen","toastr","toastr-notifications"],"created_at":"2024-10-04T19:08:34.512Z","updated_at":"2025-05-14T11:09:50.606Z","avatar_url":"https://github.com/yoeunes.png","language":null,"funding_links":["https://github.com/sponsors/yoeunes","https://www.paypal.com/paypalme/yoeunes"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eToastr.js notifications for Laravel\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e:eyes: This package helps you to add \u003ca href=\"https://github.com/CodeSeven/toastr\"\u003etoastr.js\u003c/a\u003e notifications to your Laravel projects.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/yoeunes/toastr\"\u003e\u003cimg src=\"https://poser.pugx.org/yoeunes/toastr/v/stable\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/yoeunes/toastr\"\u003e\u003cimg src=\"https://poser.pugx.org/yoeunes/toastr/v/unstable\" alt=\"Latest Unstable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/yoeunes/toastr\"\u003e\u003cimg src=\"https://poser.pugx.org/yoeunes/toastr/downloads\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/yoeunes/toastr\"\u003e\u003cimg src=\"https://poser.pugx.org/yoeunes/toastr/license\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"300\" alt=\"toastr\" src=\"https://user-images.githubusercontent.com/10859693/39634578-1a9f121a-4fb3-11e8-8863-d64fad42901b.png\"\u003e\u003c/p\u003e\n\n## Version 3 Update\n\nWith the release of version 3, `yoeunes/toastr` is now powered by [PHPFlasher](https://github.com/php-flasher/php-flasher). When you install this package, it automatically utilizes [PHPFlasher](https://packagist.org/packages/php-flasher/flasher-toastr-laravel) under the hood. For those who are already using [PHPFlasher](https://php-flasher.io/library/toastr/) or are interested in a more direct implementation, you might consider using [PHPFlasher](https://php-flasher.io/library/toastr/) directly as it offers the same API and additional features.\n\n## Install\n\nYou can install the package using composer\n\n```sh\ncomposer require yoeunes/toastr\n```\n\nAfter installation, publish the assets using:\n\n```bash\nphp artisan flasher:install\n```\n\n## Usage:\n\nThe usage of this package is very simple and straightforward. it only required one step to use it :\n\nUse `toastr()` helper function inside your controller to set a toast notification for `info`, `success`, `warning` or `error`\n\n```php\n// Display a success toast with no title\nflash()-\u003esuccess('Operation completed successfully.');\n```\n\nAs an example:\n\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Post;\nuse App\\Http\\Requests\\PostRequest;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass PostController extends Controller\n{\n    public function store(PostRequest $request)\n    {\n        $post = Post::create($request-\u003eonly(['title', 'body']));\n\n        if ($post instanceof Model) {\n            toastr()-\u003esuccess('Data has been saved successfully!');\n\n            return redirect()-\u003eroute('posts.index');\n        }\n\n        toastr()-\u003eerror('An error has occurred please try again later.');\n\n        return back();\n    }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoeunes%2Ftoastr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoeunes%2Ftoastr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoeunes%2Ftoastr/lists"}