GithubHelp home page GithubHelp logo

isabella232 / php-manta Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tritondatacenter/php-manta

0.0 0.0 0.0 250 KB

PHP API bindings for Joyent's Manta service

License: Mozilla Public License 2.0

PHP 100.00%

php-manta's Introduction

PHP Manta

php-manta is a community-maintained PHP SDK for interacting with Joyent's Manta system.

Build Status MPL licensed

Required PHP Framework Features

  • OpenSSL
  • JSON - Installed by default in newest versions
  • PHP 5.6+ or HHVM

Installation

Install using the packagist package via composer:

composer require joyent/php-manta

Configuration

Php-manta can be configured using its constructor or by passing nulls and letting environment variables and defaults configure the client. Here's a list of available environment variables and their defaults.

Default Environment Variable Description
https://us-east.manta.joyent.com:443 MANTA_URL URL to access Manta
MANTA_USER User account
MANTA_SUBUSER Subuser account
MANTA_KEY_ID RSA fingerprint id
$home/.ssh/id_rsa MANTA_KEY_PATH Path to RSA key
20 MANTA_TIMEOUT Timeout in seconds before failing a request
3 MANTA_HTTP_RETRIES Times to retry failed requests
GuzzleHttp\Handler\StreamHandler MANTA_HTTP_HANDLER PHP HTTP implementation name
false MANTA_NO_AUTH Disables authentication

Usage

For usage examples, see the directory examples for some sample scripts that use the API.

Subuser Difficulties

A common problem with subusers is that you haven't granted the subuser access to the path within Manta. Typically this is done via the Manta CLI Tools using the mchmod command.

For example:

mchmod +subusername /user/stor/my_directory

Contributing

We are seeking active contributors right now. Pull requests are welcome.

Credits

Kudos to the original author of php-manta - Robert Bates. He developed the library to be used with the Drupal Backup & Migrate Manta plugin and did all of the initial heavy lifting. On January 4th 2016, Robert transferred ownership of the repository to Joyent and changed the license from the GPLv3 to the MPLv2.

License

PHP Manta is licensed under the MPLv2. Please see the LICENSE file for more details.

php-manta's People

Contributors

arpieb avatar dekobon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.