Based on thephpleague Definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "name/example", | |
| "description": "demo", | |
| "type": "project", | |
| "license": "MIT", | |
| "authors": [ | |
| { | |
| "name": "Your Name", | |
| "email": "youremial@gmail.com" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Remove Laravel Comments | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Just made a new Laravel project, but don't want all those big | |
| | comment blocks? Put this in the root of your project and run | |
| | "php remove_laravel_comments.php" | |
| | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // OpenSSL PHP Extension | |
| // PDO PHP Extension | |
| // Mbstring PHP Extension | |
| // Tokenizer PHP Extension | |
| // XML PHP Extension | |
| // SQLite PHP Extension (for SQLite3 support) | |
| $extensionsList = [ |
Here's the base sanitizer:
<?php
namespace FooProject\Internal\Sanitizers;
abstract class BaseSanitizer
{
/**
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // | |
| // Generate tests according to files in src/ | |
| // usefull on writin tests for packages | |
| // | |
| // Author: Alpha Olomi | |
| // Date: 4 Nov 2022 | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "preset": "psr12", | |
| "rules": { | |
| "align_multiline_comment": true, | |
| "array_indentation": true, | |
| "array_syntax": true, | |
| "blank_line_after_namespace": true, | |
| "blank_line_after_opening_tag": true, | |
| "combine_consecutive_issets": true, | |
| "combine_consecutive_unsets": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Services; | |
| class Pdf extends \Spatie\PdfToText\Pdf | |
| { | |
| public function __construct(?string $binPath = '/usr/bin/pdftotext') | |
| { | |
| if (!file_exists($binPath)) { | |
| $binPath = '/usr/local/bin/pdftotext'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // https://twitter.com/timacdonald87/status/1615918480976662529/photo/1 | |
| class Foo | |
| { | |
| static function bar() | |
| { | |
| return Bar::class; | |
| } | |
| } |