{"id":19483748,"url":"https://github.com/peachpiecompiler/peachpie-templates","last_synced_at":"2025-07-26T21:09:23.233Z","repository":{"id":47524681,"uuid":"89108895","full_name":"peachpiecompiler/peachpie-templates","owner":"peachpiecompiler","description":"Peachpie project templates.","archived":false,"fork":false,"pushed_at":"2025-02-25T12:18:25.000Z","size":1812,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-05T17:23:28.059Z","etag":null,"topics":["dotnet","peachpie","peachpiecompiler","php","templates"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":false,"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/peachpiecompiler.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,"zenodo":null}},"created_at":"2017-04-23T01:04:02.000Z","updated_at":"2025-02-25T12:18:30.000Z","dependencies_parsed_at":"2025-04-25T16:33:17.974Z","dependency_job_id":"8174d149-1406-4637-9d2c-afc03f4af440","html_url":"https://github.com/peachpiecompiler/peachpie-templates","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/peachpiecompiler/peachpie-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachpiecompiler%2Fpeachpie-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachpiecompiler%2Fpeachpie-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachpiecompiler%2Fpeachpie-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachpiecompiler%2Fpeachpie-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peachpiecompiler","download_url":"https://codeload.github.com/peachpiecompiler/peachpie-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachpiecompiler%2Fpeachpie-templates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267236627,"owners_count":24057656,"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-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["dotnet","peachpie","peachpiecompiler","php","templates"],"created_at":"2024-11-10T20:16:34.478Z","updated_at":"2025-07-26T21:09:23.214Z","avatar_url":"https://github.com/peachpiecompiler.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PeachPie Templates\n\nThis repository contains various `dotnet` project templates to be used for creating PeachPie compiled applications.\n\n## Using templates\n\n0. Install peachpie templates via: `dotnet new -i \"Peachpie.Templates::*\"` \n1. Create a project based on chosen template e.g.: `dotnet new console -lang PHP`\n2. Restore packages for the newly created project: `dotnet restore`\n3. Run the project: `dotnet run`\n\n\u003e You need to install PeachPie templates only once. They get stored in ~HOME/.templateengine cache. \n\n## Prerequisites\n\n- .NET SDK 6.0 or later\n- PowerShell (only for building)\n\n## Contributing templates \u0026 building\n\n### Adding a new template:\n\n- Go to `./src/Content`\n- Create a new folder with name mathing the template's `shortName`\n- Fill the folder with all that is required for a template \n    - [Official documentation on template creation](https://github.com/dotnet/templating/wiki/%22Runnable-Project%22-Templates)\n    - [Tutorial on MSDN](https://blogs.msdn.microsoft.com/dotnet/2017/04/02/how-to-create-your-own-templates-for-dotnet-new/)\n    - [Short introduction on rehansaeed.com](http://rehansaeed.com/custom-project-templates-using-dotnet-new/)\n\n### Building \u0026 testing\n\n- Invoke `.\\build.ps1` which calls a [build](https://github.com/peachpiecompiler/peachpie-templates/tree/master/build/build.ps1) (1)  and a [test](https://github.com/peachpiecompiler/peachpie-templates/tree/master/tests/test.ps1) (2) script\n  - 1: Packages all templates into a nuget package (see `/out/Peachpie.Templates.x.y.z.nupkg`)\n  - 2: Installs the the templates package to current `.templateengine`  cache\n  - 2: Tries to create a project from each one, restore it, and build it\n- After invoking the build script your template should be listed among `dotnet new -all`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachpiecompiler%2Fpeachpie-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeachpiecompiler%2Fpeachpie-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachpiecompiler%2Fpeachpie-templates/lists"}