Plugin Directory

Changeset 1926456


Ignore:
Timestamp:
08/17/2018 07:19:24 PM (8 years ago)
Author:
peckjon
Message:

Require trunk of algorithmiaio/algorithmia-php (PHP 5.6-7 compatible)

Location:
algorithmia
Files:
4 added
28 edited
1 copied

Legend:

Unmodified
Added
Removed
  • algorithmia/tags/2.0.1/algorithmia.php

    r1924291 r1926456  
    55Description: Use Algorithmia Artificial Intelligence in your WordPress.
    66Text Domain: algo
    7 Version: 2.0.0
    8 Author: algorithmia.com
     7Version: 1.0
     8Author: kenburcham@gmail.com
    99License: MIT
    1010*/
  • algorithmia/tags/2.0.1/composer.json

    r1924261 r1926456  
    33        {
    44            "type": "git",
    5             "url": "https://github.com/kenburcham/algorithmia-php"
     5            "url": "https://github.com/algorithmiaio/algorithmia-php"
    66        }
    77    ],
    88    "require": {
    9         "algorithmia/algorithmia":"dev-php56"
     9        "algorithmia/algorithmia":"dev-master"
    1010    }
    1111}
  • algorithmia/tags/2.0.1/composer.lock

    r1924261 r1926456  
    22    "_readme": [
    33        "This file locks the dependencies of your project to a known state",
    4         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
     4        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
    55        "This file is @generated automatically"
    66    ],
    7     "hash": "8d36c264272a381ddce818d773474437",
    8     "content-hash": "0075010da68717ee6e99bb69840d5c9c",
     7    "content-hash": "c4eeed9c8b6a56f9fa102abe0780680b",
    98    "packages": [
    109        {
    1110            "name": "algorithmia/algorithmia",
    12             "version": "dev-php56",
    13             "source": {
    14                 "type": "git",
    15                 "url": "https://github.com/kenburcham/algorithmia-php",
    16                 "reference": "6da6906f172ab83735f217fed87e68e9f1b95f01"
     11            "version": "dev-master",
     12            "source": {
     13                "type": "git",
     14                "url": "https://github.com/algorithmiaio/algorithmia-php",
     15                "reference": "fc3679cee9fd3a3ce0652886fac7bf10a958fbfb"
    1716            },
    1817            "require": {
     
    4342            "description": "PHP Client for Algorithmia.com",
    4443            "homepage": "https://algorithmia.com",
    45             "time": "2018-07-27 19:23:54"
     44            "time": "2018-08-16T21:08:57+00:00"
    4645        },
    4746        {
     
    108107                "web service"
    109108            ],
    110             "time": "2018-04-22 15:46:56"
     109            "time": "2018-04-22T15:46:56+00:00"
    111110        },
    112111        {
     
    159158                "promise"
    160159            ],
    161             "time": "2016-12-20 10:07:11"
     160            "time": "2016-12-20T10:07:11+00:00"
    162161        },
    163162        {
     
    224223                "url"
    225224            ],
    226             "time": "2017-03-20 17:10:46"
     225            "time": "2017-03-20T17:10:46+00:00"
    227226        },
    228227        {
     
    274273                "response"
    275274            ],
    276             "time": "2016-08-06 14:39:51"
     275            "time": "2016-08-06T14:39:51+00:00"
    277276        }
    278277    ],
  • algorithmia/tags/2.0.1/readme.txt

    r1924291 r1926456  
    55Requires PHP: 5.6
    66Tested up to: 4.9.7
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    6262= 2.0 =
    6363* Complete rewrite using official Algorithmia PHP Client
     64
     65= 2.0.1 =
     66* Require trunk of algorithmiaio/algorithmia-php (PHP 5.6-7 compatible)
  • algorithmia/tags/2.0.1/vendor/algorithmia/algorithmia/src/Algorithmia/AlgoResponse.php

    r1924261 r1926456  
    44
    55class AlgoResponse {
     6    /**
     7     * @var \Psr\Http\Message\ResponseInterface
     8     */
    69    private $httpResponse;
    710    public $result;
     
    912
    1013    /**
    11      * @param $in_httpResponse HttpResponse object
     14     * @param $in_httpResponse \Psr\Http\Message\ResponseInterface object
    1215     * @param $in_result Object result object from algorithm call
    1316     */
     
    1821    }
    1922
     23    /**
     24     * @return \Psr\Http\Message\ResponseInterface
     25     */
    2026    public function getHttpResponse(){
    2127        return $this->httpResponse;
  • algorithmia/tags/2.0.1/vendor/algorithmia/algorithmia/src/Algorithmia/Algorithm.php

    r1924261 r1926456  
    1010    /**
    1111     * Client we use to make API calls to the algorithm.
    12      * @var Algorithmia/Client $client
     12     * @var Client $client
    1313     */
    1414    private $client;
     
    2323     * Construct the Algorithmia/Algorithm
    2424     * @param string $in_algo
    25      * @param Algorithmia\Client $client
     25     * @param Client $client
    2626     */
    2727    public function __construct( $in_algo, Client $in_client = null)
     
    3434     * Execute an API call for this Algorithm
    3535     * @param mixed $in_input The input to send to the algorithm.
     36     * @return AlgoResponse the AlgoResponse object for the result
    3637     */
    3738    public function pipe($in_input)
     
    4243    /**
    4344     * Execute an API call for this Algorithm asynchronously.
    44      * @param \Guzzle\Promise\Promise the promise
     45     * @param mixed $in_input The input to send to the algorithm.
     46     * @return \GuzzleHttp\Promise\PromiseInterface Promise which return AlgoResponse when resolved
    4547     */
    4648    public function pipeAsync($in_input)
     
    5254     * Set options on the client such as timeout
    5355     * @param array $in_options An array of options: ['timeout' => 120]
    54      * @return Algorithmia\Algorithm $this
     56     * @return self $this
    5557     */
    5658    public function setOptions(array $in_options = array())
  • algorithmia/tags/2.0.1/vendor/algorithmia/algorithmia/src/Algorithmia/Client.php

    r1924261 r1926456  
    1919    /**
    2020     * http client that manages our http calls
    21      * @var Algorithmia\HttpClient $http
     21     * @var HttpClient $http
    2222     */
    2323    private $http_client;
     
    5757     * Set options for the Algo Client
    5858     * @param array Array of parameters:  ['timeout' => 120, 'server' => 'https://api.algorithmia.com']
    59      * @return Algorithmia\Client
     59     * @return HttpClient
    6060     */
    6161    public function setOptions(array $in_options = array()) {
     
    7575     * Get an Algorithmia\Algorithm that represents the algorithm to call.
    7676     * @param string $in_algo The algorithm to call.
    77      * @return Algorithmia\Algorithm
     77     * @return Algorithm
    7878     */
    7979    public function algo($in_algo) {
     
    8484     * Get an Algorithmia\DataDirectory that represents a directory.
    8585     * @param string $in_dataurl The data directory url, e.g.: data://.my/folder
    86      * @return Algorithmia\DataDirectory
     86     * @return DataDirectory
    8787     */
    8888    public function dir($in_dataurl) {
     
    9393     * Get an Algorithmia\DataFile that represents a file.
    9494     * @param string $in_dataurl The full path to the file, e.g.: data://.my/folder/file.txt
    95      * @return Algorithmia\DataFile
     95     * @return DataFile
    9696     */
    9797    public function file($in_datafile) {
     
    145145     * @param string $in_algo The algorithm to call.
    146146     * @param mixed $in_input The input to send to the algorithm. Can be a string or an object.
    147      * @return Algorithmia\AlgoResponse the AlgoResponse object for the result
     147     * @return AlgoResponse|\GuzzleHttp\Promise\PromiseInterface the AlgoResponse object for the result
    148148     */
    149149    public function doAlgoPipe($in_algo, $in_input, $in_async = false) {
     
    188188
    189189    //builds the algoresponse from the response object
    190     public function buildAlgoResponse($response) {
     190    public function buildAlgoResponse(\Psr\Http\Message\ResponseInterface $response) {
    191191        $str_result = $response->getBody()->getContents();
    192192
  • algorithmia/tags/2.0.1/vendor/algorithmia/algorithmia/src/Algorithmia/DataObject.php

    r1924261 r1926456  
    2121     * Constructs a DataObject ready for fetching or creating
    2222     * @param string $in_dataurl The URL for the DataObject to represent
    23      * @param Algorithmia\Client $client The client object to use if you want to actually connect.
    24      * @return Algorithmia\DataObject
     23     * @param Client $client The client object to use if you want to actually connect.
    2524     */
    2625    public function __construct($in_dataurl, Client $in_client = null){
  • algorithmia/tags/2.0.1/vendor/algorithmia/algorithmia/src/Algorithmia/HttpClient.php

    r1924261 r1926456  
    1414     /**
    1515     * Guzzle http client configured with json headers
    16      * @var GuzzleHttp\ClientInterface $json_http
     16     * @var \GuzzleHttp\Client $json_http
    1717     */
    1818    private $json_http;
     
    2020    /**
    2121     * Guzzle http client configured with binary headers
    22      * @var GuzzleHttp\ClientInterface $bin_http
     22     * @var \GuzzleHttp\Client $bin_http
    2323     */
    2424    private $bin_http;
     
    5757     * Set options for the Algo Client
    5858     * @param array Array of parameters:  ['timeout' => 120, 'server' => 'https://api.algorithmia.com']
    59      * @return Algorithmia\Client
     59     * @return self
    6060     */
    6161    public function setOptions(array $in_options = array()) {
     
    9393     * @param $in_url string of URL to call with PUT
    9494     * @param $in_input mixed payload to deliver to api endpoint. Can be a string or an object.
    95      * @return httpresponse Object
     95     * @return \Psr\Http\Message\ResponseInterface Object
    9696     */
    9797    public function put($in_url, $in_input, $in_content_type){
     
    114114     * @param $in_url string of URL to call with POST
    115115     * @param $in_input mixed payload to deliver to api endpoint. Can be a string or an object.
    116      * @return httpresponse Object
     116     * @return \Psr\Http\Message\ResponseInterface Object
    117117     */
    118118    public function post($in_url, $in_input, $in_content_type, $in_async=false){
  • algorithmia/tags/2.0.1/vendor/autoload.php

    r1924261 r1926456  
    33// autoload.php @generated by Composer
    44
    5 require_once __DIR__ . '/composer' . '/autoload_real.php';
     5require_once __DIR__ . '/composer/autoload_real.php';
    66
    77return ComposerAutoloaderInit2c42de3fea18cdd67ec9ab2a226ccaae::getLoader();
  • algorithmia/tags/2.0.1/vendor/composer/ClassLoader.php

    r1924261 r1926456  
    5454    private $useIncludePath = false;
    5555    private $classMap = array();
    56 
    5756    private $classMapAuthoritative = false;
     57    private $missingClasses = array();
     58    private $apcuPrefix;
    5859
    5960    public function getPrefixes()
     
    273274
    274275    /**
     276     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
     277     *
     278     * @param string|null $apcuPrefix
     279     */
     280    public function setApcuPrefix($apcuPrefix)
     281    {
     282        $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
     283    }
     284
     285    /**
     286     * The APCu prefix in use, or null if APCu caching is not enabled.
     287     *
     288     * @return string|null
     289     */
     290    public function getApcuPrefix()
     291    {
     292        return $this->apcuPrefix;
     293    }
     294
     295    /**
    275296     * Registers this instance as an autoloader.
    276297     *
     
    314335    public function findFile($class)
    315336    {
    316         // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
    317         if ('\\' == $class[0]) {
    318             $class = substr($class, 1);
    319         }
    320 
    321337        // class map lookup
    322338        if (isset($this->classMap[$class])) {
    323339            return $this->classMap[$class];
    324340        }
    325         if ($this->classMapAuthoritative) {
     341        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
    326342            return false;
    327343        }
     344        if (null !== $this->apcuPrefix) {
     345            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
     346            if ($hit) {
     347                return $file;
     348            }
     349        }
    328350
    329351        $file = $this->findFileWithExtension($class, '.php');
    330352
    331353        // Search for Hack files if we are running on HHVM
    332         if ($file === null && defined('HHVM_VERSION')) {
     354        if (false === $file && defined('HHVM_VERSION')) {
    333355            $file = $this->findFileWithExtension($class, '.hh');
    334356        }
    335357
    336         if ($file === null) {
     358        if (null !== $this->apcuPrefix) {
     359            apcu_add($this->apcuPrefix.$class, $file);
     360        }
     361
     362        if (false === $file) {
    337363            // Remember that this class does not exist.
    338             return $this->classMap[$class] = false;
     364            $this->missingClasses[$class] = true;
    339365        }
    340366
     
    349375        $first = $class[0];
    350376        if (isset($this->prefixLengthsPsr4[$first])) {
    351             foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
    352                 if (0 === strpos($class, $prefix)) {
    353                     foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
    354                         if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
     377            $subPath = $class;
     378            while (false !== $lastPos = strrpos($subPath, '\\')) {
     379                $subPath = substr($subPath, 0, $lastPos);
     380                $search = $subPath . '\\';
     381                if (isset($this->prefixDirsPsr4[$search])) {
     382                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
     383                    foreach ($this->prefixDirsPsr4[$search] as $dir) {
     384                        if (file_exists($file = $dir . $pathEnd)) {
    355385                            return $file;
    356386                        }
     
    400430            return $file;
    401431        }
     432
     433        return false;
    402434    }
    403435}
  • algorithmia/tags/2.0.1/vendor/composer/LICENSE

    r1924261 r1926456  
    1 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
    2 Upstream-Name: Composer
    3 Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be>
    4 Source: https://github.com/composer/composer
    51
    6 Files: *
    7 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    8            2016, Jordi Boggiano <j.boggiano@seld.be>
    9 License: Expat
     2Copyright (c) Nils Adermann, Jordi Boggiano
    103
    11 Files: res/cacert.pem
    12 Copyright: 2015, Mozilla Foundation
    13 License: MPL-2.0
     4Permission is hereby granted, free of charge, to any person obtaining a copy
     5of this software and associated documentation files (the "Software"), to deal
     6in the Software without restriction, including without limitation the rights
     7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8copies of the Software, and to permit persons to whom the Software is furnished
     9to do so, subject to the following conditions:
    1410
    15 Files: src/Composer/Util/RemoteFilesystem.php
    16        src/Composer/Util/TlsHelper.php
    17 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    18            2016, Jordi Boggiano <j.boggiano@seld.be>
    19            2013, Evan Coury <me@evancoury.com>
    20 License: Expat and BSD-2-Clause
     11The above copyright notice and this permission notice shall be included in all
     12copies or substantial portions of the Software.
    2113
    22 License: BSD-2-Clause
    23  Redistribution and use in source and binary forms, with or without modification,
    24  are permitted provided that the following conditions are met:
    25  .
    26      * Redistributions of source code must retain the above copyright notice,
    27        this list of conditions and the following disclaimer.
    28  .
    29      * Redistributions in binary form must reproduce the above copyright notice,
    30        this list of conditions and the following disclaimer in the documentation
    31        and/or other materials provided with the distribution.
    32  .
    33  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    34  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    35  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    36  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
    37  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    38  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    39  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
    40  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    41  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    42  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     20THE SOFTWARE.
    4321
    44 License: Expat
    45  Permission is hereby granted, free of charge, to any person obtaining a copy
    46  of this software and associated documentation files (the "Software"), to deal
    47  in the Software without restriction, including without limitation the rights
    48  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    49  copies of the Software, and to permit persons to whom the Software is furnished
    50  to do so, subject to the following conditions:
    51  .
    52  The above copyright notice and this permission notice shall be included in all
    53  copies or substantial portions of the Software.
    54  .
    55  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    56  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    57  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    58  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    59  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    60  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    61  THE SOFTWARE.
    62 
    63 License: MPL-2.0
    64  1. Definitions
    65  --------------
    66  .
    67  1.1. "Contributor"
    68      means each individual or legal entity that creates, contributes to
    69      the creation of, or owns Covered Software.
    70  .
    71  1.2. "Contributor Version"
    72      means the combination of the Contributions of others (if any) used
    73      by a Contributor and that particular Contributor's Contribution.
    74  .
    75  1.3. "Contribution"
    76      means Covered Software of a particular Contributor.
    77  .
    78  1.4. "Covered Software"
    79      means Source Code Form to which the initial Contributor has attached
    80      the notice in Exhibit A, the Executable Form of such Source Code
    81      Form, and Modifications of such Source Code Form, in each case
    82      including portions thereof.
    83  .
    84  1.5. "Incompatible With Secondary Licenses"
    85      means
    86  .
    87      (a) that the initial Contributor has attached the notice described
    88          in Exhibit B to the Covered Software; or
    89  .
    90      (b) that the Covered Software was made available under the terms of
    91          version 1.1 or earlier of the License, but not also under the
    92          terms of a Secondary License.
    93  .
    94  1.6. "Executable Form"
    95      means any form of the work other than Source Code Form.
    96  .
    97  1.7. "Larger Work"
    98      means a work that combines Covered Software with other material, in
    99      a separate file or files, that is not Covered Software.
    100  .
    101  1.8. "License"
    102      means this document.
    103  .
    104  1.9. "Licensable"
    105      means having the right to grant, to the maximum extent possible,
    106      whether at the time of the initial grant or subsequently, any and
    107      all of the rights conveyed by this License.
    108  .
    109  1.10. "Modifications"
    110      means any of the following:
    111  .
    112      (a) any file in Source Code Form that results from an addition to,
    113          deletion from, or modification of the contents of Covered
    114          Software; or
    115  .
    116      (b) any new file in Source Code Form that contains any Covered
    117          Software.
    118  .
    119  1.11. "Patent Claims" of a Contributor
    120      means any patent claim(s), including without limitation, method,
    121      process, and apparatus claims, in any patent Licensable by such
    122      Contributor that would be infringed, but for the grant of the
    123      License, by the making, using, selling, offering for sale, having
    124      made, import, or transfer of either its Contributions or its
    125      Contributor Version.
    126  .
    127  1.12. "Secondary License"
    128      means either the GNU General Public License, Version 2.0, the GNU
    129      Lesser General Public License, Version 2.1, the GNU Affero General
    130      Public License, Version 3.0, or any later versions of those
    131      licenses.
    132  .
    133  1.13. "Source Code Form"
    134      means the form of the work preferred for making modifications.
    135  .
    136  1.14. "You" (or "Your")
    137      means an individual or a legal entity exercising rights under this
    138      License. For legal entities, "You" includes any entity that
    139      controls, is controlled by, or is under common control with You. For
    140      purposes of this definition, "control" means (a) the power, direct
    141      or indirect, to cause the direction or management of such entity,
    142      whether by contract or otherwise, or (b) ownership of more than
    143      fifty percent (50%) of the outstanding shares or beneficial
    144      ownership of such entity.
    145  .
    146  2. License Grants and Conditions
    147  --------------------------------
    148  .
    149  2.1. Grants
    150  .
    151  Each Contributor hereby grants You a world-wide, royalty-free,
    152  non-exclusive license:
    153  .
    154  (a) under intellectual property rights (other than patent or trademark)
    155      Licensable by such Contributor to use, reproduce, make available,
    156      modify, display, perform, distribute, and otherwise exploit its
    157      Contributions, either on an unmodified basis, with Modifications, or
    158      as part of a Larger Work; and
    159  .
    160  (b) under Patent Claims of such Contributor to make, use, sell, offer
    161      for sale, have made, import, and otherwise transfer either its
    162      Contributions or its Contributor Version.
    163  .
    164  2.2. Effective Date
    165  .
    166  The licenses granted in Section 2.1 with respect to any Contribution
    167  become effective for each Contribution on the date the Contributor first
    168  distributes such Contribution.
    169  .
    170  2.3. Limitations on Grant Scope
    171  .
    172  The licenses granted in this Section 2 are the only rights granted under
    173  this License. No additional rights or licenses will be implied from the
    174  distribution or licensing of Covered Software under this License.
    175  Notwithstanding Section 2.1(b) above, no patent license is granted by a
    176  Contributor:
    177  .
    178  (a) for any code that a Contributor has removed from Covered Software;
    179      or
    180  .
    181  (b) for infringements caused by: (i) Your and any other third party's
    182      modifications of Covered Software, or (ii) the combination of its
    183      Contributions with other software (except as part of its Contributor
    184      Version); or
    185  .
    186  (c) under Patent Claims infringed by Covered Software in the absence of
    187      its Contributions.
    188  .
    189  This License does not grant any rights in the trademarks, service marks,
    190  or logos of any Contributor (except as may be necessary to comply with
    191  the notice requirements in Section 3.4).
    192  .
    193  2.4. Subsequent Licenses
    194  .
    195  No Contributor makes additional grants as a result of Your choice to
    196  distribute the Covered Software under a subsequent version of this
    197  License (see Section 10.2) or under the terms of a Secondary License (if
    198  permitted under the terms of Section 3.3).
    199  .
    200  2.5. Representation
    201  .
    202  Each Contributor represents that the Contributor believes its
    203  Contributions are its original creation(s) or it has sufficient rights
    204  to grant the rights to its Contributions conveyed by this License.
    205  .
    206  2.6. Fair Use
    207  .
    208  This License is not intended to limit any rights You have under
    209  applicable copyright doctrines of fair use, fair dealing, or other
    210  equivalents.
    211  .
    212  2.7. Conditions
    213  .
    214  Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
    215  in Section 2.1.
    216  .
    217  3. Responsibilities
    218  -------------------
    219  .
    220  3.1. Distribution of Source Form
    221  .
    222  All distribution of Covered Software in Source Code Form, including any
    223  Modifications that You create or to which You contribute, must be under
    224  the terms of this License. You must inform recipients that the Source
    225  Code Form of the Covered Software is governed by the terms of this
    226  License, and how they can obtain a copy of this License. You may not
    227  attempt to alter or restrict the recipients' rights in the Source Code
    228  Form.
    229  .
    230  3.2. Distribution of Executable Form
    231  .
    232  If You distribute Covered Software in Executable Form then:
    233  .
    234  (a) such Covered Software must also be made available in Source Code
    235      Form, as described in Section 3.1, and You must inform recipients of
    236      the Executable Form how they can obtain a copy of such Source Code
    237      Form by reasonable means in a timely manner, at a charge no more
    238      than the cost of distribution to the recipient; and
    239  .
    240  (b) You may distribute such Executable Form under the terms of this
    241      License, or sublicense it under different terms, provided that the
    242      license for the Executable Form does not attempt to limit or alter
    243      the recipients' rights in the Source Code Form under this License.
    244  .
    245  3.3. Distribution of a Larger Work
    246  .
    247  You may create and distribute a Larger Work under terms of Your choice,
    248  provided that You also comply with the requirements of this License for
    249  the Covered Software. If the Larger Work is a combination of Covered
    250  Software with a work governed by one or more Secondary Licenses, and the
    251  Covered Software is not Incompatible With Secondary Licenses, this
    252  License permits You to additionally distribute such Covered Software
    253  under the terms of such Secondary License(s), so that the recipient of
    254  the Larger Work may, at their option, further distribute the Covered
    255  Software under the terms of either this License or such Secondary
    256  License(s).
    257  .
    258  3.4. Notices
    259  .
    260  You may not remove or alter the substance of any license notices
    261  (including copyright notices, patent notices, disclaimers of warranty,
    262  or limitations of liability) contained within the Source Code Form of
    263  the Covered Software, except that You may alter any license notices to
    264  the extent required to remedy known factual inaccuracies.
    265  .
    266  3.5. Application of Additional Terms
    267  .
    268  You may choose to offer, and to charge a fee for, warranty, support,
    269  indemnity or liability obligations to one or more recipients of Covered
    270  Software. However, You may do so only on Your own behalf, and not on
    271  behalf of any Contributor. You must make it absolutely clear that any
    272  such warranty, support, indemnity, or liability obligation is offered by
    273  You alone, and You hereby agree to indemnify every Contributor for any
    274  liability incurred by such Contributor as a result of warranty, support,
    275  indemnity or liability terms You offer. You may include additional
    276  disclaimers of warranty and limitations of liability specific to any
    277  jurisdiction.
    278  .
    279  4. Inability to Comply Due to Statute or Regulation
    280  ---------------------------------------------------
    281  .
    282  If it is impossible for You to comply with any of the terms of this
    283  License with respect to some or all of the Covered Software due to
    284  statute, judicial order, or regulation then You must: (a) comply with
    285  the terms of this License to the maximum extent possible; and (b)
    286  describe the limitations and the code they affect. Such description must
    287  be placed in a text file included with all distributions of the Covered
    288  Software under this License. Except to the extent prohibited by statute
    289  or regulation, such description must be sufficiently detailed for a
    290  recipient of ordinary skill to be able to understand it.
    291  .
    292  5. Termination
    293  --------------
    294  .
    295  5.1. The rights granted under this License will terminate automatically
    296  if You fail to comply with any of its terms. However, if You become
    297  compliant, then the rights granted under this License from a particular
    298  Contributor are reinstated (a) provisionally, unless and until such
    299  Contributor explicitly and finally terminates Your grants, and (b) on an
    300  ongoing basis, if such Contributor fails to notify You of the
    301  non-compliance by some reasonable means prior to 60 days after You have
    302  come back into compliance. Moreover, Your grants from a particular
    303  Contributor are reinstated on an ongoing basis if such Contributor
    304  notifies You of the non-compliance by some reasonable means, this is the
    305  first time You have received notice of non-compliance with this License
    306  from such Contributor, and You become compliant prior to 30 days after
    307  Your receipt of the notice.
    308  .
    309  5.2. If You initiate litigation against any entity by asserting a patent
    310  infringement claim (excluding declaratory judgment actions,
    311  counter-claims, and cross-claims) alleging that a Contributor Version
    312  directly or indirectly infringes any patent, then the rights granted to
    313  You by any and all Contributors for the Covered Software under Section
    314  2.1 of this License shall terminate.
    315  .
    316  5.3. In the event of termination under Sections 5.1 or 5.2 above, all
    317  end user license agreements (excluding distributors and resellers) which
    318  have been validly granted by You or Your distributors under this License
    319  prior to termination shall survive termination.
    320  .
    321   ************************************************************************
    322   *                                                                      *
    323   *  6. Disclaimer of Warranty                                           *
    324   *  -------------------------                                           *
    325   *                                                                      *
    326   *  Covered Software is provided under this License on an "as is"       *
    327   *  basis, without warranty of any kind, either expressed, implied, or  *
    328   *  statutory, including, without limitation, warranties that the       *
    329   *  Covered Software is free of defects, merchantable, fit for a        *
    330   *  particular purpose or non-infringing. The entire risk as to the     *
    331   *  quality and performance of the Covered Software is with You.        *
    332   *  Should any Covered Software prove defective in any respect, You     *
    333   *  (not any Contributor) assume the cost of any necessary servicing,   *
    334   *  repair, or correction. This disclaimer of warranty constitutes an   *
    335   *  essential part of this License. No use of any Covered Software is   *
    336   *  authorized under this License except under this disclaimer.         *
    337   *                                                                      *
    338   ************************************************************************
    339  .
    340   ************************************************************************
    341   *                                                                      *
    342   *  7. Limitation of Liability                                          *
    343   *  --------------------------                                          *
    344   *                                                                      *
    345   *  Under no circumstances and under no legal theory, whether tort      *
    346   *  (including negligence), contract, or otherwise, shall any           *
    347   *  Contributor, or anyone who distributes Covered Software as          *
    348   *  permitted above, be liable to You for any direct, indirect,         *
    349   *  special, incidental, or consequential damages of any character      *
    350   *  including, without limitation, damages for lost profits, loss of    *
    351   *  goodwill, work stoppage, computer failure or malfunction, or any    *
    352   *  and all other commercial damages or losses, even if such party      *
    353   *  shall have been informed of the possibility of such damages. This   *
    354   *  limitation of liability shall not apply to liability for death or   *
    355   *  personal injury resulting from such party's negligence to the       *
    356   *  extent applicable law prohibits such limitation. Some               *
    357   *  jurisdictions do not allow the exclusion or limitation of           *
    358   *  incidental or consequential damages, so this exclusion and          *
    359   *  limitation may not apply to You.                                    *
    360   *                                                                      *
    361   ************************************************************************
    362  .
    363  8. Litigation
    364  -------------
    365  .
    366  Any litigation relating to this License may be brought only in the
    367  courts of a jurisdiction where the defendant maintains its principal
    368  place of business and such litigation shall be governed by laws of that
    369  jurisdiction, without reference to its conflict-of-law provisions.
    370  Nothing in this Section shall prevent a party's ability to bring
    371  cross-claims or counter-claims.
    372  .
    373  9. Miscellaneous
    374  ----------------
    375  .
    376  This License represents the complete agreement concerning the subject
    377  matter hereof. If any provision of this License is held to be
    378  unenforceable, such provision shall be reformed only to the extent
    379  necessary to make it enforceable. Any law or regulation which provides
    380  that the language of a contract shall be construed against the drafter
    381  shall not be used to construe this License against a Contributor.
    382  .
    383  10. Versions of the License
    384  ---------------------------
    385  .
    386  10.1. New Versions
    387  .
    388  Mozilla Foundation is the license steward. Except as provided in Section
    389  10.3, no one other than the license steward has the right to modify or
    390  publish new versions of this License. Each version will be given a
    391  distinguishing version number.
    392  .
    393  10.2. Effect of New Versions
    394  .
    395  You may distribute the Covered Software under the terms of the version
    396  of the License under which You originally received the Covered Software,
    397  or under the terms of any subsequent version published by the license
    398  steward.
    399  .
    400  10.3. Modified Versions
    401  .
    402  If you create software not governed by this License, and you want to
    403  create a new license for such software, you may create and use a
    404  modified version of this License if you rename the license and remove
    405  any references to the name of the license steward (except to note that
    406  such modified license differs from this License).
    407  .
    408  10.4. Distributing Source Code Form that is Incompatible With Secondary
    409  Licenses
    410  .
    411  If You choose to distribute Source Code Form that is Incompatible With
    412  Secondary Licenses under the terms of this version of the License, the
    413  notice described in Exhibit B of this License must be attached.
    414  .
    415  Exhibit A - Source Code Form License Notice
    416  -------------------------------------------
    417  .
    418    This Source Code Form is subject to the terms of the Mozilla Public
    419    License, v. 2.0. If a copy of the MPL was not distributed with this
    420    file, You can obtain one at http://mozilla.org/MPL/2.0/.
    421  .
    422  If it is not possible or desirable to put the notice in a particular
    423  file, then You may include the notice in a location (such as a LICENSE
    424  file in a relevant directory) where a recipient would be likely to look
    425  for such a notice.
    426  .
    427  You may add additional accurate notices of copyright ownership.
    428  .
    429  Exhibit B - "Incompatible With Secondary Licenses" Notice
    430  ---------------------------------------------------------
    431  .
    432    This Source Code Form is "Incompatible With Secondary Licenses", as
    433    defined by the Mozilla Public License, v. 2.0.
  • algorithmia/tags/2.0.1/vendor/composer/autoload_real.php

    r1924261 r1926456  
    2424        spl_autoload_unregister(array('ComposerAutoloaderInit2c42de3fea18cdd67ec9ab2a226ccaae', 'loadClassLoader'));
    2525
    26         $map = require __DIR__ . '/autoload_namespaces.php';
    27         foreach ($map as $namespace => $path) {
    28             $loader->set($namespace, $path);
    29         }
     26        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     27        if ($useStaticLoader) {
     28            require_once __DIR__ . '/autoload_static.php';
    3029
    31         $map = require __DIR__ . '/autoload_psr4.php';
    32         foreach ($map as $namespace => $path) {
    33             $loader->setPsr4($namespace, $path);
    34         }
     30            call_user_func(\Composer\Autoload\ComposerStaticInit2c42de3fea18cdd67ec9ab2a226ccaae::getInitializer($loader));
     31        } else {
     32            $map = require __DIR__ . '/autoload_namespaces.php';
     33            foreach ($map as $namespace => $path) {
     34                $loader->set($namespace, $path);
     35            }
    3536
    36         $classMap = require __DIR__ . '/autoload_classmap.php';
    37         if ($classMap) {
    38             $loader->addClassMap($classMap);
     37            $map = require __DIR__ . '/autoload_psr4.php';
     38            foreach ($map as $namespace => $path) {
     39                $loader->setPsr4($namespace, $path);
     40            }
     41
     42            $classMap = require __DIR__ . '/autoload_classmap.php';
     43            if ($classMap) {
     44                $loader->addClassMap($classMap);
     45            }
    3946        }
    4047
    4148        $loader->register(true);
    4249
    43         $includeFiles = require __DIR__ . '/autoload_files.php';
     50        if ($useStaticLoader) {
     51            $includeFiles = Composer\Autoload\ComposerStaticInit2c42de3fea18cdd67ec9ab2a226ccaae::$files;
     52        } else {
     53            $includeFiles = require __DIR__ . '/autoload_files.php';
     54        }
    4455        foreach ($includeFiles as $fileIdentifier => $file) {
    4556            composerRequire2c42de3fea18cdd67ec9ab2a226ccaae($fileIdentifier, $file);
  • algorithmia/tags/2.0.1/vendor/composer/installed.json

    r1924261 r1926456  
    11[
     2    {
     3        "name": "algorithmia/algorithmia",
     4        "version": "dev-master",
     5        "version_normalized": "9999999-dev",
     6        "source": {
     7            "type": "git",
     8            "url": "https://github.com/algorithmiaio/algorithmia-php",
     9            "reference": "fc3679cee9fd3a3ce0652886fac7bf10a958fbfb"
     10        },
     11        "require": {
     12            "guzzlehttp/guzzle": "^6.3"
     13        },
     14        "require-dev": {
     15            "phpunit/phpunit": "^5"
     16        },
     17        "time": "2018-08-16T21:08:57+00:00",
     18        "type": "library",
     19        "installation-source": "source",
     20        "autoload": {
     21            "psr-0": {
     22                "Algorithmia": "src/"
     23            }
     24        },
     25        "license": [
     26            "MIT"
     27        ],
     28        "authors": [
     29            {
     30                "name": "Jon Peck",
     31                "email": "jpeck@algorithmia.com"
     32            },
     33            {
     34                "name": "Ken Burcham",
     35                "email": "kenburcham@gmail.com"
     36            }
     37        ],
     38        "description": "PHP Client for Algorithmia.com",
     39        "homepage": "https://algorithmia.com"
     40    },
     41    {
     42        "name": "guzzlehttp/guzzle",
     43        "version": "6.3.3",
     44        "version_normalized": "6.3.3.0",
     45        "source": {
     46            "type": "git",
     47            "url": "https://github.com/guzzle/guzzle.git",
     48            "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
     49        },
     50        "dist": {
     51            "type": "zip",
     52            "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
     53            "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
     54            "shasum": ""
     55        },
     56        "require": {
     57            "guzzlehttp/promises": "^1.0",
     58            "guzzlehttp/psr7": "^1.4",
     59            "php": ">=5.5"
     60        },
     61        "require-dev": {
     62            "ext-curl": "*",
     63            "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
     64            "psr/log": "^1.0"
     65        },
     66        "suggest": {
     67            "psr/log": "Required for using the Log middleware"
     68        },
     69        "time": "2018-04-22T15:46:56+00:00",
     70        "type": "library",
     71        "extra": {
     72            "branch-alias": {
     73                "dev-master": "6.3-dev"
     74            }
     75        },
     76        "installation-source": "dist",
     77        "autoload": {
     78            "files": [
     79                "src/functions_include.php"
     80            ],
     81            "psr-4": {
     82                "GuzzleHttp\\": "src/"
     83            }
     84        },
     85        "notification-url": "https://packagist.org/downloads/",
     86        "license": [
     87            "MIT"
     88        ],
     89        "authors": [
     90            {
     91                "name": "Michael Dowling",
     92                "email": "mtdowling@gmail.com",
     93                "homepage": "https://github.com/mtdowling"
     94            }
     95        ],
     96        "description": "Guzzle is a PHP HTTP client library",
     97        "homepage": "http://guzzlephp.org/",
     98        "keywords": [
     99            "client",
     100            "curl",
     101            "framework",
     102            "http",
     103            "http client",
     104            "rest",
     105            "web service"
     106        ]
     107    },
    2108    {
    3109        "name": "guzzlehttp/promises",
     
    21127            "phpunit/phpunit": "^4.0"
    22128        },
    23         "time": "2016-12-20 10:07:11",
     129        "time": "2016-12-20T10:07:11+00:00",
    24130        "type": "library",
    25131        "extra": {
     
    54160    },
    55161    {
    56         "name": "psr/http-message",
    57         "version": "1.0.1",
    58         "version_normalized": "1.0.1.0",
    59         "source": {
    60             "type": "git",
    61             "url": "https://github.com/php-fig/http-message.git",
    62             "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
    63         },
    64         "dist": {
    65             "type": "zip",
    66             "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
    67             "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
    68             "shasum": ""
    69         },
    70         "require": {
    71             "php": ">=5.3.0"
    72         },
    73         "time": "2016-08-06 14:39:51",
    74         "type": "library",
    75         "extra": {
    76             "branch-alias": {
    77                 "dev-master": "1.0.x-dev"
    78             }
    79         },
    80         "installation-source": "dist",
    81         "autoload": {
    82             "psr-4": {
    83                 "Psr\\Http\\Message\\": "src/"
    84             }
    85         },
    86         "notification-url": "https://packagist.org/downloads/",
    87         "license": [
    88             "MIT"
    89         ],
    90         "authors": [
    91             {
    92                 "name": "PHP-FIG",
    93                 "homepage": "http://www.php-fig.org/"
    94             }
    95         ],
    96         "description": "Common interface for HTTP messages",
    97         "homepage": "https://github.com/php-fig/http-message",
    98         "keywords": [
    99             "http",
    100             "http-message",
    101             "psr",
    102             "psr-7",
    103             "request",
    104             "response"
    105         ]
    106     },
    107     {
    108162        "name": "guzzlehttp/psr7",
    109163        "version": "1.4.2",
     
    130184            "phpunit/phpunit": "~4.0"
    131185        },
    132         "time": "2017-03-20 17:10:46",
     186        "time": "2017-03-20T17:10:46+00:00",
    133187        "type": "library",
    134188        "extra": {
     
    173227    },
    174228    {
    175         "name": "guzzlehttp/guzzle",
    176         "version": "6.3.3",
    177         "version_normalized": "6.3.3.0",
    178         "source": {
    179             "type": "git",
    180             "url": "https://github.com/guzzle/guzzle.git",
    181             "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
    182         },
    183         "dist": {
    184             "type": "zip",
    185             "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
    186             "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
    187             "shasum": ""
    188         },
    189         "require": {
    190             "guzzlehttp/promises": "^1.0",
    191             "guzzlehttp/psr7": "^1.4",
    192             "php": ">=5.5"
    193         },
    194         "require-dev": {
    195             "ext-curl": "*",
    196             "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
    197             "psr/log": "^1.0"
    198         },
    199         "suggest": {
    200             "psr/log": "Required for using the Log middleware"
    201         },
    202         "time": "2018-04-22 15:46:56",
    203         "type": "library",
    204         "extra": {
    205             "branch-alias": {
    206                 "dev-master": "6.3-dev"
    207             }
    208         },
    209         "installation-source": "dist",
    210         "autoload": {
    211             "files": [
    212                 "src/functions_include.php"
    213             ],
    214             "psr-4": {
    215                 "GuzzleHttp\\": "src/"
    216             }
    217         },
    218         "notification-url": "https://packagist.org/downloads/",
    219         "license": [
    220             "MIT"
    221         ],
    222         "authors": [
    223             {
    224                 "name": "Michael Dowling",
    225                 "email": "mtdowling@gmail.com",
    226                 "homepage": "https://github.com/mtdowling"
    227             }
    228         ],
    229         "description": "Guzzle is a PHP HTTP client library",
    230         "homepage": "http://guzzlephp.org/",
    231         "keywords": [
    232             "client",
    233             "curl",
    234             "framework",
     229        "name": "psr/http-message",
     230        "version": "1.0.1",
     231        "version_normalized": "1.0.1.0",
     232        "source": {
     233            "type": "git",
     234            "url": "https://github.com/php-fig/http-message.git",
     235            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
     236        },
     237        "dist": {
     238            "type": "zip",
     239            "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
     240            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
     241            "shasum": ""
     242        },
     243        "require": {
     244            "php": ">=5.3.0"
     245        },
     246        "time": "2016-08-06T14:39:51+00:00",
     247        "type": "library",
     248        "extra": {
     249            "branch-alias": {
     250                "dev-master": "1.0.x-dev"
     251            }
     252        },
     253        "installation-source": "dist",
     254        "autoload": {
     255            "psr-4": {
     256                "Psr\\Http\\Message\\": "src/"
     257            }
     258        },
     259        "notification-url": "https://packagist.org/downloads/",
     260        "license": [
     261            "MIT"
     262        ],
     263        "authors": [
     264            {
     265                "name": "PHP-FIG",
     266                "homepage": "http://www.php-fig.org/"
     267            }
     268        ],
     269        "description": "Common interface for HTTP messages",
     270        "homepage": "https://github.com/php-fig/http-message",
     271        "keywords": [
    235272            "http",
    236             "http client",
    237             "rest",
    238             "web service"
    239         ]
    240     },
    241     {
    242         "name": "algorithmia/algorithmia",
    243         "version": "dev-php56",
    244         "version_normalized": "dev-php56",
    245         "source": {
    246             "type": "git",
    247             "url": "https://github.com/kenburcham/algorithmia-php",
    248             "reference": "6da6906f172ab83735f217fed87e68e9f1b95f01"
    249         },
    250         "require": {
    251             "guzzlehttp/guzzle": "^6.3"
    252         },
    253         "require-dev": {
    254             "phpunit/phpunit": "^5"
    255         },
    256         "time": "2018-07-27 19:23:54",
    257         "type": "library",
    258         "installation-source": "source",
    259         "autoload": {
    260             "psr-0": {
    261                 "Algorithmia": "src/"
    262             }
    263         },
    264         "license": [
    265             "MIT"
    266         ],
    267         "authors": [
    268             {
    269                 "name": "Jon Peck",
    270                 "email": "jpeck@algorithmia.com"
    271             },
    272             {
    273                 "name": "Ken Burcham",
    274                 "email": "kenburcham@gmail.com"
    275             }
    276         ],
    277         "description": "PHP Client for Algorithmia.com",
    278         "homepage": "https://algorithmia.com"
     273            "http-message",
     274            "psr",
     275            "psr-7",
     276            "request",
     277            "response"
     278        ]
    279279    }
    280280]
  • algorithmia/trunk/algorithmia.php

    r1924291 r1926456  
    55Description: Use Algorithmia Artificial Intelligence in your WordPress.
    66Text Domain: algo
    7 Version: 2.0.0
    8 Author: algorithmia.com
     7Version: 1.0
     8Author: kenburcham@gmail.com
    99License: MIT
    1010*/
  • algorithmia/trunk/composer.json

    r1924261 r1926456  
    33        {
    44            "type": "git",
    5             "url": "https://github.com/kenburcham/algorithmia-php"
     5            "url": "https://github.com/algorithmiaio/algorithmia-php"
    66        }
    77    ],
    88    "require": {
    9         "algorithmia/algorithmia":"dev-php56"
     9        "algorithmia/algorithmia":"dev-master"
    1010    }
    1111}
  • algorithmia/trunk/composer.lock

    r1924261 r1926456  
    22    "_readme": [
    33        "This file locks the dependencies of your project to a known state",
    4         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
     4        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
    55        "This file is @generated automatically"
    66    ],
    7     "hash": "8d36c264272a381ddce818d773474437",
    8     "content-hash": "0075010da68717ee6e99bb69840d5c9c",
     7    "content-hash": "c4eeed9c8b6a56f9fa102abe0780680b",
    98    "packages": [
    109        {
    1110            "name": "algorithmia/algorithmia",
    12             "version": "dev-php56",
    13             "source": {
    14                 "type": "git",
    15                 "url": "https://github.com/kenburcham/algorithmia-php",
    16                 "reference": "6da6906f172ab83735f217fed87e68e9f1b95f01"
     11            "version": "dev-master",
     12            "source": {
     13                "type": "git",
     14                "url": "https://github.com/algorithmiaio/algorithmia-php",
     15                "reference": "fc3679cee9fd3a3ce0652886fac7bf10a958fbfb"
    1716            },
    1817            "require": {
     
    4342            "description": "PHP Client for Algorithmia.com",
    4443            "homepage": "https://algorithmia.com",
    45             "time": "2018-07-27 19:23:54"
     44            "time": "2018-08-16T21:08:57+00:00"
    4645        },
    4746        {
     
    108107                "web service"
    109108            ],
    110             "time": "2018-04-22 15:46:56"
     109            "time": "2018-04-22T15:46:56+00:00"
    111110        },
    112111        {
     
    159158                "promise"
    160159            ],
    161             "time": "2016-12-20 10:07:11"
     160            "time": "2016-12-20T10:07:11+00:00"
    162161        },
    163162        {
     
    224223                "url"
    225224            ],
    226             "time": "2017-03-20 17:10:46"
     225            "time": "2017-03-20T17:10:46+00:00"
    227226        },
    228227        {
     
    274273                "response"
    275274            ],
    276             "time": "2016-08-06 14:39:51"
     275            "time": "2016-08-06T14:39:51+00:00"
    277276        }
    278277    ],
  • algorithmia/trunk/readme.txt

    r1924291 r1926456  
    55Requires PHP: 5.6
    66Tested up to: 4.9.7
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    6262= 2.0 =
    6363* Complete rewrite using official Algorithmia PHP Client
     64
     65= 2.0.1 =
     66* Require trunk of algorithmiaio/algorithmia-php (PHP 5.6-7 compatible)
  • algorithmia/trunk/vendor/algorithmia/algorithmia/src/Algorithmia/AlgoResponse.php

    r1924261 r1926456  
    44
    55class AlgoResponse {
     6    /**
     7     * @var \Psr\Http\Message\ResponseInterface
     8     */
    69    private $httpResponse;
    710    public $result;
     
    912
    1013    /**
    11      * @param $in_httpResponse HttpResponse object
     14     * @param $in_httpResponse \Psr\Http\Message\ResponseInterface object
    1215     * @param $in_result Object result object from algorithm call
    1316     */
     
    1821    }
    1922
     23    /**
     24     * @return \Psr\Http\Message\ResponseInterface
     25     */
    2026    public function getHttpResponse(){
    2127        return $this->httpResponse;
  • algorithmia/trunk/vendor/algorithmia/algorithmia/src/Algorithmia/Algorithm.php

    r1924261 r1926456  
    1010    /**
    1111     * Client we use to make API calls to the algorithm.
    12      * @var Algorithmia/Client $client
     12     * @var Client $client
    1313     */
    1414    private $client;
     
    2323     * Construct the Algorithmia/Algorithm
    2424     * @param string $in_algo
    25      * @param Algorithmia\Client $client
     25     * @param Client $client
    2626     */
    2727    public function __construct( $in_algo, Client $in_client = null)
     
    3434     * Execute an API call for this Algorithm
    3535     * @param mixed $in_input The input to send to the algorithm.
     36     * @return AlgoResponse the AlgoResponse object for the result
    3637     */
    3738    public function pipe($in_input)
     
    4243    /**
    4344     * Execute an API call for this Algorithm asynchronously.
    44      * @param \Guzzle\Promise\Promise the promise
     45     * @param mixed $in_input The input to send to the algorithm.
     46     * @return \GuzzleHttp\Promise\PromiseInterface Promise which return AlgoResponse when resolved
    4547     */
    4648    public function pipeAsync($in_input)
     
    5254     * Set options on the client such as timeout
    5355     * @param array $in_options An array of options: ['timeout' => 120]
    54      * @return Algorithmia\Algorithm $this
     56     * @return self $this
    5557     */
    5658    public function setOptions(array $in_options = array())
  • algorithmia/trunk/vendor/algorithmia/algorithmia/src/Algorithmia/Client.php

    r1924261 r1926456  
    1919    /**
    2020     * http client that manages our http calls
    21      * @var Algorithmia\HttpClient $http
     21     * @var HttpClient $http
    2222     */
    2323    private $http_client;
     
    5757     * Set options for the Algo Client
    5858     * @param array Array of parameters:  ['timeout' => 120, 'server' => 'https://api.algorithmia.com']
    59      * @return Algorithmia\Client
     59     * @return HttpClient
    6060     */
    6161    public function setOptions(array $in_options = array()) {
     
    7575     * Get an Algorithmia\Algorithm that represents the algorithm to call.
    7676     * @param string $in_algo The algorithm to call.
    77      * @return Algorithmia\Algorithm
     77     * @return Algorithm
    7878     */
    7979    public function algo($in_algo) {
     
    8484     * Get an Algorithmia\DataDirectory that represents a directory.
    8585     * @param string $in_dataurl The data directory url, e.g.: data://.my/folder
    86      * @return Algorithmia\DataDirectory
     86     * @return DataDirectory
    8787     */
    8888    public function dir($in_dataurl) {
     
    9393     * Get an Algorithmia\DataFile that represents a file.
    9494     * @param string $in_dataurl The full path to the file, e.g.: data://.my/folder/file.txt
    95      * @return Algorithmia\DataFile
     95     * @return DataFile
    9696     */
    9797    public function file($in_datafile) {
     
    145145     * @param string $in_algo The algorithm to call.
    146146     * @param mixed $in_input The input to send to the algorithm. Can be a string or an object.
    147      * @return Algorithmia\AlgoResponse the AlgoResponse object for the result
     147     * @return AlgoResponse|\GuzzleHttp\Promise\PromiseInterface the AlgoResponse object for the result
    148148     */
    149149    public function doAlgoPipe($in_algo, $in_input, $in_async = false) {
     
    188188
    189189    //builds the algoresponse from the response object
    190     public function buildAlgoResponse($response) {
     190    public function buildAlgoResponse(\Psr\Http\Message\ResponseInterface $response) {
    191191        $str_result = $response->getBody()->getContents();
    192192
  • algorithmia/trunk/vendor/algorithmia/algorithmia/src/Algorithmia/DataObject.php

    r1924261 r1926456  
    2121     * Constructs a DataObject ready for fetching or creating
    2222     * @param string $in_dataurl The URL for the DataObject to represent
    23      * @param Algorithmia\Client $client The client object to use if you want to actually connect.
    24      * @return Algorithmia\DataObject
     23     * @param Client $client The client object to use if you want to actually connect.
    2524     */
    2625    public function __construct($in_dataurl, Client $in_client = null){
  • algorithmia/trunk/vendor/algorithmia/algorithmia/src/Algorithmia/HttpClient.php

    r1924261 r1926456  
    1414     /**
    1515     * Guzzle http client configured with json headers
    16      * @var GuzzleHttp\ClientInterface $json_http
     16     * @var \GuzzleHttp\Client $json_http
    1717     */
    1818    private $json_http;
     
    2020    /**
    2121     * Guzzle http client configured with binary headers
    22      * @var GuzzleHttp\ClientInterface $bin_http
     22     * @var \GuzzleHttp\Client $bin_http
    2323     */
    2424    private $bin_http;
     
    5757     * Set options for the Algo Client
    5858     * @param array Array of parameters:  ['timeout' => 120, 'server' => 'https://api.algorithmia.com']
    59      * @return Algorithmia\Client
     59     * @return self
    6060     */
    6161    public function setOptions(array $in_options = array()) {
     
    9393     * @param $in_url string of URL to call with PUT
    9494     * @param $in_input mixed payload to deliver to api endpoint. Can be a string or an object.
    95      * @return httpresponse Object
     95     * @return \Psr\Http\Message\ResponseInterface Object
    9696     */
    9797    public function put($in_url, $in_input, $in_content_type){
     
    114114     * @param $in_url string of URL to call with POST
    115115     * @param $in_input mixed payload to deliver to api endpoint. Can be a string or an object.
    116      * @return httpresponse Object
     116     * @return \Psr\Http\Message\ResponseInterface Object
    117117     */
    118118    public function post($in_url, $in_input, $in_content_type, $in_async=false){
  • algorithmia/trunk/vendor/autoload.php

    r1924261 r1926456  
    33// autoload.php @generated by Composer
    44
    5 require_once __DIR__ . '/composer' . '/autoload_real.php';
     5require_once __DIR__ . '/composer/autoload_real.php';
    66
    77return ComposerAutoloaderInit2c42de3fea18cdd67ec9ab2a226ccaae::getLoader();
  • algorithmia/trunk/vendor/composer/ClassLoader.php

    r1924261 r1926456  
    5454    private $useIncludePath = false;
    5555    private $classMap = array();
    56 
    5756    private $classMapAuthoritative = false;
     57    private $missingClasses = array();
     58    private $apcuPrefix;
    5859
    5960    public function getPrefixes()
     
    273274
    274275    /**
     276     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
     277     *
     278     * @param string|null $apcuPrefix
     279     */
     280    public function setApcuPrefix($apcuPrefix)
     281    {
     282        $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
     283    }
     284
     285    /**
     286     * The APCu prefix in use, or null if APCu caching is not enabled.
     287     *
     288     * @return string|null
     289     */
     290    public function getApcuPrefix()
     291    {
     292        return $this->apcuPrefix;
     293    }
     294
     295    /**
    275296     * Registers this instance as an autoloader.
    276297     *
     
    314335    public function findFile($class)
    315336    {
    316         // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
    317         if ('\\' == $class[0]) {
    318             $class = substr($class, 1);
    319         }
    320 
    321337        // class map lookup
    322338        if (isset($this->classMap[$class])) {
    323339            return $this->classMap[$class];
    324340        }
    325         if ($this->classMapAuthoritative) {
     341        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
    326342            return false;
    327343        }
     344        if (null !== $this->apcuPrefix) {
     345            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
     346            if ($hit) {
     347                return $file;
     348            }
     349        }
    328350
    329351        $file = $this->findFileWithExtension($class, '.php');
    330352
    331353        // Search for Hack files if we are running on HHVM
    332         if ($file === null && defined('HHVM_VERSION')) {
     354        if (false === $file && defined('HHVM_VERSION')) {
    333355            $file = $this->findFileWithExtension($class, '.hh');
    334356        }
    335357
    336         if ($file === null) {
     358        if (null !== $this->apcuPrefix) {
     359            apcu_add($this->apcuPrefix.$class, $file);
     360        }
     361
     362        if (false === $file) {
    337363            // Remember that this class does not exist.
    338             return $this->classMap[$class] = false;
     364            $this->missingClasses[$class] = true;
    339365        }
    340366
     
    349375        $first = $class[0];
    350376        if (isset($this->prefixLengthsPsr4[$first])) {
    351             foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
    352                 if (0 === strpos($class, $prefix)) {
    353                     foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
    354                         if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
     377            $subPath = $class;
     378            while (false !== $lastPos = strrpos($subPath, '\\')) {
     379                $subPath = substr($subPath, 0, $lastPos);
     380                $search = $subPath . '\\';
     381                if (isset($this->prefixDirsPsr4[$search])) {
     382                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
     383                    foreach ($this->prefixDirsPsr4[$search] as $dir) {
     384                        if (file_exists($file = $dir . $pathEnd)) {
    355385                            return $file;
    356386                        }
     
    400430            return $file;
    401431        }
     432
     433        return false;
    402434    }
    403435}
  • algorithmia/trunk/vendor/composer/LICENSE

    r1924261 r1926456  
    1 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
    2 Upstream-Name: Composer
    3 Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be>
    4 Source: https://github.com/composer/composer
    51
    6 Files: *
    7 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    8            2016, Jordi Boggiano <j.boggiano@seld.be>
    9 License: Expat
     2Copyright (c) Nils Adermann, Jordi Boggiano
    103
    11 Files: res/cacert.pem
    12 Copyright: 2015, Mozilla Foundation
    13 License: MPL-2.0
     4Permission is hereby granted, free of charge, to any person obtaining a copy
     5of this software and associated documentation files (the "Software"), to deal
     6in the Software without restriction, including without limitation the rights
     7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8copies of the Software, and to permit persons to whom the Software is furnished
     9to do so, subject to the following conditions:
    1410
    15 Files: src/Composer/Util/RemoteFilesystem.php
    16        src/Composer/Util/TlsHelper.php
    17 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    18            2016, Jordi Boggiano <j.boggiano@seld.be>
    19            2013, Evan Coury <me@evancoury.com>
    20 License: Expat and BSD-2-Clause
     11The above copyright notice and this permission notice shall be included in all
     12copies or substantial portions of the Software.
    2113
    22 License: BSD-2-Clause
    23  Redistribution and use in source and binary forms, with or without modification,
    24  are permitted provided that the following conditions are met:
    25  .
    26      * Redistributions of source code must retain the above copyright notice,
    27        this list of conditions and the following disclaimer.
    28  .
    29      * Redistributions in binary form must reproduce the above copyright notice,
    30        this list of conditions and the following disclaimer in the documentation
    31        and/or other materials provided with the distribution.
    32  .
    33  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    34  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    35  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    36  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
    37  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    38  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    39  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
    40  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    41  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    42  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     20THE SOFTWARE.
    4321
    44 License: Expat
    45  Permission is hereby granted, free of charge, to any person obtaining a copy
    46  of this software and associated documentation files (the "Software"), to deal
    47  in the Software without restriction, including without limitation the rights
    48  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    49  copies of the Software, and to permit persons to whom the Software is furnished
    50  to do so, subject to the following conditions:
    51  .
    52  The above copyright notice and this permission notice shall be included in all
    53  copies or substantial portions of the Software.
    54  .
    55  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    56  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    57  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    58  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    59  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    60  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    61  THE SOFTWARE.
    62 
    63 License: MPL-2.0
    64  1. Definitions
    65  --------------
    66  .
    67  1.1. "Contributor"
    68      means each individual or legal entity that creates, contributes to
    69      the creation of, or owns Covered Software.
    70  .
    71  1.2. "Contributor Version"
    72      means the combination of the Contributions of others (if any) used
    73      by a Contributor and that particular Contributor's Contribution.
    74  .
    75  1.3. "Contribution"
    76      means Covered Software of a particular Contributor.
    77  .
    78  1.4. "Covered Software"
    79      means Source Code Form to which the initial Contributor has attached
    80      the notice in Exhibit A, the Executable Form of such Source Code
    81      Form, and Modifications of such Source Code Form, in each case
    82      including portions thereof.
    83  .
    84  1.5. "Incompatible With Secondary Licenses"
    85      means
    86  .
    87      (a) that the initial Contributor has attached the notice described
    88          in Exhibit B to the Covered Software; or
    89  .
    90      (b) that the Covered Software was made available under the terms of
    91          version 1.1 or earlier of the License, but not also under the
    92          terms of a Secondary License.
    93  .
    94  1.6. "Executable Form"
    95      means any form of the work other than Source Code Form.
    96  .
    97  1.7. "Larger Work"
    98      means a work that combines Covered Software with other material, in
    99      a separate file or files, that is not Covered Software.
    100  .
    101  1.8. "License"
    102      means this document.
    103  .
    104  1.9. "Licensable"
    105      means having the right to grant, to the maximum extent possible,
    106      whether at the time of the initial grant or subsequently, any and
    107      all of the rights conveyed by this License.
    108  .
    109  1.10. "Modifications"
    110      means any of the following:
    111  .
    112      (a) any file in Source Code Form that results from an addition to,
    113          deletion from, or modification of the contents of Covered
    114          Software; or
    115  .
    116      (b) any new file in Source Code Form that contains any Covered
    117          Software.
    118  .
    119  1.11. "Patent Claims" of a Contributor
    120      means any patent claim(s), including without limitation, method,
    121      process, and apparatus claims, in any patent Licensable by such
    122      Contributor that would be infringed, but for the grant of the
    123      License, by the making, using, selling, offering for sale, having
    124      made, import, or transfer of either its Contributions or its
    125      Contributor Version.
    126  .
    127  1.12. "Secondary License"
    128      means either the GNU General Public License, Version 2.0, the GNU
    129      Lesser General Public License, Version 2.1, the GNU Affero General
    130      Public License, Version 3.0, or any later versions of those
    131      licenses.
    132  .
    133  1.13. "Source Code Form"
    134      means the form of the work preferred for making modifications.
    135  .
    136  1.14. "You" (or "Your")
    137      means an individual or a legal entity exercising rights under this
    138      License. For legal entities, "You" includes any entity that
    139      controls, is controlled by, or is under common control with You. For
    140      purposes of this definition, "control" means (a) the power, direct
    141      or indirect, to cause the direction or management of such entity,
    142      whether by contract or otherwise, or (b) ownership of more than
    143      fifty percent (50%) of the outstanding shares or beneficial
    144      ownership of such entity.
    145  .
    146  2. License Grants and Conditions
    147  --------------------------------
    148  .
    149  2.1. Grants
    150  .
    151  Each Contributor hereby grants You a world-wide, royalty-free,
    152  non-exclusive license:
    153  .
    154  (a) under intellectual property rights (other than patent or trademark)
    155      Licensable by such Contributor to use, reproduce, make available,
    156      modify, display, perform, distribute, and otherwise exploit its
    157      Contributions, either on an unmodified basis, with Modifications, or
    158      as part of a Larger Work; and
    159  .
    160  (b) under Patent Claims of such Contributor to make, use, sell, offer
    161      for sale, have made, import, and otherwise transfer either its
    162      Contributions or its Contributor Version.
    163  .
    164  2.2. Effective Date
    165  .
    166  The licenses granted in Section 2.1 with respect to any Contribution
    167  become effective for each Contribution on the date the Contributor first
    168  distributes such Contribution.
    169  .
    170  2.3. Limitations on Grant Scope
    171  .
    172  The licenses granted in this Section 2 are the only rights granted under
    173  this License. No additional rights or licenses will be implied from the
    174  distribution or licensing of Covered Software under this License.
    175  Notwithstanding Section 2.1(b) above, no patent license is granted by a
    176  Contributor:
    177  .
    178  (a) for any code that a Contributor has removed from Covered Software;
    179      or
    180  .
    181  (b) for infringements caused by: (i) Your and any other third party's
    182      modifications of Covered Software, or (ii) the combination of its
    183      Contributions with other software (except as part of its Contributor
    184      Version); or
    185  .
    186  (c) under Patent Claims infringed by Covered Software in the absence of
    187      its Contributions.
    188  .
    189  This License does not grant any rights in the trademarks, service marks,
    190  or logos of any Contributor (except as may be necessary to comply with
    191  the notice requirements in Section 3.4).
    192  .
    193  2.4. Subsequent Licenses
    194  .
    195  No Contributor makes additional grants as a result of Your choice to
    196  distribute the Covered Software under a subsequent version of this
    197  License (see Section 10.2) or under the terms of a Secondary License (if
    198  permitted under the terms of Section 3.3).
    199  .
    200  2.5. Representation
    201  .
    202  Each Contributor represents that the Contributor believes its
    203  Contributions are its original creation(s) or it has sufficient rights
    204  to grant the rights to its Contributions conveyed by this License.
    205  .
    206  2.6. Fair Use
    207  .
    208  This License is not intended to limit any rights You have under
    209  applicable copyright doctrines of fair use, fair dealing, or other
    210  equivalents.
    211  .
    212  2.7. Conditions
    213  .
    214  Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
    215  in Section 2.1.
    216  .
    217  3. Responsibilities
    218  -------------------
    219  .
    220  3.1. Distribution of Source Form
    221  .
    222  All distribution of Covered Software in Source Code Form, including any
    223  Modifications that You create or to which You contribute, must be under
    224  the terms of this License. You must inform recipients that the Source
    225  Code Form of the Covered Software is governed by the terms of this
    226  License, and how they can obtain a copy of this License. You may not
    227  attempt to alter or restrict the recipients' rights in the Source Code
    228  Form.
    229  .
    230  3.2. Distribution of Executable Form
    231  .
    232  If You distribute Covered Software in Executable Form then:
    233  .
    234  (a) such Covered Software must also be made available in Source Code
    235      Form, as described in Section 3.1, and You must inform recipients of
    236      the Executable Form how they can obtain a copy of such Source Code
    237      Form by reasonable means in a timely manner, at a charge no more
    238      than the cost of distribution to the recipient; and
    239  .
    240  (b) You may distribute such Executable Form under the terms of this
    241      License, or sublicense it under different terms, provided that the
    242      license for the Executable Form does not attempt to limit or alter
    243      the recipients' rights in the Source Code Form under this License.
    244  .
    245  3.3. Distribution of a Larger Work
    246  .
    247  You may create and distribute a Larger Work under terms of Your choice,
    248  provided that You also comply with the requirements of this License for
    249  the Covered Software. If the Larger Work is a combination of Covered
    250  Software with a work governed by one or more Secondary Licenses, and the
    251  Covered Software is not Incompatible With Secondary Licenses, this
    252  License permits You to additionally distribute such Covered Software
    253  under the terms of such Secondary License(s), so that the recipient of
    254  the Larger Work may, at their option, further distribute the Covered
    255  Software under the terms of either this License or such Secondary
    256  License(s).
    257  .
    258  3.4. Notices
    259  .
    260  You may not remove or alter the substance of any license notices
    261  (including copyright notices, patent notices, disclaimers of warranty,
    262  or limitations of liability) contained within the Source Code Form of
    263  the Covered Software, except that You may alter any license notices to
    264  the extent required to remedy known factual inaccuracies.
    265  .
    266  3.5. Application of Additional Terms
    267  .
    268  You may choose to offer, and to charge a fee for, warranty, support,
    269  indemnity or liability obligations to one or more recipients of Covered
    270  Software. However, You may do so only on Your own behalf, and not on
    271  behalf of any Contributor. You must make it absolutely clear that any
    272  such warranty, support, indemnity, or liability obligation is offered by
    273  You alone, and You hereby agree to indemnify every Contributor for any
    274  liability incurred by such Contributor as a result of warranty, support,
    275  indemnity or liability terms You offer. You may include additional
    276  disclaimers of warranty and limitations of liability specific to any
    277  jurisdiction.
    278  .
    279  4. Inability to Comply Due to Statute or Regulation
    280  ---------------------------------------------------
    281  .
    282  If it is impossible for You to comply with any of the terms of this
    283  License with respect to some or all of the Covered Software due to
    284  statute, judicial order, or regulation then You must: (a) comply with
    285  the terms of this License to the maximum extent possible; and (b)
    286  describe the limitations and the code they affect. Such description must
    287  be placed in a text file included with all distributions of the Covered
    288  Software under this License. Except to the extent prohibited by statute
    289  or regulation, such description must be sufficiently detailed for a
    290  recipient of ordinary skill to be able to understand it.
    291  .
    292  5. Termination
    293  --------------
    294  .
    295  5.1. The rights granted under this License will terminate automatically
    296  if You fail to comply with any of its terms. However, if You become
    297  compliant, then the rights granted under this License from a particular
    298  Contributor are reinstated (a) provisionally, unless and until such
    299  Contributor explicitly and finally terminates Your grants, and (b) on an
    300  ongoing basis, if such Contributor fails to notify You of the
    301  non-compliance by some reasonable means prior to 60 days after You have
    302  come back into compliance. Moreover, Your grants from a particular
    303  Contributor are reinstated on an ongoing basis if such Contributor
    304  notifies You of the non-compliance by some reasonable means, this is the
    305  first time You have received notice of non-compliance with this License
    306  from such Contributor, and You become compliant prior to 30 days after
    307  Your receipt of the notice.
    308  .
    309  5.2. If You initiate litigation against any entity by asserting a patent
    310  infringement claim (excluding declaratory judgment actions,
    311  counter-claims, and cross-claims) alleging that a Contributor Version
    312  directly or indirectly infringes any patent, then the rights granted to
    313  You by any and all Contributors for the Covered Software under Section
    314  2.1 of this License shall terminate.
    315  .
    316  5.3. In the event of termination under Sections 5.1 or 5.2 above, all
    317  end user license agreements (excluding distributors and resellers) which
    318  have been validly granted by You or Your distributors under this License
    319  prior to termination shall survive termination.
    320  .
    321   ************************************************************************
    322   *                                                                      *
    323   *  6. Disclaimer of Warranty                                           *
    324   *  -------------------------                                           *
    325   *                                                                      *
    326   *  Covered Software is provided under this License on an "as is"       *
    327   *  basis, without warranty of any kind, either expressed, implied, or  *
    328   *  statutory, including, without limitation, warranties that the       *
    329   *  Covered Software is free of defects, merchantable, fit for a        *
    330   *  particular purpose or non-infringing. The entire risk as to the     *
    331   *  quality and performance of the Covered Software is with You.        *
    332   *  Should any Covered Software prove defective in any respect, You     *
    333   *  (not any Contributor) assume the cost of any necessary servicing,   *
    334   *  repair, or correction. This disclaimer of warranty constitutes an   *
    335   *  essential part of this License. No use of any Covered Software is   *
    336   *  authorized under this License except under this disclaimer.         *
    337   *                                                                      *
    338   ************************************************************************
    339  .
    340   ************************************************************************
    341   *                                                                      *
    342   *  7. Limitation of Liability                                          *
    343   *  --------------------------                                          *
    344   *                                                                      *
    345   *  Under no circumstances and under no legal theory, whether tort      *
    346   *  (including negligence), contract, or otherwise, shall any           *
    347   *  Contributor, or anyone who distributes Covered Software as          *
    348   *  permitted above, be liable to You for any direct, indirect,         *
    349   *  special, incidental, or consequential damages of any character      *
    350   *  including, without limitation, damages for lost profits, loss of    *
    351   *  goodwill, work stoppage, computer failure or malfunction, or any    *
    352   *  and all other commercial damages or losses, even if such party      *
    353   *  shall have been informed of the possibility of such damages. This   *
    354   *  limitation of liability shall not apply to liability for death or   *
    355   *  personal injury resulting from such party's negligence to the       *
    356   *  extent applicable law prohibits such limitation. Some               *
    357   *  jurisdictions do not allow the exclusion or limitation of           *
    358   *  incidental or consequential damages, so this exclusion and          *
    359   *  limitation may not apply to You.                                    *
    360   *                                                                      *
    361   ************************************************************************
    362  .
    363  8. Litigation
    364  -------------
    365  .
    366  Any litigation relating to this License may be brought only in the
    367  courts of a jurisdiction where the defendant maintains its principal
    368  place of business and such litigation shall be governed by laws of that
    369  jurisdiction, without reference to its conflict-of-law provisions.
    370  Nothing in this Section shall prevent a party's ability to bring
    371  cross-claims or counter-claims.
    372  .
    373  9. Miscellaneous
    374  ----------------
    375  .
    376  This License represents the complete agreement concerning the subject
    377  matter hereof. If any provision of this License is held to be
    378  unenforceable, such provision shall be reformed only to the extent
    379  necessary to make it enforceable. Any law or regulation which provides
    380  that the language of a contract shall be construed against the drafter
    381  shall not be used to construe this License against a Contributor.
    382  .
    383  10. Versions of the License
    384  ---------------------------
    385  .
    386  10.1. New Versions
    387  .
    388  Mozilla Foundation is the license steward. Except as provided in Section
    389  10.3, no one other than the license steward has the right to modify or
    390  publish new versions of this License. Each version will be given a
    391  distinguishing version number.
    392  .
    393  10.2. Effect of New Versions
    394  .
    395  You may distribute the Covered Software under the terms of the version
    396  of the License under which You originally received the Covered Software,
    397  or under the terms of any subsequent version published by the license
    398  steward.
    399  .
    400  10.3. Modified Versions
    401  .
    402  If you create software not governed by this License, and you want to
    403  create a new license for such software, you may create and use a
    404  modified version of this License if you rename the license and remove
    405  any references to the name of the license steward (except to note that
    406  such modified license differs from this License).
    407  .
    408  10.4. Distributing Source Code Form that is Incompatible With Secondary
    409  Licenses
    410  .
    411  If You choose to distribute Source Code Form that is Incompatible With
    412  Secondary Licenses under the terms of this version of the License, the
    413  notice described in Exhibit B of this License must be attached.
    414  .
    415  Exhibit A - Source Code Form License Notice
    416  -------------------------------------------
    417  .
    418    This Source Code Form is subject to the terms of the Mozilla Public
    419    License, v. 2.0. If a copy of the MPL was not distributed with this
    420    file, You can obtain one at http://mozilla.org/MPL/2.0/.
    421  .
    422  If it is not possible or desirable to put the notice in a particular
    423  file, then You may include the notice in a location (such as a LICENSE
    424  file in a relevant directory) where a recipient would be likely to look
    425  for such a notice.
    426  .
    427  You may add additional accurate notices of copyright ownership.
    428  .
    429  Exhibit B - "Incompatible With Secondary Licenses" Notice
    430  ---------------------------------------------------------
    431  .
    432    This Source Code Form is "Incompatible With Secondary Licenses", as
    433    defined by the Mozilla Public License, v. 2.0.
  • algorithmia/trunk/vendor/composer/autoload_real.php

    r1924261 r1926456  
    2424        spl_autoload_unregister(array('ComposerAutoloaderInit2c42de3fea18cdd67ec9ab2a226ccaae', 'loadClassLoader'));
    2525
    26         $map = require __DIR__ . '/autoload_namespaces.php';
    27         foreach ($map as $namespace => $path) {
    28             $loader->set($namespace, $path);
    29         }
     26        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     27        if ($useStaticLoader) {
     28            require_once __DIR__ . '/autoload_static.php';
    3029
    31         $map = require __DIR__ . '/autoload_psr4.php';
    32         foreach ($map as $namespace => $path) {
    33             $loader->setPsr4($namespace, $path);
    34         }
     30            call_user_func(\Composer\Autoload\ComposerStaticInit2c42de3fea18cdd67ec9ab2a226ccaae::getInitializer($loader));
     31        } else {
     32            $map = require __DIR__ . '/autoload_namespaces.php';
     33            foreach ($map as $namespace => $path) {
     34                $loader->set($namespace, $path);
     35            }
    3536
    36         $classMap = require __DIR__ . '/autoload_classmap.php';
    37         if ($classMap) {
    38             $loader->addClassMap($classMap);
     37            $map = require __DIR__ . '/autoload_psr4.php';
     38            foreach ($map as $namespace => $path) {
     39                $loader->setPsr4($namespace, $path);
     40            }
     41
     42            $classMap = require __DIR__ . '/autoload_classmap.php';
     43            if ($classMap) {
     44                $loader->addClassMap($classMap);
     45            }
    3946        }
    4047
    4148        $loader->register(true);
    4249
    43         $includeFiles = require __DIR__ . '/autoload_files.php';
     50        if ($useStaticLoader) {
     51            $includeFiles = Composer\Autoload\ComposerStaticInit2c42de3fea18cdd67ec9ab2a226ccaae::$files;
     52        } else {
     53            $includeFiles = require __DIR__ . '/autoload_files.php';
     54        }
    4455        foreach ($includeFiles as $fileIdentifier => $file) {
    4556            composerRequire2c42de3fea18cdd67ec9ab2a226ccaae($fileIdentifier, $file);
  • algorithmia/trunk/vendor/composer/installed.json

    r1924261 r1926456  
    11[
     2    {
     3        "name": "algorithmia/algorithmia",
     4        "version": "dev-master",
     5        "version_normalized": "9999999-dev",
     6        "source": {
     7            "type": "git",
     8            "url": "https://github.com/algorithmiaio/algorithmia-php",
     9            "reference": "fc3679cee9fd3a3ce0652886fac7bf10a958fbfb"
     10        },
     11        "require": {
     12            "guzzlehttp/guzzle": "^6.3"
     13        },
     14        "require-dev": {
     15            "phpunit/phpunit": "^5"
     16        },
     17        "time": "2018-08-16T21:08:57+00:00",
     18        "type": "library",
     19        "installation-source": "source",
     20        "autoload": {
     21            "psr-0": {
     22                "Algorithmia": "src/"
     23            }
     24        },
     25        "license": [
     26            "MIT"
     27        ],
     28        "authors": [
     29            {
     30                "name": "Jon Peck",
     31                "email": "jpeck@algorithmia.com"
     32            },
     33            {
     34                "name": "Ken Burcham",
     35                "email": "kenburcham@gmail.com"
     36            }
     37        ],
     38        "description": "PHP Client for Algorithmia.com",
     39        "homepage": "https://algorithmia.com"
     40    },
     41    {
     42        "name": "guzzlehttp/guzzle",
     43        "version": "6.3.3",
     44        "version_normalized": "6.3.3.0",
     45        "source": {
     46            "type": "git",
     47            "url": "https://github.com/guzzle/guzzle.git",
     48            "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
     49        },
     50        "dist": {
     51            "type": "zip",
     52            "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
     53            "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
     54            "shasum": ""
     55        },
     56        "require": {
     57            "guzzlehttp/promises": "^1.0",
     58            "guzzlehttp/psr7": "^1.4",
     59            "php": ">=5.5"
     60        },
     61        "require-dev": {
     62            "ext-curl": "*",
     63            "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
     64            "psr/log": "^1.0"
     65        },
     66        "suggest": {
     67            "psr/log": "Required for using the Log middleware"
     68        },
     69        "time": "2018-04-22T15:46:56+00:00",
     70        "type": "library",
     71        "extra": {
     72            "branch-alias": {
     73                "dev-master": "6.3-dev"
     74            }
     75        },
     76        "installation-source": "dist",
     77        "autoload": {
     78            "files": [
     79                "src/functions_include.php"
     80            ],
     81            "psr-4": {
     82                "GuzzleHttp\\": "src/"
     83            }
     84        },
     85        "notification-url": "https://packagist.org/downloads/",
     86        "license": [
     87            "MIT"
     88        ],
     89        "authors": [
     90            {
     91                "name": "Michael Dowling",
     92                "email": "mtdowling@gmail.com",
     93                "homepage": "https://github.com/mtdowling"
     94            }
     95        ],
     96        "description": "Guzzle is a PHP HTTP client library",
     97        "homepage": "http://guzzlephp.org/",
     98        "keywords": [
     99            "client",
     100            "curl",
     101            "framework",
     102            "http",
     103            "http client",
     104            "rest",
     105            "web service"
     106        ]
     107    },
    2108    {
    3109        "name": "guzzlehttp/promises",
     
    21127            "phpunit/phpunit": "^4.0"
    22128        },
    23         "time": "2016-12-20 10:07:11",
     129        "time": "2016-12-20T10:07:11+00:00",
    24130        "type": "library",
    25131        "extra": {
     
    54160    },
    55161    {
    56         "name": "psr/http-message",
    57         "version": "1.0.1",
    58         "version_normalized": "1.0.1.0",
    59         "source": {
    60             "type": "git",
    61             "url": "https://github.com/php-fig/http-message.git",
    62             "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
    63         },
    64         "dist": {
    65             "type": "zip",
    66             "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
    67             "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
    68             "shasum": ""
    69         },
    70         "require": {
    71             "php": ">=5.3.0"
    72         },
    73         "time": "2016-08-06 14:39:51",
    74         "type": "library",
    75         "extra": {
    76             "branch-alias": {
    77                 "dev-master": "1.0.x-dev"
    78             }
    79         },
    80         "installation-source": "dist",
    81         "autoload": {
    82             "psr-4": {
    83                 "Psr\\Http\\Message\\": "src/"
    84             }
    85         },
    86         "notification-url": "https://packagist.org/downloads/",
    87         "license": [
    88             "MIT"
    89         ],
    90         "authors": [
    91             {
    92                 "name": "PHP-FIG",
    93                 "homepage": "http://www.php-fig.org/"
    94             }
    95         ],
    96         "description": "Common interface for HTTP messages",
    97         "homepage": "https://github.com/php-fig/http-message",
    98         "keywords": [
    99             "http",
    100             "http-message",
    101             "psr",
    102             "psr-7",
    103             "request",
    104             "response"
    105         ]
    106     },
    107     {
    108162        "name": "guzzlehttp/psr7",
    109163        "version": "1.4.2",
     
    130184            "phpunit/phpunit": "~4.0"
    131185        },
    132         "time": "2017-03-20 17:10:46",
     186        "time": "2017-03-20T17:10:46+00:00",
    133187        "type": "library",
    134188        "extra": {
     
    173227    },
    174228    {
    175         "name": "guzzlehttp/guzzle",
    176         "version": "6.3.3",
    177         "version_normalized": "6.3.3.0",
    178         "source": {
    179             "type": "git",
    180             "url": "https://github.com/guzzle/guzzle.git",
    181             "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
    182         },
    183         "dist": {
    184             "type": "zip",
    185             "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
    186             "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
    187             "shasum": ""
    188         },
    189         "require": {
    190             "guzzlehttp/promises": "^1.0",
    191             "guzzlehttp/psr7": "^1.4",
    192             "php": ">=5.5"
    193         },
    194         "require-dev": {
    195             "ext-curl": "*",
    196             "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
    197             "psr/log": "^1.0"
    198         },
    199         "suggest": {
    200             "psr/log": "Required for using the Log middleware"
    201         },
    202         "time": "2018-04-22 15:46:56",
    203         "type": "library",
    204         "extra": {
    205             "branch-alias": {
    206                 "dev-master": "6.3-dev"
    207             }
    208         },
    209         "installation-source": "dist",
    210         "autoload": {
    211             "files": [
    212                 "src/functions_include.php"
    213             ],
    214             "psr-4": {
    215                 "GuzzleHttp\\": "src/"
    216             }
    217         },
    218         "notification-url": "https://packagist.org/downloads/",
    219         "license": [
    220             "MIT"
    221         ],
    222         "authors": [
    223             {
    224                 "name": "Michael Dowling",
    225                 "email": "mtdowling@gmail.com",
    226                 "homepage": "https://github.com/mtdowling"
    227             }
    228         ],
    229         "description": "Guzzle is a PHP HTTP client library",
    230         "homepage": "http://guzzlephp.org/",
    231         "keywords": [
    232             "client",
    233             "curl",
    234             "framework",
     229        "name": "psr/http-message",
     230        "version": "1.0.1",
     231        "version_normalized": "1.0.1.0",
     232        "source": {
     233            "type": "git",
     234            "url": "https://github.com/php-fig/http-message.git",
     235            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
     236        },
     237        "dist": {
     238            "type": "zip",
     239            "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
     240            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
     241            "shasum": ""
     242        },
     243        "require": {
     244            "php": ">=5.3.0"
     245        },
     246        "time": "2016-08-06T14:39:51+00:00",
     247        "type": "library",
     248        "extra": {
     249            "branch-alias": {
     250                "dev-master": "1.0.x-dev"
     251            }
     252        },
     253        "installation-source": "dist",
     254        "autoload": {
     255            "psr-4": {
     256                "Psr\\Http\\Message\\": "src/"
     257            }
     258        },
     259        "notification-url": "https://packagist.org/downloads/",
     260        "license": [
     261            "MIT"
     262        ],
     263        "authors": [
     264            {
     265                "name": "PHP-FIG",
     266                "homepage": "http://www.php-fig.org/"
     267            }
     268        ],
     269        "description": "Common interface for HTTP messages",
     270        "homepage": "https://github.com/php-fig/http-message",
     271        "keywords": [
    235272            "http",
    236             "http client",
    237             "rest",
    238             "web service"
    239         ]
    240     },
    241     {
    242         "name": "algorithmia/algorithmia",
    243         "version": "dev-php56",
    244         "version_normalized": "dev-php56",
    245         "source": {
    246             "type": "git",
    247             "url": "https://github.com/kenburcham/algorithmia-php",
    248             "reference": "6da6906f172ab83735f217fed87e68e9f1b95f01"
    249         },
    250         "require": {
    251             "guzzlehttp/guzzle": "^6.3"
    252         },
    253         "require-dev": {
    254             "phpunit/phpunit": "^5"
    255         },
    256         "time": "2018-07-27 19:23:54",
    257         "type": "library",
    258         "installation-source": "source",
    259         "autoload": {
    260             "psr-0": {
    261                 "Algorithmia": "src/"
    262             }
    263         },
    264         "license": [
    265             "MIT"
    266         ],
    267         "authors": [
    268             {
    269                 "name": "Jon Peck",
    270                 "email": "jpeck@algorithmia.com"
    271             },
    272             {
    273                 "name": "Ken Burcham",
    274                 "email": "kenburcham@gmail.com"
    275             }
    276         ],
    277         "description": "PHP Client for Algorithmia.com",
    278         "homepage": "https://algorithmia.com"
     273            "http-message",
     274            "psr",
     275            "psr-7",
     276            "request",
     277            "response"
     278        ]
    279279    }
    280280]
Note: See TracChangeset for help on using the changeset viewer.