Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sepehr-mohseni/strict-types
Adds strict types declaration recursively to your PHP files
https://github.com/sepehr-mohseni/strict-types
composer package php php-library php7 php8
Last synced: 22 days ago
JSON representation
Adds strict types declaration recursively to your PHP files
- Host: GitHub
- URL: https://github.com/sepehr-mohseni/strict-types
- Owner: sepehr-mohseni
- License: mit
- Created: 2023-10-25T13:04:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-25T14:23:49.000Z (about 1 year ago)
- Last Synced: 2024-09-30T18:10:48.612Z (about 1 month ago)
- Topics: composer, package, php, php-library, php7, php8
- Language: PHP
- Homepage: https://packagist.org/packages/sepmni/strict-types
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Strict Types Adder
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Latest Version](https://img.shields.io/packagist/v/sepmni/strict-types)](https://packagist.org/packages/sepmni/strict-types)
[![Total Downloads](https://img.shields.io/packagist/dt/sepmni/strict-types)](https://packagist.org/packages/sepmni/strict-types)The PHP Strict Types Adder is a Composer package that allows you to automatically add `declare(strict_types=1);` to PHP files within a directory recursively. It ensures your PHP files are consistent and have strict type checking enabled without the need for manual editing.
## Features
- Recursively add `declare(strict_types=1);` to PHP files within a specified directory.
- Ignores files that already have a `declare(strict_types=1);` statement.
- Excludes files within the "vendor" folder and those with ".blade.php" in the name.
- Automatically detects and handles existing `