Laravel / Solarium / Vue / Opensolr Search Engine Sample Code

Resources

Overview

This is a fully functional Laravel application that demonstrates how to build a complete search engine using Vue.js on the frontend and Solarium (the leading PHP Solr client library) on the backend, all powered by an Opensolr index.

It serves as an excellent starting point for developers who want to integrate Solr-powered search into a modern PHP application with a reactive JavaScript frontend.

What the App Demonstrates

  • Full-text search — Type-ahead search with instant results from your Solr index.
  • Solarium integration — How to configure and use Solarium as a PHP Solr client within Laravel.
  • Vue.js frontend — A reactive search interface built with Vue components.
  • Opensolr connectivity — Connecting to a hosted Solr index on Opensolr with no server management required.

GitHub Repository

The complete source code is available on GitHub:

github.com/phpcip/laravel-solarium-vue-opensolr-search

Getting Started

  1. Clone the repository and run composer install to install PHP dependencies.
  2. Configure your Opensolr endpoint in the application configuration — point it to your Opensolr index URL.
  3. Run npm install and build the Vue frontend assets.
  4. Start the Laravel development server with php artisan serve.

Technology Stack

  • Laravel — PHP web application framework
  • Solarium — PHP Solr client library (solarium.readthedocs.io)
  • Vue.js — Progressive JavaScript framework for building the search UI
  • Opensolr — Hosted Solr service providing the search backend

Laravel Solarium Vue Opensolr Search Engine