Download the PHP package dmamontov/rararchiver without Composer

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

Latest Stable Version License

In the process version 2.0.

RarArchiver

Class for working with archives RAR. It allows you to add files to the directory, as well as extract, delete, rename, and get content.

Requirements

Installation

1) Install composer

2) Follow in the project folder:

In config composer.json your project will be added to the library dmamontov/rararchiver, who settled in the folder vendor/. In the absence of a config file or folder with vendors they will be created.

If before your project is not used composer, connect the startup file vendors. To do this, enter the code in the project:

Available methods

RarArchiver::__construct

Description

It creates or opens a file and initializes it.

Parameters

Examples

RarArchiver::isRar

Description

Checks whether the file archive RAR.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::getFileList

Description

Gets a list of files in the archive.

Return Values

Returns the filled array on success, or an empty array on failure.

Examples

RarArchiver::addEmptyDir

Description

Adds an empty directory in the archive.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::addFile

Description

Adds a file to a RAR archive from a given path.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::addFromString

Description

Add a file to a RAR archive using its contents.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::buildFromDirectory

Description

Populate a RAR archive from directory contents. The optional second parameter is a regular expression (pcre) that is used to exclude files.

Parameters

Examples

RarArchiver::deleteIndex

Description

Delete an entry in the archive using its index.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::deleteName

Description

Delete an entry in the archive using its name.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::getFromIndex

Description

Returns the entry contents using its index.

Parameters

Return Values

Returns the contents of the entry on success or FALSE on failure.

Examples

RarArchiver::getFromName

Description

Returns the entry contents using its name.

Parameters

Return Values

Returns the contents of the entry on success or FALSE on failure.

Examples

RarArchiver::getNameIndex

Description

Returns the name of an entry using its index.

Parameters

Return Values

Returns the name on success or FALSE on failure.

Examples

RarArchiver::renameIndex

Description

Renames an entry defined by its index.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::renameName

Description

Renames an entry defined by its name.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples

RarArchiver::extractTo

Description

Extract the complete archive or the given files to the specified destination.

Parameters

Return Values

Returns TRUE on success or FALSE on failure.

Examples


All versions of rararchiver with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.11
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 dmamontov/rararchiver contains the following files

Loading the files please wait ....