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. [Admin Panels](/categories/admin)
4. /
5. dbr0/surveys

ActiveLibrary[Admin Panels](/categories/admin)

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 4w 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 52% 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

3259d 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

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.7k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M124](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

15104.9k4](/packages/calebdw-larastan)

PHPackages © 2026

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