PHP Classes
elePHPant
Icontem

File: phpcf-src/phpcf.php

Recommend this page to a friend!
  Classes of Alex Krash  >  PHP Code formatter  >  phpcf-src/phpcf.php  >  Download  
File: phpcf-src/phpcf.php
Role: Example script
Content type: text/plain
Description: Application script
Class: PHP Code formatter
Reformat PHP code according to standard options
Author: By
Last change:
Date: 4 years ago
Size: 314 bytes
 

Contents

Class file image Download
<?php
/**
 * CLI interface for PHPCF
 * @maintainer Alexander Krasheninnikov <a.krasheninnikov@corp.badoo.com>
 */

require_once __DIR__ . '/src/init.php';

try {
    exit(
Phpcf\Cli\Handler::create()->handle($argv));
} catch (\
Exception $Error) {
   
fwrite(STDERR, $Error->getMessage() . PHP_EOL);
    exit(
1);
}