Download the PHP package webproject-xyz/php-package-template without Composer

On this page you can find all versions of the php package webproject-xyz/php-package-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-package-template

PHP Package Template

CI PHP Version Codeception PHPStan

A modern, opinionated GitHub template repository for building PHP 8.5+ packages and libraries with standardized quality tooling, static analysis, and automated CI/CD workflows.


📦 What's Included


🚀 Using This Template

1. Create a Repository from this Template

Use GitHub's web interface by clicking "Use this template" → "Create a new repository", or use the GitHub CLI:

2. Install Dependencies

3. Initialize Git Hooks

Initialize GrumPHP to enable pre-commit quality checks:

4. Customize for Your Package

After initializing the project, adjust the configuration to match your package:

  1. composer.json:
    • Update name, description, authors, and homepage.
    • Update the PSR-4 autoload namespaces:
      • WebProject\PhpPackageTemplate\ → YourVendor\YourPackage\
      • WebProject\PhpPackageTemplate\Tests\ → YourVendor\YourPackage\Tests\
  2. Codeception Configuration:
    • Update namespace in codeception.yml.
    • Update suite_namespace in tests/Unit.suite.yml.
    • Update namespaces in tests/Support/UnitTester.php and tests/Unit/ExampleTest.php.
  3. README.md:
    • Replace this template documentation with specific documentation for your package.

🛠️ Development & Quality Assurance

All development scripts are defined in composer.json with XDEBUG_MODE=off (except code coverage) to maximize execution speed.

Available Composer Commands

Command Description
composer qa Executes the complete QA suite (test:build, cs:fix, test, stan).
composer test Runs the Codeception test suite (codecept run --report).
composer test:build Generates / rebuilds Codeception Actor classes (codecept build).
composer test:coverage Runs tests and generates an XML coverage report (coverage.xml).
composer stan Runs PHPStan static analysis at Level 8 without progress bars.
composer cs:check Checks coding standards with PHP-CS-Fixer in dry-run mode showing diffs.
composer cs:fix Automatically fixes code styling violations with PHP-CS-Fixer.

🤝 Contributing

Please see CONTRIBUTING.md for contribution guidelines, pull request processes, and branch naming conventions.


📜 License

Distributed under the MIT License. See LICENSE for details.


✉️ Support & Contact


All versions of php-package-template with dependencies

PHP Build Version
Package Version
Requires php Version ~8.5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webproject-xyz/php-package-template contains the following files

Loading the files please wait ...