{"id":13660346,"url":"https://github.com/edvinaskrucas/notification","last_synced_at":"2025-12-16T21:57:10.507Z","repository":{"id":6538698,"uuid":"7780013","full_name":"edvinaskrucas/notification","owner":"edvinaskrucas","description":"Notification package for Laravel","archived":false,"fork":false,"pushed_at":"2023-11-30T20:30:51.000Z","size":218,"stargazers_count":523,"open_issues_count":8,"forks_count":95,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-11-23T07:20:51.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/edvinaskrucas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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}},"created_at":"2013-01-23T17:38:27.000Z","updated_at":"2025-10-25T22:30:19.000Z","dependencies_parsed_at":"2024-01-12T10:26:08.217Z","dependency_job_id":"6952b4be-f850-4df9-aea9-f96302a01d14","html_url":"https://github.com/edvinaskrucas/notification","commit_stats":{"total_commits":240,"total_committers":23,"mean_commits":"10.434782608695652","dds":"0.16666666666666663","last_synced_commit":"7ef6bd45c2845160b4b4340e2a14f476cd952739"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/edvinaskrucas/notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvinaskrucas%2Fnotification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvinaskrucas%2Fnotification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvinaskrucas%2Fnotification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvinaskrucas%2Fnotification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edvinaskrucas","download_url":"https://codeload.github.com/edvinaskrucas/notification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvinaskrucas%2Fnotification/sbom","scorecard":{"id":367463,"data":{"date":"2025-08-11","repo":{"name":"github.com/edvinaskrucas/notification","commit":"7ef6bd45c2845160b4b4340e2a14f476cd952739"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":5,"reason":"Found 7/12 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T12:12:11.930Z","repository_id":6538698,"created_at":"2025-08-18T12:12:11.931Z","updated_at":"2025-08-18T12:12:11.931Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27772221,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-02T05:01:20.380Z","updated_at":"2025-12-16T21:57:10.489Z","avatar_url":"https://github.com/edvinaskrucas.png","language":"PHP","funding_links":[],"categories":["PHP","通知( Notifications )"],"sub_categories":[],"readme":"**Package is looking for maintainers Please contact me if interested.**\n\n# Notification package for Laravel4 / Laravel5\n\n[![Build Status](https://travis-ci.org/edvinaskrucas/notification.png?branch=master)](https://travis-ci.org/edvinaskrucas/notification)\n\n---\n\nA simple notification management package for Laravel4.\n\n---\n\n* Notification containers\n* Notification collections\n* Notification messages\n* Formats for notifications\n* Flash / instant notifications\n* Method chaining\n* Message positioning\n\n---\n\n## Installation\n\nJust place require new package for your laravel installation via composer.json\n\n    \"edvinaskrucas/notification\": \"5.*\"\n\nThen hit ```composer update```\n\n### Version matrix\n\n| Laravel Version       | Package version          |\n| --------------------- | ------------------------ |\n| = 5.4                 | 5.2.*                    |\n| \u003e= 5.1                | 5.1.*                    |\n| \u003e= 5.0, \u003c 5.1         | 5.0.*                    |\n| \u003e= 4, \u003c 5             | \u003e= 2, \u003c= 3               |\n\n### Registering to use it with laravel\n\nAdd following lines to ```app/config/app.php```\n\nServiceProvider array\n\n```php\n\\Krucas\\Notification\\NotificationServiceProvider::class,\n```\n\nKernel middleware array (```must be placed after 'Illuminate\\Session\\Middleware\\StartSession' middleware```)\n```php\n\\Krucas\\Notification\\Middleware\\NotificationMiddleware::class,\n```\n\nNow you are able to use it with Laravel4.\n\n### Publishing config file\n\nIf you want to edit default config file, just publish it to your app folder.\n\n    php artisan vendor:publish --provider=\"\\Krucas\\Notification\\NotificationServiceProvider\" --tag=\"config\"\n\n## Usage\n\n### Default usage\n\nAdding message to default container.\n```php\n\\Krucas\\Notification\\Facades\\Notification::success('Success message');\n\\Krucas\\Notification\\Facades\\Notification::error('Error message');\n\\Krucas\\Notification\\Facades\\Notification::info('Info message');\n\\Krucas\\Notification\\Facades\\Notification::warning('Warning message');\n```\n\n### Containers\n\nContainers allows you to set up different containers for different placeholders.\n\nYou can pass closure to modify containers, simply use this syntax showed below\n```php\n\\Krucas\\Notification\\Facades\\Notification::container('myContainer', function($container)\n{\n    $container-\u003einfo('Test info message');\n    $container-\u003eerror('Error');\n});\n```\n\nAlso you can access container like this\n```php\n\\Krucas\\Notification\\Facades\\Notification::container('myContainer')-\u003einfo('Info message');\n```\n\nMethod chaining\n```php\n\\Krucas\\Notification\\Facades\\Notification::container('myContainer')-\u003einfo('Info message')-\u003eerror('Error message');\n```\n\nIf you want to use default container just use ```null``` as container name. Name will be taken from config file.\n```php\n\\Krucas\\Notification\\Facades\\Notification::container()-\u003einfo('Info message');\n```\n\n### Instant notifications (shown in same request)\n\nLibrary supports not only flash messages, if you want to show notifications in same request just use\n```php\n\\Krucas\\Notification\\Facades\\Notification::successInstant('Instant success message');\n```\n\n### Custom single message format\n\nWant a custom format for single message? No problem\n```php\n\\Krucas\\Notification\\Facades\\Notification::success('Success message', 'Custom format :message');\n```\n\nAlso you can still pass second param (format), to format messages, but you can format individual messages as shown above.\n\n### Add message as object\n\nYou can add messages as objects\n```php\n\\Krucas\\Notification\\Facades\\Notification::success(\n    \\Krucas\\Notification\\Facades\\Notification::message('Sample text')\n);\n```\n\nWhen adding message as object you can add additional params to message\n```php\n\\Krucas\\Notification\\Facades\\Notification::success(\n    \\Krucas\\Notification\\Facades\\Notification::message('Sample text')-\u003eformat(':message')\n);\n```\n\n### Add message as closure\n\nYou can add messages by using a closure\n```php\n\\Krucas\\Notification\\Facades\\Notification::success(function (Message $message) {\n    $message-\u003esetMessage('Sample text')-\u003esetPosition(1);\n});\n```\n\n### Accessing first notification from container\n\nYou can access and show just first notification in container\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::container('myContainer')-\u003eget('success')-\u003efirst() !!}\n```\n\nAccessing first notification from all types\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::container('myContainer')-\u003eall()-\u003efirst() !!}\n```\n\n### Displaying notifications\n\nTo display all notifications in a default container you need to add just one line to your view file\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::showAll() !!}\n```\n\nWhen using ```showAll()``` you may want to group your messages by type, it can be done like this\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::group('info', 'success', 'error', 'warning')-\u003eshowAll() !!}\n```\nThis will group all your messages in group and output it, also you can use just one, two or three groups.\n\nManipulating group output on the fly\n```php\n\\Krucas\\Notification\\Facades\\Notification::addToGrouping('success')-\u003eremoveFromGrouping('error');\n```\n\nDisplay notifications by type in default container, you can pass custom format\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::showError() !!}\n{!! \\Krucas\\Notification\\Facades\\Notification::showInfo() !!}\n{!! \\Krucas\\Notification\\Facades\\Notification::showWarning() !!}\n{!! \\Krucas\\Notification\\Facades\\Notification::showSuccess(':message') !!}\n```\n\nDisplaying notifications in a specific container with custom format.\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::container('myContainer')-\u003eshowInfo(':message') !!}\n```\n\nOr you can just use blade extension\n```php\n@notification() // will render default container\n\n@notification('custom') // will render 'custom' container\n```\n\n### Message positioning\n\nThere is ability to add message to certain position.\n```php\n// This will add message at 5th position\n\\Krucas\\Notification\\Facades\\Notification::info(Notification::message('info')-\u003eposition(5));\n\\Krucas\\Notification\\Facades\\Notification::info(Notification::message('info2')-\u003eposition(1);\n```\n\n### Clearing messages\n\nYou can clear all messages or by type.\n```php\n\\Krucas\\Notification\\Facades\\Notification::clearError();\n\\Krucas\\Notification\\Facades\\Notification::clearWarning();\n\\Krucas\\Notification\\Facades\\Notification::clearSuccess();\n\\Krucas\\Notification\\Facades\\Notification::clearInfo();\n\\Krucas\\Notification\\Facades\\Notification::clearAll();\n```\n\n### Add message and display it instantly in a view file\n\nWant to add message in a view file and display it? Its very simple:\n\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::container('myInstant')\n        -\u003einfoInstant('Instant message added in a view and displayed!') !!}\n```\n\nYou can also add multiple messages\n\n```php\n{!! \\Krucas\\Notification\\Facades\\Notification::container('myInstant')\n        -\u003einfoInstant('Instant message added in a view and displayed!')\n        -\u003eerrorInstant('Error...') !!}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvinaskrucas%2Fnotification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedvinaskrucas%2Fnotification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvinaskrucas%2Fnotification/lists"}