Download the PHP package pekral/php-skeleton without Composer

On this page you can find all versions of the php package pekral/php-skeleton. 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-skeleton

PHP Skeleton

PHP Version PHPStan Pest Code Coverage

Modern PHP package skeleton with strict quality rules and best practices baked in. Supports PHP 8.4 and 8.5.

Start your next PHP package with confidence. This skeleton comes pre-configured with industry-standard tools for static analysis, testing, and code quality — and includes an interactive installer that configures everything for you.


Features

Tool Purpose
Pest Elegant testing framework with 100% coverage requirement
PHPStan Static analysis at maximum level
Laravel Pint Opinionated PHP code style fixer
Rector Automated code refactoring
PHP CodeSniffer Coding standard enforcement
Security Advisories Dependency vulnerability checking
Interactive Installer Automatic project configuration

Installation

The interactive installer will guide you through the configuration process.


Interactive Installer

When you run composer create-project, an interactive installer automatically starts and helps you configure your new package.

What the Installer Does

  1. Collects Project Information

    • Package name (vendor/package format)
    • Root PSR-4 namespace (auto-suggested from package name)
    • Test namespace (auto-suggested as {Namespace}Test)
    • Display name (auto-suggested from package name)
    • GitHub repository URL (auto-suggested from package name)
  2. Optional: Project Specification

    • Paste multi-line project specification text
    • Creates SPEC.md file (automatically added to .gitignore)
    • End input with two empty lines or skip with Enter
  3. Performs Automatic Configuration

    • Updates composer.json with your package details
    • Replaces namespaces across all PHP files
    • Clears README.md and CHANGELOG.md for your content
    • Updates LICENSE with your information
    • Cleans up phpstan.neon (removes build-package path)
    • Cleans up rector.php (removes build-package path)
    • Moves all dependencies to require-dev (except PHP)
    • Removes skeleton-specific scripts and autoload entries
  4. Creates Example Files

    • src/{ClassName}.php — Example class with greet() method
    • tests/Unit/{ClassName}Test.php — Pest test for the example class
  5. Runs Quality Pipeline

    • Installs dependencies with composer update
    • Runs composer fix to apply code style fixes
    • Runs composer check to verify all quality checks pass
  6. Optional Features
    • GitHub Actions — Keep or remove CI/CD workflows
    • Cursor Rules — Install AI coding assistant rules via pekral/cursor-rules
    • Git Repository — Initialize with custom branch name
    • Push to Remote — Force push initial commit to GitHub (converts HTTPS to SSH URL)

Installer Flow Example

Cancellation & Cleanup

If you press Ctrl+C during installation, the installer will:


Available Commands

Run All Quality Checks

This runs the complete quality pipeline:

Apply All Fixes

Automatically fixes code style and applies refactoring:

Individual Commands

Command Description
composer test:coverage Run tests with coverage (min 100%)
composer analyse Run PHPStan static analysis
composer pint-check Check code style
composer pint-fix Fix code style
composer rector-check Check for refactoring opportunities
composer rector-fix Apply automated refactoring
composer phpcs-check Check coding standards
composer phpcs-fix Fix coding standard violations
composer composer-validate Validate composer.json schema
composer composer-normalize-check Check composer.json normalization
composer composer-normalize-fix Normalize composer.json
composer security-audit Check for vulnerable dependencies

Project Structure

After installation, your project will have:


Configuration

PHPStan

Static analysis runs at maximum level with additional rules:

Testing

Tests use Pest v4 with strict coverage requirements:

Code Style

Laravel Pint enforces PSR-12 with additional rules for clean, consistent code.

Rector

Automated refactoring uses rules from pekral/rector-rules package.


GitHub Actions

The skeleton includes comprehensive CI/CD workflows:

Workflow Purpose
checkers.yml Quality checks and security scanning on PRs, pushes to master, and weekly schedule
Dependabot Automated dependency updates (Composer + GitHub Actions)
release.yml Release automation
stale.yml Marks and closes stale issues/PRs
update-changelog.yml Automated changelog updates

All workflows run on PHP 8.4 and 8.5 (matrix).


Requirements


Contributing

Contributions are welcome! Please read our Contributing Guide before submitting a Pull Request.


License

This package is open-sourced software licensed under the MIT license.


Author

Petr Král


Built with care for the PHP community


All versions of php-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ergebnis/composer-normalize Version ^2.49.0
laravel/pint Version ^1.27.0
nunomaduro/termwind Version ^2
pekral/cursor-rules Version ^0.3
pekral/phpcs-rules Version ^0.4.6
pekral/rector-rules Version ^0.4.7
pestphp/pest Version ^4.3.2
pestphp/pest-plugin-type-coverage Version ^4.0.3
phpstan/extension-installer Version ^1.4.3
phpstan/phpstan Version ^2.1.38
phpstan/phpstan-deprecation-rules Version ^2.0.3
phpstan/phpstan-mockery Version ^2.0
phpstan/phpstan-phpunit Version ^2.0.12
roave/security-advisories Version dev-latest
squizlabs/php_codesniffer Version >=4.0.1
symfony/console Version ^8.0.4
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 pekral/php-skeleton contains the following files

Loading the files please wait ...