Download the PHP package jeroen/file-fetcher without Composer

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

FileFetcher

Build Status codecov Type Coverage Latest Stable Version Download count

The philosophy behind this library is to provide a very basic interface (FileFetcher) that is ideal for 95% of network access cases, such as your typical file_get_contents call. It explicitly does not try to deal with the more complex cases.

Several basic implementations are provided. These include the test doubles you typically need to test services that use the FileFetcher interface. You can easily create an adapter to a more heavy network access library (such as Guzzle) in your own codebase.

Usage

The library provides some trivial implementations of the FileFetcher interface at its heart:

It also provides a number of decorators:

Decorators provided by jeroen/file-fetcher-cache:

Decorators provided by jeroen/file-fetcher-stopwatch:

Installation

You can use Composer to download and install this package as well as its dependencies.

To add this package as a local, per-project dependency to your project, simply add a dependency on jeroen/file-fetcher to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on FileFetcher 6.x:

{
    "require": {
        "jeroen/file-fetcher": "~6.0"
    }
}

Development

Start by installing the project dependencies by executing

composer update

You can run the tests by executing

make test

You can run the style checks by executing

make cs

To run all CI checks, execute

make ci

You can also invoke PHPUnit directly to pass it arguments, as follows

vendor/bin/phpunit --filter SomeClassNameOrFilter

Release notes

6.1.0 (2022-04-26)

6.0.0 (2019-01-17)

Breaking changes to increase package stability and avoid the need for breaking changes in the future.

5.0.1 (2019-01-16)

5.0.0 (2019-01-16)

4.5.0 (2018-12-19)

4.4.0 (2018-05-31)

4.3.0 (2017-06-10)

4.2.0 (2017-06-07)

4.1.0 (2017-05-11)

4.0.0 (2017-05-09)

Breaking changes:

Other changes:

3.1.0 (2016-01-07)

3.0.0 (2015-08-21)

2.0.0 (2014-08-19)

1.0.1 (2013-07-06)

1.0.0 (2013-07-06)

Links


All versions of file-fetcher with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
psr/log Version ~3.0|~2.0|~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 jeroen/file-fetcher contains the following files

Loading the files please wait ....