{"id":18297813,"url":"https://github.com/daaarkling/php-add-strict-types-line","last_synced_at":"2025-04-09T09:14:56.960Z","repository":{"id":56961165,"uuid":"121439413","full_name":"Daaarkling/php-add-strict-types-line","owner":"Daaarkling","description":"Command-line script for adding `declare(strict_types=1);` line to PHP files","archived":false,"fork":false,"pushed_at":"2020-10-22T18:11:20.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T07:27:20.416Z","etag":null,"topics":["command-line","php","strict-types"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Daaarkling.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":"2018-02-13T21:35:53.000Z","updated_at":"2023-02-22T07:26:05.000Z","dependencies_parsed_at":"2022-08-21T05:10:18.157Z","dependency_job_id":null,"html_url":"https://github.com/Daaarkling/php-add-strict-types-line","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/Daaarkling%2Fphp-add-strict-types-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daaarkling%2Fphp-add-strict-types-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daaarkling%2Fphp-add-strict-types-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daaarkling%2Fphp-add-strict-types-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daaarkling","download_url":"https://codeload.github.com/Daaarkling/php-add-strict-types-line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008629,"owners_count":21032556,"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":["command-line","php","strict-types"],"created_at":"2024-11-05T15:04:28.069Z","updated_at":"2025-04-09T09:14:56.937Z","avatar_url":"https://github.com/Daaarkling.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP add-strict-types-line\n=================================\n\nCommand-line script for adding `declare(strict_types=1);` line to PHP files\n\nIt uses native PHP tokenizer, so conversion is safe. It adds the line only to files where `declare(strict_types=1);` was not found.\n\nUsage\n-----\n\nTo convert all `*.php` and `*.phpt` files in whole directory recursively or to convert a single file use:\n\n```\nphp add-line.php \u003cdirectory | file\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaarkling%2Fphp-add-strict-types-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaaarkling%2Fphp-add-strict-types-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaarkling%2Fphp-add-strict-types-line/lists"}