Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 10, 2024 via composer

ruflin/elastica 7.3.1

Elasticsearch Client
Package summary
Share
0
issues
2
licenses
8
MIT
1
(Apache-2.0 OR LGPL-2.1-only)
Package created
23 Jan 2012
Version published
21 Apr 2023
Maintainers
2
Total deps
9
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
ezimuel/guzzlestreams@3.1.0
ezimuel/ringphp@1.2.2
nyholm/dsn@2.0.1
psr/log@3.0.0
react/promise@v2.11.0
ruflin/elastica@7.3.1
symfony/deprecation-contracts@v3.5.0
symfony/polyfill-php73@v1.29.0

(Apache-2.0 OR LGPL-2.1-only)

Permissive
1 Packages, Including:
elasticsearch/elasticsearch@v7.17.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of ruflin/elastica 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
elasticsearch/elasticsearchv7.17.2-(Apache-2.0 OR LGPL-2.1-only)
prod
nyholm/dsn2.0.113.9 kBMIT
prod
psr/log3.0.06.77 kBMIT
prod
symfony/deprecation-contractsv3.5.0-MIT
prod
symfony/polyfill-php73v1.29.04.15 kBMIT
prod

Visualizations

Frequently Asked Questions

What does ruflin/elastica do?

The ruflin/elastica package is a sophisticated Elasticsearch client for PHP. With the ability to manage compatibility with all Elasticsearch 7.0 releases and onwards, the package simplifies Elasticsearch integration into your PHP projects. It aims to stay aligned with Elasticsearch's lifecycle, making it easier to keep your applications updated with the latest improvements in Elasticsearch.

How do you use ruflin/elastica?

To use ruflin/elastica in your PHP programs, you'll first need to install it via Composer. Simply run composer require ruflin/elastica in your project directory. Once the package is installed, you can use it to interact with your Elasticsearch instance. Here is a basic example of how to create a client, index a document, and perform a search:

require 'vendor/autoload.php';

$client = new \Elastica\Client();
$index = $client->getIndex('test');
$index->create([], true);

$doc = new \Elastica\Document(1, ['username' => 'ruflin']);
$index->addDocument($doc);

$index->refresh();

$query = new \Elastica\Query(['query' => ['match_all' => new \stdClass()]]);
$results = $index->search($query);

In this code, we're establishing a connection to Elasticsearch, creating an index, indexing a document, and then executing a simple match-all query.

Where are the ruflin/elastica docs?

The comprehensive documentation for ruflin/elastica can be accessed at Elastica.io. This is the primary source for understanding the package's functionality and getting to grips with its features. If you have specific questions about using ruflin/elastica, you can ask them on Stack Overflow using the "Elastica" tag, or in the project's Gitter channel. Any issues with the library should be reported on the GitHub issue tracker.