{"id":13760032,"url":"https://github.com/smarteist/PHP2Blade","last_synced_at":"2025-05-10T10:31:10.853Z","repository":{"id":48852791,"uuid":"243199541","full_name":"smarteist/PHP2Blade","owner":"smarteist","description":"It's a php transpiler for converting ordinary php view files to laravel blade","archived":false,"fork":false,"pushed_at":"2022-08-09T09:04:34.000Z","size":502,"stargazers_count":21,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T10:42:38.245Z","etag":null,"topics":[],"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/smarteist.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-02-26T07:43:17.000Z","updated_at":"2024-10-28T18:12:09.000Z","dependencies_parsed_at":"2022-08-12T19:51:12.898Z","dependency_job_id":null,"html_url":"https://github.com/smarteist/PHP2Blade","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarteist%2FPHP2Blade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarteist%2FPHP2Blade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarteist%2FPHP2Blade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarteist%2FPHP2Blade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smarteist","download_url":"https://codeload.github.com/smarteist/PHP2Blade/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253401083,"owners_count":21902602,"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-08-03T13:01:02.427Z","updated_at":"2025-05-10T10:31:10.607Z","avatar_url":"https://github.com/smarteist.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# PHP To Blade Transpiler\n\nPHP2Blade is a php transpiler for converting ordinary php view files to laravel blade template engine files.\n\n### Installation\n\n```bash\ngit clone https://github.com/smarteist/PHP2Blade.git\n```\nThen run:\n```bash\ncomposer install\n```\n\n### Usage\nBy default you only need to pass directory of your files to the transpiler,\nyour output files will be saved in ```/out``` directory in the same project.\n```bash\nphp php2blade \u003cfiles directory\u003e \u003coptional output directory\u003e\n```\nTo remove comments we can add ```--removecomments``` switch\n```bash\nphp php2blade --removecomments \u003cfiles directory\u003e \u003coptional output directory\u003e\n```\nTo prevent comments conversion add ```--keepcomments```\n```bash\nphp php2blade --keepcomments \u003csrc directory\u003e \u003c-optional- output directory\u003e\n```\n### Output Examples\nSome production ready outputs converted by PHP2Blade:\n\n![Conversion one](https://raw.githubusercontent.com/smarteist/PHP2Blade/master/img/1.png)\n\n![Conversion two](https://raw.githubusercontent.com/smarteist/PHP2Blade/master/img/2.png)\n\n![Conversion three](https://raw.githubusercontent.com/smarteist/PHP2Blade/master/img/3.png)\n\n\n#### Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n#### License\n[MIT](https://choosealicense.com/licenses/mit/)\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarteist%2FPHP2Blade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmarteist%2FPHP2Blade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarteist%2FPHP2Blade/lists"}