Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danmadeira/tutorial-mongodb-php
Código-fonte do tutorial MongoDB e PHP da ZetCode.
https://github.com/danmadeira/tutorial-mongodb-php
mongo mongodb php tutorial zetcode
Last synced: about 2 months ago
JSON representation
Código-fonte do tutorial MongoDB e PHP da ZetCode.
- Host: GitHub
- URL: https://github.com/danmadeira/tutorial-mongodb-php
- Owner: danmadeira
- Created: 2020-05-01T00:40:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T00:42:38.000Z (over 4 years ago)
- Last Synced: 2023-10-20T07:51:53.848Z (about 1 year ago)
- Topics: mongo, mongodb, php, tutorial, zetcode
- Language: PHP
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tutorial do MongoDB com PHP da ZetCode
Códigos de exemplo do tutorial da ZetCode sobre como trabalhar com MongoDB no PHP.
### Como começar:
Pelo MongoDB shell, o tutorial instrui a criar a base e inserir os dados.
```
$ mongo testdb
MongoDB shell version: 2.4.9
connecting to: testdb
> db
testdb
> db.cars.insert({name: "Audi", price: 52642})
> db.cars.insert({name: "Mercedes", price: 57127})
> db.cars.insert({name: "Skoda", price: 9000})
> db.cars.insert({name: "Volvo", price: 29000})
> db.cars.insert({name: "Bentley", price: 350000})
> db.cars.insert({name: "Citroen", price: 21000})
> db.cars.insert({name: "Hummer", price: 41400})
> db.cars.insert({name: "Volkswagen", price: 21600})
```### Referência:
- ZetCode MongoDB PHP tutorial. Disponível em: