Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razshare/json-to-php-vscode-plugin
Convert Json data to Php classes.
https://github.com/razshare/json-to-php-vscode-plugin
Last synced: about 1 month ago
JSON representation
Convert Json data to Php classes.
- Host: GitHub
- URL: https://github.com/razshare/json-to-php-vscode-plugin
- Owner: razshare
- License: mit
- Created: 2024-03-05T00:44:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-10T20:17:07.000Z (10 months ago)
- Last Synced: 2024-05-28T13:28:27.563Z (7 months ago)
- Language: JavaScript
- Homepage: https://github.com/tncrazvan/json-to-php-vscode-plugin
- Size: 2.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Json to Php
Convert Json data to Php class definitions.
# How to setup
1. Download the Jtp program from the release page, which you can find [here](https://github.com/tncrazvan/json-to-php/releases).
2. Open your command palette
3. Lookup `Jtp: Set php path` and select your php binary file (php 8.2 or greater).
4. Lookup `Jtp: Set jtp path` and select your `jtp.phar` file.
5. Open a json file (make sure the file's root is not an array but a proper json object).
6. Run `Jtp: Convert current file` from your command palette.