Download the PHP package wiserwebsolutions/laravel-lobbyist-legiscan without Composer

On this page you can find all versions of the php package wiserwebsolutions/laravel-lobbyist-legiscan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-lobbyist-legiscan

Laravel Lobbyist — LegiScan Driver

The default nationwide driver for wiserwebsolutions/laravel-lobbyist, backed by the LegiScan API. 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

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

Configuration

Set your LegiScan API key in .env:

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

Usage

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.

Bulk Datasets

Beyond per-record calls, LegiScan publishes a full session archive (every bill, roll call with per-member positions, and legislator) as a single download — dramatically cheaper against a metered key than importing a session bill by bill:

Reusing downloaded archives

Archives run to tens of megabytes and are streamed to disk rather than buffered or response-cached. During local development — where the importing database gets wiped and rebuilt far more often than LegiScan actually republishes a session — it's often wasteful to re-download the same archive on every run. Enable reuse_existing to skip the download when a file from a previous run is already on disk for that session and dataset hash:

A cached archive is only ever reused for the exact hash it was downloaded for — once LegiScan republishes the session under a new hash, it downloads fresh automatically.

To clear the local cache entirely (e.g. after wiping your database), call:

Testing

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

License

MIT © Daniel Wiser


All versions of laravel-lobbyist-legiscan with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/support Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
spatie/laravel-data Version ^4.20
wiserwebsolutions/laravel-lobbyist Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wiserwebsolutions/laravel-lobbyist-legiscan contains the following files

Loading the files please wait ...