Download the PHP package drewkimberly/php_dtos without Composer

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

PHP Data Transfer Objects (DTOs)

A simple PHP DTO library.

PHP version Build Status Coverage Status

Installation:

Usage:

This library aims to make it easy to create Data Transfer Objects (DTOs). DTOs are simple encapsulations of data, independent of application or domain-specific logic. They are serializable objects, making them a clean way to represent data in the transfer layer of an application (i.e. REST API payloads).

The following table highlights the main classes introduced by this library:

Class Responsibility
\php_dtos\Dto\DtoBase Subclass of all DTOs implemented in an application.
\php_dtos\Dto\DtoCollection Represents a DTO collection in an application. In rare cases this class can be subclassed, but the typical usecase should look something like: new DtoCollection(MyDto::class);, where the collection is instantiated with a reference to the underlying (or collected) DTO instance.
\php_dtos\Json\JsonReader Helper class for safely parsing incoming JSON.

For more information on Data Transfer Objects, see:

Development

Setup

  1. Fork this repository
  2. Clone your forked repository
  3. From the root of your cloned repository run: composer install

Testing

TravisCI is used for CI/CD. The following validations are performed against every Pull Request:

  1. PHPLint
  2. PHP Codesniffer (PSR2 Sniff)
  3. PHPUnit

Deployment

When a tag is cut, TravisCI will deploy the package to packagist.

Contributing

  1. Open an Issue on GitHub.
  2. Open a Pull Request.
    • Make sure the TravisCI build is passing for your PR.
    • Request a Code Review on your PR.

All versions of php_dtos with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 drewkimberly/php_dtos contains the following files

Loading the files please wait ....