PHPackages                             astrogoat/promobar - 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. astrogoat/promobar

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

astrogoat/promobar
==================

A Promobar app for Strata

1.22.0(8mo ago)014.5k↓50%MITBladePHP ^8.0CI failing

Since Nov 3Pushed 8mo ago3 watchersCompare

[ Source](https://github.com/astrogoat/promobar)[ Packagist](https://packagist.org/packages/astrogoat/promobar)[ Docs](https://github.com/astrogoat/promobar)[ GitHub Sponsors](https://github.com/astrogoat)[ RSS](/packages/astrogoat-promobar/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (35)Used By (0)

A Promobar app for Stratum
==========================

[](#a-promobar-app-for-stratum)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ceec4ef8220e1426c359b70d0d6a8fdd662c1ba2e0af3a07536042762ebed0c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617374726f676f61742f70726f6d6f6261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/astrogoat/promobar)[![GitHub Tests Action Status](https://camo.githubusercontent.com/493d29d4e3023726f5645f57591181287bb2fb350dae01f6a8981bb112e55ca0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617374726f676f61742f70726f6d6f6261722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/astrogoat/promobar/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3c9200b7c56811a8a11abb0a705585478777016095b409893fda93c618453381/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617374726f676f61742f70726f6d6f6261722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/astrogoat/promobar/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0624a2a0be5580ca511a9535dd7decdc5e81d5d025264643fd7b50cc8729a835/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617374726f676f61742f70726f6d6f6261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/astrogoat/promobar)

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

[](#installation)

You can install the package via composer:

```
composer require astrogoat/promobar
```

Usage
-----

[](#usage)

Include the Blade component where you would like it to appear when ever the promobar bar has been enabled via the app settings.

```

```

Since it's a Blade component you can also add any attributes you might need.

```

```

Extending
---------

[](#extending)

You can extend the promobar to use your own settings and render if you have special needs.

Three files are needed in order to extend it.

- A type class that extends `Astrogoat\Promobar\Types\PromobarType`.
- Two Blade files
    - One for the settings view
    - And one for the user-facing side, that will be on your site.

Let's start with the type class. Create a new class and extend `Astrogoat\Promobar\Types\PromobarType`.

The class only require two methods. `renderSettings` and `renderComponent` which needs to be the string path to your two Blade files.

```
