├── src ├── js │ ├── .gitignore │ ├── package.json │ ├── instant-meilisearch.js │ └── package-lock.json └── css │ └── meilisearch_widget.css ├── vendor ├── psr │ ├── http-factory │ │ ├── .gitignore │ │ ├── .pullapprove.yml │ │ ├── src │ │ │ ├── UriFactoryInterface.php │ │ │ ├── RequestFactoryInterface.php │ │ │ ├── ResponseFactoryInterface.php │ │ │ ├── ServerRequestFactoryInterface.php │ │ │ ├── UploadedFileFactoryInterface.php │ │ │ └── StreamFactoryInterface.php │ │ ├── README.md │ │ ├── composer.json │ │ └── LICENSE │ ├── http-client │ │ ├── src │ │ │ ├── ClientExceptionInterface.php │ │ │ ├── ClientInterface.php │ │ │ ├── RequestExceptionInterface.php │ │ │ └── NetworkExceptionInterface.php │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── composer.json │ │ └── LICENSE │ └── http-message │ │ ├── README.md │ │ ├── composer.json │ │ ├── LICENSE │ │ └── CHANGELOG.md ├── meilisearch │ └── meilisearch-php │ │ ├── .gitignore │ │ ├── src │ │ ├── MeiliSearch.php │ │ ├── Endpoints │ │ │ ├── Keys.php │ │ │ ├── Stats.php │ │ │ ├── Health.php │ │ │ ├── Version.php │ │ │ ├── SysInfo.php │ │ │ └── Delegates │ │ │ │ └── HandlesDocuments.php │ │ ├── Contracts │ │ │ ├── Endpoint.php │ │ │ └── Http.php │ │ ├── Delegates │ │ │ ├── HandlesSystem.php │ │ │ └── HandlesIndex.php │ │ ├── Exceptions │ │ │ ├── TimeOutException.php │ │ │ └── HTTPRequestException.php │ │ └── Client.php │ │ ├── scripts │ │ └── tests.sh │ │ ├── .php_cs.dist │ │ ├── .github │ │ ├── workflows │ │ │ ├── release-drafter.yml │ │ │ └── tests.yml │ │ └── release-draft-template.yml │ │ ├── phpunit.xml │ │ ├── .editorconfig │ │ ├── tests │ │ ├── Settings │ │ │ ├── AcceptNewFieldsTest.php │ │ │ ├── DistinctAttributeTest.php │ │ │ ├── StopWordsTest.php │ │ │ ├── SynonymsTest.php │ │ │ ├── RankingRulesTest.php │ │ │ ├── AttributesForFacetingTest.php │ │ │ ├── SearchableAttributesTest.php │ │ │ └── DisplayedAttributesTest.php │ │ ├── TestCase.php │ │ └── Endpoints │ │ │ ├── UpdatesTest.php │ │ │ └── KeysAndPermissionsTest.php │ │ ├── composer.json │ │ └── LICENSE ├── symfony │ ├── polyfill-php70 │ │ ├── Resources │ │ │ └── stubs │ │ │ │ ├── Error.php │ │ │ │ ├── ParseError.php │ │ │ │ ├── TypeError.php │ │ │ │ ├── ArithmeticError.php │ │ │ │ ├── AssertionError.php │ │ │ │ ├── DivisionByZeroError.php │ │ │ │ └── SessionUpdateTimestampHandlerInterface.php │ │ ├── bootstrap.php │ │ ├── LICENSE │ │ ├── composer.json │ │ ├── README.md │ │ └── Php70.php │ ├── polyfill-intl-idn │ │ ├── Resources │ │ │ └── unidata │ │ │ │ ├── deviation.php │ │ │ │ ├── virama.php │ │ │ │ └── disallowed_STD3_valid.php │ │ ├── README.md │ │ ├── Info.php │ │ ├── LICENSE │ │ └── composer.json │ ├── polyfill-intl-normalizer │ │ ├── Resources │ │ │ └── stubs │ │ │ │ └── Normalizer.php │ │ ├── README.md │ │ ├── bootstrap.php │ │ ├── LICENSE │ │ └── composer.json │ └── polyfill-php72 │ │ ├── README.md │ │ ├── composer.json │ │ ├── LICENSE │ │ └── bootstrap.php ├── http-interop │ └── http-factory-guzzle │ │ ├── .gitignore │ │ ├── README.md │ │ ├── src │ │ ├── UriFactory.php │ │ ├── RequestFactory.php │ │ ├── ResponseFactory.php │ │ ├── StreamFactory.php │ │ ├── UploadedFileFactory.php │ │ └── ServerRequestFactory.php │ │ ├── .travis.yml │ │ ├── composer.json │ │ ├── LICENSE │ │ └── phpunit.xml.dist ├── guzzlehttp │ ├── guzzle │ │ ├── src │ │ │ ├── Exception │ │ │ │ ├── TooManyRedirectsException.php │ │ │ │ ├── TransferException.php │ │ │ │ ├── InvalidArgumentException.php │ │ │ │ ├── ClientException.php │ │ │ │ ├── ServerException.php │ │ │ │ ├── GuzzleException.php │ │ │ │ ├── SeekException.php │ │ │ │ ├── ConnectException.php │ │ │ │ └── BadResponseException.php │ │ │ ├── functions_include.php │ │ │ ├── Handler │ │ │ │ ├── CurlFactoryInterface.php │ │ │ │ ├── CurlHandler.php │ │ │ │ └── Proxy.php │ │ │ └── Cookie │ │ │ │ └── SessionCookieJar.php │ │ ├── Dockerfile │ │ ├── .php_cs │ │ ├── LICENSE │ │ └── composer.json │ ├── psr7 │ │ ├── src │ │ │ ├── functions_include.php │ │ │ ├── NoSeekStream.php │ │ │ ├── Rfc7230.php │ │ │ ├── LazyOpenStream.php │ │ │ ├── DroppingStream.php │ │ │ └── InflateStream.php │ │ ├── LICENSE │ │ └── composer.json │ └── promises │ │ ├── src │ │ ├── functions_include.php │ │ ├── CancellationException.php │ │ ├── PromisorInterface.php │ │ ├── AggregateException.php │ │ ├── TaskQueueInterface.php │ │ ├── RejectionException.php │ │ ├── TaskQueue.php │ │ ├── FulfilledPromise.php │ │ └── RejectedPromise.php │ │ ├── Makefile │ │ ├── composer.json │ │ ├── LICENSE │ │ └── CHANGELOG.md ├── paragonie │ └── random_compat │ │ ├── build-phar.sh │ │ ├── dist │ │ ├── random_compat.phar.pubkey │ │ └── random_compat.phar.pubkey.asc │ │ ├── psalm-autoload.php │ │ ├── psalm.xml │ │ ├── composer.json │ │ ├── LICENSE │ │ ├── lib │ │ └── random.php │ │ └── other │ │ └── build_phar.php ├── autoload.php ├── composer │ ├── autoload_namespaces.php │ ├── autoload_files.php │ ├── autoload_classmap.php │ ├── LICENSE │ └── autoload_psr4.php ├── php-http │ ├── discovery │ │ ├── src │ │ │ ├── Exception.php │ │ │ ├── Exception │ │ │ │ ├── PuliUnavailableException.php │ │ │ │ ├── ClassInstantiationFailedException.php │ │ │ │ ├── NotFoundException.php │ │ │ │ ├── StrategyUnavailableException.php │ │ │ │ ├── DiscoveryFailedException.php │ │ │ │ └── NoCandidateFoundException.php │ │ │ ├── NotFoundException.php │ │ │ ├── Strategy │ │ │ │ ├── MockClientStrategy.php │ │ │ │ ├── DiscoveryStrategy.php │ │ │ │ └── PuliBetaStrategy.php │ │ │ ├── HttpClientDiscovery.php │ │ │ ├── HttpAsyncClientDiscovery.php │ │ │ ├── Psr18ClientDiscovery.php │ │ │ ├── UriFactoryDiscovery.php │ │ │ ├── StreamFactoryDiscovery.php │ │ │ └── MessageFactoryDiscovery.php │ │ ├── LICENSE │ │ ├── README.md │ │ └── composer.json │ ├── guzzle6-adapter │ │ ├── src │ │ │ ├── Exception │ │ │ │ └── UnexpectedValueException.php │ │ │ └── Client.php │ │ ├── puli.json │ │ ├── LICENSE │ │ ├── composer.json │ │ └── README.md │ ├── httplug │ │ ├── puli.json │ │ ├── src │ │ │ ├── HttpClient.php │ │ │ ├── Exception │ │ │ │ ├── TransferException.php │ │ │ │ ├── RequestAwareTrait.php │ │ │ │ ├── NetworkException.php │ │ │ │ ├── RequestException.php │ │ │ │ └── HttpException.php │ │ │ ├── Exception.php │ │ │ ├── HttpAsyncClient.php │ │ │ └── Promise │ │ │ │ ├── HttpRejectedPromise.php │ │ │ │ └── HttpFulfilledPromise.php │ │ ├── LICENSE │ │ ├── composer.json │ │ └── README.md │ └── promise │ │ ├── CHANGELOG.md │ │ ├── composer.json │ │ ├── LICENSE │ │ ├── src │ │ ├── FulfilledPromise.php │ │ ├── RejectedPromise.php │ │ └── Promise.php │ │ └── README.md └── ralouphie │ └── getallheaders │ ├── composer.json │ ├── LICENSE │ ├── README.md │ └── src │ └── getallheaders.php ├── composer.json ├── README.md ├── .editorconfig ├── LICENSE └── meilisearch-wordpress.php /src/js/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /vendor/psr/http-factory/.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | vendor/ 3 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | /vendor/ 3 | .php_cs.cache 4 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "meilisearch/meilisearch-php": "^0.12.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php70/Resources/stubs/Error.php: -------------------------------------------------------------------------------- 1 | 'ss', 5 | 962 => 'σ', 6 | 8204 => '', 7 | 8205 => '', 8 | ); 9 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | interface Exception 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/paragonie/random_compat/dist/random_compat.phar.pubkey: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEEd+wCqJDrx5B4OldM0dQE0ZMX+lx1ZWm 3 | pui0SUqD4G29L3NGsz9UhJ/0HjBdbnkhIK5xviT0X5vtjacF6ajgcCArbTB+ds+p 4 | +h7Q084NuSuIpNb6YPfoUFgC/CL9kAoc 5 | -----END PUBLIC KEY----- 6 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/src/Exception/UnexpectedValueException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class PuliUnavailableException extends StrategyUnavailableException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/PromisorInterface.php: -------------------------------------------------------------------------------- 1 | http->get(self::PATH.'/pretty'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Exception/TransferException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | class TransferException extends \RuntimeException implements Exception 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | interface Exception extends PsrClientException 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ⚠️⚠️ This plugin is not under development. There is no roadmap for a WordPress plugin yet ⚠️⚠️ 2 | 3 | # ⚠️ meilisearch-wordpress ⚠️ 4 | 5 | Meilisearch plugin for WordPress 6 | 7 | - Custom plugin for Meilisearch integration in WordPress 8 | - Custom Widget to integrate a search bar to your WordPress site using [Instant Meilisearch](https://github.com/meilisearch/instant-meilisearch) 9 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/.php_cs.dist: -------------------------------------------------------------------------------- 1 | in(__DIR__.DIRECTORY_SEPARATOR.'src') 5 | ->in(__DIR__.DIRECTORY_SEPARATOR.'tests') 6 | ->append(['.php_cs.dist']); 7 | 8 | $rules = [ 9 | '@Symfony' => true, 10 | ]; 11 | 12 | return \PhpCsFixer\Config::create() 13 | ->setRules($rules) 14 | ->setFinder($finder); 15 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Exception/ClassInstantiationFailedException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class ClassInstantiationFailedException extends \RuntimeException implements Exception 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/src/UriFactory.php: -------------------------------------------------------------------------------- 1 | http = $http; 15 | } 16 | 17 | public function show(): ?array 18 | { 19 | return $this->http->get(static::PATH); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/src/RequestFactory.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | /*final */class NotFoundException extends \RuntimeException implements Exception 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php: -------------------------------------------------------------------------------- 1 | 9 | * 10 | * @deprecated since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead. 11 | */ 12 | final class NotFoundException extends \Http\Discovery\Exception\NotFoundException 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/.github/workflows/release-drafter.yml: -------------------------------------------------------------------------------- 1 | name: Release Drafter 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | - bump-meilisearch-v* 8 | 9 | jobs: 10 | update_release_draft: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: release-drafter/release-drafter@v5 14 | with: 15 | config-name: release-draft-template.yml 16 | env: 17 | GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_TOKEN }} 18 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Exception/StrategyUnavailableException.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class StrategyUnavailableException extends \RuntimeException implements Exception 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM composer:latest as setup 2 | 3 | RUN mkdir /guzzle 4 | 5 | WORKDIR /guzzle 6 | 7 | RUN set -xe \ 8 | && composer init --name=guzzlehttp/test --description="Simple project for testing Guzzle scripts" --author="Márk Sági-Kazár " --no-interaction \ 9 | && composer require guzzlehttp/guzzle 10 | 11 | 12 | FROM php:7.3 13 | 14 | RUN mkdir /guzzle 15 | 16 | WORKDIR /guzzle 17 | 18 | COPY --from=setup /guzzle /guzzle 19 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/AggregateException.php: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | ./tests 12 | 13 | 14 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-intl-idn/README.md: -------------------------------------------------------------------------------- 1 | Symfony Polyfill / Intl: Idn 2 | ============================ 3 | 4 | This component provides [`idn_to_ascii`](https://php.net/idn-to-ascii) and [`idn_to_utf8`](https://php.net/idn-to-utf8) functions to users who run php versions without the [Intl](https://php.net/intl) extension. 5 | 6 | More information can be found in the 7 | [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). 8 | 9 | License 10 | ======= 11 | 12 | This library is released under the [MIT license](LICENSE). 13 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/NoSeekStream.php: -------------------------------------------------------------------------------- 1 | request = $request; 17 | } 18 | 19 | /** 20 | * {@inheritdoc} 21 | */ 22 | public function getRequest(): RequestInterface 23 | { 24 | return $this->request; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNATURE----- 2 | Version: GnuPG v2.0.22 (MingW32) 3 | 4 | iQEcBAABAgAGBQJWtW1hAAoJEGuXocKCZATaJf0H+wbZGgskK1dcRTsuVJl9IWip 5 | QwGw/qIKI280SD6/ckoUMxKDCJiFuPR14zmqnS36k7N5UNPnpdTJTS8T11jttSpg 6 | 1LCmgpbEIpgaTah+cELDqFCav99fS+bEiAL5lWDAHBTE/XPjGVCqeehyPYref4IW 7 | NDBIEsvnHPHPLsn6X5jq4+Yj5oUixgxaMPiR+bcO4Sh+RzOVB6i2D0upWfRXBFXA 8 | NNnsg9/zjvoC7ZW73y9uSH+dPJTt/Vgfeiv52/v41XliyzbUyLalf02GNPY+9goV 9 | JHG1ulEEBJOCiUD9cE1PUIJwHA/HqyhHIvV350YoEFiHl8iSwm7SiZu5kPjaq74= 10 | =B6+8 11 | -----END PGP SIGNATURE----- 12 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org/ 2 | 3 | root = true 4 | 5 | [*] 6 | trim_trailing_whitespace = true 7 | insert_final_newline = true 8 | end_of_line = lf 9 | charset = utf-8 10 | tab_width = 4 11 | indent_style = space 12 | 13 | [*.php] 14 | indent_size = 4 15 | indent_style = space 16 | 17 | [*.md] 18 | indent_style = space 19 | max_line_length = 80 20 | 21 | [*{.yaml, yml}] 22 | indent_size = 2 23 | indent_style = space 24 | -------------------------------------------------------------------------------- /vendor/psr/http-client/README.md: -------------------------------------------------------------------------------- 1 | HTTP Client 2 | =========== 3 | 4 | This repository holds all the common code related to [PSR-18 (HTTP Client)][psr-url]. 5 | 6 | Note that this is not a HTTP Client implementation of its own. It is merely abstractions that describe the components of a HTTP Client. 7 | 8 | The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. 9 | 10 | [psr-url]: http://www.php-fig.org/psr/psr-18 11 | [package-url]: https://packagist.org/packages/psr/http-client 12 | [implementation-url]: https://packagist.org/providers/psr/http-client-implementation 13 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ralouphie/getallheaders", 3 | "description": "A polyfill for getallheaders.", 4 | "license": "MIT", 5 | "authors": [ 6 | { 7 | "name": "Ralph Khattar", 8 | "email": "ralph.khattar@gmail.com" 9 | } 10 | ], 11 | "require": { 12 | "php": ">=5.6" 13 | }, 14 | "require-dev": { 15 | "phpunit/phpunit": "^5 || ^6.5", 16 | "php-coveralls/php-coveralls": "^2.1" 17 | }, 18 | "autoload": { 19 | "files": ["src/getallheaders.php"] 20 | }, 21 | "autoload-dev": { 22 | "psr-4": { 23 | "getallheaders\\Tests\\": "tests/" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php: -------------------------------------------------------------------------------- 1 | and Trevor Rowbotham 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Polyfill\Intl\Idn; 13 | 14 | /** 15 | * @internal 16 | */ 17 | class Info 18 | { 19 | public $bidiDomain = false; 20 | public $errors = 0; 21 | public $validBidiDomain = true; 22 | public $transitionalDifferent = false; 23 | } 24 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /vendor/psr/http-client/src/RequestExceptionInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Symfony\Polyfill\Intl\Normalizer as p; 13 | 14 | if (!function_exists('normalizer_is_normalized')) { 15 | function normalizer_is_normalized($s, $form = p\Normalizer::NFC) { return p\Normalizer::isNormalized($s, $form); } 16 | } 17 | if (!function_exists('normalizer_normalize')) { 18 | function normalizer_normalize($s, $form = p\Normalizer::NFC) { return p\Normalizer::normalize($s, $form); } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Strategy/MockClientStrategy.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class MockClientStrategy implements DiscoveryStrategy 15 | { 16 | /** 17 | * {@inheritdoc} 18 | */ 19 | public static function getCandidates($type) 20 | { 21 | if (is_a(HttpClient::class, $type, true) || is_a(HttpAsyncClient::class, $type, true)) { 22 | return [['class' => Mock::class, 'condition' => Mock::class]]; 23 | } 24 | 25 | return []; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/SeekException.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 16 | $msg = $msg ?: 'Could not seek the stream to position ' . $pos; 17 | parent::__construct($msg); 18 | } 19 | 20 | /** 21 | * @return StreamInterface 22 | */ 23 | public function getStream() 24 | { 25 | return $this->stream; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/.php_cs: -------------------------------------------------------------------------------- 1 | setRiskyAllowed(true) 5 | ->setRules([ 6 | '@PSR2' => true, 7 | 'array_syntax' => ['syntax' => 'short'], 8 | 'declare_strict_types' => false, 9 | 'concat_space' => ['spacing'=>'one'], 10 | 'php_unit_test_case_static_method_calls' => ['call_type' => 'self'], 11 | 'ordered_imports' => true, 12 | // 'phpdoc_align' => ['align'=>'vertical'], 13 | // 'native_function_invocation' => true, 14 | ]) 15 | ->setFinder( 16 | PhpCsFixer\Finder::create() 17 | ->in(__DIR__.'/src') 18 | ->in(__DIR__.'/tests') 19 | ->name('*.php') 20 | ) 21 | ; 22 | 23 | return $config; 24 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Strategy/DiscoveryStrategy.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | interface DiscoveryStrategy 11 | { 12 | /** 13 | * Find a resource of a specific type. 14 | * 15 | * @param string $type 16 | * 17 | * @return array The return value is always an array with zero or more elements. Each 18 | * element is an array with two keys ['class' => string, 'condition' => mixed]. 19 | * 20 | * @throws StrategyUnavailableException if we cannot use this strategy. 21 | */ 22 | public static function getCandidates($type); 23 | } 24 | -------------------------------------------------------------------------------- /vendor/psr/http-message/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-message", 3 | "description": "Common interface for HTTP messages", 4 | "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"], 5 | "homepage": "https://github.com/php-fig/http-message", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "http://www.php-fig.org/" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.3.0" 15 | }, 16 | "autoload": { 17 | "psr-4": { 18 | "Psr\\Http\\Message\\": "src/" 19 | } 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "1.0.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/css/meilisearch_widget.css: -------------------------------------------------------------------------------- 1 | /* Search Form */ 2 | 3 | .ais-SearchBox-form{ 4 | display: flex; 5 | } 6 | 7 | .ais-SearchBox-input{ 8 | flex-basis: 100%; 9 | } 10 | 11 | .ais-SearchBox-submit{ 12 | background-color: #9a3334; 13 | } 14 | 15 | /* Results hits */ 16 | 17 | .ais-Hits-list { 18 | list-style-type: none; 19 | } 20 | 21 | .single-hit{ 22 | background-color: rgba(0, 0, 0, 0.0); 23 | display: flex; 24 | padding: 3px; 25 | } 26 | 27 | .single-hit:hover{ 28 | background-color: rgba(0, 0, 0, 0.2); 29 | } 30 | 31 | .hit-img{ 32 | flex-basis: 30%; 33 | } 34 | 35 | .hit-description{ 36 | flex-basis: 80%; 37 | } 38 | 39 | .hit-name{ 40 | text-align: center; 41 | } 42 | 43 | .hit-content{ 44 | padding: 10px; 45 | } 46 | -------------------------------------------------------------------------------- /vendor/psr/http-client/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-client", 3 | "description": "Common interface for HTTP clients", 4 | "keywords": ["psr", "psr-18", "http", "http-client"], 5 | "homepage": "https://github.com/php-fig/http-client", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "http://www.php-fig.org/" 11 | } 12 | ], 13 | "require": { 14 | "php": "^7.0 || ^8.0", 15 | "psr/http-message": "^1.0" 16 | }, 17 | "autoload": { 18 | "psr-4": { 19 | "Psr\\Http\\Client\\": "src/" 20 | } 21 | }, 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "1.0.x-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/Rfc7230.php: -------------------------------------------------------------------------------- 1 | @,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; 17 | const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; 18 | } 19 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 7.0 5 | - 7.1 6 | - 7.2 7 | 8 | sudo: false 9 | 10 | cache: 11 | directories: 12 | - $HOME/.composer/cache 13 | - vendor 14 | 15 | git: 16 | depth: 1 17 | 18 | matrix: 19 | include: 20 | - php: 7.0 21 | env: 22 | - COMPOSER_FLAGS="--prefer-stable --prefer-lowest" 23 | 24 | before_script: 25 | - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source 26 | 27 | script: 28 | - vendor/bin/phpunit 29 | 30 | after_script: 31 | - bash -c '[[ -f "build/logs/clover.xml" ]] && wget https://scrutinizer-ci.com/ocular.phar' 32 | - bash -c '[[ -f "build/logs/clover.xml" ]] && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml' 33 | -------------------------------------------------------------------------------- /vendor/php-http/promise/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## 1.1.0 - 2020-07-07 4 | 5 | ### Added 6 | 7 | - Test with PHP 7.1, 7.2, 7.3, 7.4 and 8.0 8 | 9 | ### Removed 10 | 11 | - PHP 5 and 7.0 support 12 | 13 | ### Fixed 14 | 15 | - Fixed PHPDoc for `Promise::then` 16 | 17 | ## 1.0.0 - 2016-01-26 18 | 19 | ### Removed 20 | 21 | - PSR-7 dependency 22 | 23 | 24 | ## 1.0.0-RC1 - 2016-01-12 25 | 26 | ### Added 27 | 28 | - Tests for full coverage 29 | 30 | ## Changed 31 | 32 | - Updated package files 33 | - Clarified wait method behavior 34 | - Contributing guide moved to the documentation 35 | 36 | 37 | ## 0.1.1 - 2015-12-24 38 | 39 | ## Added 40 | 41 | - Fulfilled and Rejected promise implementations 42 | 43 | 44 | ## 0.1.0 - 2015-12-13 45 | 46 | ## Added 47 | 48 | - Promise interface 49 | -------------------------------------------------------------------------------- /vendor/psr/http-client/src/NetworkExceptionInterface.php: -------------------------------------------------------------------------------- 1 | health->show(); 10 | } 11 | 12 | public function version(): array 13 | { 14 | return $this->version->show(); 15 | } 16 | 17 | public function sysInfo(): array 18 | { 19 | return $this->sysInfo->show(); 20 | } 21 | 22 | public function prettySysInfo(): array 23 | { 24 | return $this->sysInfo->pretty(); 25 | } 26 | 27 | public function stats(): array 28 | { 29 | return $this->stats->show(); 30 | } 31 | 32 | public function getKeys(): array 33 | { 34 | return $this->keys->show(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/HttpAsyncClient.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | interface HttpAsyncClient 14 | { 15 | /** 16 | * Sends a PSR-7 request in an asynchronous way. 17 | * 18 | * Exceptions related to processing the request are available from the returned Promise. 19 | * 20 | * @return Promise resolves a PSR-7 Response or fails with an Http\Client\Exception 21 | * 22 | * @throws \Exception If processing the request is impossible (eg. bad configuration). 23 | */ 24 | public function sendAsyncRequest(RequestInterface $request); 25 | } 26 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/src/StreamFactory.php: -------------------------------------------------------------------------------- 1 | getSize(); 21 | } 22 | 23 | return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php: -------------------------------------------------------------------------------- 1 | =7.0.0", 23 | "psr/http-message": "^1.0" 24 | }, 25 | "autoload": { 26 | "psr-4": { 27 | "Psr\\Http\\Message\\": "src/" 28 | } 29 | }, 30 | "extra": { 31 | "branch-alias": { 32 | "dev-master": "1.0.x-dev" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/src/ServerRequestFactory.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | class NetworkException extends TransferException implements PsrNetworkException 16 | { 17 | use RequestAwareTrait; 18 | 19 | /** 20 | * @param string $message 21 | */ 22 | public function __construct($message, RequestInterface $request, \Exception $previous = null) 23 | { 24 | $this->setRequest($request); 25 | 26 | parent::__construct($message, 0, $previous); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "http-interop/http-factory-guzzle", 3 | "description": "An HTTP Factory using Guzzle PSR7", 4 | "keywords": [ 5 | "psr-7", 6 | "psr-17", 7 | "http", 8 | "factory" 9 | ], 10 | "license": "MIT", 11 | "authors": [ 12 | { 13 | "name": "PHP-FIG", 14 | "homepage": "http://www.php-fig.org/" 15 | } 16 | ], 17 | "provide": { 18 | "psr/http-factory-implementation": "^1.0" 19 | }, 20 | "require": { 21 | "psr/http-factory": "^1.0", 22 | "guzzlehttp/psr7": "^1.4.2" 23 | }, 24 | "require-dev": { 25 | "http-interop/http-factory-tests": "^0.5", 26 | "phpunit/phpunit": "^6.5" 27 | }, 28 | "autoload": { 29 | "psr-4": { 30 | "Http\\Factory\\Guzzle\\": "src/" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/src/Exceptions/TimeOutException.php: -------------------------------------------------------------------------------- 1 | message = $message; 14 | } 15 | if (isset($code)) { 16 | $this->code = $code; 17 | } 18 | parent::__construct($this->message, $this->code, $previous); 19 | } 20 | 21 | public function __toString() 22 | { 23 | $base = 'MeiliSearch TimeOutException: Code: '.$this->code; 24 | if (isset($this->message)) { 25 | return $base.' - Message: '.$this->message; 26 | } else { 27 | return $base; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/.github/workflows/tests.yml: -------------------------------------------------------------------------------- 1 | name: Tests 2 | 3 | on: [pull_request] 4 | 5 | jobs: 6 | tests: 7 | 8 | runs-on: ubuntu-latest 9 | strategy: 10 | matrix: 11 | php-versions: ['7.2', '7.3', '7.4'] 12 | name: PHP ${{ matrix.php-versions }} Test 13 | 14 | steps: 15 | - uses: actions/checkout@v1 16 | 17 | - name: Validate composer.json and composer.lock 18 | run: composer validate 19 | 20 | - name: Install dependencies 21 | run: composer install --prefer-dist --no-progress --no-suggest 22 | 23 | - name: Docker setup 24 | run: docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey --no-analytics=true 25 | 26 | - name: Run test suite 27 | run: sh scripts/tests.sh 28 | 29 | - name: Run linter 30 | run: vendor/bin/php-cs-fixer fix -v --config=.php_cs.dist --using-cache=no --dry-run 31 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/AcceptNewFieldsTest.php: -------------------------------------------------------------------------------- 1 | index = $this->client->createIndex('index'); 15 | } 16 | 17 | public function testGetDefaultAcceptNewFields() 18 | { 19 | $response = $this->index->getAcceptNewFields(); 20 | $this->assertTrue($response); 21 | } 22 | 23 | public function testUpdateAcceptNewFields() 24 | { 25 | $promise = $this->index->updateAcceptNewFields(false); 26 | 27 | $this->assertIsValidPromise($promise); 28 | 29 | $this->index->waitForPendingUpdate($promise['updateId']); 30 | 31 | $this->assertFalse($this->index->getAcceptNewFields()); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | class RequestException extends TransferException implements PsrRequestException 17 | { 18 | use RequestAwareTrait; 19 | 20 | /** 21 | * @param string $message 22 | */ 23 | public function __construct($message, RequestInterface $request, \Exception $previous = null) 24 | { 25 | $this->setRequest($request); 26 | 27 | parent::__construct($message, 0, $previous); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/promises", 3 | "description": "Guzzle promises library", 4 | "keywords": ["promise"], 5 | "license": "MIT", 6 | "authors": [ 7 | { 8 | "name": "Michael Dowling", 9 | "email": "mtdowling@gmail.com", 10 | "homepage": "https://github.com/mtdowling" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.5.0" 15 | }, 16 | "require-dev": { 17 | "phpunit/phpunit": "^4.0" 18 | }, 19 | "autoload": { 20 | "psr-4": { 21 | "GuzzleHttp\\Promise\\": "src/" 22 | }, 23 | "files": ["src/functions_include.php"] 24 | }, 25 | "scripts": { 26 | "test": "vendor/bin/phpunit", 27 | "test-ci": "vendor/bin/phpunit --coverage-text" 28 | }, 29 | "extra": { 30 | "branch-alias": { 31 | "dev-master": "1.4-dev" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class HttpClientDiscovery extends ClassDiscovery 14 | { 15 | /** 16 | * Finds an HTTP Client. 17 | * 18 | * @return HttpClient 19 | * 20 | * @throws Exception\NotFoundException 21 | */ 22 | public static function find() 23 | { 24 | try { 25 | $client = static::findOneByType(HttpClient::class); 26 | } catch (DiscoveryFailedException $e) { 27 | throw new NotFoundException('No HTTPlug clients found. Make sure to install a package providing "php-http/client-implementation". Example: "php-http/guzzle6-adapter".', 0, $e); 28 | } 29 | 30 | return static::instantiateClass($client); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php72/README.md: -------------------------------------------------------------------------------- 1 | Symfony Polyfill / Php72 2 | ======================== 3 | 4 | This component provides functions added to PHP 7.2 core: 5 | 6 | - [`spl_object_id`](https://php.net/spl_object_id) 7 | - [`stream_isatty`](https://php.net/stream_isatty) 8 | 9 | On Windows only: 10 | 11 | - [`sapi_windows_vt100_support`](https://php.net/sapi_windows_vt100_support) 12 | 13 | Moved to core since 7.2 (was in the optional XML extension earlier): 14 | 15 | - [`utf8_encode`](https://php.net/utf8_encode) 16 | - [`utf8_decode`](https://php.net/utf8_decode) 17 | 18 | Also, it provides constants added to PHP 7.2: 19 | - [`PHP_FLOAT_*`](https://php.net/reserved.constants#constant.php-float-dig) 20 | - [`PHP_OS_FAMILY`](https://php.net/reserved.constants#constant.php-os-family) 21 | 22 | More information can be found in the 23 | [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). 24 | 25 | License 26 | ======= 27 | 28 | This library is released under the [MIT license](LICENSE). 29 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php70/bootstrap.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Symfony\Polyfill\Php70 as p; 13 | 14 | if (PHP_VERSION_ID >= 70000) { 15 | return; 16 | } 17 | 18 | if (!defined('PHP_INT_MIN')) { 19 | define('PHP_INT_MIN', ~PHP_INT_MAX); 20 | } 21 | 22 | if (!function_exists('intdiv')) { 23 | function intdiv($dividend, $divisor) { return p\Php70::intdiv($dividend, $divisor); } 24 | } 25 | if (!function_exists('preg_replace_callback_array')) { 26 | function preg_replace_callback_array(array $patterns, $subject, $limit = -1, &$count = 0) { return p\Php70::preg_replace_callback_array($patterns, $subject, $limit, $count); } 27 | } 28 | if (!function_exists('error_clear_last')) { 29 | function error_clear_last() { return p\Php70::error_clear_last(); } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/composer/autoload_files.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 10 | 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', 11 | 'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php', 12 | '023d27dca8066ef29e6739335ea73bad' => $vendorDir . '/symfony/polyfill-php70/bootstrap.php', 13 | '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', 14 | 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', 15 | 'f598d06aa772fa33d905e87be6398fb1' => $vendorDir . '/symfony/polyfill-intl-idn/bootstrap.php', 16 | '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', 17 | ); 18 | -------------------------------------------------------------------------------- /vendor/paragonie/random_compat/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paragonie/random_compat", 3 | "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", 4 | "keywords": [ 5 | "csprng", 6 | "random", 7 | "polyfill", 8 | "pseudorandom" 9 | ], 10 | "license": "MIT", 11 | "type": "library", 12 | "authors": [ 13 | { 14 | "name": "Paragon Initiative Enterprises", 15 | "email": "security@paragonie.com", 16 | "homepage": "https://paragonie.com" 17 | } 18 | ], 19 | "support": { 20 | "issues": "https://github.com/paragonie/random_compat/issues", 21 | "email": "info@paragonie.com", 22 | "source": "https://github.com/paragonie/random_compat" 23 | }, 24 | "require": { 25 | "php": "^7" 26 | }, 27 | "require-dev": { 28 | "vimeo/psalm": "^1", 29 | "phpunit/phpunit": "4.*|5.*" 30 | }, 31 | "suggest": { 32 | "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/composer/autoload_classmap.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php', 10 | 'AssertionError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/AssertionError.php', 11 | 'DivisionByZeroError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php', 12 | 'Error' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/Error.php', 13 | 'Normalizer' => $vendorDir . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php', 14 | 'ParseError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/ParseError.php', 15 | 'SessionUpdateTimestampHandlerInterface' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php', 16 | 'TypeError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/TypeError.php', 17 | ); 18 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/HttpAsyncClientDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class HttpAsyncClientDiscovery extends ClassDiscovery 14 | { 15 | /** 16 | * Finds an HTTP Async Client. 17 | * 18 | * @return HttpAsyncClient 19 | * 20 | * @throws Exception\NotFoundException 21 | */ 22 | public static function find() 23 | { 24 | try { 25 | $asyncClient = static::findOneByType(HttpAsyncClient::class); 26 | } catch (DiscoveryFailedException $e) { 27 | throw new NotFoundException('No HTTPlug async clients found. Make sure to install a package providing "php-http/async-client-implementation". Example: "php-http/guzzle6-adapter".', 0, $e); 28 | } 29 | 30 | return static::instantiateClass($asyncClient); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Psr18ClientDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class Psr18ClientDiscovery extends ClassDiscovery 14 | { 15 | /** 16 | * Finds a PSR-18 HTTP Client. 17 | * 18 | * @return ClientInterface 19 | * 20 | * @throws Exception\NotFoundException 21 | */ 22 | public static function find() 23 | { 24 | try { 25 | $client = static::findOneByType(ClientInterface::class); 26 | } catch (DiscoveryFailedException $e) { 27 | throw new \Http\Discovery\Exception\NotFoundException('No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle6-adapter".', 0, $e); 28 | } 29 | 30 | return static::instantiateClass($client); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/psr/http-factory/src/ServerRequestFactoryInterface.php: -------------------------------------------------------------------------------- 1 | filename = $filename; 27 | $this->mode = $mode; 28 | } 29 | 30 | /** 31 | * Creates the underlying stream lazily when required. 32 | * 33 | * @return StreamInterface 34 | */ 35 | protected function createStream() 36 | { 37 | return stream_for(try_fopen($this->filename, $this->mode)); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/UriFactoryDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @deprecated This will be removed in 2.0. Consider using Psr17FactoryDiscovery. 14 | */ 15 | final class UriFactoryDiscovery extends ClassDiscovery 16 | { 17 | /** 18 | * Finds a URI Factory. 19 | * 20 | * @return UriFactory 21 | * 22 | * @throws Exception\NotFoundException 23 | */ 24 | public static function find() 25 | { 26 | try { 27 | $uriFactory = static::findOneByType(UriFactory::class); 28 | } catch (DiscoveryFailedException $e) { 29 | throw new NotFoundException('No uri factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 0, $e); 30 | } 31 | 32 | return static::instantiateClass($uriFactory); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/php-http/promise/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/promise", 3 | "description": "Promise used for asynchronous HTTP requests", 4 | "license": "MIT", 5 | "keywords": ["promise"], 6 | "homepage": "http://httplug.io", 7 | "authors": [ 8 | { 9 | "name": "Joel Wurtz", 10 | "email": "joel.wurtz@gmail.com" 11 | }, 12 | { 13 | "name": "Márk Sági-Kazár", 14 | "email": "mark.sagikazar@gmail.com" 15 | } 16 | ], 17 | "require": { 18 | "php" : "^7.1 || ^8.0" 19 | }, 20 | "require-dev": { 21 | "friends-of-phpspec/phpspec-code-coverage" : "^4.3.2", 22 | "phpspec/phpspec": "^5.1.2 || ^6.2" 23 | }, 24 | "autoload": { 25 | "psr-4": { 26 | "Http\\Promise\\": "src/" 27 | } 28 | }, 29 | "scripts": { 30 | "test": "vendor/bin/phpspec run", 31 | "test-ci": "vendor/bin/phpspec run -c phpspec.yml.ci" 32 | }, 33 | "extra": { 34 | "branch-alias": { 35 | "dev-master": "1.1-dev" 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php72/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/polyfill-php72", 3 | "type": "library", 4 | "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", 5 | "keywords": ["polyfill", "shim", "compatibility", "portable"], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Nicolas Grekas", 11 | "email": "p@tchwork.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "https://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.3.3" 20 | }, 21 | "autoload": { 22 | "psr-4": { "Symfony\\Polyfill\\Php72\\": "" }, 23 | "files": [ "bootstrap.php" ] 24 | }, 25 | "minimum-stability": "dev", 26 | "extra": { 27 | "branch-alias": { 28 | "dev-master": "1.18-dev" 29 | }, 30 | "thanks": { 31 | "name": "symfony/polyfill", 32 | "url": "https://github.com/symfony/polyfill" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/StreamFactoryDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @deprecated This will be removed in 2.0. Consider using Psr17FactoryDiscovery. 14 | */ 15 | final class StreamFactoryDiscovery extends ClassDiscovery 16 | { 17 | /** 18 | * Finds a Stream Factory. 19 | * 20 | * @return StreamFactory 21 | * 22 | * @throws Exception\NotFoundException 23 | */ 24 | public static function find() 25 | { 26 | try { 27 | $streamFactory = static::findOneByType(StreamFactory::class); 28 | } catch (DiscoveryFailedException $e) { 29 | throw new NotFoundException('No stream factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 0, $e); 30 | } 31 | 32 | return static::instantiateClass($streamFactory); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/MessageFactoryDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @deprecated This will be removed in 2.0. Consider using Psr17FactoryDiscovery. 14 | */ 15 | final class MessageFactoryDiscovery extends ClassDiscovery 16 | { 17 | /** 18 | * Finds a Message Factory. 19 | * 20 | * @return MessageFactory 21 | * 22 | * @throws Exception\NotFoundException 23 | */ 24 | public static function find() 25 | { 26 | try { 27 | $messageFactory = static::findOneByType(MessageFactory::class); 28 | } catch (DiscoveryFailedException $e) { 29 | throw new NotFoundException('No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 0, $e); 30 | } 31 | 32 | return static::instantiateClass($messageFactory); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php70/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2019 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php72/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2019 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/composer/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) Nils Adermann, Jordi Boggiano 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /vendor/psr/http-factory/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 PHP-FIG 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-intl-normalizer/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2019 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Meili 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 PHP HTTP Team 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/php-http/promise/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 PHP HTTP Team 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/psr/http-client/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 PHP Framework Interoperability Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/psr/http-message/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 PHP Framework Interoperability Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Ralph Khattar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Woody Gilk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-intl-idn/Resources/unidata/virama.php: -------------------------------------------------------------------------------- 1 | 9, 5 | 2509 => 9, 6 | 2637 => 9, 7 | 2765 => 9, 8 | 2893 => 9, 9 | 3021 => 9, 10 | 3149 => 9, 11 | 3277 => 9, 12 | 3387 => 9, 13 | 3388 => 9, 14 | 3405 => 9, 15 | 3530 => 9, 16 | 3642 => 9, 17 | 3770 => 9, 18 | 3972 => 9, 19 | 4153 => 9, 20 | 4154 => 9, 21 | 5908 => 9, 22 | 5940 => 9, 23 | 6098 => 9, 24 | 6752 => 9, 25 | 6980 => 9, 26 | 7082 => 9, 27 | 7083 => 9, 28 | 7154 => 9, 29 | 7155 => 9, 30 | 11647 => 9, 31 | 43014 => 9, 32 | 43052 => 9, 33 | 43204 => 9, 34 | 43347 => 9, 35 | 43456 => 9, 36 | 43766 => 9, 37 | 44013 => 9, 38 | 68159 => 9, 39 | 69702 => 9, 40 | 69759 => 9, 41 | 69817 => 9, 42 | 69939 => 9, 43 | 69940 => 9, 44 | 70080 => 9, 45 | 70197 => 9, 46 | 70378 => 9, 47 | 70477 => 9, 48 | 70722 => 9, 49 | 70850 => 9, 50 | 71103 => 9, 51 | 71231 => 9, 52 | 71350 => 9, 53 | 71467 => 9, 54 | 71737 => 9, 55 | 71997 => 9, 56 | 71998 => 9, 57 | 72160 => 9, 58 | 72244 => 9, 59 | 72263 => 9, 60 | 72345 => 9, 61 | 72767 => 9, 62 | 73028 => 9, 63 | 73029 => 9, 64 | 73111 => 9, 65 | ); 66 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2018 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/paragonie/random_compat/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Paragon Initiative Enterprises 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-intl-idn/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018-2019 Fabien Potencier and Trevor Rowbotham 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Eric GELOEN 2 | Copyright (c) 2015 PHP HTTP Team 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/README.md: -------------------------------------------------------------------------------- 1 | getallheaders 2 | ============= 3 | 4 | PHP `getallheaders()` polyfill. Compatible with PHP >= 5.3. 5 | 6 | [![Build Status](https://travis-ci.org/ralouphie/getallheaders.svg?branch=master)](https://travis-ci.org/ralouphie/getallheaders) 7 | [![Coverage Status](https://coveralls.io/repos/ralouphie/getallheaders/badge.png?branch=master)](https://coveralls.io/r/ralouphie/getallheaders?branch=master) 8 | [![Latest Stable Version](https://poser.pugx.org/ralouphie/getallheaders/v/stable.png)](https://packagist.org/packages/ralouphie/getallheaders) 9 | [![Latest Unstable Version](https://poser.pugx.org/ralouphie/getallheaders/v/unstable.png)](https://packagist.org/packages/ralouphie/getallheaders) 10 | [![License](https://poser.pugx.org/ralouphie/getallheaders/license.png)](https://packagist.org/packages/ralouphie/getallheaders) 11 | 12 | 13 | This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php). 14 | 15 | ## Install 16 | 17 | For PHP version **`>= 5.6`**: 18 | 19 | ``` 20 | composer require ralouphie/getallheaders 21 | ``` 22 | 23 | For PHP version **`< 5.6`**: 24 | 25 | ``` 26 | composer require ralouphie/getallheaders "^2" 27 | ``` 28 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php70/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/polyfill-php70", 3 | "type": "library", 4 | "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", 5 | "keywords": ["polyfill", "shim", "compatibility", "portable"], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Nicolas Grekas", 11 | "email": "p@tchwork.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "https://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.3.3", 20 | "paragonie/random_compat": "~1.0|~2.0|~9.99" 21 | }, 22 | "autoload": { 23 | "psr-4": { "Symfony\\Polyfill\\Php70\\": "" }, 24 | "files": [ "bootstrap.php" ], 25 | "classmap": [ "Resources/stubs" ] 26 | }, 27 | "minimum-stability": "dev", 28 | "extra": { 29 | "branch-alias": { 30 | "dev-master": "1.18-dev" 31 | }, 32 | "thanks": { 33 | "name": "symfony/polyfill", 34 | "url": "https://github.com/symfony/polyfill" 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/src/Exceptions/HTTPRequestException.php: -------------------------------------------------------------------------------- 1 | httpBody = $httpBody; 16 | $this->httpMessage = $this->getMessageFromHttpBody(); 17 | $this->httpStatus = $httpStatus; 18 | parent::__construct($this->httpMessage, $this->httpStatus, $previous); 19 | } 20 | 21 | public function __toString() 22 | { 23 | $base = 'MeiliSearch HTTPRequestException: Http Status: '.$this->httpStatus; 24 | 25 | if ($this->httpMessage) { 26 | return $base.' - Message: '.$this->httpMessage; 27 | } 28 | 29 | return $base; 30 | } 31 | 32 | public function getMessageFromHttpBody(): ?string 33 | { 34 | if (is_array($this->httpBody) && array_key_exists('message', $this->httpBody)) { 35 | return $this->httpBody['message']; 36 | } 37 | 38 | return $this->httpBody; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014-2015 Eric GELOEN 2 | Copyright (c) 2015-2016 PHP HTTP Team 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php70/README.md: -------------------------------------------------------------------------------- 1 | Symfony Polyfill / Php70 2 | ======================== 3 | 4 | This component provides features unavailable in releases prior to PHP 7.0: 5 | 6 | - [`intdiv`](https://php.net/intdiv) 7 | - [`preg_replace_callback_array`](https://php.net/preg_replace_callback_array) 8 | - [`error_clear_last`](https://php.net/error_clear_last) 9 | - `random_bytes` and `random_int` (from [paragonie/random_compat](https://github.com/paragonie/random_compat)) 10 | - [`*Error` throwable classes](https://php.net/Error) 11 | - [`PHP_INT_MIN`](https://php.net/reserved.constants#constant.php-int-min) 12 | - `SessionUpdateTimestampHandlerInterface` 13 | 14 | More information can be found in the 15 | [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). 16 | 17 | Compatibility notes 18 | =================== 19 | 20 | To write portable code between PHP5 and PHP7, some care must be taken: 21 | - `\*Error` exceptions must be caught before `\Exception`; 22 | - after calling `error_clear_last()`, the result of `$e = error_get_last()` must be 23 | verified using `isset($e['message'][0])` instead of `null !== $e`. 24 | 25 | License 26 | ======= 27 | 28 | This library is released under the [MIT license](LICENSE). 29 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php: -------------------------------------------------------------------------------- 1 | exception = $exception; 18 | } 19 | 20 | /** 21 | * {@inheritdoc} 22 | */ 23 | public function then(callable $onFulfilled = null, callable $onRejected = null) 24 | { 25 | if (null === $onRejected) { 26 | return $this; 27 | } 28 | 29 | try { 30 | return new HttpFulfilledPromise($onRejected($this->exception)); 31 | } catch (Exception $e) { 32 | return new self($e); 33 | } 34 | } 35 | 36 | /** 37 | * {@inheritdoc} 38 | */ 39 | public function getState() 40 | { 41 | return Promise::REJECTED; 42 | } 43 | 44 | /** 45 | * {@inheritdoc} 46 | */ 47 | public function wait($unwrap = true) 48 | { 49 | if ($unwrap) { 50 | throw $this->exception; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/psr/http-message/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file, in reverse chronological order by release. 4 | 5 | ## 1.0.1 - 2016-08-06 6 | 7 | ### Added 8 | 9 | - Nothing. 10 | 11 | ### Deprecated 12 | 13 | - Nothing. 14 | 15 | ### Removed 16 | 17 | - Nothing. 18 | 19 | ### Fixed 20 | 21 | - Updated all `@return self` annotation references in interfaces to use 22 | `@return static`, which more closelly follows the semantics of the 23 | specification. 24 | - Updated the `MessageInterface::getHeaders()` return annotation to use the 25 | value `string[][]`, indicating the format is a nested array of strings. 26 | - Updated the `@link` annotation for `RequestInterface::withRequestTarget()` 27 | to point to the correct section of RFC 7230. 28 | - Updated the `ServerRequestInterface::withUploadedFiles()` parameter annotation 29 | to add the parameter name (`$uploadedFiles`). 30 | - Updated a `@throws` annotation for the `UploadedFileInterface::moveTo()` 31 | method to correctly reference the method parameter (it was referencing an 32 | incorrect parameter name previously). 33 | 34 | ## 1.0.0 - 2016-05-18 35 | 36 | Initial stable release; reflects accepted PSR-7 specification. 37 | -------------------------------------------------------------------------------- /meilisearch-wordpress.php: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /vendor/php-http/promise/src/FulfilledPromise.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class FulfilledPromise implements Promise 11 | { 12 | /** 13 | * @var mixed 14 | */ 15 | private $result; 16 | 17 | /** 18 | * @param $result 19 | */ 20 | public function __construct($result) 21 | { 22 | $this->result = $result; 23 | } 24 | 25 | /** 26 | * {@inheritdoc} 27 | */ 28 | public function then(callable $onFulfilled = null, callable $onRejected = null) 29 | { 30 | if (null === $onFulfilled) { 31 | return $this; 32 | } 33 | 34 | try { 35 | return new self($onFulfilled($this->result)); 36 | } catch (\Exception $e) { 37 | return new RejectedPromise($e); 38 | } 39 | } 40 | 41 | /** 42 | * {@inheritdoc} 43 | */ 44 | public function getState() 45 | { 46 | return Promise::FULFILLED; 47 | } 48 | 49 | /** 50 | * {@inheritdoc} 51 | */ 52 | public function wait($unwrap = true) 53 | { 54 | if ($unwrap) { 55 | return $this->result; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/DroppingStream.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 23 | $this->maxLength = $maxLength; 24 | } 25 | 26 | public function write($string) 27 | { 28 | $diff = $this->maxLength - $this->stream->getSize(); 29 | 30 | // Begin returning 0 when the underlying stream is too large. 31 | if ($diff <= 0) { 32 | return 0; 33 | } 34 | 35 | // Write the stream or a subset of the stream if needed. 36 | if (strlen($string) < $diff) { 37 | return $this->stream->write($string); 38 | } 39 | 40 | return $this->stream->write(substr($string, 0, $diff)); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/psr/http-factory/src/UploadedFileFactoryInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.3" 20 | }, 21 | "autoload": { 22 | "psr-4": { "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, 23 | "files": [ "bootstrap.php" ], 24 | "classmap": [ "Resources/stubs" ] 25 | }, 26 | "suggest": { 27 | "ext-intl": "For best performance" 28 | }, 29 | "minimum-stability": "dev", 30 | "extra": { 31 | "branch-alias": { 32 | "dev-master": "1.18-dev" 33 | }, 34 | "thanks": { 35 | "name": "symfony/polyfill", 36 | "url": "https://github.com/symfony/polyfill" 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php: -------------------------------------------------------------------------------- 1 | response = $response; 19 | } 20 | 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function then(callable $onFulfilled = null, callable $onRejected = null) 25 | { 26 | if (null === $onFulfilled) { 27 | return $this; 28 | } 29 | 30 | try { 31 | return new self($onFulfilled($this->response)); 32 | } catch (Exception $e) { 33 | return new HttpRejectedPromise($e); 34 | } 35 | } 36 | 37 | /** 38 | * {@inheritdoc} 39 | */ 40 | public function getState() 41 | { 42 | return Promise::FULFILLED; 43 | } 44 | 45 | /** 46 | * {@inheritdoc} 47 | */ 48 | public function wait($unwrap = true) 49 | { 50 | if ($unwrap) { 51 | return $this->response; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/http-interop/http-factory-guzzle/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | vendor/http-interop/http-factory-tests/test 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | ./src/ 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /vendor/php-http/promise/src/RejectedPromise.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class RejectedPromise implements Promise 11 | { 12 | /** 13 | * @var \Exception 14 | */ 15 | private $exception; 16 | 17 | /** 18 | * @param \Exception $exception 19 | */ 20 | public function __construct(\Exception $exception) 21 | { 22 | $this->exception = $exception; 23 | } 24 | 25 | /** 26 | * {@inheritdoc} 27 | */ 28 | public function then(callable $onFulfilled = null, callable $onRejected = null) 29 | { 30 | if (null === $onRejected) { 31 | return $this; 32 | } 33 | 34 | try { 35 | return new FulfilledPromise($onRejected($this->exception)); 36 | } catch (\Exception $e) { 37 | return new self($e); 38 | } 39 | } 40 | 41 | /** 42 | * {@inheritdoc} 43 | */ 44 | public function getState() 45 | { 46 | return Promise::REJECTED; 47 | } 48 | 49 | /** 50 | * {@inheritdoc} 51 | */ 52 | public function wait($unwrap = true) 53 | { 54 | if ($unwrap) { 55 | throw $this->exception; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/httplug", 3 | "description": "HTTPlug, the HTTP client abstraction for PHP", 4 | "keywords": [ 5 | "http", 6 | "client" 7 | ], 8 | "homepage": "http://httplug.io", 9 | "license": "MIT", 10 | "authors": [ 11 | { 12 | "name": "Eric GELOEN", 13 | "email": "geloen.eric@gmail.com" 14 | }, 15 | { 16 | "name": "Márk Sági-Kazár", 17 | "email": "mark.sagikazar@gmail.com", 18 | "homepage": "https://sagikazarmark.hu" 19 | } 20 | ], 21 | "require": { 22 | "php": "^7.1 || ^8.0", 23 | "php-http/promise": "^1.1", 24 | "psr/http-client": "^1.0", 25 | "psr/http-message": "^1.0" 26 | }, 27 | "require-dev": { 28 | "friends-of-phpspec/phpspec-code-coverage": "^4.1", 29 | "phpspec/phpspec": "^5.1 || ^6.0" 30 | }, 31 | "extra": { 32 | "branch-alias": { 33 | "dev-master": "2.x-dev" 34 | } 35 | }, 36 | "autoload": { 37 | "psr-4": { 38 | "Http\\Client\\": "src/" 39 | } 40 | }, 41 | "scripts": { 42 | "test": "vendor/bin/phpspec run", 43 | "test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-intl-idn/Resources/unidata/disallowed_STD3_valid.php: -------------------------------------------------------------------------------- 1 | true, 5 | 1 => true, 6 | 2 => true, 7 | 3 => true, 8 | 4 => true, 9 | 5 => true, 10 | 6 => true, 11 | 7 => true, 12 | 8 => true, 13 | 9 => true, 14 | 10 => true, 15 | 11 => true, 16 | 12 => true, 17 | 13 => true, 18 | 14 => true, 19 | 15 => true, 20 | 16 => true, 21 | 17 => true, 22 | 18 => true, 23 | 19 => true, 24 | 20 => true, 25 | 21 => true, 26 | 22 => true, 27 | 23 => true, 28 | 24 => true, 29 | 25 => true, 30 | 26 => true, 31 | 27 => true, 32 | 28 => true, 33 | 29 => true, 34 | 30 => true, 35 | 31 => true, 36 | 32 => true, 37 | 33 => true, 38 | 34 => true, 39 | 35 => true, 40 | 36 => true, 41 | 37 => true, 42 | 38 => true, 43 | 39 => true, 44 | 40 => true, 45 | 41 => true, 46 | 42 => true, 47 | 43 => true, 48 | 44 => true, 49 | 47 => true, 50 | 58 => true, 51 | 59 => true, 52 | 60 => true, 53 | 61 => true, 54 | 62 => true, 55 | 63 => true, 56 | 64 => true, 57 | 91 => true, 58 | 92 => true, 59 | 93 => true, 60 | 94 => true, 61 | 95 => true, 62 | 96 => true, 63 | 123 => true, 64 | 124 => true, 65 | 125 => true, 66 | 126 => true, 67 | 127 => true, 68 | 8800 => true, 69 | 8814 => true, 70 | 8815 => true, 71 | ); 72 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | 4 | ## 1.3.1 - 2016-12-20 5 | 6 | ### Fixed 7 | 8 | - `wait()` foreign promise compatibility 9 | 10 | 11 | ## 1.3.0 - 2016-11-18 12 | 13 | ### Added 14 | 15 | - Adds support for custom task queues. 16 | 17 | ### Fixed 18 | 19 | - Fixed coroutine promise memory leak. 20 | 21 | 22 | ## 1.2.0 - 2016-05-18 23 | 24 | ### Changed 25 | 26 | - Update to now catch `\Throwable` on PHP 7+ 27 | 28 | 29 | ## 1.1.0 - 2016-03-07 30 | 31 | ### Changed 32 | 33 | - Update EachPromise to prevent recurring on a iterator when advancing, as this 34 | could trigger fatal generator errors. 35 | - Update Promise to allow recursive waiting without unwrapping exceptions. 36 | 37 | 38 | ## 1.0.3 - 2015-10-15 39 | 40 | ### Changed 41 | 42 | - Update EachPromise to immediately resolve when the underlying promise iterator 43 | is empty. Previously, such a promise would throw an exception when its `wait` 44 | function was called. 45 | 46 | 47 | ## 1.0.2 - 2015-05-15 48 | 49 | ### Changed 50 | 51 | - Conditionally require functions.php. 52 | 53 | 54 | ## 1.0.1 - 2015-06-24 55 | 56 | ### Changed 57 | 58 | - Updating EachPromise to call next on the underlying promise iterator as late 59 | as possible to ensure that generators that generate new requests based on 60 | callbacks are not iterated until after callbacks are invoked. 61 | 62 | 63 | ## 1.0.0 - 2015-05-12 64 | 65 | - Initial release 66 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/RejectionException.php: -------------------------------------------------------------------------------- 1 | reason = $reason; 21 | 22 | $message = 'The promise was rejected'; 23 | 24 | if ($description) { 25 | $message .= ' with reason: ' . $description; 26 | } elseif (is_string($reason) 27 | || (is_object($reason) && method_exists($reason, '__toString')) 28 | ) { 29 | $message .= ' with reason: ' . $this->reason; 30 | } elseif ($reason instanceof \JsonSerializable) { 31 | $message .= ' with reason: ' 32 | . json_encode($this->reason, JSON_PRETTY_PRINT); 33 | } 34 | 35 | parent::__construct($message); 36 | } 37 | 38 | /** 39 | * Returns the rejection reason. 40 | * 41 | * @return mixed 42 | */ 43 | public function getReason() 44 | { 45 | return $this->reason; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Exception/DiscoveryFailedException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class DiscoveryFailedException extends \Exception implements Exception 13 | { 14 | /** 15 | * @var \Exception[] 16 | */ 17 | private $exceptions; 18 | 19 | /** 20 | * @param string $message 21 | * @param \Exception[] $exceptions 22 | */ 23 | public function __construct($message, array $exceptions = []) 24 | { 25 | $this->exceptions = $exceptions; 26 | 27 | parent::__construct($message); 28 | } 29 | 30 | /** 31 | * @param \Exception[] $exceptions 32 | */ 33 | public static function create($exceptions) 34 | { 35 | $message = 'Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors'; 36 | foreach ($exceptions as $e) { 37 | $message .= "\n - ".$e->getMessage(); 38 | } 39 | $message .= "\n\n"; 40 | 41 | return new self($message, $exceptions); 42 | } 43 | 44 | /** 45 | * @return \Exception[] 46 | */ 47 | public function getExceptions() 48 | { 49 | return $this->exceptions; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/paragonie/random_compat/lib/random.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class NoCandidateFoundException extends \Exception implements Exception 13 | { 14 | /** 15 | * @param string $strategy 16 | * @param array $candidates 17 | */ 18 | public function __construct($strategy, array $candidates) 19 | { 20 | $classes = array_map( 21 | function ($a) { 22 | return $a['class']; 23 | }, 24 | $candidates 25 | ); 26 | 27 | $message = sprintf( 28 | 'No valid candidate found using strategy "%s". We tested the following candidates: %s.', 29 | $strategy, 30 | implode(', ', array_map([$this, 'stringify'], $classes)) 31 | ); 32 | 33 | parent::__construct($message); 34 | } 35 | 36 | private function stringify($mixed) 37 | { 38 | if (is_string($mixed)) { 39 | return $mixed; 40 | } 41 | 42 | if (is_array($mixed) && 2 === count($mixed)) { 43 | return sprintf('%s::%s', $this->stringify($mixed[0]), $mixed[1]); 44 | } 45 | 46 | return is_object($mixed) ? get_class($mixed) : gettype($mixed); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/symfony/polyfill-php72'), 10 | 'Symfony\\Polyfill\\Php70\\' => array($vendorDir . '/symfony/polyfill-php70'), 11 | 'Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'), 12 | 'Symfony\\Polyfill\\Intl\\Idn\\' => array($vendorDir . '/symfony/polyfill-intl-idn'), 13 | 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), 14 | 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 15 | 'MeiliSearch\\' => array($vendorDir . '/meilisearch/meilisearch-php/src'), 16 | 'Http\\Promise\\' => array($vendorDir . '/php-http/promise/src'), 17 | 'Http\\Factory\\Guzzle\\' => array($vendorDir . '/http-interop/http-factory-guzzle/src'), 18 | 'Http\\Discovery\\' => array($vendorDir . '/php-http/discovery/src'), 19 | 'Http\\Client\\' => array($vendorDir . '/php-http/httplug/src'), 20 | 'Http\\Adapter\\Guzzle6\\' => array($vendorDir . '/php-http/guzzle6-adapter/src'), 21 | 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), 22 | 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), 23 | 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), 24 | ); 25 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php: -------------------------------------------------------------------------------- 1 | factory = isset($options['handle_factory']) 29 | ? $options['handle_factory'] 30 | : new CurlFactory(3); 31 | } 32 | 33 | public function __invoke(RequestInterface $request, array $options) 34 | { 35 | if (isset($options['delay'])) { 36 | usleep($options['delay'] * 1000); 37 | } 38 | 39 | $easy = $this->factory->create($request, $options); 40 | curl_exec($easy->handle); 41 | $easy->errno = curl_errno($easy->handle); 42 | 43 | return CurlFactory::finish($this, $easy, $this->factory); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/js/instant-meilisearch.js: -------------------------------------------------------------------------------- 1 | // INSTANT MEILISEARCH 2 | 3 | function wpInstantMeilisearch(searchUrl, meilisearchPublicKey, indexName, searchElt, hitsElt) { 4 | const search = instantsearch({ 5 | indexName: indexName, 6 | searchClient: instantMeiliSearch( 7 | searchUrl, 8 | meilisearchPublicKey, 9 | { 10 | paginationTotalHits: 5, 11 | } 12 | ) 13 | }); 14 | 15 | search.addWidgets([ 16 | instantsearch.widgets.searchBox({ 17 | container: searchElt, 18 | placeholder: "Search", 19 | showReset: false, 20 | showSubmit: false, 21 | }), 22 | instantsearch.widgets.hits({ 23 | container: hitsElt, 24 | templates: { 25 | item: ` 26 | 27 |
28 |
29 | 30 |
31 |
32 |
33 | {{#helpers.highlight}}{ "attribute": "title" }{{/helpers.highlight}} 34 |
35 |
36 |
37 |
38 | ` 39 | }, 40 | }), 41 | ]); 42 | 43 | search.start(); 44 | } 45 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/src/Endpoints/Delegates/HandlesDocuments.php: -------------------------------------------------------------------------------- 1 | http->get(self::PATH.'/'.$this->uid.'/documents/'.$document_id); 10 | } 11 | 12 | public function getDocuments(array $query = []) 13 | { 14 | return $this->http->get(self::PATH.'/'.$this->uid.'/documents', $query); 15 | } 16 | 17 | public function addDocuments(array $documents, string $primaryKey = null) 18 | { 19 | return $this->http->post(self::PATH.'/'.$this->uid.'/documents', $documents, ['primaryKey' => $primaryKey]); 20 | } 21 | 22 | public function updateDocuments(array $documents, string $primary_key = null) 23 | { 24 | return $this->http->put(self::PATH.'/'.$this->uid.'/documents', $documents, ['primaryKey' => $primary_key]); 25 | } 26 | 27 | public function deleteAllDocuments(): array 28 | { 29 | return $this->http->delete(self::PATH.'/'.$this->uid.'/documents'); 30 | } 31 | 32 | public function deleteDocument(string $document_id): array 33 | { 34 | return $this->http->delete(self::PATH.'/'.$this->uid.'/documents/'.$document_id); 35 | } 36 | 37 | public function deleteDocuments(array $documents): array 38 | { 39 | return $this->http->post(self::PATH.'/'.$this->uid.'/documents/delete-batch', $documents); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-intl-idn/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/polyfill-intl-idn", 3 | "type": "library", 4 | "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", 5 | "keywords": ["polyfill", "shim", "compatibility", "portable", "intl", "idn"], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Laurent Bassin", 11 | "email": "laurent@bassin.info" 12 | }, 13 | { 14 | "name": "Trevor Rowbotham", 15 | "email": "trevor.rowbotham@pm.me" 16 | }, 17 | { 18 | "name": "Symfony Community", 19 | "homepage": "https://symfony.com/contributors" 20 | } 21 | ], 22 | "require": { 23 | "php": ">=5.3.3", 24 | "symfony/polyfill-intl-normalizer": "^1.10", 25 | "symfony/polyfill-php70": "^1.10", 26 | "symfony/polyfill-php72": "^1.10" 27 | }, 28 | "autoload": { 29 | "psr-4": { "Symfony\\Polyfill\\Intl\\Idn\\": "" }, 30 | "files": [ "bootstrap.php" ] 31 | }, 32 | "suggest": { 33 | "ext-intl": "For best performance" 34 | }, 35 | "minimum-stability": "dev", 36 | "extra": { 37 | "branch-alias": { 38 | "dev-master": "1.18-dev" 39 | }, 40 | "thanks": { 41 | "name": "symfony/polyfill", 42 | "url": "https://github.com/symfony/polyfill" 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/js/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "meilisearch-wordpress", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@meilisearch/instant-meilisearch": { 8 | "version": "0.2.5", 9 | "resolved": "https://registry.npmjs.org/@meilisearch/instant-meilisearch/-/instant-meilisearch-0.2.5.tgz", 10 | "integrity": "sha512-tBOjqwyW9A0PIEyjP7q0z6Mn3+y1PmRx2nhjKdZTGWNdbJqd+Km1B4iaFDapEMqWlG80EdR4cqXhnVPlTAPvng==", 11 | "requires": { 12 | "meilisearch": "^0.16.0" 13 | } 14 | }, 15 | "cross-fetch": { 16 | "version": "3.0.6", 17 | "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.0.6.tgz", 18 | "integrity": "sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==", 19 | "requires": { 20 | "node-fetch": "2.6.1" 21 | } 22 | }, 23 | "meilisearch": { 24 | "version": "0.16.1", 25 | "resolved": "https://registry.npmjs.org/meilisearch/-/meilisearch-0.16.1.tgz", 26 | "integrity": "sha512-KrKDaX0gvsiIKGbmmUShrv4xLQ0BqUjhftQ4/2PM1lMHmhUyfTFzrUfK3CToRAlUxZ/sEpf8SeAlTkKP4QBGsw==", 27 | "requires": { 28 | "cross-fetch": "^3.0.5" 29 | } 30 | }, 31 | "node-fetch": { 32 | "version": "2.6.1", 33 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", 34 | "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/psr7", 3 | "type": "library", 4 | "description": "PSR-7 message implementation that also provides common utility methods", 5 | "keywords": ["request", "response", "message", "stream", "http", "uri", "url", "psr-7"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | }, 13 | { 14 | "name": "Tobias Schultze", 15 | "homepage": "https://github.com/Tobion" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.4.0", 20 | "psr/http-message": "~1.0", 21 | "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" 22 | }, 23 | "require-dev": { 24 | "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8", 25 | "ext-zlib": "*" 26 | }, 27 | "provide": { 28 | "psr/http-message-implementation": "1.0" 29 | }, 30 | "suggest": { 31 | "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" 32 | }, 33 | "autoload": { 34 | "psr-4": { 35 | "GuzzleHttp\\Psr7\\": "src/" 36 | }, 37 | "files": ["src/functions_include.php"] 38 | }, 39 | "autoload-dev": { 40 | "psr-4": { 41 | "GuzzleHttp\\Tests\\Psr7\\": "tests/" 42 | } 43 | }, 44 | "extra": { 45 | "branch-alias": { 46 | "dev-master": "1.6-dev" 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/DistinctAttributeTest.php: -------------------------------------------------------------------------------- 1 | index = $this->client->createIndex('index'); 15 | } 16 | 17 | public function testGetDefaultDistinctAttribute() 18 | { 19 | $response = $this->index->getDistinctAttribute(); 20 | $this->assertNull($response); 21 | } 22 | 23 | public function testUpdateDistinctAttribute() 24 | { 25 | $distinctAttribute = 'description'; 26 | $promise = $this->index->updateDistinctAttribute($distinctAttribute); 27 | 28 | $this->assertIsValidPromise($promise); 29 | $this->index->waitForPendingUpdate($promise['updateId']); 30 | 31 | $this->assertEquals($distinctAttribute, $this->index->getDistinctAttribute()); 32 | } 33 | 34 | public function testResetDistinctAttribute() 35 | { 36 | $distinctAttribute = 'description'; 37 | $promise = $this->index->updateDistinctAttribute($distinctAttribute); 38 | $this->index->waitForPendingUpdate($promise['updateId']); 39 | 40 | $promise = $this->index->resetDistinctAttribute(); 41 | 42 | $this->assertIsValidPromise($promise); 43 | $this->index->waitForPendingUpdate($promise['updateId']); 44 | $this->assertNull($this->index->getDistinctAttribute()); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/TestCase.php: -------------------------------------------------------------------------------- 1 | 123, 'title' => 'Pride and Prejudice', 'comment' => 'A great book', 'genre' => 'romance'], 12 | ['id' => 456, 'title' => 'Le Petit Prince', 'comment' => 'A french book', 'genre' => 'adventure'], 13 | ['id' => 2, 'title' => 'Le Rouge et le Noir', 'comment' => 'Another french book', 'genre' => 'romance'], 14 | ['id' => 1, 'title' => 'Alice In Wonderland', 'comment' => 'A weird book', 'genre' => 'fantasy'], 15 | ['id' => 1344, 'title' => 'The Hobbit', 'comment' => 'An awesome book', 'genre' => 'romance'], 16 | ['id' => 4, 'title' => 'Harry Potter and the Half-Blood Prince', 'comment' => 'The best book', 'genre' => 'fantasy'], 17 | ['id' => 42, 'title' => 'The Hitchhiker\'s Guide to the Galaxy'], 18 | ]; 19 | 20 | const HOST = 'http://localhost:7700'; 21 | 22 | const DEFAULT_KEY = 'masterKey'; 23 | 24 | protected $client; 25 | 26 | public function __construct() 27 | { 28 | parent::__construct(); 29 | $this->client = new Client(self::HOST, self::DEFAULT_KEY); 30 | $this->client->deleteAllIndexes(); 31 | } 32 | 33 | public function assertIsValidPromise(array $promise) 34 | { 35 | $this->assertIsArray($promise); 36 | $this->assertArrayHasKey('updateId', $promise); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/guzzle6-adapter", 3 | "description": "Guzzle 6 HTTP Adapter", 4 | "license": "MIT", 5 | "keywords": ["guzzle", "http"], 6 | "homepage": "http://httplug.io", 7 | "authors": [ 8 | { 9 | "name": "David de Boer", 10 | "email": "david@ddeboer.nl" 11 | }, 12 | { 13 | "name": "Márk Sági-Kazár", 14 | "email": "mark.sagikazar@gmail.com" 15 | } 16 | ], 17 | "require": { 18 | "php": "^7.1", 19 | "php-http/httplug": "^2.0", 20 | "psr/http-client": "^1.0", 21 | "guzzlehttp/guzzle": "^6.0" 22 | }, 23 | "require-dev": { 24 | "ext-curl": "*", 25 | "phpunit/phpunit": "^7.4", 26 | "php-http/client-integration-tests": "^2.0" 27 | }, 28 | "provide": { 29 | "php-http/client-implementation": "1.0", 30 | "php-http/async-client-implementation": "1.0", 31 | "psr/http-client-implementation": "1.0" 32 | }, 33 | "autoload": { 34 | "psr-4": { 35 | "Http\\Adapter\\Guzzle6\\": "src/" 36 | } 37 | }, 38 | "autoload-dev": { 39 | "psr-4": { 40 | "Http\\Adapter\\Guzzle6\\Tests\\": "tests/" 41 | } 42 | }, 43 | "scripts": { 44 | "test": "vendor/bin/phpunit", 45 | "test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml" 46 | }, 47 | "extra": { 48 | "branch-alias": { 49 | "dev-master": "2.x-dev" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/guzzle", 3 | "type": "library", 4 | "description": "Guzzle is a PHP HTTP client library", 5 | "keywords": [ 6 | "framework", 7 | "http", 8 | "rest", 9 | "web service", 10 | "curl", 11 | "client", 12 | "HTTP client" 13 | ], 14 | "homepage": "http://guzzlephp.org/", 15 | "license": "MIT", 16 | "authors": [ 17 | { 18 | "name": "Michael Dowling", 19 | "email": "mtdowling@gmail.com", 20 | "homepage": "https://github.com/mtdowling" 21 | } 22 | ], 23 | "require": { 24 | "php": ">=5.5", 25 | "ext-json": "*", 26 | "symfony/polyfill-intl-idn": "^1.17.0", 27 | "guzzlehttp/promises": "^1.0", 28 | "guzzlehttp/psr7": "^1.6.1" 29 | }, 30 | "require-dev": { 31 | "ext-curl": "*", 32 | "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", 33 | "psr/log": "^1.1" 34 | }, 35 | "suggest": { 36 | "psr/log": "Required for using the Log middleware" 37 | }, 38 | "config": { 39 | "sort-packages": true 40 | }, 41 | "extra": { 42 | "branch-alias": { 43 | "dev-master": "6.5-dev" 44 | } 45 | }, 46 | "autoload": { 47 | "psr-4": { 48 | "GuzzleHttp\\": "src/" 49 | }, 50 | "files": [ 51 | "src/functions_include.php" 52 | ] 53 | }, 54 | "autoload-dev": { 55 | "psr-4": { 56 | "GuzzleHttp\\Tests\\": "tests/" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/psr/http-factory/src/StreamFactoryInterface.php: -------------------------------------------------------------------------------- 1 | index->all(); 13 | } 14 | 15 | public function showIndex($uid): array 16 | { 17 | return (new Indexes($this->http, $uid))->show(); 18 | } 19 | 20 | public function deleteIndex($uid): void 21 | { 22 | (new Indexes($this->http, $uid))->delete(); 23 | } 24 | 25 | public function deleteAllIndexes(): void 26 | { 27 | $indexes = $this->getAllIndexes(); 28 | foreach ($indexes as $index) { 29 | $index->delete(); 30 | } 31 | } 32 | 33 | public function getIndex($uid): Indexes 34 | { 35 | return new Indexes($this->http, $uid); 36 | } 37 | 38 | public function createIndex($uid, $options = []): Indexes 39 | { 40 | return $this->index->create($uid, $options); 41 | } 42 | 43 | /** 44 | * @throws HTTPRequestException 45 | */ 46 | public function getOrCreateIndex(string $uid, array $options = []): Indexes 47 | { 48 | $index = $this->getIndex($uid); 49 | 50 | try { 51 | $index = $this->createIndex($uid, $options); 52 | } catch (HTTPRequestException $e) { 53 | if (is_array($e->httpBody) && 'index_already_exists' !== $e->httpBody['errorCode']) { 54 | throw $e; 55 | } 56 | } 57 | 58 | return $index; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/StopWordsTest.php: -------------------------------------------------------------------------------- 1 | client->deleteAllIndexes(); 15 | $this->index = $this->client->createIndex('index'); 16 | } 17 | 18 | public function testGetDefaultStopWords() 19 | { 20 | $response = $this->index->getStopWords(); 21 | 22 | $this->assertIsArray($response); 23 | $this->assertEmpty($response); 24 | } 25 | 26 | public function testUpdateStopWords() 27 | { 28 | $newStopWords = ['the']; 29 | $promise = $this->index->updateStopWords($newStopWords); 30 | 31 | $this->assertIsValidPromise($promise); 32 | 33 | $this->index->waitForPendingUpdate($promise['updateId']); 34 | $stopWords = $this->index->getStopWords(); 35 | 36 | $this->assertIsArray($stopWords); 37 | $this->assertEquals($newStopWords, $stopWords); 38 | } 39 | 40 | public function testResetStopWords() 41 | { 42 | $promise = $this->index->updateStopWords(['the']); 43 | $this->index->waitForPendingUpdate($promise['updateId']); 44 | 45 | $promise = $this->index->resetStopWords(); 46 | 47 | $this->assertIsValidPromise($promise); 48 | $this->index->waitForPendingUpdate($promise['updateId']); 49 | 50 | $topWords = $this->index->getStopWords(); 51 | 52 | $this->assertIsArray($topWords); 53 | $this->assertEmpty($topWords); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/SynonymsTest.php: -------------------------------------------------------------------------------- 1 | client->deleteAllIndexes(); 15 | $this->index = $this->client->createIndex('index'); 16 | } 17 | 18 | public function testGetDefaultSynonyms() 19 | { 20 | $response = $this->index->getSynonyms(); 21 | 22 | $this->assertIsArray($response); 23 | $this->assertEmpty($response); 24 | } 25 | 26 | public function testUpdateSynonyms() 27 | { 28 | $newSynonyms = [ 29 | 'hp' => ['harry potter'], 30 | ]; 31 | $promise = $this->index->updateSynonyms($newSynonyms); 32 | 33 | $this->assertIsValidPromise($promise); 34 | 35 | $this->index->waitForPendingUpdate($promise['updateId']); 36 | $synonyms = $this->index->getSynonyms(); 37 | 38 | $this->assertIsArray($synonyms); 39 | $this->assertEquals($newSynonyms, $synonyms); 40 | } 41 | 42 | public function testResetSynonyms() 43 | { 44 | $promise = $this->index->updateSynonyms([ 45 | 'hp' => ['harry potter'], 46 | ]); 47 | $this->index->waitForPendingUpdate($promise['updateId']); 48 | $promise = $this->index->resetSynonyms(); 49 | 50 | $this->assertIsValidPromise($promise); 51 | 52 | $this->index->waitForPendingUpdate($promise['updateId']); 53 | $synonyms = $this->index->getSynonyms(); 54 | 55 | $this->assertIsArray($synonyms); 56 | $this->assertEmpty($synonyms); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/README.md: -------------------------------------------------------------------------------- 1 | # HTTPlug Discovery 2 | 3 | [![Latest Version](https://img.shields.io/github/release/php-http/discovery.svg?style=flat-square)](https://github.com/php-http/discovery/releases) 4 | [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) 5 | [![Build Status](https://img.shields.io/travis/php-http/discovery/master.svg?style=flat-square)](https://travis-ci.org/php-http/discovery) 6 | [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/discovery.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/discovery) 7 | [![Quality Score](https://img.shields.io/scrutinizer/g/php-http/discovery.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/discovery) 8 | [![Total Downloads](https://img.shields.io/packagist/dt/php-http/discovery.svg?style=flat-square)](https://packagist.org/packages/php-http/discovery) 9 | 10 | **Finds installed HTTPlug implementations and PSR-7 message factories.** 11 | 12 | 13 | ## Install 14 | 15 | Via Composer 16 | 17 | ``` bash 18 | $ composer require php-http/discovery 19 | ``` 20 | 21 | 22 | ## Documentation 23 | 24 | Please see the [official documentation](http://php-http.readthedocs.org/en/latest/discovery.html). 25 | 26 | 27 | ## Testing 28 | 29 | ``` bash 30 | $ composer test 31 | ``` 32 | 33 | 34 | ## Contributing 35 | 36 | Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). 37 | 38 | 39 | ## Security 40 | 41 | If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). 42 | 43 | 44 | ## License 45 | 46 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 47 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/src/Client.php: -------------------------------------------------------------------------------- 1 | http = new Http\Client($url, $apiKey, $httpClient, $requestFactory, $streamFactory); 57 | $this->index = new Indexes($this->http); 58 | $this->health = new Health($this->http); 59 | $this->version = new Version($this->http); 60 | $this->sysInfo = new SysInfo($this->http); 61 | $this->stats = new Stats($this->http); 62 | $this->keys = new Keys($this->http); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/discovery", 3 | "description": "Finds installed HTTPlug implementations and PSR-7 message factories", 4 | "license": "MIT", 5 | "keywords": ["http", "discovery", "client", "adapter", "message", "factory", "psr7"], 6 | "homepage": "http://php-http.org", 7 | "authors": [ 8 | { 9 | "name": "Márk Sági-Kazár", 10 | "email": "mark.sagikazar@gmail.com" 11 | } 12 | ], 13 | "require": { 14 | "php": "^7.1 || ^8.0" 15 | }, 16 | "require-dev": { 17 | "graham-campbell/phpspec-skip-example-extension": "^5.0", 18 | "php-http/httplug": "^1.0 || ^2.0", 19 | "php-http/message-factory": "^1.0", 20 | "phpspec/phpspec": "^5.1 || ^6.1", 21 | "puli/composer-plugin": "1.0.0-beta10" 22 | }, 23 | "suggest": { 24 | "puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.", 25 | "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories" 26 | }, 27 | "autoload": { 28 | "psr-4": { 29 | "Http\\Discovery\\": "src/" 30 | } 31 | }, 32 | "autoload-dev": { 33 | "psr-4": { 34 | "spec\\Http\\Discovery\\": "spec/" 35 | } 36 | }, 37 | "scripts": { 38 | "test": "vendor/bin/phpspec run", 39 | "test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml" 40 | }, 41 | "extra": { 42 | "branch-alias": { 43 | "dev-master": "1.9-dev" 44 | } 45 | }, 46 | "conflict": { 47 | "nyholm/psr7": "<1.0" 48 | }, 49 | "prefer-stable": true, 50 | "minimum-stability": "beta" 51 | } 52 | -------------------------------------------------------------------------------- /vendor/php-http/promise/README.md: -------------------------------------------------------------------------------- 1 | # Promise 2 | 3 | [![Latest Version](https://img.shields.io/github/release/php-http/promise.svg?style=flat-square)](https://github.com/php-http/promise/releases) 4 | [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) 5 | [![Build Status](https://img.shields.io/travis/php-http/promise.svg?style=flat-square)](https://travis-ci.org/php-http/promise) 6 | [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/promise.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/promise) 7 | [![Quality Score](https://img.shields.io/scrutinizer/g/php-http/promise.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/promise) 8 | [![Total Downloads](https://img.shields.io/packagist/dt/php-http/promise.svg?style=flat-square)](https://packagist.org/packages/php-http/promise) 9 | 10 | **Promise used for asynchronous HTTP requests.** 11 | 12 | **Note:** This will eventually be removed/deprecated and replaced with the upcoming Promise PSR. 13 | 14 | 15 | ## Install 16 | 17 | Via Composer 18 | 19 | ``` bash 20 | $ composer require php-http/promise 21 | ``` 22 | 23 | 24 | ## Documentation 25 | 26 | Please see the [official documentation](http://docs.php-http.org/en/latest/components/promise.html). 27 | 28 | 29 | ## Testing 30 | 31 | ``` bash 32 | $ composer test 33 | ``` 34 | 35 | 36 | ## Contributing 37 | 38 | Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). 39 | 40 | 41 | ## Security 42 | 43 | If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). 44 | 45 | 46 | ## License 47 | 48 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 49 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/src/getallheaders.php: -------------------------------------------------------------------------------- 1 | 'Content-Type', 16 | 'CONTENT_LENGTH' => 'Content-Length', 17 | 'CONTENT_MD5' => 'Content-Md5', 18 | ); 19 | 20 | foreach ($_SERVER as $key => $value) { 21 | if (substr($key, 0, 5) === 'HTTP_') { 22 | $key = substr($key, 5); 23 | if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { 24 | $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); 25 | $headers[$key] = $value; 26 | } 27 | } elseif (isset($copy_server[$key])) { 28 | $headers[$copy_server[$key]] = $value; 29 | } 30 | } 31 | 32 | if (!isset($headers['Authorization'])) { 33 | if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { 34 | $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; 35 | } elseif (isset($_SERVER['PHP_AUTH_USER'])) { 36 | $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; 37 | $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass); 38 | } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) { 39 | $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST']; 40 | } 41 | } 42 | 43 | return $headers; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /vendor/paragonie/random_compat/other/build_phar.php: -------------------------------------------------------------------------------- 1 | buildFromDirectory(dirname(__DIR__).'/lib'); 19 | rename( 20 | dirname(__DIR__).'/lib/index.php', 21 | dirname(__DIR__).'/lib/random.php' 22 | ); 23 | 24 | /** 25 | * If we pass an (optional) path to a private key as a second argument, we will 26 | * sign the Phar with OpenSSL. 27 | * 28 | * If you leave this out, it will produce an unsigned .phar! 29 | */ 30 | if ($argc > 1) { 31 | if (!@is_readable($argv[1])) { 32 | echo 'Could not read the private key file:', $argv[1], "\n"; 33 | exit(255); 34 | } 35 | $pkeyFile = file_get_contents($argv[1]); 36 | 37 | $private = openssl_get_privatekey($pkeyFile); 38 | if ($private !== false) { 39 | $pkey = ''; 40 | openssl_pkey_export($private, $pkey); 41 | $phar->setSignatureAlgorithm(Phar::OPENSSL, $pkey); 42 | 43 | /** 44 | * Save the corresponding public key to the file 45 | */ 46 | if (!@is_readable($dist.'/random_compat.phar.pubkey')) { 47 | $details = openssl_pkey_get_details($private); 48 | file_put_contents( 49 | $dist.'/random_compat.phar.pubkey', 50 | $details['key'] 51 | ); 52 | } 53 | } else { 54 | echo 'An error occurred reading the private key from OpenSSL.', "\n"; 55 | exit(255); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/RankingRulesTest.php: -------------------------------------------------------------------------------- 1 | index = $this->client->createIndex('index'); 24 | } 25 | 26 | public function testGetDefaultRankingRules() 27 | { 28 | $response = $this->index->getRankingRules(); 29 | 30 | $this->assertIsArray($response); 31 | $this->assertEquals(self::DEFAULT_RANKING_RULES, $response); 32 | } 33 | 34 | public function testUpdateRankingRules() 35 | { 36 | $newRankingRules = [ 37 | 'asc(title)', 38 | 'typo', 39 | 'desc(description)', 40 | ]; 41 | 42 | $promise = $this->index->updateRankingRules($newRankingRules); 43 | 44 | $this->assertIsValidPromise($promise); 45 | $this->index->waitForPendingUpdate($promise['updateId']); 46 | 47 | $rankingRules = $this->index->getRankingRules(); 48 | 49 | $this->assertIsArray($rankingRules); 50 | $this->assertEquals($newRankingRules, $rankingRules); 51 | } 52 | 53 | public function testResetRankingRules() 54 | { 55 | $promise = $this->index->resetRankingRules(); 56 | 57 | $this->assertIsValidPromise($promise); 58 | 59 | $this->index->waitForPendingUpdate($promise['updateId']); 60 | $rankingRules = $this->index->getRankingRules(); 61 | 62 | $this->assertIsArray($rankingRules); 63 | $this->assertEquals(self::DEFAULT_RANKING_RULES, $rankingRules); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Exception/HttpException.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | class HttpException extends RequestException 16 | { 17 | /** 18 | * @var ResponseInterface 19 | */ 20 | protected $response; 21 | 22 | /** 23 | * @param string $message 24 | */ 25 | public function __construct( 26 | $message, 27 | RequestInterface $request, 28 | ResponseInterface $response, 29 | \Exception $previous = null 30 | ) { 31 | parent::__construct($message, $request, $previous); 32 | 33 | $this->response = $response; 34 | $this->code = $response->getStatusCode(); 35 | } 36 | 37 | /** 38 | * Returns the response. 39 | * 40 | * @return ResponseInterface 41 | */ 42 | public function getResponse() 43 | { 44 | return $this->response; 45 | } 46 | 47 | /** 48 | * Factory method to create a new exception with a normalized error message. 49 | */ 50 | public static function create( 51 | RequestInterface $request, 52 | ResponseInterface $response, 53 | \Exception $previous = null 54 | ) { 55 | $message = sprintf( 56 | '[url] %s [http method] %s [status code] %s [reason phrase] %s', 57 | $request->getRequestTarget(), 58 | $request->getMethod(), 59 | $response->getStatusCode(), 60 | $response->getReasonPhrase() 61 | ); 62 | 63 | return new static($message, $request, $response, $previous); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/AttributesForFacetingTest.php: -------------------------------------------------------------------------------- 1 | client->deleteAllIndexes(); 13 | } 14 | 15 | public function testGetDefaultAttributesForFaceting() 16 | { 17 | $index = $this->client->createIndex('index'); 18 | 19 | $attributes = $index->getAttributesForFaceting(); 20 | 21 | $this->assertIsArray($attributes); 22 | $this->assertEmpty($attributes); 23 | } 24 | 25 | public function testUpdateAttributesForFaceting() 26 | { 27 | $newAttributes = ['title']; 28 | $index = $this->client->createIndex('index'); 29 | 30 | $promise = $index->updateAttributesForFaceting($newAttributes); 31 | 32 | $this->assertIsValidPromise($promise); 33 | $index->waitForPendingUpdate($promise['updateId']); 34 | 35 | $attributesForFaceting = $index->getAttributesForFaceting(); 36 | 37 | $this->assertIsArray($attributesForFaceting); 38 | $this->assertEquals($newAttributes, $attributesForFaceting); 39 | } 40 | 41 | public function testResetAttributesForFaceting() 42 | { 43 | $index = $this->client->createIndex('index'); 44 | $newAttributes = ['title']; 45 | 46 | $promise = $index->updateAttributesForFaceting($newAttributes); 47 | $index->waitForPendingUpdate($promise['updateId']); 48 | 49 | $promise = $index->resetAttributesForFaceting(); 50 | 51 | $this->assertIsValidPromise($promise); 52 | 53 | $index->waitForPendingUpdate($promise['updateId']); 54 | 55 | $attributesForFaceting = $index->getAttributesForFaceting(); 56 | $this->assertIsArray($attributesForFaceting); 57 | $this->assertEmpty($attributesForFaceting); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/Proxy.php: -------------------------------------------------------------------------------- 1 | /dev/null 2>&1 & 33 | ``` 34 | 35 | Then the test suite: 36 | 37 | ``` bash 38 | $ composer test 39 | ``` 40 | 41 | 42 | ## Contributing 43 | 44 | Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). 45 | 46 | 47 | ## Security 48 | 49 | If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). 50 | 51 | 52 | ## Credits 53 | 54 | Thanks to [David de Boer](https://github.com/ddeboer) for implementing this adapter. 55 | 56 | 57 | ## License 58 | 59 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 60 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/InflateStream.php: -------------------------------------------------------------------------------- 1 | read(10); 25 | $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); 26 | // Skip the header, that is 10 + length of filename + 1 (nil) bytes 27 | $stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength); 28 | $resource = StreamWrapper::getResource($stream); 29 | stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ); 30 | $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource)); 31 | } 32 | 33 | /** 34 | * @param StreamInterface $stream 35 | * @param $header 36 | * @return int 37 | */ 38 | private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header) 39 | { 40 | $filename_header_length = 0; 41 | 42 | if (substr(bin2hex($header), 6, 2) === '08') { 43 | // we have a filename, read until nil 44 | $filename_header_length = 1; 45 | while ($stream->read(1) !== chr(0)) { 46 | $filename_header_length++; 47 | } 48 | } 49 | 50 | return $filename_header_length; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php72/bootstrap.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Symfony\Polyfill\Php72 as p; 13 | 14 | if (PHP_VERSION_ID >= 70200) { 15 | return; 16 | } 17 | 18 | if (!defined('PHP_FLOAT_DIG')) { 19 | define('PHP_FLOAT_DIG', 15); 20 | } 21 | if (!defined('PHP_FLOAT_EPSILON')) { 22 | define('PHP_FLOAT_EPSILON', 2.2204460492503E-16); 23 | } 24 | if (!defined('PHP_FLOAT_MIN')) { 25 | define('PHP_FLOAT_MIN', 2.2250738585072E-308); 26 | } 27 | if (!defined('PHP_FLOAT_MAX')) { 28 | define('PHP_FLOAT_MAX', 1.7976931348623157E+308); 29 | } 30 | if (!defined('PHP_OS_FAMILY')) { 31 | define('PHP_OS_FAMILY', p\Php72::php_os_family()); 32 | } 33 | 34 | if ('\\' === DIRECTORY_SEPARATOR && !function_exists('sapi_windows_vt100_support')) { 35 | function sapi_windows_vt100_support($stream, $enable = null) { return p\Php72::sapi_windows_vt100_support($stream, $enable); } 36 | } 37 | if (!function_exists('stream_isatty')) { 38 | function stream_isatty($stream) { return p\Php72::stream_isatty($stream); } 39 | } 40 | if (!function_exists('utf8_encode')) { 41 | function utf8_encode($s) { return p\Php72::utf8_encode($s); } 42 | } 43 | if (!function_exists('utf8_decode')) { 44 | function utf8_decode($s) { return p\Php72::utf8_decode($s); } 45 | } 46 | if (!function_exists('spl_object_id')) { 47 | function spl_object_id($s) { return p\Php72::spl_object_id($s); } 48 | } 49 | if (!function_exists('mb_ord')) { 50 | function mb_ord($s, $enc = null) { return p\Php72::mb_ord($s, $enc); } 51 | } 52 | if (!function_exists('mb_chr')) { 53 | function mb_chr($code, $enc = null) { return p\Php72::mb_chr($code, $enc); } 54 | } 55 | if (!function_exists('mb_scrub')) { 56 | function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/SearchableAttributesTest.php: -------------------------------------------------------------------------------- 1 | client->deleteAllIndexes(); 13 | } 14 | 15 | public function testGetDefaultSearchableAttributes() 16 | { 17 | $indexA = $this->client->createIndex('indexA'); 18 | $indexB = $this->client->createIndex('indexB', ['primaryKey' => 'objectID']); 19 | 20 | $searchableAttributesA = $indexA->getSearchableAttributes(); 21 | $searchableAttributesB = $indexB->getSearchableAttributes(); 22 | 23 | $this->assertIsArray($searchableAttributesA); 24 | $this->assertEmpty($searchableAttributesA); 25 | $this->assertIsArray($searchableAttributesB); 26 | $this->assertEquals(['objectID'], $searchableAttributesB); 27 | } 28 | 29 | public function testUpdateSearchableAttributes() 30 | { 31 | $indexA = $this->client->createIndex('indexA'); 32 | $searchableAttributes = [ 33 | 'title', 34 | 'description', 35 | ]; 36 | 37 | $promise = $indexA->updateSearchableAttributes($searchableAttributes); 38 | 39 | $this->assertIsValidPromise($promise); 40 | 41 | $indexA->waitForPendingUpdate($promise['updateId']); 42 | $updatedAttributes = $indexA->getSearchableAttributes(); 43 | 44 | $this->assertIsArray($updatedAttributes); 45 | $this->assertEquals($searchableAttributes, $updatedAttributes); 46 | } 47 | 48 | public function testResetSearchableAttributes() 49 | { 50 | $index = $this->client->createIndex('indexA'); 51 | $promise = $index->resetSearchableAttributes(); 52 | 53 | $this->assertIsValidPromise($promise); 54 | 55 | $index->waitForPendingUpdate($promise['updateId']); 56 | $searchableAttributes = $index->getSearchableAttributes(); 57 | 58 | $this->assertIsArray($searchableAttributes); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/src/Client.php: -------------------------------------------------------------------------------- 1 | 20 | */ 21 | final class Client implements HttpClient, HttpAsyncClient 22 | { 23 | /** 24 | * @var ClientInterface 25 | */ 26 | private $client; 27 | 28 | public function __construct(?ClientInterface $client = null) 29 | { 30 | if (!$client) { 31 | $client = self::buildClient(); 32 | } 33 | 34 | $this->client = $client; 35 | } 36 | 37 | /** 38 | * Factory method to create the Guzzle 6 adapter with custom Guzzle configuration. 39 | */ 40 | public static function createWithConfig(array $config): Client 41 | { 42 | return new self(self::buildClient($config)); 43 | } 44 | 45 | /** 46 | * {@inheritdoc} 47 | */ 48 | public function sendRequest(RequestInterface $request): ResponseInterface 49 | { 50 | $promise = $this->sendAsyncRequest($request); 51 | 52 | return $promise->wait(); 53 | } 54 | 55 | /** 56 | * {@inheritdoc} 57 | */ 58 | public function sendAsyncRequest(RequestInterface $request) 59 | { 60 | $promise = $this->client->sendAsync($request); 61 | 62 | return new Promise($promise, $request); 63 | } 64 | 65 | /** 66 | * Build the Guzzle client instance. 67 | */ 68 | private static function buildClient(array $config = []): GuzzleClient 69 | { 70 | $handlerStack = new HandlerStack(\GuzzleHttp\choose_handler()); 71 | $handlerStack->push(Middleware::prepareBody(), 'prepare_body'); 72 | $config = array_merge(['handler' => $handlerStack], $config); 73 | 74 | return new GuzzleClient($config); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Endpoints/UpdatesTest.php: -------------------------------------------------------------------------------- 1 | client->deleteAllIndexes(); 16 | $this->index = $this->client->createIndex('index'); 17 | } 18 | 19 | public function testGetOneUpdate() 20 | { 21 | [$promise, $response] = $this->seedIndex(); 22 | 23 | $this->assertIsArray($response); 24 | $this->assertSame($response['status'], 'processed'); 25 | $this->assertSame($response['updateId'], $promise['updateId']); 26 | $this->assertArrayHasKey('type', $response); 27 | $this->assertIsArray($response['type']); 28 | $this->assertArrayHasKey('duration', $response); 29 | $this->assertArrayHasKey('enqueuedAt', $response); 30 | $this->assertArrayHasKey('processedAt', $response); 31 | } 32 | 33 | public function testGetAllUpdates() 34 | { 35 | $this->seedIndex(); 36 | 37 | $response = $this->index->getAllUpdateStatus(); 38 | 39 | $this->assertCount(1, $response); 40 | $this->assertSame('processed', $response[0]['status']); 41 | $this->assertArrayHasKey('updateId', $response[0]); 42 | $this->assertArrayHasKey('type', $response[0]); 43 | $this->assertIsArray($response[0]['type']); 44 | $this->assertArrayHasKey('duration', $response[0]); 45 | $this->assertArrayHasKey('enqueuedAt', $response[0]); 46 | $this->assertArrayHasKey('processedAt', $response[0]); 47 | } 48 | 49 | public function testExceptionIfNoUpdateIdWhenGetting() 50 | { 51 | $this->expectException(HTTPRequestException::class); 52 | $this->index->getUpdateStatus(10000); 53 | } 54 | 55 | private function seedIndex(): array 56 | { 57 | $promise = $this->index->updateDocuments(self::DOCUMENTS); 58 | $response = $this->index->waitForPendingUpdate($promise['updateId']); 59 | 60 | return [$promise, $response]; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/TaskQueue.php: -------------------------------------------------------------------------------- 1 | run(); 12 | */ 13 | class TaskQueue implements TaskQueueInterface 14 | { 15 | private $enableShutdown = true; 16 | private $queue = []; 17 | 18 | public function __construct($withShutdown = true) 19 | { 20 | if ($withShutdown) { 21 | register_shutdown_function(function () { 22 | if ($this->enableShutdown) { 23 | // Only run the tasks if an E_ERROR didn't occur. 24 | $err = error_get_last(); 25 | if (!$err || ($err['type'] ^ E_ERROR)) { 26 | $this->run(); 27 | } 28 | } 29 | }); 30 | } 31 | } 32 | 33 | public function isEmpty() 34 | { 35 | return !$this->queue; 36 | } 37 | 38 | public function add(callable $task) 39 | { 40 | $this->queue[] = $task; 41 | } 42 | 43 | public function run() 44 | { 45 | /** @var callable $task */ 46 | while ($task = array_shift($this->queue)) { 47 | $task(); 48 | } 49 | } 50 | 51 | /** 52 | * The task queue will be run and exhausted by default when the process 53 | * exits IFF the exit is not the result of a PHP E_ERROR error. 54 | * 55 | * You can disable running the automatic shutdown of the queue by calling 56 | * this function. If you disable the task queue shutdown process, then you 57 | * MUST either run the task queue (as a result of running your event loop 58 | * or manually using the run() method) or wait on each outstanding promise. 59 | * 60 | * Note: This shutdown will occur before any destructors are triggered. 61 | */ 62 | public function disableShutdown() 63 | { 64 | $this->enableShutdown = false; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php: -------------------------------------------------------------------------------- 1 | sessionKey = $sessionKey; 27 | $this->storeSessionCookies = $storeSessionCookies; 28 | $this->load(); 29 | } 30 | 31 | /** 32 | * Saves cookies to session when shutting down 33 | */ 34 | public function __destruct() 35 | { 36 | $this->save(); 37 | } 38 | 39 | /** 40 | * Save cookies to the client session 41 | */ 42 | public function save() 43 | { 44 | $json = []; 45 | foreach ($this as $cookie) { 46 | /** @var SetCookie $cookie */ 47 | if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { 48 | $json[] = $cookie->toArray(); 49 | } 50 | } 51 | 52 | $_SESSION[$this->sessionKey] = json_encode($json); 53 | } 54 | 55 | /** 56 | * Load the contents of the client session into the data array 57 | */ 58 | protected function load() 59 | { 60 | if (!isset($_SESSION[$this->sessionKey])) { 61 | return; 62 | } 63 | $data = json_decode($_SESSION[$this->sessionKey], true); 64 | if (is_array($data)) { 65 | foreach ($data as $cookie) { 66 | $this->setCookie(new SetCookie($cookie)); 67 | } 68 | } elseif (strlen($data)) { 69 | throw new \RuntimeException("Invalid cookie data"); 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/FulfilledPromise.php: -------------------------------------------------------------------------------- 1 | value = $value; 22 | } 23 | 24 | public function then( 25 | callable $onFulfilled = null, 26 | callable $onRejected = null 27 | ) { 28 | // Return itself if there is no onFulfilled function. 29 | if (!$onFulfilled) { 30 | return $this; 31 | } 32 | 33 | $queue = queue(); 34 | $p = new Promise([$queue, 'run']); 35 | $value = $this->value; 36 | $queue->add(static function () use ($p, $value, $onFulfilled) { 37 | if ($p->getState() === self::PENDING) { 38 | try { 39 | $p->resolve($onFulfilled($value)); 40 | } catch (\Throwable $e) { 41 | $p->reject($e); 42 | } catch (\Exception $e) { 43 | $p->reject($e); 44 | } 45 | } 46 | }); 47 | 48 | return $p; 49 | } 50 | 51 | public function otherwise(callable $onRejected) 52 | { 53 | return $this->then(null, $onRejected); 54 | } 55 | 56 | public function wait($unwrap = true, $defaultDelivery = null) 57 | { 58 | return $unwrap ? $this->value : null; 59 | } 60 | 61 | public function getState() 62 | { 63 | return self::FULFILLED; 64 | } 65 | 66 | public function resolve($value) 67 | { 68 | if ($value !== $this->value) { 69 | throw new \LogicException("Cannot resolve a fulfilled promise"); 70 | } 71 | } 72 | 73 | public function reject($reason) 74 | { 75 | throw new \LogicException("Cannot reject a fulfilled promise"); 76 | } 77 | 78 | public function cancel() 79 | { 80 | // pass 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php70/Php70.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Polyfill\Php70; 13 | 14 | /** 15 | * @author Nicolas Grekas 16 | * 17 | * @internal 18 | */ 19 | final class Php70 20 | { 21 | public static function intdiv($dividend, $divisor) 22 | { 23 | $dividend = self::intArg($dividend, __FUNCTION__, 1); 24 | $divisor = self::intArg($divisor, __FUNCTION__, 2); 25 | 26 | if (0 === $divisor) { 27 | throw new \DivisionByZeroError('Division by zero'); 28 | } 29 | if (-1 === $divisor && ~PHP_INT_MAX === $dividend) { 30 | throw new \ArithmeticError('Division of PHP_INT_MIN by -1 is not an integer'); 31 | } 32 | 33 | return ($dividend - ($dividend % $divisor)) / $divisor; 34 | } 35 | 36 | public static function preg_replace_callback_array(array $patterns, $subject, $limit = -1, &$count = 0) 37 | { 38 | $count = 0; 39 | $result = (string) $subject; 40 | if (0 === $limit = self::intArg($limit, __FUNCTION__, 3)) { 41 | return $result; 42 | } 43 | 44 | foreach ($patterns as $pattern => $callback) { 45 | $result = preg_replace_callback($pattern, $callback, $result, $limit, $c); 46 | $count += $c; 47 | } 48 | 49 | return $result; 50 | } 51 | 52 | public static function error_clear_last() 53 | { 54 | static $handler; 55 | if (!$handler) { 56 | $handler = function () { return false; }; 57 | } 58 | set_error_handler($handler); 59 | @trigger_error(''); 60 | restore_error_handler(); 61 | } 62 | 63 | private static function intArg($value, $caller, $pos) 64 | { 65 | if (\is_int($value)) { 66 | return $value; 67 | } 68 | if (!\is_numeric($value) || PHP_INT_MAX <= ($value += 0) || ~PHP_INT_MAX >= $value) { 69 | throw new \TypeError(sprintf('%s() expects parameter %d to be integer, %s given', $caller, $pos, \gettype($value))); 70 | } 71 | 72 | return (int) $value; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Settings/DisplayedAttributesTest.php: -------------------------------------------------------------------------------- 1 | client->deleteAllIndexes(); 13 | } 14 | 15 | public function testGetDefaultDisplayedAttributes() 16 | { 17 | $indexA = $this->client->createIndex('indexA'); 18 | $indexB = $this->client->createIndex('indexB', ['primaryKey' => 'objectID']); 19 | 20 | $attributesA = $indexA->getDisplayedAttributes(); 21 | $attributesB = $indexB->getDisplayedAttributes(); 22 | 23 | $this->assertIsArray($attributesA); 24 | $this->assertEmpty($attributesA); 25 | 26 | $this->assertIsArray($attributesB); 27 | $this->assertEquals(['objectID'], $attributesB); 28 | } 29 | 30 | public function testUpdateDisplayedAttributes() 31 | { 32 | $newAttributes = ['title']; 33 | $index = $this->client->createIndex('index'); 34 | 35 | $promise = $index->updateDisplayedAttributes($newAttributes); 36 | 37 | $this->assertIsValidPromise($promise); 38 | $index->waitForPendingUpdate($promise['updateId']); 39 | 40 | $displayedAttributes = $index->getDisplayedAttributes(); 41 | 42 | $this->assertIsArray($displayedAttributes); 43 | $this->assertEquals($newAttributes, $displayedAttributes); 44 | } 45 | 46 | public function testResetDisplayedAttributes() 47 | { 48 | $index = $this->client->createIndex('index'); 49 | $newAttributes = ['title']; 50 | 51 | $promise = $index->updateDisplayedAttributes($newAttributes); 52 | $index->waitForPendingUpdate($promise['updateId']); 53 | 54 | $promise = $index->resetDisplayedAttributes(); 55 | 56 | $this->assertIsValidPromise($promise); 57 | 58 | $index->waitForPendingUpdate($promise['updateId']); 59 | 60 | $displayedAttributes = $index->getDisplayedAttributes(); 61 | $this->assertIsArray($displayedAttributes); 62 | // according to issue #21 the resetDisplayedAttributes reverts back to the default keys in the index 63 | $this->assertNotEmpty($displayedAttributes); 64 | $this->assertContains('title', $displayedAttributes); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/php-http/promise/src/Promise.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Márk Sági-Kazár 15 | */ 16 | interface Promise 17 | { 18 | /** 19 | * Promise has not been fulfilled or rejected. 20 | */ 21 | const PENDING = 'pending'; 22 | 23 | /** 24 | * Promise has been fulfilled. 25 | */ 26 | const FULFILLED = 'fulfilled'; 27 | 28 | /** 29 | * Promise has been rejected. 30 | */ 31 | const REJECTED = 'rejected'; 32 | 33 | /** 34 | * Adds behavior for when the promise is resolved or rejected (response will be available, or error happens). 35 | * 36 | * If you do not care about one of the cases, you can set the corresponding callable to null 37 | * The callback will be called when the value arrived and never more than once. 38 | * 39 | * @param callable|null $onFulfilled called when a response will be available 40 | * @param callable|null $onRejected called when an exception occurs 41 | * 42 | * @return Promise a new resolved promise with value of the executed callback (onFulfilled / onRejected) 43 | */ 44 | public function then(callable $onFulfilled = null, callable $onRejected = null); 45 | 46 | /** 47 | * Returns the state of the promise, one of PENDING, FULFILLED or REJECTED. 48 | * 49 | * @return string 50 | */ 51 | public function getState(); 52 | 53 | /** 54 | * Wait for the promise to be fulfilled or rejected. 55 | * 56 | * When this method returns, the request has been resolved and if callables have been 57 | * specified, the appropriate one has terminated. 58 | * 59 | * When $unwrap is true (the default), the response is returned, or the exception thrown 60 | * on failure. Otherwise, nothing is returned or thrown. 61 | * 62 | * @param bool $unwrap Whether to return resolved value / throw reason or not 63 | * 64 | * @return mixed Resolved value, null if $unwrap is set to false 65 | * 66 | * @throws \Exception the rejection reason if $unwrap is set to true and the request failed 67 | */ 68 | public function wait($unwrap = true); 69 | } 70 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/README.md: -------------------------------------------------------------------------------- 1 | # HTTPlug 2 | 3 | [![Latest Version](https://img.shields.io/github/release/php-http/httplug.svg?style=flat-square)](https://github.com/php-http/httplug/releases) 4 | [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) 5 | [![Build Status](https://img.shields.io/travis/php-http/httplug/master.svg?style=flat-square)](https://travis-ci.org/php-http/httplug) 6 | [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/httplug) 7 | [![Quality Score](https://img.shields.io/scrutinizer/g/php-http/httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/httplug) 8 | [![Total Downloads](https://img.shields.io/packagist/dt/php-http/httplug.svg?style=flat-square)](https://packagist.org/packages/php-http/httplug) 9 | 10 | [![Slack Status](http://slack.httplug.io/badge.svg)](http://slack.httplug.io) 11 | [![Email](https://img.shields.io/badge/email-team@httplug.io-blue.svg?style=flat-square)](mailto:team@httplug.io) 12 | 13 | **HTTPlug, the HTTP client abstraction for PHP.** 14 | 15 | 16 | ## Intro 17 | 18 | HTTP client standard built on [PSR-7](http://www.php-fig.org/psr/psr-7/) HTTP 19 | messages. The HTTPlug client interface is compatible with the official standard 20 | for the HTTP client interface, [PSR-18](http://www.php-fig.org/psr/psr-18/). 21 | HTTPlug adds an interface for asynchronous HTTP requests, which PSR-18 does not 22 | cover. 23 | 24 | Since HTTPlug has already been widely adopted and a whole ecosystem has been 25 | built around it, we will keep maintaining this package for the time being. 26 | HTTPlug 2.0 and newer extend the PSR-18 interface to allow for a convenient 27 | migration path. 28 | 29 | New client implementations and consumers should use the PSR-18 interfaces 30 | directly. In the long term, we expect PSR-18 to completely replace the need 31 | for HTTPlug. 32 | 33 | 34 | ## History 35 | 36 | HTTPlug is the official successor of the [ivory http adapter](https://github.com/egeloen/ivory-http-adapter). 37 | HTTPlug is a predecessor of [PSR-18](http://www.php-fig.org/psr/psr-18/) 38 | 39 | 40 | ## Install 41 | 42 | Via Composer 43 | 44 | ``` bash 45 | $ composer require php-http/httplug 46 | ``` 47 | 48 | 49 | ## Documentation 50 | 51 | Please see the [official documentation](http://docs.php-http.org). 52 | 53 | 54 | ## Testing 55 | 56 | ``` bash 57 | $ composer test 58 | ``` 59 | 60 | 61 | ## License 62 | 63 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 64 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/RejectedPromise.php: -------------------------------------------------------------------------------- 1 | reason = $reason; 22 | } 23 | 24 | public function then( 25 | callable $onFulfilled = null, 26 | callable $onRejected = null 27 | ) { 28 | // If there's no onRejected callback then just return self. 29 | if (!$onRejected) { 30 | return $this; 31 | } 32 | 33 | $queue = queue(); 34 | $reason = $this->reason; 35 | $p = new Promise([$queue, 'run']); 36 | $queue->add(static function () use ($p, $reason, $onRejected) { 37 | if ($p->getState() === self::PENDING) { 38 | try { 39 | // Return a resolved promise if onRejected does not throw. 40 | $p->resolve($onRejected($reason)); 41 | } catch (\Throwable $e) { 42 | // onRejected threw, so return a rejected promise. 43 | $p->reject($e); 44 | } catch (\Exception $e) { 45 | // onRejected threw, so return a rejected promise. 46 | $p->reject($e); 47 | } 48 | } 49 | }); 50 | 51 | return $p; 52 | } 53 | 54 | public function otherwise(callable $onRejected) 55 | { 56 | return $this->then(null, $onRejected); 57 | } 58 | 59 | public function wait($unwrap = true, $defaultDelivery = null) 60 | { 61 | if ($unwrap) { 62 | throw exception_for($this->reason); 63 | } 64 | } 65 | 66 | public function getState() 67 | { 68 | return self::REJECTED; 69 | } 70 | 71 | public function resolve($value) 72 | { 73 | throw new \LogicException("Cannot resolve a rejected promise"); 74 | } 75 | 76 | public function reject($reason) 77 | { 78 | if ($reason !== $this->reason) { 79 | throw new \LogicException("Cannot reject a rejected promise"); 80 | } 81 | } 82 | 83 | public function cancel() 84 | { 85 | // pass 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /vendor/meilisearch/meilisearch-php/tests/Endpoints/KeysAndPermissionsTest.php: -------------------------------------------------------------------------------- 1 | client->deleteAllIndexes(); 15 | } 16 | 17 | public function testGetKeys() 18 | { 19 | $response = $this->client->getKeys(); 20 | 21 | $this->assertArrayHasKey('private', $response); 22 | $this->assertArrayHasKey('public', $response); 23 | $this->assertIsString($response['private']); 24 | $this->assertNotNull($response['private']); 25 | $this->assertIsString($response['public']); 26 | $this->assertNotNull($response['public']); 27 | } 28 | 29 | public function testSearchingIfPublicKeyProvided() 30 | { 31 | $this->client->createIndex('index'); 32 | 33 | $newClient = new Client(self::HOST, $this->getKeys()['public']); 34 | $response = $newClient->getIndex('index')->search('test'); 35 | $this->assertArrayHasKey('hits', $response); 36 | } 37 | 38 | public function testGetSettingsIfPrivateKeyProvided() 39 | { 40 | $this->client->createIndex('index'); 41 | $newClient = new Client(self::HOST, $this->getKeys()['private']); 42 | $response = $newClient->getIndex('index')->getSettings(); 43 | 44 | $this->assertTrue($response['acceptNewFields']); 45 | } 46 | 47 | public function testExceptionIfNoMasterKeyProvided() 48 | { 49 | $newClient = new Client(self::HOST); 50 | 51 | $this->expectException(HTTPRequestException::class); 52 | $newClient->getIndex('index')->search('test'); 53 | } 54 | 55 | public function testExceptionIfBadKeyProvidedToGetSettings() 56 | { 57 | $this->client->createIndex('index'); 58 | $response = $this->client->getIndex('index')->getSettings(); 59 | $this->assertTrue($response['acceptNewFields']); 60 | 61 | $newClient = new Client(self::HOST, 'bad-key'); 62 | 63 | $this->expectException(HTTPRequestException::class); 64 | $newClient->getIndex('index')->getSettings(); 65 | } 66 | 67 | public function testExceptionIfBadKeyProvidedToGetKeys() 68 | { 69 | $this->expectException(HTTPRequestException::class); 70 | $client = new Client(self::HOST, 'bad-key'); 71 | $client->getKeys(); 72 | } 73 | 74 | private function getKeys() 75 | { 76 | return $this->client->getKeys(); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Strategy/PuliBetaStrategy.php: -------------------------------------------------------------------------------- 1 | 17 | * @author Márk Sági-Kazár 18 | */ 19 | class PuliBetaStrategy implements DiscoveryStrategy 20 | { 21 | /** 22 | * @var GeneratedPuliFactory 23 | */ 24 | protected static $puliFactory; 25 | 26 | /** 27 | * @var Discovery 28 | */ 29 | protected static $puliDiscovery; 30 | 31 | /** 32 | * @return GeneratedPuliFactory 33 | * 34 | * @throws PuliUnavailableException 35 | */ 36 | private static function getPuliFactory() 37 | { 38 | if (null === self::$puliFactory) { 39 | if (!defined('PULI_FACTORY_CLASS')) { 40 | throw new PuliUnavailableException('Puli Factory is not available'); 41 | } 42 | 43 | $puliFactoryClass = PULI_FACTORY_CLASS; 44 | 45 | if (!ClassDiscovery::safeClassExists($puliFactoryClass)) { 46 | throw new PuliUnavailableException('Puli Factory class does not exist'); 47 | } 48 | 49 | self::$puliFactory = new $puliFactoryClass(); 50 | } 51 | 52 | return self::$puliFactory; 53 | } 54 | 55 | /** 56 | * Returns the Puli discovery layer. 57 | * 58 | * @return Discovery 59 | * 60 | * @throws PuliUnavailableException 61 | */ 62 | private static function getPuliDiscovery() 63 | { 64 | if (!isset(self::$puliDiscovery)) { 65 | $factory = self::getPuliFactory(); 66 | $repository = $factory->createRepository(); 67 | 68 | self::$puliDiscovery = $factory->createDiscovery($repository); 69 | } 70 | 71 | return self::$puliDiscovery; 72 | } 73 | 74 | /** 75 | * {@inheritdoc} 76 | */ 77 | public static function getCandidates($type) 78 | { 79 | $returnData = []; 80 | $bindings = self::getPuliDiscovery()->findBindings($type); 81 | 82 | foreach ($bindings as $binding) { 83 | $condition = true; 84 | if ($binding->hasParameterValue('depends')) { 85 | $condition = $binding->getParameterValue('depends'); 86 | } 87 | $returnData[] = ['class' => $binding->getClassName(), 'condition' => $condition]; 88 | } 89 | 90 | return $returnData; 91 | } 92 | } 93 | --------------------------------------------------------------------------------