Coder Social home page Coder Social logo

php-code-templates's Introduction

PHP Design Templates

This is a library of example code I use to start or plan projects in PHP. It makes the setup quicker and I can reference back to code examples if I am not clear on something I don't use very often.

How To Use This Repo

This repo is simply a place where one can refer back to. There are also some bits of code that will help you get started Some IDE's and plugins will also do this and may work better.

Usage Agreement

Please use this repo in any way you like. I would appreciate some credit or stars if you found it useful.

Design Pattern Sample Code

These are simple examples of design patterns used in PHP and also in popular libraries like Laravel and Symfony. Each one of the examples is a small project on its own.

All code assumes PHP version 8.2.

PHP Basic Object Orientated Sample Code

This is a single app which will have several samples for object orientated PHP code in it. This is useful for referencing back to and a great place to practice new PHP language features.

Quickstart Project Boilerplate

This is the setup of a boilerplate project to get started with a project from scratch.

PHP Module Boilerplate

This is a boilerplate to quickly get started with a simple PHP Module which can be published on Packagegist.

Laravel Module Boilerplate

A quickstart boilerplate to create a new Laravel module.

CLI Boilerplate

This is a boilerplate for a CLI application created in PHP.

Symfony var-dumper

A very nice var dumper which can easily be added to projects to make them simpler to debug.

composer require symfony/var-dumper

Now you can use the dd() method just like you would in something like Symfony or Laravel.

dd($someVariable);

PHPUnit Setup

composer require --dev phpunit/phpunit

Other PHP Helper Templates

Licence Templates

.editorconfig

EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems.

Humans.txt

It's an initiative for knowing the people behind a website. It's a TXT file that contains information about the different people who have contributed to building the website.

HTML5 Boilerplate

  • HTML5BOILERPLATE - HTML5 Boilerplate helps you build fast, robust, and adaptable web apps or sites. Kick-start your project with the combined knowledge and effort of 100s of developers, all in one little package.B

php-code-templates's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.