Skip to content

Commit

Permalink
docs: add example for php
Browse files Browse the repository at this point in the history
  • Loading branch information
PBK-B committed Mar 11, 2023
1 parent 67e4885 commit 82d1adc
Show file tree
Hide file tree
Showing 5 changed files with 740 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/examples/php/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
16 changes: 16 additions & 0 deletions docs/examples/php/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
* @Author: Bin
* @Date: 2023-03-11
* @FilePath: /gpt-zmide-server/docs/examples/php/README.md
-->
# PHP example of using gpt-zmide-server

## Start

edit the `$host` and `$token` field in the ZmideChatgpt class of the <src/example.php> file

```
composer install
php src/example.php
```
20 changes: 20 additions & 0 deletions docs/examples/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "zmide/example",
"type": "project",
"description": "zmide chatgpt example",
"autoload": {
"psr-4": {
"Zmide\\Example\\": "src/"
}
},
"authors": [
{
"name": "PBK-B",
"email": "[email protected]"
}
],
"require": {
"guzzlehttp/guzzle": "^7.0",
"php": "^8.0"
}
}
Loading

0 comments on commit 82d1adc

Please sign in to comment.