{"id":20512199,"url":"https://github.com/nidup/manipulate-json-data-in-php","last_synced_at":"2026-05-08T08:35:45.156Z","repository":{"id":72831159,"uuid":"473705043","full_name":"nidup/manipulate-json-data-in-php","owner":"nidup","description":"Code examples for the tutorial How to Read, Decode, Encode, Write JSON Data in PHP?","archived":false,"fork":false,"pushed_at":"2022-03-24T21:33:09.000Z","size":1760,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T22:46:22.622Z","etag":null,"topics":["json","php","php8","tutorial"],"latest_commit_sha":null,"homepage":"https://www.nidup.io/blog/manipulate-json-files-in-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nidup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-24T17:20:50.000Z","updated_at":"2024-07-18T13:06:58.000Z","dependencies_parsed_at":"2023-02-26T23:01:06.900Z","dependency_job_id":null,"html_url":"https://github.com/nidup/manipulate-json-data-in-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nidup/manipulate-json-data-in-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-json-data-in-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-json-data-in-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-json-data-in-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-json-data-in-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidup","download_url":"https://codeload.github.com/nidup/manipulate-json-data-in-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidup%2Fmanipulate-json-data-in-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32773342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","php","php8","tutorial"],"created_at":"2024-11-15T20:40:18.227Z","updated_at":"2026-05-08T08:35:45.131Z","avatar_url":"https://github.com/nidup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Manipulate JSON Data in PHP 🐘\n\nCode examples for the tutorial [How to Read, Decode, Encode, and Write JSON Files in PHP?](https://www.nidup.io/blog/manipulate-json-files-in-php)\n\nThe code is packaged as a simple Symfony application with cli commands.\n\nThis series also proposes other PHP data integration tutorials:\n- [How to Read and Write CSV Files in PHP?](https://www.nidup.io/blog/manipulate-csv-files-in-php)\n- [How to Read and Write Excel Files in PHP?](https://www.nidup.io/blog/manipulate-excel-files-in-php)\n- [How to Use Google Sheets API in PHP?](https://www.nidup.io/blog/manipulate-google-sheets-in-php-with-api)\n\n## Installation 📦\n\nDownload the source code:\n\n```\ngit clone git@github.com:nidup/manipulate-json-data-in-php.git\ncd manipulate-json-data-in-php\n```\n\nThen the installation comes into 2 flavors, directly on your host or using docker.\n\nOnce installed the commands are the same, some docker shortcuts are provided in `.docker/bin`.\n\n### Install directly on your system (option A) 💻\n\nInstall the PHP dependencies:\n\n```\ncomposer install\n```\n\n### Install with docker \u0026 docker-compose (option B) 🐋\n\nBuild the docker image and install the PHP dependencies:\n\n```\ndocker-compose up -d\n.docker/bin/composer install\n```\n\n## Use the console commands 🚀\n\nUse `bin/console` or `.docker/bin/console` to launch a command.\n\nList the commands:\n```\nbin/console --env=prod\n[...]\nnidup\n  nidup:json:generate-big-file  Generate 500k lines in a JSON file\n  nidup:json:read-big-file      Read a big JSON file and measure time and memory\n  nidup:json:read-file          Read a JSON file\n  nidup:json:write-file         Write a json file\n\n[...]\n```\n\nLaunch a command:\n```\nbin/console nidup:json:read-file --env=prod\n```\n\nWe use the prod environment here to have the most efficient execution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Fmanipulate-json-data-in-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidup%2Fmanipulate-json-data-in-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidup%2Fmanipulate-json-data-in-php/lists"}