phpgt / dataobject Goto Github PK
View Code? Open in Web Editor NEWStructured, type-safe, immutable data transfer.
Structured, type-safe, immutable data transfer.
Because the functionality has been moved to PHP.Gt/Json, the example doesn't make sense any more.
It's a simple repo, so it won't take long!
Not sure if this is in scope of this simple repo, but it would be nice to create an object from a preexisting schema, like JSONSchema or GraphQL or something like that.
Take a look at these other libraries:
Should there be a function that checks whether a key is present?
For retrieving nested objects, so that code intelligence in IDEs can be preserved.
We need to introduce Mess Detector, Code Sniffer and matrix builds.
On line 17 of DataObjectBuilder, there's no check to see if $value
is empty.
$object->getArray("something", "string");
If there is no "something" key in the object, a type error is thrown Argument #1 ($array) must be of type array, null given, called in phpgt/dataobject/src/DataObject.php on line 82
This is a really quick fix. On DataObject, line 78, add :?array
instead of :array
.
When an object is converted into a DataObject, and a custom class is specified to use for the DataObject, this class is not carried on into nested objects.
Should there be a function for getting the type of a key by name?
Dependabot needs to be tamed, as per PhpGt/WebEngine#568
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.