Download the PHP package akbarali/data-object without Composer

On this page you can find all versions of the php package akbarali/data-object. 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 data-object

INSTALL

TODO

Done ? Name Version
:white_check_mark: Add createProperty 2.5
:white_check_mark: Add command to create DataObject via Eloquent Model or Database Tables 2.6.5
:white_large_square: Add command to create DataObject via PHP Array In the future
:white_large_square: Add creation without converting the Eloquent Model to an array. In the future

USAGE

Array create Data Object

Laravel model create Data Object

Json create Data Object

Laravel Relation BelongsTo or HasOne

Create StoreData

UserData

RoleData

Note: If you want to turn the relation into a DataObject, you should open a realton to the model and get that relation with. Then U is also converted to data object

Laravel Relation HasMany

ProductData

StoreData

DataObject To array

DataObjec To SnakCase

In a model, created_at is usually use Illuminate\Support\Carbon;. You can also pass created_at to Carbon.

2.0 version

Supported Readonly Properties

Error: Cannot modify readonly property App\DataObjects\HistoryData::$id

2.2 version

Adding: fromModel fromJson fromArray

Add static function arrayToClassProperty

Return string: public readonly int $id;public string $full_name;

2.5 version

createProperty method added to create a property return string and bug fix arrayToClassProperty

2.6.2 version

Add command create DataObject

Install

Add DataObjectProvider to /config/app.php providers

DataObject create console command

Models Create DataObject

Tables Create DataObject

Search Table and create DataObject

Search Model and create DataObject

2.6.5 version

Add --model and --table options to create DataObject

2.8.2 version

Add toArrayForgetProperty add new method.


All versions of data-object with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
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 akbarali/data-object contains the following files

Loading the files please wait ...