Download the PHP package nubs/sensible without Composer

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

sensible

A PHP library for finding sensible user programs, like editor, pager, and browser.

Build Status Scrutinizer Code Quality Code Coverage

Latest Stable Version Total Downloads License

Dependency Status

Requirements

This library requires PHP 5.6, or newer.

Installation

This package uses composer so you can just add nubs/sensible as a dependency to your composer.json file or execute the following command:

Supported Program Types

This library supports opening a text editor (like vim), a pager (like more), and a browser (like firefox).

Program Factories

The recommended way to initialize one of the supported program loaders is to use the included factories.

Browser Factory

The browser factory uses a command locator (via which) to determine which browsers are available. The default list of browsers is

A simple example for creating a browser object:

If you want to override the default list of browsers:

Editor Factory

The editor factory uses your EDITOR environment variable if set, otherwise it uses a command locator (via which) to determine which editors are available. The default list of editors is

A simple example for creating a editor object:

If you want to override the default list of editors:

Pager Factory

The pager factory uses your PAGER environment variable if set, otherwise it uses a command locator (via which) to determine which pagers are available. The default list of pagers is

A simple example for creating a pager object:

If you want to override the default list of pagers:

Using the programs

Once you've created the program type with its strategy for locating the sensible command for the user, you can use it to work with files/data/etc.

Browser

A browser can be executed to load a supported URI. For example:

Editor

The editor can be used to edit files. For example:

There is also a convenient shorthand for editing a string in an editor by means of a temporary file. For example:

This will return the input unaltered if the process does not exit successfully.

Pager

The pager passes the file or string to the configured pager for convenient viewing. For example, for a file source:

Or for a string source:

CLI Interface

There is also a CLI interface for Linux systems that imitates Ubuntu's sensible-* commands. It is available as nubs/sensible-cli.

License

sensible is licensed under the MIT license. See LICENSE for the full license text.


All versions of sensible with dependencies

PHP Build Version
Package Version
Requires php Version ~5.6 || ~7.0
nubs/which Version ~1.0
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 nubs/sensible contains the following files

Loading the files please wait ....