{"id":22354468,"url":"https://github.com/mcmatters/fqn-checker","last_synced_at":"2025-06-30T19:07:11.642Z","repository":{"id":58375249,"uuid":"124522456","full_name":"MCMatters/fqn-checker","owner":"MCMatters","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-27T13:48:08.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"2.0","last_synced_at":"2025-06-27T17:49:07.018Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MCMatters.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-03-09T09:58:36.000Z","updated_at":"2022-09-01T11:56:30.000Z","dependencies_parsed_at":"2025-02-27T15:31:09.801Z","dependency_job_id":"7e0958a8-efd3-4e62-9b94-f58bae9991ac","html_url":"https://github.com/MCMatters/fqn-checker","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"f17c27a7a3d4f052bf3a50c312da0f0f0a1738d3"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/MCMatters/fqn-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Ffqn-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Ffqn-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Ffqn-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Ffqn-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MCMatters","download_url":"https://codeload.github.com/MCMatters/fqn-checker/tar.gz/refs/heads/2.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Ffqn-checker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262834797,"owners_count":23371851,"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-12-04T13:13:00.148Z","updated_at":"2025-06-30T19:07:11.624Z","avatar_url":"https://github.com/MCMatters.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PHP Fqn checker\n\nChecks your php-code for the presence of un-imported functions and gives you information about where they are located.\n\n### Installation\n\n```bash\ncomposer require mcmatters/fqn-checker\n```\n\n### Usage\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse McMatters\\FqnChecker\\FqnChecker;\n\nrequire 'vendor/autoload.php';\n\n$checker = new FqnChecker(file_get_contents(__DIR__.'/Wrong.php'));\n\nprint_r($checker-\u003egetNotImported());\nprint_r($checker-\u003egetImported());\n```\n\nListing of **Wrong.php**\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace Acme;\n\nuse function ucfirst;\n\nclass Wrong\n{\n    public function testArray()\n    {\n        return array_filter([], null);\n    }\n    \n    public function testString()\n    {\n        return ucfirst('hello');\n    }\n}\n```\n\n**Result**\n```text\n[\n    'constants' =\u003e [\n        'Acme' =\u003e [\n            'null' =\u003e [\n                13,\n            ],\n        ],\n    ],\n    'functions' =\u003e [\n        'Acme' =\u003e [\n            'array_filter' =\u003e [\n                13,\n            ],\n        ],\n    ],\n]\n\n[\n    'constants' =\u003e [],\n    'functions' = [\n        'Acme' =\u003e [\n            'ucfirst' =\u003e true,\n        ],\n    ],\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcmatters%2Ffqn-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcmatters%2Ffqn-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcmatters%2Ffqn-checker/lists"}