Download the PHP package micjohnson/weed-php without Composer

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

WeedPhp

PHP client for Weed-FS, a simple and highly scalable distributed file system.

Weed-FS: http://code.google.com/p/weed-fs/

Status:

Ready for testing / In Development

Testing:

dev-master: Build Status

Installation:

Installation through composer

If you already use composer this is the most simple way to use WeedPhp in your project.

Add to your composer.json

Install through composer.phar

Installation without composer

Clone the repo

Create an autoloader. There is an example in test/autoload.php

Then include the autoloader in your project.

Documentation:

Create a WeedPhp object in your project, by passing the location of your master weed-fs server.

WeedPhp provides functions for most of the weed-fs REST calls.

assign($count = 1, $replication = null)

Assign returns a json response including the file id your file(s) will use, and where to store the file, using store.

When storing files with weed-fs the logic flow is assign then store. Assign reserves $count locations for files to be stored (using a single file id).

A string can be passed for replication, defining the type of replication this file will be stored with. see http://code.google.com/p/weed-fs/#Rack-Aware_and_Data_Center-Aware_Replication

Note that if you have a count greater than one, append _1, _2, _3, etc. on the file id for the subsequent files. The first file still uses just the file id.

store($volumeServerAddress, $fileId, $file)

This stores a single file.

$volumeServerAddress should be the location returned from assign().

$fileId should be the file id returned from assign().

$file raw file data to be stored.

storeMultiple($volumeServerAddress, $fileId, array $files)

This is meant to be used when assigning multiple file versions. This will automatically loop through your files, and append _1, _2, etc. on the file id, as it stores the files.

$volumeServerAddress should be the location returned from assign().

$fileId should be the file id returned from assign().

$files array of raw file datas to be stored.

lookup($volumeId)

Returns a json response with the locations where the volume is stored

$volumeId is the number before the comma in the fileId.

eg.
fid = 3,01637037d6
volumeId = 3

retrieve($volumeServerAddress, $fileId)

Retrieves the raw file data from a volume server.

$volumeServerAddress should be the location returned from assign().

$fileId should be the file id returned from assign().

delete($volumeServerAddress, $fileId)

Deletes file from volume server. Note that there is not a deleteMultiple, and if you assigned/stored multiple files you should delete them each individually.

$volumeServerAddress should be the location returned from assign().

$fileId should be the file id returned from assign().

status()

Gets status from your weed-fs master server


All versions of weed-php 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 micjohnson/weed-php contains the following files

Loading the files please wait ....