Download the PHP package mbcraft/piol without Composer

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

Piol - PHP I/O Library

Piol ( PHP I/O Library ) is a library for managing files, directories and performing common operation on files and directories like copy, move, rename, etc. It was extracted from Frozen framework and has been revised in order to let this code be more useful.

Content :

This package contains :

docs/ <-- API documentation

src/ <-- full documented source code

test/ <-- unit test classes and data

vendor/ <-- empty but ready for composer packages (used for running unit tests)

README.md <-- instructions and description of whole package

composer.json <-- composer configuration

composer.phar <-- instance of composer

config_tests.php <-- configuration file needed for command line test runner

run_tests.sh <-- test runner for linux/unix

run_tests.php <-- web test runner

make_docs.php <-- regenerate docs after code changes

Installation & Usage :

Inside your code simply add the use directives on top of the code files where you need, eg.:

use Mbcraft/Piol/File;

use Mbcraft/Piol/Dir;

the library will load with its default settings (file root jail as PIOL_ROOT_PATH) and everything should work out of the box.

The library has no external dependencies, all used classes are inside the Mbcraft\Piol namespace.

If you define a PIOL_ROOT_PATH as a constant with 'define' directive inside php before library usage you can define what your file root jail directory is. All paths of File's or Dir's will start from this one (so they are relative). The definition of this constant is REQUIRED for this library to work. If the library is used inside a Laravel project, the PIOL_ROOT_PATH is automatically set to the source file root.

Running tests :

Under Linux, type

sudo php composer.phar update ./run_tests.sh

The first command will download libraries necessary for running unit tests (it is not needed for the library to work) while the second one will actually run the unit tests.

Alternatively, you can also run your test on web, loading the run_tests.php web page and setting its folder as web root on your virtual host.

All tests should work out of the box on Linux. On Windows permission tests are disabled due to missing support for permission change of files (php chmod function will lie on its return value, and even inside OS there are problems in changing file permissions due to a completely different permission model).

Features :

Documentation :

You can find the whole API documentation inside the docs/ directory, opening the index.html file with your favorite browser.

Info :

Current version : 2.1.1

Latest changes :

Roadmap :

Credits :

Making of :

Full source code and documentation was written by Marco Bagnaresi. Some help was taken from Zeal and StackOverflow. StackOverflow references are put inside the code when i used it.

Distribution :

I hope you find this library useful. The library is now open source and distributed with MIT license.

-Marco


All versions of piol with dependencies

PHP Build Version
Package Version
No informations.
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 mbcraft/piol contains the following files

Loading the files please wait ....