Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Reasno authored Jun 1, 2020
1 parent aa29a23 commit 2c4cb8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
composer require reasno/fastmongo
```

MongoDB extension is ***NOT*** required. Hyperf and Swoole is required.
MongoDB extension is ***NOT*** required.

## Configuration

Just set environmental variable MONGODB_URI. (Defaults to `mongodb://127.0.0.1:27017`)
Just set the environmental variable MONGODB_URI. (Defaults to `mongodb://127.0.0.1:27017`)

## API List

Expand Down Expand Up @@ -40,7 +40,7 @@ class IndexController
$col->deleteOne(['gender' => 'male']);
$col->deleteMany(['age' => 15]);
$col->drop();
// if there is a command you cannot find, use runCommand or runCommandCursor.
// if there is a command not yet supported, use runCommand or runCommandCursor.
$client->my_database->runCommand(['ping' => 1]);
return $client->my_database->runCommandCursor(['listCollections' => 1]);
}
Expand Down

0 comments on commit 2c4cb8e

Please sign in to comment.