Download the PHP package radiergummi/flysystem-github-storage without Composer

On this page you can find all versions of the php package radiergummi/flysystem-github-storage. 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 flysystem-github-storage

GitHub Adapter for Flysystem

Latest Version Total Downloads

This is a GitHub adapter for Flysystem. It allows you to use a GitHub repository as a storage backend for Flysystem.
It uses the Contents API of the GitHub API, version 3.

This adapter was heavily influenced by the marvelous work of Roy Voetman on his Gitlab Adapter. Make sure to check it out if you need a Gitlab integration instead.

Installation

Usage

To use the GitHub storage with Flysystem, you'll need to create a client:

You can then pass that client to the adapter:

...and finally, create a Filesystem instance:

Check out the Flysystem documentation for filesystem usage information.

Advanced usage

The library allows additional constructor arguments for the client:

Argument Default Description
string $token - Your access token. Must have the repo scope.
string $repository - Name of the repository, including the owner, eg. acme/repo-name.
string $branch master Name of the branch in your repository.
string $baseurl https://api.github.com Base URL of the API to use. Pass null to use the default.
\Guzzle\Client $guzzleClient - Guzzle client to use for the connection. Check the Custom HTTP Client section.

Custom HTTP Client

You can optionally pass a custom Guzzle client for the library to use. If you do so, make sure to add the following default headers:

Contributions

Contributions are welcome! The test suite could be expanded and the error handling be improved - alas, the Flysystem library does not support a sensible exception system but relies on 90s-style false return values. While there's no way around that, I'm sure one could improve the situation.


All versions of flysystem-github-storage with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
guzzlehttp/guzzle Version ^6.5
league/flysystem 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 radiergummi/flysystem-github-storage contains the following files

Loading the files please wait ....