Download the PHP package als/path without Composer

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

Als/Path

Path Component.


Documentations

Properties


Methods


$PROPERTY: delimiter

Provides the path delimiter.


Example


$PROPERTY: separator

Provides the path segment separator.


Example


$PROPERTY: cwd

Contains the absolute path of the 'DOCUMENT_ROOT'.


Example



@METHOD: basename

The ^Als/Path:basename[] methods returns the last portion of a path, similar to the Unix basename command.


Syntax

^Als/Path:basename[path[;ext]]

Params

Example


@METHOD: dirname

The ^Als/Path:dirname[] method returns the directory name of a path, similar to the Unix dirname command.


Syntax

^Als/Path:dirname[path]

Params

Example


@METHOD: extname

The ^Als/Path:extname[] method returns the extension of the path, from the last occurance of the . (period) character to end of string in the last portion of the path. If there is no . in the last portion of the path, or if the first character of the basename of path (see ^Als/Path:basename[]) is ., then an empty string is returned.


Syntax

^Als/Path:extname[path]

Params

Example


@METHOD: format

The ^Als/Path:format[] method returns a path string from an <hash>. This is the opposite of ^Als/Path:parse[].


Syntax

^Als/Path:format[hPath]

Params


The following process is used when constructing the path string:

Example


@METHOD: isAbsolute

The ^Als/Path:isAbsolute[] method determines if path is an absolute path.

If the given path is a zero-length string, false will be returned.


Syntax

^Als/Path:isAbsolute[path]

Params

Example


@METHOD: join

The ^Als/Path:join[] method join all given path segments together using the @normalizes the resulting path.

Zero-length path segments are ignored. If the joined path string is a zero-length string then '.' will be returned, representing the current working directory.


Syntax

^Als/Path:join[path1;path2[;...]]

Params

Example


@METHOD: normalize

The ^Als/Path:normalize[] method normalizes the given path, resolving '..' and '.' segments.

When multiple, sequential path segment separation characters are found, they are replaced by a single instance of the path segment separator. Trailing separators are preserved.

If the path is a zero-length string, '.' is returned, representing the current working directory.


Syntax

^Als/Path:normalize[path]

Params

Example


@METHOD: parse

The ^Als/Path:parse[] method returns an <hash> whose properties represent significant elements of the path.

The returned <hash> will have the following properties:


Syntax

^Als/Path:parse[path]

Params

Example


@METHOD: relative

The ^Als/Path:relative[] method returns the relative path from from to to. If from and to each resolve to the same path (after calling ^Als/Path:resolve[] on each), a zero-length string is returned.

If a zero-length string is passed as from or to, the current working directory will be used instead of the zero-length strings.


Syntax

^Als/Path:relative[from;to]

Params

Example


@METHOD: resolve

The ^Als/Path:resolve[] method resolves a sequence of paths or path segments into an absolute path.

The given sequence of paths is processed from right to left, with each subsequent path prepended until an absolute path is constructed. For instance, given the sequence of path segments: /foo, /bar, baz, calling ^Als/Path:resolve[/foo;/bar;baz] would return /bar/baz.

If after processing all given path segments an absolute path has not yet been generated, the current working directory is used.

The resulting path is normalized and trailing slashes are removed unless the path is resolved to the root directory.

Zero-length path segments are ignored.

If no path segments are passed, ^Als/Path:resolve[] will return the absolute path of the current working directory.


Syntax

^Als/Path:resolve[[path[; ...]]

Params

Example



References



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

Loading the files please wait ....