Download the PHP package pouya1364/probabilistic-laravel without Composer

On this page you can find all versions of the php package pouya1364/probabilistic-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package probabilistic-laravel

probabilistic-laravel

Laravel integration for pouya1364/probabilistic-php. Define named, pre-configured probabilistic data structures once in config, then resolve them anywhere in your app — the same pattern Laravel uses for cache stores, queue connections, and database connections.

Supported structures: Bloom Filter, Counting Bloom Filter, Cuckoo Filter, Count-Min Sketch, and HyperLogLog. See the core library for the algorithm documentation.

Requirements

Installation

The service provider and the Probabilistic facade are registered automatically via package auto-discovery — no manual registration needed.

Publish the config file:

This creates config/probabilistic.php.

Configuration

Each structure type holds any number of independently named instances, so a single app can size several filters differently for different purposes. Keys are written in snake_case.

Group Parameters
bloom_filters expected_items (int), false_positive_rate (float)
counting_bloom_filters expected_items (int), false_positive_rate (float)
cuckoo_filters expected_items (int)
count_min_sketches width (int), depth (int)
hyperloglogs precision (int, default 14)

Each instance is built once, on first access, and reused for the lifetime of the request.

Usage

Facade

Available accessors (each takes an optional instance name, defaulting to 'default'):

The facade exposes a @method static docblock for each accessor, so IDEs autocomplete the methods and their return types.

Without the facade

If you prefer not to use facades, resolve the manager from the container or inject it directly — both return the same singleton instance:

Listing configured instances

Prints a table of every configured instance and its parameters, grouped by structure type. Empty groups are omitted.

Related packages

Testing

License

MIT


All versions of probabilistic-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
pouya1364/probabilistic-php Version ^0.1
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pouya1364/probabilistic-laravel contains the following files

Loading the files please wait ...