Download the PHP package axy/syspaths without Composer

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

axy\syspaths

Specifying paths within the system.

Latest Stable Version Minimum PHP Version Build Status Coverage Status

Documentation

The library allows to store of the directories structure within a certain system. Inside an application for example.

Define paths in one place makes it easy to change the structure.

API

The library provides a single class axy\syspaths\Paths.

The constructor:

The only required arguments is $root - the root directory of the system.

$patterns

$patterns specifies a list of sub-paths. It can be specified via the constructor (as in the example above). Or by overriding:

Now available autocomplete in IDE.

Or you can define the property $patterns and also specify the argument of the constructor. In this case these two list recursively merged. For example, define a system class and redefine some paths for tests.

Access to paths

Via magic methods.

Patterns

If a path pattern begins with a colon then it is a link to the other path. Such links are processed recursively (circular references are not tracked):

If a path pattern begins with / then it is an absolute path:

Other patterns is relative to the root. www is equivalent to :root:/www.

Nested paths

An array defines a nested object Paths.

For Paths-objects defined __toString():

The nested array must contains the field root. It may be link: 'root' => ':htdocs:/templates'.

The nested array may contains the field __classname for the class of the nested path. By defaults it is axy\syspaths\Paths.

Now we have the full auto-complete: $app->paths->templates->profile.

Links can consist of several components:

Creating paths

Or via the method create (or __invoke):

If specified the second argument $real executed realpath() for the result. If the path is not exists then returned NULL.

Exceptions

In the namespace axy\syspaths\errors.


All versions of syspaths with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
axy/errors Version ~1.0.2
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 axy/syspaths contains the following files

Loading the files please wait ....