neoncitylights / php

repository template for PHP projects

Home Page:https://neoncitylights.github.io/php/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Repository Template

This template is based on my past history with developing MediaWiki software, and largely based on MediaWiki's own repository template for PHP projects.

However, this project can be used for any PHP project, not just MediaWiki.

I hope this template can be useful for you!

This repository makes it easier to develop a PHP application or library by providing a basic project structure, continuous integration (CI) configuration, and other tools.

Features

Getting started

Creating a new repository

GitHub UI

You can create a new repository based on this template by clicking the "Use this template" button in the top-right corner of this page.

Terminal

You can run the following command below with the GitHub CLI. Some notes:

  • Replace placeholder with name of your extension in upper CamelCase
  • Configure your repository's visibility with --public, --private, or --internal
gh repo create {repo-name} --public --clone --template neoncitylights/php-template

Cookiecutter stuff

Using your favorite text editor or IDE, find-and-replace the following placeholders:

  • {repo-name}: Replace with the name of your repository
  • author/package: Replace with your own author and package name.
  • neoncitylights/php-template: Replace with the name of your GitHub repository.
  • Neoncitylights\ExampleLibrary: Replace with your own namespace.
  • Neoncitylights\\ExampleLibrary\\: Replace with your own namespace (escaped version using double backslashes).

Delete this README.md, and rename LIBRARY.md to README.md.

Configure

Tool File Documentation
Composer package composer.json docs, website, repo
PHPCS (formatter + linter) .phpcs.xml docs, repo
PHPUnit (unit testing) .phpunit.xml.dist docs, website, repo
phpdoc (documentation generator) phpdoc.dist.xml docs, website, repo
Dependabot .github/dependabot.yml docs, website

See also

License

This software is licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.

About

repository template for PHP projects

https://neoncitylights.github.io/php/

License:MIT License


Languages

Language:PHP 62.8%Language:Dockerfile 37.2%