{"id":18766307,"url":"https://github.com/navarr/easy-upgrades","last_synced_at":"2025-12-08T23:30:17.479Z","repository":{"id":57024124,"uuid":"66950772","full_name":"navarr/easy-upgrades","owner":"navarr","description":"A simple trait to make it easier to upgrade things","archived":false,"fork":false,"pushed_at":"2016-08-31T16:22:37.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T19:15:53.475Z","etag":null,"topics":[],"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/navarr.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}},"created_at":"2016-08-30T14:57:16.000Z","updated_at":"2016-08-30T15:00:18.000Z","dependencies_parsed_at":"2022-08-23T14:20:55.286Z","dependency_job_id":null,"html_url":"https://github.com/navarr/easy-upgrades","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Feasy-upgrades","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Feasy-upgrades/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Feasy-upgrades/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Feasy-upgrades/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navarr","download_url":"https://codeload.github.com/navarr/easy-upgrades/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239669071,"owners_count":19677667,"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":[],"created_at":"2024-11-07T18:40:07.747Z","updated_at":"2025-12-08T23:30:17.427Z","avatar_url":"https://github.com/navarr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy Upgrades!\n\n\"Wow, I didn't know I needed this\" - Everyone, ever\n\n## How to install\n\n    composer require navarr/easy-upgrades\n    \n\u003e Holy crap, that's it?\n\nOF COURSE IT IS!  What year do you think it is?!\n\n## How to use\n\nIn your class, `use CallableUpdateTrait;`, like so:\n\n    class SomeCrappyClass\n    {\n        use CallableUpdateTrait;\n        \n        public function somethingTriggeredExternally($currentVersion, $futureVersion)\n        {\n            $this-\u003erunAt('2.0.0', $currentVersion, function() {\n                echo 'Hello, 2.0.0!',PHP_EOL;\n            });\n        }\n    }\n    \nBasically, using CallableUpdateTrait gives you the `runAt` method.  Neat stuff!\n\n## Wait, this only contains one class that does practically nothing\n\nYes, but now you don't have to write it into every project, or every module, or whatever.\n\n## Why this?\n\nIt's a common function I wish I had in Magento 2 - so I made it.  It doesn't need Magento, or have any dependencies.  It just does what it says on the tin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarr%2Feasy-upgrades","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavarr%2Feasy-upgrades","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarr%2Feasy-upgrades/lists"}