Provides a GitHub repository template for a PHP package, using GitHub actions.

Overview

php-package-template

Integrate Prune Release Renew

Code Coverage Type Coverage

Latest Stable Version Total Downloads

Installation

💡 This is a great place for showing how to install the package, see below:

Run

$ composer require ergebnis/php-package-template

Usage

💡 This is a great place for showing a few usage examples!

Changelog

Please have a look at CHANGELOG.md.

Contributing

Please have a look at CONTRIBUTING.md.

Code of Conduct

Please have a look at CODE_OF_CONDUCT.md.

License

This package is licensed using the MIT License.

Please have a look at LICENSE.md.

Curious what I am building?

📬 Subscribe to my list, and I will occasionally send you an email to let you know what I am working on.

Issues
  • Test dependencies installable on lowest supported PHP version

    Test dependencies installable on lowest supported PHP version

    This PR

    • [x] Test that dependencies are installable on our lowest supported PHP version

    Follows #151. Related to https://github.com/dependabot/feedback/issues/761.

    This is what dependabot is doing to update dependencies. So if this test fails, dependabot is broken.

    enhancement stale 
    opened by Lctrs 14
  • Add psalm output format

    Add psalm output format

    This PR

    • [x] uses the gihhub output-format for vimeo/psalm. This will result in annotations on PR.

    This is also possible with php-cs-fixer and phpstan using https://github.com/staabm/annotate-pull-request-from-checkstyle

    I will remove the 2nd commit before merge.

    enhancement 
    opened by bendavies 9
  • Enhancement: Cache cache directory for phpstan/phpstan

    Enhancement: Cache cache directory for phpstan/phpstan

    This PR

    • [x] caches the cache directory for phpstan/phpstan between builds

    💁‍♂ For reference, see https://medium.com/@ondrejmirtes/from-minutes-to-seconds-massive-performance-gains-in-phpstan-163be88d1519.

    enhancement 
    opened by localheinz 8
  • Bump phpunit/phpunit from 8.1.5 to 8.1.6

    Bump phpunit/phpunit from 8.1.5 to 8.1.6

    Bumps phpunit/phpunit from 8.1.5 to 8.1.6.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [8.1.6] - 2019-05-28

    Changed

    • After each test, libxml_clear_errors() is now called to clear the libxml error buffer

    Fixed

    • Fixed #3694: Constructor arguments for Throwable and Exception are ignored
    • Fixed #3709: Method-level @coversNothing annotation does not prevent code coverage data collection
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)

    Finally, you can contact us by mentioning @dependabot.


    Dependabot has been acquired by GitHub  🎉

    opened by dependabot-preview[bot] 7
  • export ignore README files

    export ignore README files

    Do we really need a bunch of README files hanging out in the vendor directory?

    Also, I'm sorry about wrecking the neat columnar spacing. I'd be happy to push another commit that evens them all out, but I wanted you to have a clean diff for this change.

    Thanks!

    opened by jpuck 6
  • Fix: Use released versions of shivammathur/setup-php

    Fix: Use released versions of shivammathur/setup-php

    This PR

    • [x] uses released versions of shivammathur/setup-php instead of using master
    bug 
    opened by localheinz 6
  • composer(deps-dev): bump phpstan/phpstan-strict-rules from 0.12.9 to 0.12.10

    composer(deps-dev): bump phpstan/phpstan-strict-rules from 0.12.9 to 0.12.10

    ⚠️ Dependabot is rebasing this PR ⚠️

    Rebasing might not happen immediately, so don't worry if this takes some time.

    Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


    Bumps phpstan/phpstan-strict-rules from 0.12.9 to 0.12.10.

    Release notes

    Sourced from phpstan/phpstan-strict-rules's releases.

    0.12.10

    • 1ebaa93 - Bump metcalfc/changelog-generator from v0.4.4 to v1.0.0
    • 4efb461 - Lock closed issues
    • 3cb8c8a - Drop Phing for Makefile
    • 0208ab7 - chore: Use the latest PHPUnit wherever possible, use PHP 8.0 for PHPCS
    • 63cec25 - Rewrite in backward compatibility compliant way
    • ce82a05 - Operands in arithmetic operations - allow numeric-string
    Commits
    • ce82a05 Operands in arithmetic operations - allow numeric-string
    • 63cec25 Rewrite in backward compatibility compliant way
    • 0208ab7 chore: Use the latest PHPUnit wherever possible, use PHP 8.0 for PHPCS
    • 3cb8c8a Drop Phing for Makefile
    • 4efb461 Lock closed issues
    • 1ebaa93 Bump metcalfc/changelog-generator from v0.4.4 to v1.0.0
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependency 
    opened by dependabot[bot] 6
  • Enhancement: Add instructions for using this template

    Enhancement: Add instructions for using this template

    This PR

    • [x] adds instructions for using this template
    enhancement stale 
    opened by localheinz 6
  • Enhancement: Add mutation score badge

    Enhancement: Add mutation score badge

    This PR

    • [x] adds a mutation score badge

    Fixes #290.

    💁‍♂ Thank you for the inspiration, @Lctrs!

    enhancement 
    opened by localheinz 5
  • Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 1.1.0 to 1.1.3

    Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 1.1.0 to 1.1.3

    Bumps ergebnis/php-cs-fixer-config from 1.1.0 to 1.1.3.

    Release notes

    Sourced from ergebnis/php-cs-fixer-config's releases.

    1.1.3

    1.1.2

    • Enhancement: Use ergebnis/composer-normalize instead of localheinz/composer-normalize (#16), by @localheinz
    • Fix: Bring back support for PHP 7.1 (#17), by @localheinz
    • Enhancement: Synchronize with ergebnis/php-library-template (#18), by @localheinz

    1.1.1

    • Enhancement: Add note about template (#6), by @localheinz
    • Enhancement: Synchronize project tooling configuration with ergebnis/php-cs-fixer-config-template (#7), by @localheinz
    • Enhancement: Synchronize project tooling configuration with ergebnis/php-cs-fixer-config-template (#9), by @localheinz
    • Enhancement: Use ergebnis/test-util instead of localheinz/test-util (#10), by @localheinz
    • Enhancement: Synchronize with ergebnis/php-library-template (#11), by @localheinz
    • Enhancement: Use ergebnis/phpstan-rules instead of localheinz/phpstan-rules (#12), by @localheinz
    • Fix: Use default community health files for @ergebnis (#13), by @localheinz
    • Fix: Remove inappropriate replace configuration (#14), by @localheinz
    Changelog

    Sourced from ergebnis/php-cs-fixer-config's changelog.

    Changelog

    All notable changes to this project will be documented in this file.

    The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

    Unreleased

    For a full diff see [1.1.2...master][1.1.2...master].

    [1.1.2][1.1.2]

    For a full diff see [1.1.1...1.1.2][1.1.1...1.1.2].

    Added

    Fixed

    [1.1.1][1.1.1]

    For a full diff see [1.1.0...1.1.1][1.1.0...1.1.1].

    Fixed

    • Removed an inappropriate replace configuration from composer.json (#14), by [@localheinz]
    Commits
    • 53f9184 Merge pull request #29 from ergebnis/feature/license
    • 0e15011 Fix: Run 'make coding-standards'
    • 04fe67a Enhancement: Update license year
    • 0993738 Merge pull request #28 from ergebnis/feature/file
    • 7c2ac71 Enhancement: Write license to file
    • 6cdb7ec Merge pull request #27 from ergebnis/fix/rename
    • 1f5b17b Fix: Rename
    • 5296fec Merge pull request #26 from ergebnis/fix/rename
    • cb4ff60 Fix: Rename parameter and field
    • 48320e8 Merge pull request #25 from ergebnis/fix/rename
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    Dependabot will merge this PR once it's up-to-date and CI passes on it, as requested by @localheinz.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependency 
    opened by dependabot-preview[bot] 4
The Templating component provides all the tools needed to build any kind of template system.

Templating Component The Templating component provides all the tools needed to build any kind of template system. It provides an infrastructure to loa

Symfony 982 Nov 23, 2021
Laravel package template

REPLACE Simple and flexible package template. Usage Replace all occurances of REPLACE (case sensitive) with the name of the package namespace. E.g. th

ARCHTECH 47 Nov 24, 2021
Document templates Laravel package is intended for creating/managing user editable document template

Document Templates Introduction Document templates Laravel package is intended for creating/managing user editable document templates, with ability to

42coders 99 Nov 14, 2021
Provides TemplateView and TwoStepView using PHP as the templating language, with support for partials, sections, and helpers.

Aura View This package provides an implementation of the TemplateView and TwoStepView patterns using PHP itself as the templating language. It support

Aura for PHP 81 Nov 16, 2021
PHP template engine for native PHP templates

FOIL PHP template engine, for PHP templates. Foil brings all the flexibility and power of modern template engines to native PHP templates. Write simpl

Foil PHP 163 Nov 20, 2021
Twig, the flexible, fast, and secure template language for PHP

Twig, the flexible, fast, and secure template language for PHP Twig is a template language for PHP, released under the new BSD license (code and docum

Twig 7.3k Nov 24, 2021
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.

Smarty 3 template engine smarty.net Documentation For documentation see www.smarty.net/docs/en/ Requirements Smarty can be run with PHP 5.2 to PHP 7.4

Smarty PHP Template Engine 1.9k Nov 23, 2021
Native PHP template system

Plates Plates is a native PHP template system that's fast, easy to use and easy to extend. It's inspired by the excellent Twig template engine and str

The League of Extraordinary Packages 1.3k Nov 19, 2021
☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites.

Latte: amazing template engine for PHP Introduction Latte is a template engine for PHP which eases your work and ensures the output is protected again

Nette Foundation 731 Nov 27, 2021
View template engine of PHP extracted from Laravel

Blade 【简体中文】 This is a view templating engine which is extracted from Laravel. It's independent without relying on Laravel's Container or any others.

刘小乐 145 Aug 13, 2021
A complete and fully-functional implementation of the Jade template language for PHP

Tale Jade for PHP Finally a fully-functional, complete and clean port of the Jade language to PHP — Abraham Lincoln The Tale Jade Template Engine brin

Talesoft 93 May 4, 2021
A ready-to-use Model View Controller template in PHP

PHP-MVC-Template A ready-to-use Model View Controller template in PHP Use this repo as a template! (Or clone it) Start to configure your MVC file Afte

Loule | Louis 6 Nov 19, 2021
The free-to-use template for your Imagehost-website made with PHP, HTML and CSS!

The free-to-use template for your Imagehost-website made with PHP, HTML and CSS! Some information before we start This repo is only code related, to a

Ilian 5 Nov 3, 2021
The free-to-use template for your Imagehost-website made with PHP, HTML and CSS!

The free-to-use template for your Imagehost-website made with PHP, HTML and CSS! Some information before we start This repo is only code related, to a

Ilian 5 Nov 3, 2021
⚡️ Simple and fastly template engine for PHP

EasyTpl ⚡️ Simple and fastly template engine for PHP Features It's simple, lightweight and fastly. No learning costs, syntax like PHP template It is s

PHPPkg 9 Nov 26, 2021
A lightweight template parser used by PyroCMS.

Lex Lex is a lightweight template parser. Lex is released under the MIT License and is Copyrighted 2011 - 2014 PyroCMS Team. Change Log 2.3.2 Convert

PyroCMS 103 Nov 15, 2021
A SilverStripe Module with template methods to quickly make use of FocusPoint, LazySizes, and Object-fit

LazyFocusFit A SilverStripe module with template methods to quickly make use of FocusPoint, LazySizes and object-fit. Requirements PHP FocusPoint JS/C

Evans Hunt 8 Oct 12, 2021
Astroid Framework - Powerful Joomla Template Framework

Powerful framework for designers and developers to create responsive, fast & robust Joomla based websites and templates.

TemPlaza 9 Nov 23, 2021
TextGenerator is a PHP package that aims to generate automated texts from data.

TextGenerator TextGenerator is a PHP package that aims to generate automated texts from data. Feel free to comment and contribute. Features Text gener

Vincent Brouté 85 Jul 19, 2021