ergebnis / json-printer Goto Github PK
View Code? Open in Web Editor NEW๐ Provides a composer package with a JSON printer, allowing for flexible indentation.
License: MIT License
๐ Provides a composer package with a JSON printer, allowing for flexible indentation.
License: MIT License
php (new Printer)->print($json, ' ')
$json = {"type": "auth-token", "error": "Server error: POST https://wsx.xxxxxxx.net/sms/send
resulted in a 500 Internal Server Error
response:\n{"status":106000,"description":"Unknown error","translatedDescription":null}", "queue": "auth", "token": "XXXXX", "origin": "XXXXXX", "identifier": null, "recipients": [{"email": "[email protected]", "mobile": "11111111", "mobile_country_code": "0047"}], "request_ip": "x.xxx.xx.xxx", "destination": "004711111111", "consignor_id": null, "sms_error_code": null, "sms_error_description": null}
I know that this is probably composer's fault, but I'd like to try anyway here.
In my current situation, I'm using ergebnis/composer-normalize 2.10.0 and ergebnis/json-printer 3.1.1
I would update vendors, but a "composer update" results in:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- ergebnis/composer-normalize[2.10.0, ..., 2.11.0] require ergebnis/json-printer ^3.1.1 -> found ergebnis/json-printer[dev-main] but it does not match the constraint.
- Root composer.json requires ergebnis/composer-normalize ^2.10 -> satisfiable by ergebnis/composer-normalize[2.10.0, 2.11.0].
It's like composer can't find correct versions for this library, looking for "dev-main"
I event did a differen try, creating an empty dir and executing "composer init --no-interaction && composer require ergebnis/json-printer".
This is working with composer 1, not working with composer 2 with following error:
[InvalidArgumentException]
Could not find a version of package ergebnis/json-printer matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.