Download the PHP package asko/elejs without Composer

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

EleJs

A library that transforms PHP code into JavaScript code, enabling you to write your front-end in your back-end.

Note that it merely transforms PHP into JavaScript, meaning that the behavior of code changes according to the differences between the PHP and JavaScript runtimes. A lot of (most of) stuff is missing, especially when it comes to JS interop definitions. That said, a proof of concept is working, and demonstrates that it is indeed possible to transpile PHP into JavaScript.

Installation

Usage

Or:

If you also include other PHP files within your source PHP file / string, make sure to add the third parameter rootDir to where the root of those includes will be, so that you can then do relative path declarations. There is no support for __DIR__ or the like just yet, so only relative paths work.

JavaScript Interop

You can also call JS API's from your PHP, like so:

Which would become the following JavaScript:

Support

To see the current status of things check out:


All versions of elejs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
nikic/php-parser Version ^5.4
crell/fp Version ^1.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 asko/elejs contains the following files

Loading the files please wait ...