Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add GitHub workflows, gitignore, and PHP CS Fixer config

+95
+24
.github/workflows/code-style.yml
··· 1 + name: Code Style 2 + 3 + on: 4 + pull_request: 5 + branches: [ main, dev ] 6 + 7 + jobs: 8 + php-cs-fixer: 9 + runs-on: ubuntu-latest 10 + 11 + steps: 12 + - name: Checkout code 13 + uses: actions/checkout@v4 14 + 15 + - name: Setup PHP 16 + uses: shivammathur/setup-php@v2 17 + with: 18 + php-version: 8.3 19 + extensions: gmp, mbstring, json 20 + coverage: none 21 + tools: php-cs-fixer 22 + 23 + - name: Run PHP CS Fixer 24 + run: php-cs-fixer fix --dry-run --diff --verbose
+30
.github/workflows/tests.yml
··· 1 + name: Tests 2 + 3 + on: 4 + pull_request: 5 + branches: [ main, dev ] 6 + 7 + jobs: 8 + test: 9 + runs-on: ubuntu-latest 10 + 11 + name: Tests (PHP 8.2 - Laravel 12) 12 + 13 + steps: 14 + - name: Checkout code 15 + uses: actions/checkout@v4 16 + 17 + - name: Setup PHP 18 + uses: shivammathur/setup-php@v2 19 + with: 20 + php-version: 8.2 21 + extensions: gmp, mbstring, json 22 + coverage: none 23 + 24 + - name: Install dependencies 25 + run: | 26 + composer require "laravel/framework:^12.0" "orchestra/testbench:^10.0" --no-interaction --no-update 27 + composer update --prefer-stable --prefer-dist --no-interaction 28 + 29 + - name: Execute tests 30 + run: vendor/bin/phpunit
+6
.gitignore
··· 1 + .DS_Store 2 + .phpunit.cache 3 + .phpunit.result.cache 4 + .php-cs-fixer.cache 5 + composer.lock 6 + /vendor
+35
.php-cs-fixer.php
··· 1 + <?php 2 + 3 + use PhpCsFixer\Config; 4 + use PhpCsFixer\Finder; 5 + 6 + $finder = Finder::create() 7 + ->in(__DIR__ . '/src') 8 + ->in(__DIR__ . '/tests') 9 + ->name('*.php') 10 + ->notName('*.blade.php') 11 + ->ignoreDotFiles(true) 12 + ->ignoreVCS(true); 13 + 14 + return (new Config()) 15 + ->setRules([ 16 + '@PSR12' => true, 17 + 'array_syntax' => ['syntax' => 'short'], 18 + 'ordered_imports' => ['sort_algorithm' => 'alpha'], 19 + 'no_unused_imports' => true, 20 + 'not_operator_with_successor_space' => true, 21 + 'trailing_comma_in_multiline' => true, 22 + 'phpdoc_scalar' => true, 23 + 'unary_operator_spaces' => true, 24 + 'binary_operator_spaces' => true, 25 + 'blank_line_before_statement' => [ 26 + 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], 27 + ], 28 + 'phpdoc_single_line_var_spacing' => true, 29 + 'phpdoc_var_without_name' => true, 30 + 'method_argument_space' => [ 31 + 'on_multiline' => 'ensure_fully_multiline', 32 + 'keep_multiple_spaces_after_comma' => true, 33 + ], 34 + ]) 35 + ->setFinder($finder);