{"id":15014454,"url":"https://github.com/codelytv/php-basic-skeleton","last_synced_at":"2025-04-07T08:19:47.531Z","repository":{"id":48336993,"uuid":"68513173","full_name":"CodelyTV/php-basic-skeleton","owner":"CodelyTV","description":"🐘🚀 PHP Basic Skeleton: Bootstrap your new projects using this Composer Project","archived":false,"fork":false,"pushed_at":"2024-05-13T13:33:18.000Z","size":68,"stargazers_count":107,"open_issues_count":1,"forks_count":48,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-07T08:19:42.521Z","etag":null,"topics":["best-practices","bootstrap","codelytv","composer","example","php","php7","phpunit","sample","skeleton"],"latest_commit_sha":null,"homepage":"https://codely.com/cursos","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/CodelyTV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"custom":"https://bit.ly/CodelyTvPro"}},"created_at":"2016-09-18T10:05:37.000Z","updated_at":"2024-06-21T08:14:09.000Z","dependencies_parsed_at":"2024-09-24T20:18:58.307Z","dependency_job_id":null,"html_url":"https://github.com/CodelyTV/php-basic-skeleton","commit_stats":{"total_commits":37,"total_committers":4,"mean_commits":9.25,"dds":"0.29729729729729726","last_synced_commit":"97a905bf1726f170f094c92621d31a7adf8e3e32"},"previous_names":[],"tags_count":12,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-basic-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-basic-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-basic-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelyTV%2Fphp-basic-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodelyTV","download_url":"https://codeload.github.com/CodelyTV/php-basic-skeleton/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615385,"owners_count":20967184,"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":["best-practices","bootstrap","codelytv","composer","example","php","php7","phpunit","sample","skeleton"],"created_at":"2024-09-24T19:45:39.392Z","updated_at":"2025-04-07T08:19:47.510Z","avatar_url":"https://github.com/CodelyTV.png","language":"PHP","readme":"# 🐘 PHP Bootstrap (base / project skeleton)\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]][link-license]\n[![Build Status][ico-gh-actions]][link-gh-actions]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n## Introduction\n\nThis is a repository intended to serve as a starting point if you want to bootstrap a project in PHP. This repository\nhas been explained in\nthe [CodelyTV video \"Introducción a PHP: Cómo configurar tu entorno de desarrollo 🐘\" (Spanish)](https://www.youtube.com/watch?v=v2IjMrpZog4).\n\nIt could be useful if you want to start from scratch a kata or a little exercise or project. The idea is that you don't\nhave to worry about the boilerplate, just run `composer create-project codelytv/php-bootstrap your-project-name` and\nthere you go:\n\n* Latest versions of PHP and PHPUnit\n* Best practices applied:\n    * [`README.md`][link-readme]\n    * [`LICENSE`][link-license]\n    * [`composer.json`][link-composer-json]\n    * [`ecs.php`](./ecs.php)\n    * [`phpunit.xml`][link-phpunit]\n    * [`psalm.xml`](./psalm.xml)\n    * [`.gitignore`][link-gitignore]\n    * [`.editorconfig`][link-editorconfig]\n* Some useful resources to start coding\n\n## How To Start\n\nYou have 2 different alternatives: Using our [Packagist project](https://packagist.org/packages/codelytv/php-bootstrap)\nwith Composer, or manually cloning [this repo](https://github.com/CodelyTV/php-bootstrap/):\n\n### Using Composer\n\nStart completely from scratch without having to delete this bootstrap project Git history:\n\n1. If you don't have it already, [install Composer](https://getcomposer.org/download/).\n2. Create your project based on the [Packagist project](https://packagist.org/packages/codelytv/php-bootstrap). This\n   will also download the project dependencies: `composer create-project codelytv/php-bootstrap your-project-name`.\n3. Move to the project directory: `cd your-project-name`\n4. Run all the checks: `composer test`. This will do some checks that you can perform with isolated commands:\n    1. [Codely Style](https://github.com/CodelyTV/php-coding_style-codely): `composer lint`.\n    2. [Easy coding standard](https://github.com/easy-coding-standard/easy-coding-standard): `composer style`. If you\n       want to fix style issues automatically: `composer lint:fix`.\n    3. [Static Analysis](https://github.com/vimeo/psalm): `composer static-analysis`.\n    4. [PHP Unit](https://phpunit.de/): `composer phpunit`.\n5. Create your own repository:\n    1. Initialize your own Git repository: `git init`\n    2. Add the bootstrap files: `git add .`\n    3. Commit: `git commit -m \"Initial commit with project boilerplate based on https://github.com/CodelyTV/php-bootstrap\"`\n    4. Add your remote repository: `git remote add origin git@github.com:your-username/your-project-name`\n    5. Upload your local commits to the new remote repo: `git push -u origin master`\n6. Start coding!\n\n### Cloning the repository\n\nJust in case you prefer to avoid dealing with `composer create-project`, you can also clone this repository. We\nrecommend to follow the next step-by-step process in order to avoid adding the bootstrap project commits to your project\nGit history:\n\n1. [Use this repository template](https://github.com/CodelyTV/php-basic-skeleton/generate)\n2. Clone your project\n3. Move to the project directory: `cd your-project-name`\n4. If you don't have it already, [install Composer](https://getcomposer.org/download/).\n5. Install the project dependencies: `composer install`\n6. Run the tests: `composer test`.\n7. Start coding!\n\n## Related skeleton templates\n\nThis very same basic skeleton philosophy implemented in other programming languages:\n\n- [🔷🕸️ TypeScript Web Skeleton](https://github.com/CodelyTV/typescript-web-skeleton)\n- [🔷🌍 TypeScript API Skeleton](https://github.com/CodelyTV/typescript-api-skeleton)\n- [🔷✨ TypeScript DDD Skeleton](https://github.com/CodelyTV/typescript-ddd-skeleton)\n- [✨ JavaScript Basic Skeleton](https://github.com/CodelyTV/javascript-basic-skeleton)\n- [☕ Java Basic Skeleton](https://github.com/CodelyTV/java-basic-skeleton)\n- [📍 Kotlin Basic Skeleton](https://github.com/CodelyTV/kotlin-basic-skeleton)\n- [🧬 Scala Basic Skeleton](https://github.com/CodelyTV/scala-basic-skeleton)\n- [🦈 C# Basic Skeleton](https://github.com/CodelyTV/csharp-basic-skeleton)\n\n[ico-version]: https://img.shields.io/packagist/v/codelytv/php-bootstrap.svg?style=flat-square\n\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n\n[ico-gh-actions]: https://github.com/CodelyTV/php-basic-skeleton/actions/workflows/ci.yml/badge.svg\n\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/CodelyTV/php-bootstrap.svg?style=flat-square\n\n[ico-downloads]: https://img.shields.io/packagist/dt/codelytv/php-bootstrap.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/codelytv/php-bootstrap\n\n[link-license]: LICENSE\n\n[link-gh-actions]: https://github.com/CodelyTV/php-basic-skeleton/actions\n\n[link-downloads]: https://packagist.org/packages/codelytv/php-bootstrap\n\n[link-readme]: README.md\n\n[link-composer-json]: composer.json\n\n[link-phpunit]: phpunit.xml\n\n[link-gitignore]: .gitignore\n\n[link-editorconfig]: .editorconfig\n","funding_links":["https://bit.ly/CodelyTvPro"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelytv%2Fphp-basic-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelytv%2Fphp-basic-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelytv%2Fphp-basic-skeleton/lists"}