Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libgraviton/analytics-mongoshell-converter
small script that converts javascript arrays (mongo shell aggregate pipelines in js) into valid PHP classes
https://github.com/libgraviton/analytics-mongoshell-converter
Last synced: 9 days ago
JSON representation
small script that converts javascript arrays (mongo shell aggregate pipelines in js) into valid PHP classes
- Host: GitHub
- URL: https://github.com/libgraviton/analytics-mongoshell-converter
- Owner: libgraviton
- License: mit
- Created: 2018-03-18T20:22:39.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2020-10-29T13:08:35.000Z (about 4 years ago)
- Last Synced: 2024-12-12T20:09:39.418Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## analytics-mongoshell-converter
**this repository is not fit for public usage!**
it helps us to write complex mongodb aggregation pipelines in a comfortable editor using mongoshell, but
then easily convert it into the form we need in order to use it in php using the mongodb driver - which
doesn't understand mongo shell (and sadly, mongoshell does not support extended json).it parses *.js file using a Lexer and a Parser to generate valid PHP code - one class per pipeline.