• Stars
    star
    179
  • Rank 214,039 (Top 5 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 13 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CI ready PHP project skeleton

A standard PHP project skeleton

Are you tired of copy-pasting your boilerplate PHP code whenever you need to start a new project?

This repository contains a single-line command that will automatically setup for you all the needed code to create a modern, clutter-free and test-oriented PHP package.

It will automatically install the following dependencies:

  • PHPUnit: provides testing framework.
  • PHP_CodeSniffer: detects violations of a defined set of coding standards.
  • PHPMD: analyze your code to detect sub-optimal or overly complex code.
  • PHPStan: discover bugs in your code without running it.
  • Psalm: - another static analysis tool from Vimeo.
  • PHPMetrics provides various metrics.

As well as config file for popular continuous integration tool.

Create Project

To create your project, enter the following command in your console.

composer create-project koriym/php-skeleton <project-path>

You will be asked a few questions to configure the project:

What is the vendor name ?

(MyVendor):Koriym

What is the package name ?

(MyPackage):AwesomePackage

What is your name ?

(Akihito Koriyama):

What is your email address ?

([email protected]):

Composer Commands

Once installed, the project will automatically be configured, so you can run those commands in the root of your application:

test

composer test run phpunit.

tests

composer tests run cs, sa, and test.

coverage, phpdbg, pcov

composer coverage builds test coverage report. coverage use XDebug, phpdbg use phpdbg. pcov use pcov.

cs, cs-fix

composer cs checks coding standard. composer cs-fix fix up the PHP code.

sa

composer sa run static code analysis tools. (phpstan and psalm)

metrics

composer metrics reports code metrics.

build

composer build builds all reports.

More Repositories

1

print_o

An object graph visualizer
PHP
141
star
2

spaceman

Give namespace to un-namespaced legacy php code
PHP
53
star
3

Koriym.Attributes

A reader can read both doctrine/annotations and PHP8 attributes with a doctrine annotation interface.
PHP
40
star
4

dii

Dependency Injection Container Plugin for Yii 1
PHP
17
star
5

Koriym.DevPdoStatement

A PdoStatement for Developers
PHP
16
star
6

MaDci

Data, Context and Interaction (DCI) framework for PHP
PHP
15
star
7

Koriym.Baracoa

A JavaScript server side rendering interface for PHP
PHP
12
star
8

future-orientend-programing

JavaScript
9
star
9

php-reactjs-ui

DEPRECATED
JavaScript
9
star
10

Koriym.ReduxReactSsr

DEPRECATED
PHP
9
star
11

Koriym.QueryLocator

Load and manage SQL queries from files
PHP
9
star
12

BEAR.Ace

Ace online editor utility for PHP
PHP
9
star
13

cs

A Coding Standard for PHP_CodeSniffer
PHP
8
star
14

Koriym.HttpConstants

Constants for the HTTP protocol
PHP
8
star
15

Koriym.Loop

Converts iterable data sets (e.g., database results, CSV files) into an entity list generator with loop context (isFirst, isLast, index, iteration)
PHP
7
star
16

Koriym.JsUiSkeleton

A Javascript UI application skeleton for PHP project
JavaScript
6
star
17

Koriym.TicketSan

An example of basic REST application
PHP
6
star
18

Koriym.EnvJson

Set environment variables in JSON with schema
PHP
5
star
19

Koriym.DbAppPackage

BEAR.Sunday project skeleton
PHP
5
star
20

hello-ray-di-for-laravel

Demo code for Ray.Di for Laravel
PHP
4
star
21

gdd2010-pacman

Google Developer Day 2010 (GDD2010) DevQuiz Pacman
PHP
4
star
22

homebrew-brewworks

The homebrew formula installs project-specific dependencies with custom
Ruby
4
star
23

Koriym.Restbucks

RESTBucks app
PHP
3
star
24

PhpOntology

Read the words used in arguments, methods, etc. from the source code.
PHP
3
star
25

v8js-benchmark

Compare the Twig and V8Js powered ReactJS performance.
JavaScript
3
star
26

Koriym.NullObject

A NullObject generator
PHP
3
star
27

BEAR.DemoApps

Demo.* applications for BEAR.Package v0.
PHP
3
star
28

json-schema-connected

A converter that transforms JSON schemas into array shape format, SQL, or Markdown, resolving $ref references.
JavaScript
3
star
29

restapp-spec-skeleton

REST Application Spec Skeleton
PHP
3
star
30

vscode-code-glass

AI-powered code insights for VS Code, enhancing readability with intelligent comments.
TypeScript
3
star
31

gdd11jp

Google Developer Day 2011 Japan Dev Quiz
PHP
2
star
32

rector-tutorial

PHP
2
star
33

deepldoc

A tool that automatically translates your project's documentation into another language.
Go
2
star
34

Koriym.MiniCache

Simplest cache with no expiration
PHP
2
star
35

Koriym.VarType

Dump complex and rich types including array-shape and object-like arrays.
PHP
2
star
36

Koriym.FusionCache

Memory+File hybrid cache system
PHP
2
star
37

php-framework-metric

PHP_Depend results of php framewoks
PHP
2
star
38

Koriym.CsvEntities

PDO - Fetching one to many related tables together
PHP
2
star
39

ext-helloworld

A simple PHP extension that demonstrates basic and advanced "Hello World" functionality.
C
2
star
40

Smarty3

Smarty3 GitHub Mirror
PHP
1
star
41

vdump

anoter var_dump()
PHP
1
star
42

Ray.RayDiForLavael

Ray.Di for Laravel
PHP
1
star
43

html-play

HTML playground - claude 3 artifacts
1
star
44

bearsunday-spike

BEAR.Sunday example code
PHP
1
star
45

Koriym.ParamReader

An attribute/annotation reader for parameters
PHP
1
star
46

hello.gettext

A minimum example code of PHP gettext
PHP
1
star
47

Ray.Annotation

Annotations support for PHP.
PHP
1
star
48

alps

ALPS utility for PHP
PHP
1
star
49

php5.3-libs

A collection of PHP5.3+ only frameworks/libs
1
star
50

Koriym.Now

[DEPRECATED] use ray/indentify-value-module (https://github.com/ray-di/Ray.IdentityValueModule) instead
PHP
1
star
51

Koriym.FakeJsons

Generates fake JSONs from JSON schema in the directory
PHP
1
star
52

MergeClip

Merge text files into AI-friendly clipboard content on Mac
Shell
1
star