petk / php-skeleton
Skeleton for PHP libraries, packages and components
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 8
Forks: 3
Open Issues: 0
Type:project
This package is auto-updated.
Last update: 2025-01-07 22:56:04 UTC
README
Creating PSR-4 compliant PHP package or library with Composer the easy way.
This package provides a common folder structure and belonging files that are used for creating a modern PHP package/library that is PSR-4 compliant.
There is no recommended or standard folder and files structure for PHP packages but there are good practices. This repository provides initial skeleton for your PHP libraries and packages.
Inspired by phpleague/skeleton and php.skeleton.
php-skeleton uses Semantic Versioning
Installation
$ composer create-project petk/php-skeleton ./project 'dev-master'
Usage
After creating the skeleton project directory, you can start customizing it.
For example, create index.php
and so on:
<?php require __DIR__ . '/../vendor/autoload.php'; use YourNamespace\Application; $application = new Application(); // ...
Read also the documentation for more information how to use php-skeleton.
License
This project is licensed under the MIT license.