Download the PHP package milon/bohurupee-laravel without Composer

On this page you can find all versions of the php package milon/bohurupee-laravel. 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 bohurupee-laravel

milon/bohurupee-laravel

CI Latest Version Total Downloads

Optional Laravel Socialite adapter for Bohurupee. When enabled, Socialite::driver() talks to a local Bohurupee process instead of Google, GitHub, or any other remote IdP.

Packagist · GitHub · Bohurupee

This package is dev-only. It refuses to boot when APP_ENV=production.

The screenshots are the Socialite example in the Bohurupee repo. The buttons never call Google or GitHub. Bohurupee asks which persona to continue as, then Socialite receives that user.

Requirements

Install

The service provider is auto-discovered. Start Bohurupee, then point the app at it:

Keep the usual config/services.php client IDs and redirect URIs. Bohurupee accepts any local secret.

Publish the config if you prefer PHP over env:

Configure

Variable Default Meaning
BOHURUPEE_ENABLED false Wrap Socialite when true
BOHURUPEE_URL http://127.0.0.1:4190 Server-side origin (token + userinfo)
BOHURUPEE_PUBLIC_URL same as BOHURUPEE_URL Browser authorize redirect (set when the app is in Docker)
BOHURUPEE_DRIVERS empty Comma-separated names to wrap. Empty wraps every Socialite::driver($name), including custom slugs
BOHURUPEE_EXCEPT empty Names that stay on the real provider
BOHURUPEE_ERROR_REDIRECT /login (see below) HTML redirect after Deny / OAuth error=

When Laravel runs in Docker Compose and Bohurupee is a sibling service, point BOHURUPEE_URL at the internal hostname (http://bohurupee:4190) and BOHURUPEE_PUBLIC_URL at the published host port the browser can open.

Deny / OAuth errors

When the user clicks Deny (or Bohurupee returns another error= on the callback), Socialite::driver(...)->user() throws Milon\Bohurupee\OAuthErrorException instead of failing on a missing code.

The exception renders itself:

Apps can also catch the exception:

Usage

Existing Socialite routes do not change. The factory returns a local provider for each wrapped name:

Authorize, token, and userinfo are called on Bohurupee:

Mapped fields, first match wins:

Socialite userinfo keys
id id, sub
email email
name name, display_name
nickname nickname, login, preferred_username
avatar picture.data.url, picture, avatar, profile_image_url, avatar_url

$user->getRaw() is the full userinfo JSON. Provider-shaped payloads are documented in the Bohurupee repo at docs/socialite.md. How the adapter wraps Socialite (factory, URLs, mapping) is How the Laravel adapter works.

Production

If BOHURUPEE_ENABLED=true and APP_ENV=production, boot throws Milon\Bohurupee\ProductionForbiddenException. Require the package as --dev and leave the flag off in deployed environments.

Tests

CI runs PHP 8.2–8.5 against Laravel 12 and 13. Tests mock HTTP, so they never call a real provider.


All versions of bohurupee-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0 || ^13.0
laravel/socialite Version ^5.16
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 milon/bohurupee-laravel contains the following files

Loading the files please wait ...