Download the PHP package machitgarha/phirs without Composer

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

Phirs

Continuous Integration

A library providing platform-specific user directory paths, such as config and cache. Inspired by dirs-rs.

Features

Why?

When writing a console application (or even a graphical one; who knows, people might start writing graphical applications in PHP in near future), sometimes you need to have a location to:

For the best results, the locations should be cross-platform, permanent, accessible (i.e. both readable and writable), well-known and non-relative.

Phirs can help you in these situations.

Note: The library does not guarantee that all provided paths meet all the conditions above, although it helps you achieving them. The reason is performance, and the fact that different users may have different needs (e.g. one may check for a path to exist, one may suppose it to exist). Theoretically, in a standard environment and for standard paths, all these conditions are met (although the directories might not actually exist).

But There Is Another Library!

Why not just using Basedir?

Go back and see no longer available on Packagist, for some unknown reason.

Requirements

PHP 7.4+ only.

Installation

Easy like every other PHP library:

Basic Usage

A simple use for most common cases is the following:

What a provider is? Why we use createStandard()? Can I extend it and map a specific platform to my own provider? See Usage Guide for more details.

Platform Support

Platform Having a Provider? Supported? Working? Having a Specialized Provider?
GNU/Linux distributions ✅ ✅ ✅ ✅
Windows ✅ ✅ ✅ ✅
Mac OS ✅ ✅ ✅ ✅
Termux on Android ✅ ✅ ✅❕(1) ❌
BSD ✅ ❌ ❔ ❌
Solaris ✅ ❌ ❔ ❌
Android ✅ ❌ ❓ ❌
iOS ✅ ❌ ❓ ❌

Notes

  1. It might not be exactly what you or users expect; e.g. pictures directory path is inside Termux home, not the internal SDCard (i.e. /sdcard).

Contribute!

In a world like this, everyone should be a contributor. So, start helping this project by creating an issue, forking and improving it, or simply introducing it to your PHP developer friends!

If you want to get an overall overview of the code, go and read Usage Guide.

For the best results, see Contribution Guidelines.

License

The project is licensed under Apache 2.0 License.


All versions of phirs with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
symfony/filesystem Version 5.4
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 machitgarha/phirs contains the following files

Loading the files please wait ...