Download the PHP package scriptoshi/livewire-google-onetap without Composer

On this page you can find all versions of the php package scriptoshi/livewire-google-onetap. 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 livewire-google-onetap

Laravel Livewire Google One Tap

A Laravel Livewire component for Google One Tap authentication. Easily add "Sign in with Google" functionality to your Laravel application with a simple Livewire component.

Installation

You can install the package via composer:

Requirements

This package requires:

Configuration

You'll need to set up your Google OAuth credentials in your .env file:

Database Migration

This package adds Google authentication fields to your users table. To run the migrations:

Usage

To use the component, make sure you are using laravel 12 starter kit with livewire/volt.

Then, in your login or registration page, add the component:

For registration pages, specify the type:

This component will create automatically load the Google API script, so you don't need to include it separately in your layout.

Example

User Avatar

When users sign in with Google, their Google profile picture URL is stored in the google_avatar_url field. You can use this to display their profile picture in your application:

This can be particularly useful for creating a consistent user experience when users sign in with Google.

Configure Tailwind CSS

To ensure that Tailwind CSS properly processes the component styles, add this package to your content sources in your CSS file (typically resources/css/app.css):

For example, your CSS file might look similar to this:

Customization

You can publish the view and modify it, but keep in mind, Google restricts how much you can customize:

Optional Step: If you need to customize the migrations, you can publish them:

Optional Step: If you need to customize the component, you can publish the config:

Styling

The component uses minimal styling and adapts to both light and dark modes. It will automatically detect if your site is using dark mode by checking for the dark class on the HTML element.

You can customize the width, height, and other aspects by editing the published view.

License

The MIT License (MIT). Please see License File for more information.


All versions of livewire-google-onetap with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
illuminate/auth Version ^12.0
livewire/livewire Version ^3.0
laravel/socialite Version ^5.0
google/apiclient Version ^2.12
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 scriptoshi/livewire-google-onetap contains the following files

Loading the files please wait ....