Download the PHP package m1guelpf/laravel-apple-login without Composer

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

Plug-and-play Sign in with Apple for Laravel

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

You'll first need to create an App ID for your website, by setting an explicit Bundle ID and enabling Sign In With Apple.

You'll then need to create a Service ID for your web app, and checking and configuring Sign in with Apple using the App ID created earlier and /apple/login as your return URL. The identifier from your Service ID will be your client id.

Finally, you'll need to create a Private Key for Sign in with Apple and your App ID. Once downloaded, use the php artisan apple:secret path/to/key.p8 to generate a client secret.

Once you have your client id and secret, you should add them to the config/services.php file as follows:

Usage

To initiate the login procedure, just add a link to /login/apple somewhere on your login page. By default, this package will only login the user if they already had an account with the same email, but this can be customized by providing a retrieveUser callback on your AuthServiceProvider, where you can create a new user if needed:

Note: Due to Apple's implementation, you'll only have access to the user's name and email on their first login, and will only be able to reference them by their ID afterwards. You should structure your user retrieval code to take this limitation into account.

Usage with Inertia.js

By default, the /login/apple route returns a RedirectResponse. If you want to customize this behaviour (to return an Inertia redirect, for example), you can use the redirectUsing method on your AuthServiceProvider.

Manually configuring routing or migrations

By default, this package will add a nullable apple_id column to your users table and register its own routes (GET and POST /login/apple). If you wish to opt out of any of these, you can do so by calling ignoreMigrations or ignoreRoutes on your AuthServiceProvider.

You can publish the migrations to your app by running php artisan vendor:publish --tag=apple-migrations. You can also register your own routes pointing to this package's LoginWithAppleController (GET redirect() and POST login()) to avoid re-implementing the backend logic.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of laravel-apple-login with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/auth Version ^8.24
illuminate/contracts Version ^8.0
illuminate/database Version ^8.24
illuminate/support Version ^8.24
laravel/socialite Version ^5.1
lcobucci/jwt Version ^4.0
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 m1guelpf/laravel-apple-login contains the following files

Loading the files please wait ....