Download the PHP package ion/php-trans-porter without Composer

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

PHP Trans-Porter

License: LGPL v3

PHP Trans-Porter is a small utility that trans-ports (get it...?) source code from one PHP version to be used in another.

As someone that does freelance work from time to time, but has a limited amount of it, I became really frustrated with clients' hosting requirements varying between the different PHP versions available (PHP 5.6 to PHP 7.1 and up), and not being able to use new language features (e.g. scalar type hinting) and the potential performance benefits they provide.

Since its sometimes not possible for a client to update their hosted version of PHP (due to multiple, but sometimes questionable reasons :) ), I needed to find a way to stream-line my work-flow so that:

Features

PHP Trans Porter currently features back-porting for PHP versions 5.6, 7.x (7.0 to 7.2), as well as bulk transformations (specify an input directory and an output directory, and all .php files will be converted recursively).

The utility tries to make the least amount of changes possible, but with the goal of generating source code that should not have to be modified again.

The current base version is: PHP 8.2.

Conversion features for PHP 7.3 and above:

Conversion features for PHP 7.2 to PHP 7.1:

Conversion features for PHP 7.1 to PHP 7.0:

Conversion features for PHP 7.0 to PHP 5.6:

All conversions stack up - thus, converting from PHP 7.2 to PHP 5.6, will first it to 7.1, then 7.0 and finally 5.6.

Getting Started

Using Composer:

Make sure Composer is installed - if not, you can get it from here.

First, you need to add ion/php-trans-porter as a dependency in your composer.json file.

To use the current stable version, add the following to download it straight from here:

To use the bleeding edge (development) version, add the following:

Then run the following in the root directory of your project:

php composer.phar install

Prerequisites

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the LGPL-3.0 License - see the LICENSE.md file for details.


All versions of php-trans-porter with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6|^7.0|^8.0
nikic/php-parser Version ^4.17
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 ion/php-trans-porter contains the following files

Loading the files please wait ....