Download the PHP package nvan/php-babel-transpiler without Composer

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

NVAN PHP Babel Transpiler


Introduction

This small library is made as an easy and clean way to transpile JS with Babel.

This is not a transpiler as is, it's just a way to call the CLI version of Babel.

How to use

After installing the dependencies, just use composer to include the library into your project:

Then, instance the class passing the folder in which the node modules are placed as the first argument.

Then you can use the functions:

Both functions will return the transpiled code as a string.

Full example:

Dependencies

In order to use this library, you have to install:

Babel should be installed on a relative path for the project, inside or outside of it, but you can use an absolute path in any other place too.

OPTIONAL: To run the tests of this repository, you have to install first the file found in :

On the root folder of this project do (both Windows, Linux and macOS):

Support

Please consider placing an issue on this repository explaining the problem before sending me an email.

If you really need, you can do it: [email protected]

Contributions

You can do a Pull Request to contribute to this project.

Bare in mind that new features are not guatanteed to be added but error corrections are probably instead.

Donate

If you'd like to help me improving this projects, buying new hardware or just buying me a beer, you can donate via PayPal: https://paypal.me/maduranma


All versions of php-babel-transpiler with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
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 nvan/php-babel-transpiler contains the following files

Loading the files please wait ....