Download the PHP package hamzi/nativerag without Composer

On this page you can find all versions of the php package hamzi/nativerag. 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 nativerag

๐Ÿง  Laravel NativeRAG

A world-class, production-ready Local AI & RAG Engine for Laravel 11, 12 & 13

Latest Version Tests Status Code Style Total Downloads PHP Version License


Laravel NativeRAG empowers you to run fully localized, privacy-first AI workflows using models hosted in Ollama or LM Studio โ€” directly from your Laravel application.

No OpenAI keys. No Pinecone. No cloud data leaks. 100% data residency. Zero external dependencies.


โœจ Features

Feature Details
๐Ÿค– Multi-Driver LLM Switch between Ollama & LM Studio via Laravel's Manager pattern
๐Ÿ—„๏ธ Zero-Infra Vector Search Cosine Similarity powered by PHP + native SQL. No Pinecone needed
โšก SSE Streaming Real-time token streaming to Alpine.js / Livewire frontends
๐Ÿงฉ Auto-Embedding Trait Add Embeddable to any Eloquent model for automatic vector indexing
๐Ÿง  Persistent Memory Multi-turn chat history with sliding-window pruning
๐Ÿ”’ Payload Encryption Encrypt stored chat history using Laravel's App Key
๐Ÿ›ก๏ธ Strict Types PHP 8.2+ with declare(strict_types=1), Readonly DTOs, Enums
๐Ÿ˜ pgvector Support Native PostgreSQL pgvector cosine distance queries

โœ… Compatibility

Laravel PHP Status
13.x 8.2, 8.3, 8.4, 8.5 โœ… Fully Supported
12.x 8.2, 8.3, 8.4, 8.5 โœ… Fully Supported
11.x 8.2, 8.3, 8.4, 8.5 โœ… Fully Supported

๐Ÿš€ Installation

Publish configuration and migrations:


๐Ÿ› ๏ธ Configuration

Set your driver settings in .env:


๐Ÿ“– Usage

1. Chat Completions

2. Real-Time SSE Streaming

Consume in JavaScript (Alpine.js / Vanilla):

3. Embeddable Models (Auto-Indexing)

Attach the Embeddable trait to any Eloquent model. Whenever the model is saved, its content is automatically chunked and embedded locally.

4. Semantic Vector Search

5. Switch Driver at Runtime


๐Ÿ”’ Security & Privacy


๐Ÿงช Testing & Code Quality


๐Ÿค Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

๐Ÿ›ก๏ธ Security Vulnerabilities

Please review the SECURITY.md policy to learn how to responsibly report a vulnerability.

๐Ÿ“„ License

The MIT License (MIT). Please see LICENSE.md for more information.



All versions of nativerag with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.5
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
symfony/http-foundation Version ^7.0|^8.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 hamzi/nativerag contains the following files

Loading the files please wait ...