Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.