PHPackages                             weward/porticobouncer - 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. weward/porticobouncer

ActiveLibrary

weward/porticobouncer
=====================

This is just a test

v0.0.13(2y ago)021MITPHPPHP ^8.1

Since Jun 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/weward/PorticoBouncer)[ Packagist](https://packagist.org/packages/weward/porticobouncer)[ Docs](https://github.com/weward/porticobouncer)[ RSS](/packages/weward-porticobouncer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (14)Used By (0)

PorticoBouncer
==============

[](#porticobouncer)

This also serves as a template

---

Requirements
============

[](#requirements)

- Install Silber/Bouncer package

```
    composer require silber/bouncer:^1.0
```

- Add `HasRolesAndAbilities` trait in `User.php`

```
    use Silber\Bouncer\Database\HasRolesAndAbilities;

    use HasRolesAndAbilities;
```

- Publish Silber/Bouncer's migration

```
    php artisan vendor:publish --tag="bouncer.migrations"
```

- Run the migration

```
    php artisan migrate
```

---

### Installation

[](#installation)

- Submit project via Packagist
- Composer require weward/porticobounce:^#.#.#
- `composer dump-auto`
- `php artisan package:discover`
- `php artisan porticobouncer:install`
- Check if the package files were registered properly (If the specified files has these values):

    - Thh `HasPorticoBouncerPermissions` trait is present in the `User.php` model
    - Custom models are present in `AppServiceProvider.php`

    ```
        Bouncer::useAbilityModel(\App\Models\Admin\Ability::class);
        Bouncer::useRoleModel(\App\Models\Admin\Role::class);

    ```

    - The `porticobouncer` routes were registered in the `RouteServiceProvider`
    - The `'portico.bouncer'` entry exists in thhhe $middlewareAliases array of the `Http/Kernel.php`
    - Add Role index route to `resources/js/Properties/navMenu.js`

    ```
        {
            label: 'User Roles',
            route: route('roles.index'),
            icon: 'mdi-account-star'
        },
    ```
- Run tests

    - `php artisan test --filter=ability`
    - `php artisan test --filter=role`

#### OR publish files manually:

[](#or-publish-files-manually)

- `php artisan vendor:publish --tag=subpackage-middleware` if would publish middlewares that came with the package to `App\Http\Middleware`
- `php artisan vendor:publish --tag=subpackage-controllers` if would publish controllers that came with the package to `App\Http\Controllers`
- `php artisan vendor:publish --tag=subpackage-requests` if would publish requests that came with the package to `App\Http\Requests`
- `php artisan vendor:publish --tag=subpackage-services` if would publish services that came with the package to `App\Services\Admin`
- `php artisan vendor:publish --tag=subpackage-tests` if would publish services that came with the package to `tests\Feature\Admin`
- `php artisan vendor:publish --tag=subpackage-package-routes` if would publish routes that came with the package to `routes` *Note:* This will also register the route file `porticobouncer.php` in the app's `RouteServiceProvider.php`
- Add `Weward\PorticoBouncer\PorticoBouncerServiceProvider::class,` to the `'providers'` array of the `config/app.php` file.

---

Developing and Updating the Package
===================================

[](#developing-and-updating-the-package)

- Include `PorticoBouncer` package folder (`dev/Personal/laravel-packages`) into the VSCode workspace
- Develop, update and test the files in the main project
- Copy over all the updated files into its respective folders in the `PorticoBouncer` package
- Commit the changes to `PorticoBouncer`
- Add **tags** to `PorticoBouncer`
- Update the packagist entry

---

### Creating a new package

[](#creating-a-new-package)

- Use Spatie package-skeleton-laravel to install and configure a new package (+namespace|etc)
- Copy the ff from Spatie/laravel-package-tools and update the imports in your own package

    - `InstallCommand.php`
    - `Package.php`
    - `PackageServiceProvider.php`
- If will be creating a new method (publishing files), add the method implementation in the boot() method of Package.php
- Add the variables in the PackageServiceProvider
- Call the method in the configurePackage() method of the PackageNameServiceProvider

---

This is just a test
===================

[](#this-is-just-a-test)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e191dc5e4c23bc7f86e3ec3143f09050cfff590dd51343b432036f542793260f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765776172642f706f727469636f626f756e6365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/weward/porticobouncer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/eab2fca725450eee5dc2479600e8b085e3f8cc073b2ca143e767bbbc4c1479c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7765776172642f706f727469636f626f756e6365722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/weward/porticobouncer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/298d2b65e8c118b16598fcf663cd0e86c2288858438fea64ed283e57b392807b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7765776172642f706f727469636f626f756e6365722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/weward/porticobouncer/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/d3cd647d3744121a38c920f87f8e8707b9898bfaa5c1f75487b8fb8fa94706b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765776172642f706f727469636f626f756e6365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/weward/porticobouncer)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/f6c93d1b4cb7c860079d5bb8fdc01e722b74b97b66f643fa1b8d78581b670681/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f506f727469636f426f756e6365722e6a70673f743d31)](https://spatie.be/github-ad-click/PorticoBouncer)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation-1)

You can install the package via composer:

```
composer require weward/porticobouncer
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="porticobouncer-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="porticobouncer-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="porticobouncer-views"
```

Usage
-----

[](#usage)

```
$porticoBouncer = new Weward\PorticoBouncer();
echo $porticoBouncer->echoPhrase('Hello, Weward!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [weward](https://github.com/weward)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~3 days

Total

13

Last Release

1024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15f0dc908a60e3638f65a912204e0ccfc1f6de29af12a5df7ed6033a2f79d240?d=identicon)[weward](/maintainers/weward)

---

Top Contributors

[![weward](https://avatars.githubusercontent.com/u/4057336?v=4)](https://github.com/weward "weward (37 commits)")

---

Tags

laravelwewardporticobouncer

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/weward-porticobouncer/health.svg)

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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