Git Product home page Git Product logo

php's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.