graviton / analytics-mongoshell-converter
small script that converts a mongoshell compatible aggregate array to php classes
Installs: 36
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:cli
Requires
- php: >=7.2
- doctrine/lexer: ^1.0
- nette/php-generator: ^3.2
- symfony/console: ^4.1
- symfony/filesystem: ^4.1
- symfony/finder: ^4.1
- symfony/process: ^4.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-29 05:16:30 UTC
README
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.