2017 © Pedro Peláez
 

library permcheck

PermCheck is a tool to validate the executable bit of files in a PHP project

image

existenznl/permcheck

PermCheck is a tool to validate the executable bit of files in a PHP project

  • Friday, June 15, 2018
  • by eXistenZNL
  • Repository
  • 0 Watchers
  • 2 Stars
  • 11,666 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 12 Versions
  • 9 % Grown

The README.md

PermCheck

Build Status Packagist Packagist Packagist Sponsors, (*1)

About

PermCheck is a little tool that checks if the files in a project have the executable bit set properly. It's available for PHP versions 5.6 and up (Version 1.0 goes back to PHP 5.3), and is very light on dependencies, so you should be able to add it to nearly any project., (*2)

PermCheck aims to prevent inconsistent executable bits and thus random executable files in a project, which makes a project more consistent and more secure., (*3)

Installation

PermCheck can be added as a composer package by running:, (*4)

composer require --dev existenznl/permcheck

Configuration

PermCheck uses a XML configuration file which contains the sections directories and executables., (*5)

The directories section should contain all project directories that are to be checked, and the executables section should contain all files that are supposed to be executable. All files that are found but are not in the executables section, are considered to be expected non executable., (*6)

An example:, (*7)

<permcheck>
    <excludes>
        <dir>.git</dir>
        <dir>vendor/</dir>
        <file>dontcare.sh</file>
    </excludes>
    <executables>
        <file>cli/console</file>
    </executables>
</permcheck>

In the example configuration above, everything but the dirs .git and vendor and the file dontcare.sh is validated, and only the file cli/console must be executable., (*8)

If it's not, PermCheck will issue an error., (*9)

If any other files are executable, PermCheck will issue an error., (*10)

Usage

With a configuration XML stored somewhere in your codebase, we can now start using PermCheck., (*11)

Executing permcheck is straightforward by running the command with the required / needed flags and options., (*12)

vendor/bin/permcheck <--config|-c=...> [--directory|-d=...], (*13)

PermCheck makes use of the Symfony 2 Console Component so the flags and options can be specified in the various formats outlined in the SF2 Console Component documentation., (*14)

The following options and flags are available:, (*15)

Option/flag Shorthand Mandatory Description
--config -c Yes The location of the configuration XML.
--directory -d No De location of the base directory, defaults to the current working directory.

Bugs, questions, and improvements

If you found a bug or have a question, please open an issue on the GitHub Issue tracker. Improvements can be sent by a Pull Request against the develop branch and are greatly appreciated!, (*16)

The Versions

15/06 2018

dev-master

9999999-dev

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

15/06 2018

2.0.0

2.0.0.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

29/07 2017

dev-develop

dev-develop

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

20/01 2016

1.0.8

1.0.8.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

19/01 2016

1.0.7

1.0.7.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

08/01 2016

1.0.6

1.0.6.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

08/01 2016

1.0.5

1.0.5.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

08/01 2016

1.0.4

1.0.4.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

08/01 2016

1.0.3

1.0.3.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

08/01 2016

1.0.2

1.0.2.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

07/01 2016

1.0.1

1.0.1.0

PermCheck is a tool to validate the executable bit of files in a PHP project

  Sources   Download

MIT

The Requires

 

The Development Requires

07/01 2016

1.0.0

1.0.0.0

PermCheck is a tool to validate the executable bit of project files

  Sources   Download

MIT

The Requires

 

The Development Requires