https://github.com/graphqlbypop/graphql-query
[READ ONLY] Utilities to transform the query from the GraphQL syntax to the Field query syntax
https://github.com/graphqlbypop/graphql-query
Last synced: 10 months ago
JSON representation
[READ ONLY] Utilities to transform the query from the GraphQL syntax to the Field query syntax
- Host: GitHub
- URL: https://github.com/graphqlbypop/graphql-query
- Owner: GraphQLByPoP
- License: gpl-2.0
- Created: 2020-01-08T09:02:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-15T07:22:37.000Z (almost 4 years ago)
- Last Synced: 2025-05-02T03:34:37.934Z (about 1 year ago)
- Language: PHP
- Size: 192 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# GraphQL Query
Utilities to transform the query from the GraphQL syntax to the Field query syntax
## Install
Via Composer
``` bash
composer require graphql-by-pop/graphql-query
```
## Development
The source code is hosted on the [PoP monorepo](https://github.com/leoloso/PoP), under [`GraphQLByPoP/packages/graphql-query`](https://github.com/leoloso/PoP/tree/master/layers/GraphQLByPoP/packages/graphql-query).
## Usage
Initialize the component:
``` php
\PoP\Root\App::stockAndInitializeModuleClasses([([
\GraphQLByPoP\GraphQLQuery\Module::class,
]);
```
## PHP versions
Requirements:
- PHP 8.1+ for development
- PHP 7.1+ for production
### Supported PHP features
Check the list of [Supported PHP features in `leoloso/PoP`](https://github.com/leoloso/PoP/blob/master/docs/supported-php-features.md)
### Preview downgrade to PHP 7.1
Via [Rector](https://github.com/rectorphp/rector) (dry-run mode):
```bash
composer preview-code-downgrade
```
## Standards
[PSR-1](https://www.php-fig.org/psr/psr-1), [PSR-4](https://www.php-fig.org/psr/psr-4) and [PSR-12](https://www.php-fig.org/psr/psr-12).
To check the coding standards via [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer), run:
``` bash
composer check-style
```
To automatically fix issues, run:
``` bash
composer fix-style
```
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
To execute [PHPUnit](https://phpunit.de/), run:
``` bash
composer test
```
## Static Analysis
To execute [PHPStan](https://github.com/phpstan/phpstan), run:
``` bash
composer analyse
```
## Report issues
To report a bug or request a new feature please do it on the [PoP monorepo issue tracker](https://github.com/leoloso/PoP/issues).
## Contributing
We welcome contributions for this package on the [PoP monorepo](https://github.com/leoloso/PoP) (where the source code for this package is hosted).
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.
## Security
If you discover any security related issues, please email leo@getpop.org instead of using the issue tracker.
## Credits
- [Leonardo Losoviz][link-author]
- [All Contributors][link-contributors]
## License
GNU General Public License v2 (or later). Please see [License File](LICENSE.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/graphql-by-pop/graphql-query.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-GPLv2-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/graphql-by-pop/graphql-query/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/graphql-by-pop/graphql-query.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/graphql-by-pop/graphql-query.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/graphql-by-pop/graphql-query.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/graphql-by-pop/graphql-query
[link-travis]: https://travis-ci.org/graphql-by-pop/graphql-query
[link-scrutinizer]: https://scrutinizer-ci.com/g/graphql-by-pop/graphql-query/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/graphql-by-pop/graphql-query
[link-downloads]: https://packagist.org/packages/graphql-by-pop/graphql-query
[link-author]: https://github.com/leoloso
[link-contributors]: ../../../../../../contributors