2017 © Pedro Peláez
 

project declare_strict_types

PHP7 tool for easy add/remove "declare(strict_types=1)"

image

dypa/declare_strict_types

PHP7 tool for easy add/remove "declare(strict_types=1)"

  • Thursday, September 14, 2017
  • by dypa
  • Repository
  • 2 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 67 % Grown

The README.md

PHP7 tool for easy add/remove "declare(strict_types=1)"

Build Status Latest Stable Version Latest Unstable Version Total Downloads, (*1)

Enable strict typing in your project with one command. Based on PCRE and supports PSR-2., (*2)

WARNING: before run command ensure that you have backup of your files!!!, (*3)

Usage

Install via composer, (*4)

composer require-dev dypa/declare_strict_types, (*5)

Run command to add "declare(strict_types=1)" in all files in specified folders, (*6)

bin/declare_strict_types add --exclude=bar/baz/bah foo/directory bar/baz, (*7)

Also supports remove mode, (*8)

bin/declare_strict_types remove foo/directory, (*9)

PS

You may prefer PHP-CS-Fixer with "declare_strict_types" rule!, (*10)

The Versions

14/09 2017

dev-master

9999999-dev

PHP7 tool for easy add/remove "declare(strict_types=1)"

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar dypa

23/08 2017

1.0.0

1.0.0.0

PHP7 tool for easy add/remove "declare(strict_types=1)"

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar dypa

20/08 2017

0.9.0

0.9.0.0

PHP7 tool for easy add/remove "declare(strict_types=1)"

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar dypa