Skip to content

Commit 2a60634

Browse files
committed
update install section in the docs
1 parent 118212c commit 2a60634

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/getting-started.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ permalink: /docs/getting-started/
88
# Installation
99
To install php-graphql, you basically have two options. You can either use composer or git submodules.
1010

11-
Composer (coming soon):
11+
**Composer**:
1212
````bash
1313
composer require joonlabs/php-graphql
1414
````
1515

16-
Git-Submodule
16+
**Git-Submodule**
1717
````bash
1818
git submodule add https://github.com/joonlabs/php-graphql.git
1919
````
20+
***Notice:** When using this package via Git-Submodules, a custom autoloader is required. **php-graphql** comes with an own autoloader as replacement for the PSR-4 autoloader of composer, which can be used like this:*
21+
```php
22+
require 'php-graphql/src/autoloader.php';
23+
```
2024
# Additional Tools
2125
Although it is completely possible to communicate with the GraphQL API via HTTP requests, it is much more convenient to use graphical tools like [Altair](https://github.com/imolorhe/altair) or [GraphiQL](https://github.com/graphql/graphiql), while debugging and developing.
2226
These tools offer syntax highlighting, autocompletion, documentation insights and much more.

0 commit comments

Comments
 (0)