{"id":21862001,"url":"https://github.com/softspring/notification-bundle","last_synced_at":"2025-04-14T19:40:58.930Z","repository":{"id":57055009,"uuid":"457752550","full_name":"softspring/notification-bundle","owner":"softspring","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-21T13:13:09.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"5.5","last_synced_at":"2025-03-28T08:03:09.417Z","etag":null,"topics":["symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softspring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-02-10T11:30:47.000Z","updated_at":"2025-02-18T10:35:23.000Z","dependencies_parsed_at":"2023-01-31T08:31:15.054Z","dependency_job_id":"41ca2cbf-788a-443f-addc-4a0ebaad71b6","html_url":"https://github.com/softspring/notification-bundle","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.2647058823529411,"last_synced_commit":"d136839882dcf27c3bb62da7236f364548136d1f"},"previous_names":[],"tags_count":102,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Fnotification-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Fnotification-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Fnotification-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Fnotification-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softspring","download_url":"https://codeload.github.com/softspring/notification-bundle/tar.gz/refs/heads/5.5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248948268,"owners_count":21187844,"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":["symfony-bundle"],"created_at":"2024-11-28T03:13:18.615Z","updated_at":"2025-04-14T19:40:58.860Z","avatar_url":"https://github.com/softspring.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notification Bundle\n\n![Latest Stable](https://img.shields.io/packagist/v/softspring/notification-bundle?label=stable\u0026style=flat-square)\n![Latest Unstable](https://img.shields.io/packagist/v/softspring/notification-bundle?label=unstable\u0026style=flat-square\u0026include_prereleases)\n![License](https://img.shields.io/packagist/l/softspring/notification-bundle?style=flat-square)\n![PHP Version](https://img.shields.io/packagist/dependency-v/softspring/notification-bundle/php?style=flat-square)\n![Downloads](https://img.shields.io/packagist/dt/softspring/notification-bundle?style=flat-square)\n[![CI](https://img.shields.io/github/actions/workflow/status/softspring/notification-bundle/ci.yml?branch=5.4\u0026style=flat-square\u0026label=CI)](https://github.com/softspring/notification-bundle/actions/workflows/ci.yml)\n![Coverage](https://raw.githubusercontent.com/softspring/notification-bundle/5.4/.github/badges/coverage.svg)\n\n## Installation\n\n### Configure Bundle\n\nIf you use flex, you should not need to do this. But if you don't or something goes wrong, you must add include\nthe bundle in config/bundles.php file:\n\n    \u003c?php\n    \n    return [\n        ...\n        Softspring\\NotificationBundle\\SfsNotificationBundle::class =\u003e ['all' =\u003e true],\n    ];\n\n### Configure ORM\n\nCreate your Notification entity:\n\n    \u003c?php\n    \n    namespace App\\Entity;\n    \n    use Doctrine\\ORM\\Mapping as ORM;\n    use Softspring\\Component\\DoctrineTemplates\\Entity\\Traits\\AutoId;\n    use Softspring\\NotificationBundle\\Model\\Notification as SfsNotification;\n    \n    /**\n     * @ORM\\Entity()\n     * @ORM\\Table(name=\"notification\")\n     */\n    class Notification extends SfsNotification\n    {\n        use AutoId;\n        \n        /**\n         * @var User|null\n         * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\User\", inversedBy=\"notifications\")\n         * @ORM\\JoinColumn(name=\"user_id\", referencedColumnName=\"id\", onDelete=\"CASCADE\")\n         */\n        protected $user;\n        \n        /**\n         * @inheritdoc\n         */\n        public function getUser(): ?UserInterface\n        {\n            return $this-\u003euser;\n        }\n    \n        /**\n         * @inheritdoc\n         */\n        public function setUser(UserInterface $user): void\n        {\n            $this-\u003euser = $user;\n        }\n    }\n\n\nCreate config/packages/sfs_notification.yaml file with your entity configuration\n\n    sfs_notification:\n        notification_class: App\\Entity\\Notification\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftspring%2Fnotification-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftspring%2Fnotification-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftspring%2Fnotification-bundle/lists"}