Download the PHP package b7s/neuraphp without Composer

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

# NeuraPHP NeuraPHP brings local AI embeddings to PHP—no APIs, no subscriptions, no external services. Run fast, private, personalized text embeddings directly on your machine, saving money while keeping full control of your data. Simple to install, effortless to use, and built for real‑world PHP apps. [![PHP 8.3+](https://img.shields.io/badge/PHP-8.3%2B-777BB4)](https://php.net) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

Features

Docs: CLI Reference

Add to your project:

Quick Start

For more examples, custom models, batch embedding, and the full API, see the Advanced Guide

⚠️ Prerequisites: embedding.cpp Library & Model

Neuraphp requires libbert_shared.so (compiled from embedding.cpp) and a GGUF model file to function.

Minimum versions required to compile the library:

Tool Min Version Install
Git 2.0+ git-scm.com
CMake 3.18+ cmake.org
GNU Make 3.81+ sudo apt install build-essential / xcode-select --install
C++ compiler (g++/clang++) GCC 10+ / Clang 10+ (C++20) sudo apt install g++ / xcode-select --install
Rust (cargo) 1.75+ rustup.rs
Git LFS 2.0+ sudo apt install git-lfs / brew install git-lfs
Python 3.8+ (model conversion only)

There are two ways to set these up:


Option A: Automatic Installation (Recommended)

Run the installation command - it clones, compiles, and downloads everything for you:

You need to run this command just once for each model you want to use. If you don't change the model, you don't need to re-run it.

This will:

  1. Check prerequisites (git, cmake, make, C++ compiler, Rust, git-lfs)
  2. Clone embedding.cpp into a temp directory and compile libbert_shared.so
  3. Download the default model (all-MiniLM-L6-v2) from HuggingFace
  4. Convert the model to GGUF format (requires Python 3.8+, torch, transformers)
  5. Copy only final artifacts to bin/neuraphp-data/ in your project root
    • Clean up temp files and create bin/neuraphp-data/.gitignore so artifacts are never committed

Options:

Testing

License

MIT


Logo by: Neuro icons created by Uniconlabs - Flaticon


All versions of neuraphp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-ffi Version *
symfony/console 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 b7s/neuraphp contains the following files

Loading the files please wait ...