Download the PHP package domagoj03/object-creator without Composer

On this page you can find all versions of the php package domagoj03/object-creator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package object-creator

Object Creator

Travis (.com)

Intro

This simple library was first and foremost created because I noticed that I use the funcionallity it provides across several projects and instead of re-writing the logic again and again, I've decided to mold this into a library, mostly for my conveniance, but also publish it as an open-source project in order to help anyone else who might find it useful.

Installation

Packagist PHP from Packagist

Usage

Intended usage is to extend the abstracts of the library and instantiate objects by passing data to your object's constructor. For example, when you receive data as a result of an API call, you might get it as an array or as \stdClass. Then instead of accessing that data as $data['value'], you could acess it as $object->getValue() thus mitigating possible errors and additional checks like isset($data['value']) before using it.

You can find some inspiration inside tests/Helpers

This method proved very handy in situations where I had to handle different data structure received, for example, from an API calls or Webhooks. It's also useful when you have to handle multiple external API integrations.

v1.0

Data as array

Data as stdClass

v0.1 [not recommended]

Tests

vendor/bin/phpunit

Contributing

Contributing is always welcome.

If you have suggestions or problems with usage, you can open up an issue.

If you want to help with the issues, fork the repository, make sure you have latest version of the code and that the current tests pass, create new branch, work on the feature or bug (and add test cases), push the code to your repository and create a PR to this repository master branch mentioning the issue it's resolving.


All versions of object-creator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
symfony/property-access Version ^4.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package domagoj03/object-creator contains the following files

Loading the files please wait ....