Download the PHP package rnkr69/lara-chatbot without Composer

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

rnkr69/lara-chatbot

English · Español

packagist status php laravel license

A Laravel package (pre-stable 0.x line) that adds an LLM-assisted chat to your app. It invokes the host's backend tools under an authorization cascade enforced by the package, runs frontend tools (navigation, forms, downloads, modals) from a stack-agnostic Web Component (Blade, Livewire, Inertia + Vue/React), and lets users pin results to a personal dashboard that re-executes under the same permissions.

Built as a personal side project. It is functional and test-covered, but still pre-1.0, so a MINOR bump may include breaking changes while on the 0.x line.


The floating widget calls a backend tool and renders typed blocks (KPIs, charts, tables) inline.


Value proposition

Without the package With the package
Risk of leaking data to unauthorized users when a chatbot queries the backend. Main differentiator: a permission → scope → tenant → ownership cascade enforced by the package before invoking any tool. Host tools never see data outside the user's scope.
Every project reinvents the bot, the tools, the widget and the auth wiring. A common contract (BackendTool, FrontendTool, Authorizer, ScopeResolver, TenantResolver). The project only contributes its domain tools.
Coupling to a single LLM provider (Anthropic SDK, OpenAI, etc.). Prism ^0.100 underneath: Anthropic, OpenAI, Groq, Gemini, Mistral, Ollama. Switching providers is a config change. Plan B documented in docs/prism-contingency.md.
Widget coupled to a JS framework. Vanilla Web Component (~28 KB gzip widget) in shadow DOM. No React/Vue at runtime.
Ad-hoc confirmations per feature. Declarative confirmation=auto/confirm/manual, unified banner, audit row with TTL. (Today applies to frontend tools; backend tools are auto only — Confirm/Manual for backend is in the backlog.)

Project status

Version 0.4.1 (pre-stable; a MINOR bump may break on the 0.x line)
Test coverage Pest (PHP) + Vitest (JS); 487 vitest + ≥75% target on core PHP
CI .github/workflows/ci.yml (lint + test matrix + JS build)
Eval harness (LLM tool-calling quality) 8 YAML fixtures. Fake mode (verifies the orchestrator) runs in CI per PR. Live mode calls the real LLM and dumps a per-fixture trace to tests/Evals/last-live-run.json. Backlog: ≥20 fixtures + multi-model matrix + baseline tracking. See tests/Evals/README.md.
Per-user cost telemetry Persists tokens_in/tokens_out per message, MessagePersisted event for external sinks, chatbot:cost-report --since=YYYY-MM-DD [--format=table\|json\|csv] command. See docs/telemetry.md.
Accessibility (WCAG) Not audited. Basic ARIA labels on widget buttons. WCAG 2.1 AA audit is in the v0.5+ backlog.
Road to 1.0 One release cycle with no breaking changes to the 7 items in the "Versioning policy" (see CHANGELOG.md).

Installation

Step-by-step detail in docs/getting-started.md. In practice the first real integration (install + choose widget vs page + write a ScopeResolver + optional TenantResolver + wire page context + write your first tool with its permissions) is measured in hours, not minutes. The package wizard itself takes 5 minutes; the rest is host work.

1. Require the package

2. Inject the widget into your layout

3. Your first tool

Reload, open the widget, ask "which invoices do I have?" — and the bot calls the tool, applies permissions and scope, and answers with your data.


How it works

Detail in docs/getting-started.md §4.


Screenshots

Personal Dashboard — pin blocks from chat and re-execute them on open under the same authorization cascade. Built and rearranged entirely from natural language via the conversational dashboard tools.

Page mode — the dedicated GET /chatbot view with a conversation sidebar, alongside the floating widget.


Documentation

If you need to… Read
Start from scratch docs/getting-started.md
Understand the authorization cascade docs/authorization.md
Build backend tools (including bulk + MCP) docs/backend-tools.md
Build frontend tools docs/FRONTEND_TOOLS.md
Render typed blocks (including kpi + chart) docs/block-renderers.md
Personal Dashboard (pin + replay) docs/dashboard.md
Inject page context into the LLM docs/page-context.md
Ask the user for confirmation docs/confirmation-flow.md
Connect external MCP servers docs/mcp.md
Customize the widget docs/WIDGET.md
Backpack admin integration docs/integrations/backpack.md
Cost telemetry + MessagePersisted event docs/telemetry.md
Deploy to production docs/deployment.md
Something is wrong docs/troubleshooting.md
Distribute package versions docs/distribution.md
Run the test suite docs/testing.md

Requirements

Laravel 11 caveat. The package still allows ^11.0, but Laravel 11 reached security end-of-life (~March 2026) and its whole release line now carries an unpatched advisory. Recent Composer refuses to install advisory- flagged packages, so a clean install on Laravel 11 fails unless the host opts out of the block. CI therefore exercises Laravel 12 and 13 only. If you must run on Laravel 11, see the install note in docs/getting-started.md. The recommendation is to upgrade to Laravel 12 or 13.


Capabilities

Criterion: a capability is stable if it is implemented and exercised end-to-end by the test suite (Pest + Vitest) with a documented contract. Capabilities that are designed but not yet battle-tested are flagged separately below. Any known scope or version limitation goes in its own entry as a caveat.

Stable (implemented + tested)

Designed, not yet battle-tested


Versioning

rnkr69/lara-chatbot follows Semantic Versioning, with an important nuance for the 0.x line: while pre-1.0, a MINOR bump may contain breaking changes. The API is still stabilising before 1.0. For production on 0.x, pin to a specific 0.4.N version and review CHANGELOG.md before upgrading.

After 1.0.0, the 7 items listed in the "Versioning policy" section of CHANGELOG.md will require a MAJOR bump to break (HTTP routes, tool contracts, config keys, web component attributes, storage keys, SSE events, migration shape).


Support


License

MIT — see LICENSE.


All versions of lara-chatbot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
prism-php/prism Version ^0.100
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 rnkr69/lara-chatbot contains the following files

Loading the files please wait ...