Download the PHP package iankuca/node without Composer

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

node.php

An asynchronous PHP framework with an event loop (node.js-like)

Installation

The preferred way is to use composer.

{
  "require": { "iankuca/node": "*" }
}

Or just use this repository directly.

Usage

$ php -f main.php yourfile.php

Examples

Timeouts

This prints AB and adds C after 2 seconds. Then it exits.

HTTP Server

This creates an HTTP server listening on the port 8080. It writes Hello world! to each response. It does not exit by itself.

HTTP Request

This makes an HTTP GET request to http://ifoconfig.me/ip and asynchronously calls the provided callback function when a response object is ready. If waits for response body. Then it exits.

The standard output would be…

status: 200
Array
(...)
XX.XX.XX.XX

Directory Listing

Spawns a child ls -a /tmp process and asynchronously calls the provided callback function when done. Then it exits.

Logging

Since the standard output of the process does not go to the browser, eventual exceptions and warnings are visible in the terminal window. The native exception stringifier is pretty horrible which is why node.php includes its own error formatter. Exceptions are now a lot nicer:

Exception Example

Another addition is the console_log() function which is basically sprintf that outputs to the standard output with an added end-of-line (\n) character.


console_log('%d + %d = %s', 1, 2, 'awesome');
// stdout: 1 + 2 = awesome

All versions of node with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 iankuca/node contains the following files

Loading the files please wait ....