Download the PHP package mauris/packer without Composer

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

Packer-PHP

Simple Key-Value Storage for PHP.

Packer aims to be a zero-config, zero-install and works as PHP works library that developers can quickly pull into their project for use immediately for small and medium scaling usage.

Build Status

Installation via Composer

To use Packer in your project, add a dependency to mauris/packer in your project's composer.json file. The following is a minimal sample configuration to use Packer in your project.

{
    "require": {
        "mauris/packer": "1.0"
    }
}

After which run the command:

php composer.phar install

Learn more about Composer.

Usage

Once you have installed Packer as your project's dependencies using Composer, you can use the Packer class directly in your code.

To work with a Packer file, you create an instance of Packer like this:

$packer = new Packer\Packer('config.pack');

Writing / Overwriting

To write a key and value entry to the Packer file, simply use the write($key, $value) method like this:

$packer->write('autorun', false);

Reading

To fetch a value from a Packer file, use the read($key) method.

$autorun = $packer->read('autorun');

Deleting

To delete a value from the Packer file:

$packer->delete('autorun');
// $packer->exist('autorun') === false

Fetch all keys

To iterate through the Packer file, you can fetch the keys using the keys() method:

echo '<ul>';
foreach($packer->keys() as $key){
    echo '<li>' . $packer->read($key) . '</li>';
}
echo '</ul>';

Clearing

To remove all entries from the Packer file:

$packer->clear();

License

Packer is released open source under the New BSD 3-Clause License.


All versions of packer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 mauris/packer contains the following files

Loading the files please wait ....