Skip to content

chapeupreto/phpcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

phpcheck

phpcheck is a simple shell script written in Bash that helps you to lint your .php files in batch in order to check if there's any .php files with syntax errors.

Requirements

  • Unix-like OS
  • Bash
  • PHP

Installation

phpcheck can be installed globally by doing the following steps:

chmod +x phpcheck.sh
mv phpcheck.sh /usr/local/bin/phpcheck

Usage

Once phpcheck is installed, one can simply execute something like:

phpcheck /dir/where/my/php/files/are/

This will lint all .php files in the selected directory and it will outputs the ones with syntax errors.

If no argument is supplied, then working directory will be used by default.

You can also lint just a single file:

phpcheck myAwesomeFile.php

Contribute

Found this useful and wan't to make it better? Please fork this repo and pull request!

About

lint .php files in batch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages