├── src └── DrupalRay.php ├── CHANGELOG.md ├── LICENSE.md ├── .php_cs.dist ├── composer.json └── README.md /src/DrupalRay.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to `drupal-ray` will be documented in this file. 4 | 5 | ## 1.0.0 - 202X-XX-XX 6 | 7 | - initial release 8 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Spatie 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /.php_cs.dist: -------------------------------------------------------------------------------- 1 | in([ 5 | __DIR__ . '/src', 6 | __DIR__ . '/tests', 7 | ]) 8 | ->name('*.php') 9 | ->notName('*.blade.php') 10 | ->ignoreDotFiles(true) 11 | ->ignoreVCS(true); 12 | 13 | return PhpCsFixer\Config::create() 14 | ->setRules([ 15 | '@PSR2' => true, 16 | 'array_syntax' => ['syntax' => 'short'], 17 | 'ordered_imports' => ['sortAlgorithm' => 'alpha'], 18 | 'no_unused_imports' => true, 19 | 'not_operator_with_successor_space' => true, 20 | 'trailing_comma_in_multiline_array' => true, 21 | 'phpdoc_scalar' => true, 22 | 'unary_operator_spaces' => true, 23 | 'binary_operator_spaces' => true, 24 | 'blank_line_before_statement' => [ 25 | 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], 26 | ], 27 | 'phpdoc_single_line_var_spacing' => true, 28 | 'phpdoc_var_without_name' => true, 29 | 'class_attributes_separation' => [ 30 | 'elements' => [ 31 | 'method', 32 | ], 33 | ], 34 | 'method_argument_space' => [ 35 | 'on_multiline' => 'ensure_fully_multiline', 36 | 'keep_multiple_spaces_after_comma' => true, 37 | ], 38 | 'single_trait_insert_per_statement' => true, 39 | ]) 40 | ->setFinder($finder); 41 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "spatie/drupal-ray", 3 | "description": "Debug Drupal applications with Ray", 4 | "keywords": [ 5 | "spatie", 6 | "drupal", 7 | "ray" 8 | ], 9 | "homepage": "https://github.com/spatie/drupal-ray", 10 | "license": "MIT", 11 | "authors": [ 12 | { 13 | "name": "Oliver Davies", 14 | "email": "info@spatie.be", 15 | "homepage": "https://myray.app", 16 | "role": "Developer" 17 | } 18 | ], 19 | "require": { 20 | "php": "^7.4|^8.0" 21 | }, 22 | "require-dev": { 23 | "friendsofphp/php-cs-fixer": "^2.17", 24 | "phpunit/phpunit": "^9.5", 25 | "vimeo/psalm": "^4.3" 26 | }, 27 | "autoload": { 28 | "psr-4": { 29 | "Spatie\\DrupalRay\\": "src" 30 | } 31 | }, 32 | "autoload-dev": { 33 | "psr-4": { 34 | "Spatie\\DrupalRay\\Tests\\": "tests" 35 | } 36 | }, 37 | "scripts": { 38 | "test": "vendor/bin/phpunit", 39 | "test-coverage": "vendor/bin/phpunit --coverage-html coverage", 40 | "format": "vendor/bin/php-cs-fixer fix --allow-risky=yes" 41 | }, 42 | "config": { 43 | "sort-packages": true 44 | }, 45 | "minimum-stability": "dev", 46 | "prefer-stable": true, 47 | "funding": [ 48 | { 49 | "type": "github", 50 | "url": "https://github.com/sponsors/spatie" 51 | } 52 | ] 53 | } 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **THIS PACKAGE IS NOT READY YET, FOR USING RAY IN DRUPAL USE [THE FRAMEWORK AGONSTIC PACKAGE](https://github.com/spatie/ray)** WHICH CAN BE INSTALLED IN ANY DRUPAL APP. 2 | 3 | 4 | [](https://supportukrainenow.org) 5 | 6 | # Debug Drupal applications with Ray 7 | 8 | [![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/drupal-ray.svg?style=flat-square)](https://packagist.org/packages/spatie/drupal-ray) 9 | [![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/spatie/drupal-ray/Tests?label=tests)](https://github.com/spatie/drupal-ray/actions?query=workflow%3ATests+branch%3Amaster) 10 | [![Total Downloads](https://img.shields.io/packagist/dt/spatie/drupal-ray.svg?style=flat-square)](https://packagist.org/packages/spatie/drupal-ray) 11 | 12 | This package can be installed in a Drupal application to send messages to [the Ray app](https://myray.app). 13 | 14 | ## Documentation 15 | 16 | You can find the full documentation on [our documentation site](https://spatie.be/docs/ray). 17 | 18 | ## Testing 19 | 20 | ```bash 21 | composer test 22 | ``` 23 | 24 | ## Changelog 25 | 26 | Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. 27 | 28 | ## Contributing 29 | 30 | Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details. 31 | 32 | ## Security Vulnerabilities 33 | 34 | Please review [our security policy](../../security/policy) on how to report security vulnerabilities. 35 | 36 | ## Credits 37 | 38 | - [Oliver Davies](https://github.com/opdavies) 39 | - [All Contributors](../../contributors) 40 | 41 | ## License 42 | 43 | The MIT License (MIT). Please see [License File](LICENSE.md) for more information. 44 | --------------------------------------------------------------------------------