Download the PHP package ofelix03/transformer without Composer

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

Transformer

A simple associative (i.e. a key:value pair) data transformer which transforms the keys of an array data to some other specified keys. It also supports casting of data values to a specified type (e.g integer, boolean, string, \DateTime e.t.c)

Visit [https://ofelix03.github.io/transformer/]()

What This Package Seeks To Achieve

  1. Streamlining the process of transforming data keys.
  2. Reducing cluttering of application controller and business logic with data normalization activities such as transformation of data keys.
  3. Upholding the DRY principle by employing classes for different data keys transformation.

Codes To Support The Package's Claims

Let first start with a code snippet that tries to present what we might normally do without this package.

Now let's try to use Transformer package to streamline and remove the clutter in the above code snippet, even keeping our code DRY in the process.

Installation

  1. Using composer

    NB: Make sure to at the top of the the file you want to use the transformer package in. Exampe: Assuming I'm using this package in a file named main.php, this is what my main.php file would look like:

  2. Using github clone You can also clone the github repository for this package

    Simply follow the laid out steps below. Make sure you already have git environment set up on your machine. You can checkout how to do so on Git's official site

    • Step 1

      Open your terminal and run the git clone command below:

    • Step 2

      Copy the php files inside directory to any location in your app directory structure and require them in this order:

Usage

Other API's on \Ofelix03\Transformer\Tranformer

Casting

The following are the types currently supported for casting data.

  1. Integer (int)
  2. String (string)
  3. Array (array)
  4. Boolean (bool)
  5. DateTime

Contributing

You can help improve this docs by sending me a pull request and hopefully I will merge it in. Also, you spotted an error (syntax or logic error) ? I will be glad to recieve a pull request of a fix of that error. But I would love it if you first open an issue and hopefully if it's not already in the pipes of resolution by me or someone else, I will gladly assign it to you.


All versions of transformer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.15
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 ofelix03/transformer contains the following files

Loading the files please wait ....