{"id":22688431,"url":"https://github.com/javanile/php-global-var","last_synced_at":"2025-07-24T01:03:52.358Z","repository":{"id":56996965,"uuid":"262456527","full_name":"javanile/php-global-var","owner":"javanile","description":"👷 Replacement strategy of messy code because of the global","archived":false,"fork":false,"pushed_at":"2021-07-09T10:29:38.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-13T17:22:17.144Z","etag":null,"topics":["bad-practices","best-practices","depenecy-injection","globals","php","replacement","strategy"],"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/javanile.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":"2020-05-09T00:33:05.000Z","updated_at":"2021-07-09T10:29:41.000Z","dependencies_parsed_at":"2022-08-21T14:50:11.548Z","dependency_job_id":null,"html_url":"https://github.com/javanile/php-global-var","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/javanile/php-global-var","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fphp-global-var","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fphp-global-var/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fphp-global-var/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fphp-global-var/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javanile","download_url":"https://codeload.github.com/javanile/php-global-var/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javanile%2Fphp-global-var/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266775354,"owners_count":23982273,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["bad-practices","best-practices","depenecy-injection","globals","php","replacement","strategy"],"created_at":"2024-12-10T00:14:25.686Z","updated_at":"2025-07-24T01:03:52.324Z","avatar_url":"https://github.com/javanile.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Global Var\n\nThis project supports replacement into old PHP code written with abuse of `global` directive, and give a strategy to step by step remove and refacoty code in a modern way.\n\n## Installation\n\n```shell\ncomposer require javanile/php-global-var\n```\n\n## Usage\n\n```php\n\u003c?php\n\nfunction getNewEntity() \n{\n   // Replace the following line\n   global $entityManager;\n   // With `get_global_var` call\n   $entityManager = get_global_var('entityManager');\n   \n   .\n   .\n   .\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavanile%2Fphp-global-var","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavanile%2Fphp-global-var","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavanile%2Fphp-global-var/lists"}