PHPackages                             petk/php-skeleton - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. petk/php-skeleton

ActiveProject

petk/php-skeleton
=================

Skeleton for PHP libraries, packages and components

v0.1.0(11y ago)1883MITPHP

Since Nov 15Pushed 2y ago6 watchersCompare

[ Source](https://github.com/petk/php-skeleton)[ Packagist](https://packagist.org/packages/petk/php-skeleton)[ RSS](/packages/petk-php-skeleton/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP skeleton
============

[](#php-skeleton)

[![Test workflow](https://github.com/petk/php-skeleton/actions/workflows/tests.yaml/badge.svg)](https://github.com/petk/php-skeleton/actions/workflows/tests.yaml/badge.svg)

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](https://github.com/thephpleague/skeleton) and [php.skeleton](https://github.com/koriym/PHP.Skeleton).

php-skeleton uses [Semantic Versioning](http://semver.org)

Installation
------------

[](#installation)

```
$ composer create-project petk/php-skeleton ./project 'dev-master'
```

Usage
-----

[](#usage)

After creating the skeleton project directory, you can start customizing it.

For example, create `index.php` and so on:

```
