Download the PHP package pioneer-dynamics/laravel-passkey without Composer

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

Laravel Passkeys

Easy Passkey integration for Laravel

Click the thumbnail below to see a video of the package in action.:

Thank You

The core of the project uses svgta/webauthn library.

ALERT

!!!WARNING!!! The command passkey:install command must be run ONLY on development and ONLY ONCE. Depending on the options provided, this command will publish the below files and modify them to suit your needs. Please find the details below.

  1. Config file, if --config parameter is provided
  2. Migration file
  3. Jetstream flavoured Inertia JS component files, if --jetstream-inertia is provided.

!!WARNING!! Any existing files will be replaced.

Installation

You have two ways to run setup - 1, the Setup command in step #2 (below) or 2, the vendor:publish command. I recommend the passkey:install command since it takes care of replacing some placeholders in the published files apart from publishing them. Use the --table and --username flags to change the defaults. These values default to users and email respectively. If using the vendor:publish command you'll need to replace __USERNAME__, __TABLE__, __USERNAME_LABEL__ and the __USERNAME_TYPE__ placeholders manually. These placeholders can be found in the js/Components/ConfirmsPasswordOrPasskey.vue, js/Components/ConfirmsPasskey.vue, js/Pages/Auth/LoginWithPasskey.vue and the config/passkey.php files.

  1. Require the library

    composer install pioneer-dynamics/laravel-passkey

  2. Run the setup

    Before running this command, run php artisan passkey:install --help to see understand all options.

    php artisan passkey:install

    This will publish the config files, migrations and some Jetstream-Inertia flavoured vue files. It will also replace some contents of these published files.

  3. Run the migrations

    php artisan migrate

  4. Implement the PasskeyUser interface to you user model and add the HasPasskeys trait

  5. If you are using Laravel Jetstream with InertiaJS, you can can add the below to the FortifyServiceProvider's boot() command in order to override the default Login Vue and use the one provided by this package.

  6. Replace the <ConfirmsPassword/> component with <ConfirmsPasswordOrPasskey/> component whereever <ConfirmsPassword/> is used.

  7. If using Jetstream-InertiaJS the below packages are needed are installed automatically if the command was called with the --jetstream-inertia option.

    1. npm i luxon
    2. npm i @simplewebauthn/browser

Issues

Feel free to raise any Issue here.

Contributing

Feel free to raise pull requests.

Licence

The MIT License (MIT) Copyright © Mathew Paret

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of laravel-passkey with dependencies

PHP Build Version
Package Version
Requires svgta/webauthn Version ^1.0
laravel/framework Version ^11.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 pioneer-dynamics/laravel-passkey contains the following files

Loading the files please wait ....