Skip to main content

PHP Codesniffer standard for Symfony


I have created a standard for Symfony framework to use with PHP code sniffer.

-Download and install PHP code sniffer
http://pear.php.net/package/PHP_CodeSniffer

-Check out the code from subversion
http://subversion.assembla.com/svn/phpsymfony/Symfony%20Code%20sniffer%20standards

-Copy the Symfony directory to the code sniffer standard directory

-Put --standard=Symfony for validating the file using Symfony coding standards

$ phpcs --standard=Symfony /path/to/code/myfile.php



Popular posts from this blog

SalesForce Single Sign On With Symfony

Introduction Single Sign-On is a process that allows network users to access all authorized network resources without having to separately log in to each resource. Single Sign-On also gives your organization the ability to integrate with an external identity management system or perform web based single sign on to Force.com. How Single Sign-On Works The high-level process for authenticating users via Single Sign-On is as follows: 1. When a user tries to log in—either online or using the API—Salesforce validates the username and checks the user’s profile settings. 2. If the user’s profile has the "Uses Single Sign-on" user permission, then Salesforce does not authenticate the username with the password. Instead, a Web Services call is made to the user’s single sign-on service, asking it to validate the username and password. 3. The Web Services call passes the username, password, and sourceIp to a Web Service defined for your organization. (sourceIp is the IP address that ori...

BITSONTHERUN - Hassle-free video hosting

Bits on the Run is a clear and powerful system for converting, managing and streaming video on your site. http://www.bitsontherun.com/ These features highlight why Bits on the Run is a full-fledged yet easy to work with videohosting solution. Find out why we are easier to set up, more flexible, cheaper and better to integrate than competing products. High-Quality Video Custom Video Players Flexible Playlists Hands-on support Easy Workflow Extensive API Effective Advertising Clear Pricing