Download the PHP package tarsana/io without Composer

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

Tarsana Filesystem Package

Build Status Coverage Status Donate Software License

Simple classes to handle Filesystem operations.

Installation

Install it using composer

Handeling Files and Directories

The Filesystem class was designed to be used easily and support call chaining which makes the code more readable.

Checking Paths

Maybe you need to check if a specific path is a file

or a directory

or you just want to know it exists, no matter it's a file or directory

What if you need to check multiple paths at once ?

But what if you want to know the type of a path without having to do multiple checks ?

You can use wildcard pattern as argument to this function and the result will be:

Finding Files and Directories

Now what if you want to get all files and directories corresponding to a pattern ?

You can also manipulate the collection

Handling Files

Well, to handle a file, you should get it first

Notice that this will throw an exception if the file is not found. If you want to create it when missing; specify true in the second argument

You can also get or create multiple files at once

Now that you have the file, you can play with it

Notice that all setters return the same instance to enable call chaining.

Handling Directories

Just like the file, you can get a directory like that

Having a directory, you can play with it

Notice that all setters return the same instance to enable call chaining.

Reading & Writing to Resources

Writer

Tarsana\Filesystem\Resource\Writer gives the possibility to write content to any resource.

Reader

Tarsana\Filesystem\Resources\Reader gives the possibility to read content from any resource. Constructors are the same as Writer but the default resource is STDIN.

Buffer

Tarsana\Filesystem\Resource\Buffer is a Reader and Writer at the same time. If no resource is given, it uses php://memory to store content.


All versions of io 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 tarsana/io contains the following files

Loading the files please wait ....