GithubHelp home page GithubHelp logo

php-standards's Introduction

Visual Chefs PHP Standards

For all projects, developers should follow PSR-0, PSR-1, PSR-2 coding standards.

In this repository you will find a .editorconfig file. This helps standardize your IDE to what is suggested by this document.

To use this file:

  1. put it in the root of your project.
  2. Get the plugin for your IDE: editorconfig.org

When working on ExpressionEngine or CodeIgniter projects, developers should follow the class and method naming conventions specified by the framework, for compatibility reasons.

All standalone classes should be namespaced for better compatibility and packaging. For ease of writing, the VC namespace should be used, or alternatively VisualChefs if the first is not available. Secondary namespaces are encouraged, in order to better organize code into modules or packages (example: VC\Logger\Logger, VC\Logger\Handler).

/**
 * desc
 *
 * @author
 * @copyright   (C) 2013. All rights reserved.
 * @version     1.0
 */

/**
 * desc
 *
 * @category
 * @package
 * @subpackage
 * @since       1.0
 */
class MyClass
{}
/**
 * My awesome var does the following thing.
 *
 * @var     boolean
 * @scope   protected
 */
protected $my_awesome_var;
/**
 *
 *
 * @param   string   $my_var    A concise description of my_var
 * @return  boolean
 * @access  public
 * @static
 */
public static function myMethod($my_var = 'hello world')
{}

Auth

Debugging

Email

Geographic

  • Geotools comprehensive set of geographic tools.

HTTP

  • Guzzle is a PHP HTTP client & framework.

Logging

  • Monolog sends your logs to files, sockets, inboxes, databases and various web services.

Markdown

Templating

@TODO more to come

php-standards's People

Contributors

douggrubba avatar likeuntomurphy avatar philsturgeon avatar thomscode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-standards's Issues

Examples

  • Class
  • File with functions
  • File with just an array
  • Twig Template

โ“ Any others that would be useful?

Vetted Libraries and Packages

Something that PHP has done so well the last few years are improving the quality of libraries. However there are still a lot of bad options out there. Some we may have even considered high quality years ago, have been replaced.

I added a "Vetted Libraries/Packages" section:

567dd98

I added a couple no-brainers (I hope ๐Ÿ˜•). But I would say to be critical to what we add.

Anyway, a solid list of solutions to common needs I think would make a great addition.

/ @smaida @alexmglover @akuzemchak @vcAndrew @vcmike

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.