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.

Comments
  • 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
  • Missing ergebnis/.github files

    Missing ergebnis/.github files

    Steps required to reproduce the problem

    1. git clone this repo
    2. composer update

    Expected Result

    Have directory ergebnis/.github/actions/composer/determine-cache-directory

    Actual Result

    Could you help me understand how to get ergebnis/.github/* files? And maybe add your answer to README? Thank you.

    question 
    opened by szepeviktor 9
  • 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
  • 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
  • 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
  • restore dependabot auto merging using the workflow_run event

    restore dependabot auto merging using the workflow_run event

    This pull request restores the auto-merging of dependabot PRs.

    The event is switched to use workflow_run, which runs with write permissions as so secrets (ERGEBNIS_BOT_TOKEN) are available in the run.

    for more information see: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

    I have been unable to retain all conditions of the previous if statement, namely these.

        if: >
    ...
          github.event.pull_request.draft == false && (
            github.event.action == 'opened' ||
            github.event.action == 'reopened' ||
            github.event.action == 'synchronize'
          ) && (
    ...
            (github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge'))
          )
    

    An alternative will have to be found if these are critical.

    Thanks!

    enhancement 
    opened by bendavies 4
  • PRs not merged when `merge` label is added.

    PRs not merged when `merge` label is added.

    Hi,

    Does this need github.event.action == 'labeled' added for this to work?

    Steps required to reproduce the problem

    1. Have a PR raised by dependabot for a non dev dependency
    2. Add the merge label
    3. PR is not merged

    Expected Result

    • PR is merged

    Actual Result

    • PR is not merged
    bug 
    opened by bendavies 4
  • Auto generate api documentation?

    Auto generate api documentation?

    Hi, what do you think about auto-generated api docs in the README? e.g. https://github.com/voku/Php-Readme-Helper/blob/master/tests/PhpDocHelperTest.php

    Maybe we can also generate unit tests from examples in the code / phpdoc?

    stale 
    opened by voku 4
  • Build(deps-dev): Bump ergebnis/phpstan-rules from 0.14.0 to 0.14.2

    Build(deps-dev): Bump ergebnis/phpstan-rules from 0.14.0 to 0.14.2

    Bumps ergebnis/phpstan-rules from 0.14.0 to 0.14.2.

    Release notes

    Sourced from ergebnis/phpstan-rules's releases.

    0.14.2

    • Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 1.1.0 to 1.1.1 (#163), by @dependabot-preview[bot]
    • Enhancement: Use ergebnis/composer-normalize instead of localheinz/composer-normalize (#164), by @localheinz
    • Build(deps-dev): Bump ergebnis/composer-normalize from 2.0.0 to 2.0.1 (#165), by @dependabot-preview[bot]
    • Fix: Bring back support for PHP 7.1 (#166), by @localheinz
    • Enhancement: Synchronize with ergebnis/php-library-template (#167), by @localheinz

    0.14.1

    Changelog

    Sourced from ergebnis/phpstan-rules's changelog.

    [0.14.2][0.14.2]

    For a full diff see [0.14.1...0.14.2][0.14.1...0.14.2].

    Fixed

    [0.14.1][0.14.1]

    For a full diff see [0.14.0...0.14.1][0.14.0...0.14.1].

    Fixed

    • Removed an inappropriate replace configuration from composer.json (#161), by [@localheinz]
    Commits
    • e6cf7e7 Merge pull request #167 from ergebnis/feature/synchronize
    • 1567e2c Enhancement: Synchronize with ergebnis/php-library-template
    • abf7d73 Merge pull request #166 from ergebnis/fix/php7.1
    • fc47645 Fix: Bring back support for PHP 7.1
    • 3ed2f1c Merge pull request #165 from ergebnis/dependabot/composer/ergebnis/composer-n...
    • 948f9e1 Build(deps-dev): Bump ergebnis/composer-normalize from 2.0.0 to 2.0.1
    • 3e7e13b Merge pull request #164 from ergebnis/feature/composer-normalize
    • 60a99ee Enhancement: Use ergebnis/composer-normalize instead of localheinz/composer-n...
    • e360dfe Merge pull request #163 from ergebnis/dependabot/composer/ergebnis/php-cs-fix...
    • 69bdf1b Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 1.1.0 to 1.1.1
    • 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 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
Owner
null
A template abstraction prototype for PHP template engines

Schranz Templating A template abstraction prototype for PHP template engines. This project should help to find a way for a general Template Render Int

Schranz Templating 16 Dec 7, 2022
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 999 Dec 25, 2022
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 56 Aug 15, 2022
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 139 Dec 15, 2022
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 83 Jan 3, 2023
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 167 Dec 3, 2022
A PHP project template with PHP 8.1, Laminas Framework and Doctrine

A PHP project template with PHP 8.1, Laminas Framework and Doctrine

Henrik Thesing 3 Mar 8, 2022
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.7k Jan 1, 2023
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 2.1k Jan 1, 2023
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 Jan 7, 2023
☕ 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 898 Dec 25, 2022
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.

刘小乐 143 Dec 13, 2022
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 91 Dec 27, 2022
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 20 Dec 26, 2022
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 6 Jul 22, 2022
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 6 Jul 22, 2022
⚡️ 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 19 Dec 9, 2022
Twig Template Engine to Phalcon PHP

Twig Template Engine to Phalcon PHP

Vinicius 4 Oct 7, 2022
Liquid template engine for PHP

Liquid is a PHP port of the Liquid template engine for Ruby, which was written by Tobias Lutke. Although there are many other templating engines for PHP, including Smarty (from which Liquid was partially inspired)

Harald Hanek 230 Aug 18, 2022