PHPackages                             wiserwebsolutions/laravel-lobbyist-legiscan - 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. [API Development](/categories/api)
4. /
5. wiserwebsolutions/laravel-lobbyist-legiscan

ActiveLibrary[API Development](/categories/api)

wiserwebsolutions/laravel-lobbyist-legiscan
===========================================

Default nationwide LegiScan API driver for the laravel-lobbyist package.

06PHP

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/WiserWebSolutions/laravel-lobbyist-legiscan)[ Packagist](https://packagist.org/packages/wiserwebsolutions/laravel-lobbyist-legiscan)[ RSS](/packages/wiserwebsolutions-laravel-lobbyist-legiscan/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Lobbyist — LegiScan Driver
==================================

[](#laravel-lobbyist--legiscan-driver)

The default nationwide driver for [`wiserwebsolutions/laravel-lobbyist`](https://github.com/wiserwebsolutions/laravel-lobbyist), backed by the [LegiScan API](https://legiscan.com/legiscan). It provides legislative data for all 50 states and the federal government and registers itself with the Lobbyist manager under the `legiscan` name (the default driver).

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

[](#installation)

```
composer require wiserwebsolutions/laravel-lobbyist-legiscan
```

The package auto-registers. Publish its config if you want to tune requests or caching:

```
php artisan vendor:publish --tag=lobbyist-legiscan-config
```

Configuration
-------------

[](#configuration)

Set your [LegiScan API key](https://legiscan.com/user/register) in `.env`:

```
LEGISCAN_API_KEY=your-key-here

# optional
LEGISCAN_BASE_URI=https://api.legiscan.com/
LEGISCAN_TIMEOUT=30
LEGISCAN_RETRY_TIMES=2
LEGISCAN_CACHE_ENABLED=true
LEGISCAN_CACHE_STORE=
LEGISCAN_CACHE_TTL=3600
```

Responses are cached per operation (sessions/people for a day, bills/roll calls for an hour) via the configured cache store.

Usage
-----

[](#usage)

```
use WiserWebSolutions\Lobbyist\Facades\Lobbyist;

$driver = Lobbyist::state('CA'); // LegiscanDriver, scoped to California

$driver->sessions();          // SessionCollection
$driver->bills();             // BillCollection (current CA session master list)
$driver->bill(1132030);       // Bill (by LegiScan bill_id)
$driver->bill('AB1');         // Bill (by number — requires state context)
$driver->vote(55);            // Vote (by roll_call_id)
$driver->legislators();       // LegislatorCollection (current session people, both chambers)
$driver->representatives();   // LegislatorCollection (House only)
$driver->senators();           // LegislatorCollection (Senate only)
$driver->representative(9001); // Legislator (by people_id, either chamber)
```

### Supported capabilities

[](#supported-capabilities)

LegiScan supports every capability **except** `ListVotes` — the API has no cheap "all votes for a state" operation (roll calls are reached per bill or by id), so this driver implements `VoteLookup` (`vote($id)`) but not `VoteProvider`.

Testing
-------

[](#testing)

Tests use `Http::fake()` and never hit the network:

```
composer install
vendor/bin/phpunit
```

License
-------

[](#license)

MIT © Daniel Wiser

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance60

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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/e3b045b66d2ab5c78da1cb707f906fd94c5d804382728dcdb94187e85676485d?d=identicon)[danswiser](/maintainers/danswiser)

---

Top Contributors

[![danswiser](https://avatars.githubusercontent.com/u/6931029?v=4)](https://github.com/danswiser "danswiser (9 commits)")

### Embed Badge

![Health badge](/badges/wiserwebsolutions-laravel-lobbyist-legiscan/health.svg)

```
[![Health](https://phpackages.com/badges/wiserwebsolutions-laravel-lobbyist-legiscan/health.svg)](https://phpackages.com/packages/wiserwebsolutions-laravel-lobbyist-legiscan)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)[commercetools/commercetools-api-reference

6520.5k3](/packages/commercetools-commercetools-api-reference)

PHPackages © 2026

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