PHPackages                             servicesmercury/mercury - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. servicesmercury/mercury

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

servicesmercury/mercury
=======================

Marcury services

089PHP

Since Oct 9Pushed 7y agoCompare

[ Source](https://github.com/Taron183/ServicesMercury)[ Packagist](https://packagist.org/packages/servicesmercury/mercury)[ RSS](/packages/servicesmercury-mercury/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel ServicesMercury: ServicesMercury Tools for Laravel
==========================================================

[](#laravel-servicesmercury-servicesmercury-tools-for-laravel)

Every time I build another Laravel app, I find myself re-using the same custom Navigation helpers I have been perfecting over the years. These tools allow you to accurately and concisely change the class on navigation elements depending on the current page. Tools like these allow you to have your navigation manage itself, speeding up the development progress, but with the efficiency for long term production use.

Installation
------------

[](#installation)

Installation is straightforward, setup is similar to every other Laravel Package.

#### 1. Install via Composer

[](#1-install-via-composer)

Begin by pulling in the package through Composer:

```
composer require servicesmercury/mercury

```

#### 2. Define the Service Provider and alias

[](#2-define-the-service-provider-and-alias)

Next we need to pull in the alias and service providers.

**Note:** This package supports the new *auto-discovery* features of Laravel 5.5, so if you are working on a Laravel 5.5 project, then your install is complete, you can skip to step 3.

If you are using Laravel 5.0 - 5.4 then you need to add a provider and alias. Inside of your `config/app.php` define a new service provider

```
'providers' => [
	//  other providers

	ServicesMercury\Mercury\MercuryServiceProvider::class,
];

```

Then we want to define an alias in the same `config/app.php` file.

```
'aliases' => [
	// other aliases

	'Mercury' => ServicesMercury\Mercury\MercuryFacade::class,
];

```

#### 3. Publish Config File (OPTIONAL)

[](#3-publish-config-file-optional)

The config file allows you to override default settings of this package to meet your specific needs. It is optional and allows you to set a default active class name to output on active navigational elements. You can override this value in each function, but setting a default makes your code cleaner. It defaults to `"active"`, which is a common class name used by many developers and **supports Bootstrap**. If you are using a framework like **Bulma** then you want to change this value to `"is-active"`. Many CSS BLM frameworks would require `"--active"`. Set this once and forget it.

To generate a config file type this command into your terminal:

```
php artisan vendor:publish --tag=mercury

```

This generates a config file at `config/mercury.php`.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71244f7803ccdcd9bbafcbdea01f496e7df9eb87bea40142d7b8f5a86a5b119b?d=identicon)[Taron183](/maintainers/Taron183)

---

Top Contributors

[![Taron183](https://avatars.githubusercontent.com/u/33065976?v=4)](https://github.com/Taron183 "Taron183 (1 commits)")

### Embed Badge

![Health badge](/badges/servicesmercury-mercury/health.svg)

```
[![Health](https://phpackages.com/badges/servicesmercury-mercury/health.svg)](https://phpackages.com/packages/servicesmercury-mercury)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
