PHPackages                             dbr0/surveys - 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. dbr0/surveys

ActiveLibrary

dbr0/surveys
============

Survey Laravel package

0.0.15(8y ago)351MITPHP

Since Jul 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dbr0/surveys)[ Packagist](https://packagist.org/packages/dbr0/surveys)[ RSS](/packages/dbr0-surveys/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

Surveys
=======

[](#surveys)

A Laravel survey package

Add to your Laravel project:

In `composer.json` under `"require"` add:

```
"dbr0/surveys": "^0.0.11"

```

Run: `composer update`.

Add

```
dbr0\surveys\SurveysServiceProvider::class,

```

to your `config/app/` file under `'providers'`.

Publish config/migrations/views:

```
php artisan vendor:publish --provider="dbr0\surveys\SurveysServiceProvider" --tag=config
php artisan vendor:publish --provider="dbr0\surveys\SurveysServiceProvider" --tag=migrations
php artisan vendor:publish --provider="dbr0\surveys\SurveysServiceProvider" --tag=views`

```

Run: `php artisan migrate`

Add

```
use SurveyOwner;

```

to your desired model. Default is `App\User` but you still need to add the `use SurveyOwner` to it.

Update `owner_model` array item in `config/dbr0-surveys/main.php` with name of your model. Default is `App/User`.

Access control and Middleware
-----------------------------

[](#access-control-and-middleware)

A package comes with dummy middleware which you can publish using:

```
php artisan vendor:publish --provider="dbr0\surveys\SurveysServiceProvider" --tag=middleware

```

To use the middlewares you need to add them to `$routeMiddleware` variable inside of `app/Http/Kernel.php` file.

ie.

```
protected $routeMiddleware = [
        ...
        'visibleSurveys' => VisibleSurveys::class,
    ];

```

You can update these middlewares to limit user CRUD actions. To apply them to certain route you need to update the config file.

ie.

```
'routes' => [ //routes stuff
        ...
        'middleware_index' => [visibleSurveys], //add middleware to index
        ...
        ]

```

This way you can limit access to listing of surveys. The same logic can be applied to other routes.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~0 days

Total

14

Last Release

3208d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/390288643b921baad4a099cc5c228bfcc13b658514eb649daeb48e722a8c1046?d=identicon)[dbr0](/maintainers/dbr0)

---

Top Contributors

[![dbr0](https://avatars.githubusercontent.com/u/13360206?v=4)](https://github.com/dbr0 "dbr0 (22 commits)")

---

Tags

laravelsurveys

### Embed Badge

![Health badge](/badges/dbr0-surveys/health.svg)

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

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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