Download the PHP package windwalker/io without Composer

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

Windwalker IO

Windwalker IO package is an input & output handler to get request or send output to user terminal.

This package is heavily based on Joomla Input but has modified a lot, please see original concept of Joomla Wiki.

Installation via Composer

Add this to the require block in your composer.json.

Web Input

Mostly, we will need to get request data from http, the $_GET, $_POST or $_REQUEST provides us these data.

But it is very unsafe if we only use super global variables, the Input object can help us get values from these variables and clean every string.

The second argument is default value if request params not exists

Filter

Input use Windwalker Filter package to clean request string, the default filter type is CMD. We can use other filter type:

More filter usage please see: Windwalker Filter

Compact and Get Array

Get data as an array.

Use compact() method

Get And Set Multi-Level

If we want to get value of foo[bar][baz], just use get('foo.bar.baz'):

Get Value From Other Methods

We can get other methods as a new input object.

Get SUPER GLOBALS

See: SUPER GLOBALS

Get method of current request:

Json Input

If you send a request with json body or content-type: application/json, you can use $input->json to get JsonInput and parse json values.

Files Input

The format that PHP returns file data in for arrays can at times be awkward, especially when dealing with arrays of files. FilesInput provides a convenient interface for making life a little easier, grouping the data by file.

Suppose you have a form like:

Normally, PHP would put these in an array called $_FILES that looked like:

FilesInput produces a result that is cleaner and easier to work with:

$files then becomes:

CLI Input & Output

Please see Cli README


All versions of io with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
ext-json Version *
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 windwalker/io contains the following files

Loading the files please wait ....