Download the PHP package ikechukwukalu/sanctumauthstarter without Composer

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

SANCTUM AUTH STARTER

Latest Version on Packagist Quality Score Code Quality Known Vulnerabilities Github Workflow Status Total Downloads Licence

This is a very flexible and customisable laravel package (boilerplate) that utilises laravel/ui and laravel-sanctum to create Basic Authetication classes and other helpful functionalities to give you a quick start when building REST APIs using Laravel. The following functionalities are made available:

REQUIREMENTS

STEPS TO INSTALL

GENERATE AUTH CONTROLLERS, REQUESTS, SERVICES AND ROUTES

You can run php artisan sas:setup to generate them at once. You can also call generate them separately:

PUBLISH MIGRATIONS AND CONFIG

WEBSOCKETS AND QUEUES

This package utilizes laravel beyondcode/laravel-websockets to pass access_token to the client after authentication. First, you must setup your laravel app for broadcasts. In order to do that run the following:

You will need a queue worker for the notifications and other events.

WEBVIEW LOGINS

Social Media Login

Add the following to your config/services.php file.

Two-factor Login

This package utilizes Laragear/TwoFactor to power 2fa login and beyondcode/laravel-websockets to pass access_token to the client after authentication.

2fa authentication has been implemented for both password login and social media login.

Two factor enabled for password login

When 2fa has been enabled and a user attempts to login, a payload would be returned that contains a user_uuid and a twofactor_url.

The user_uuid is used to create a laravel-echo channel that would listen to a laravel broadcast. Navigate to auth/twofactor/{email}/{uuid} to view the generated access_token after uncommenting the route within the web.php. This view resources/views/vendor/sanctumauthstarter/twofactor/auth.blade.php contains a sample javascript that works it out.

Two factor enabled for social media login

When 2fa has been enabled a 2fa page will pop up over your browser.

DOCUMENTATION

To generate documentation:

Visit your newly generated docs:

example_languages: For each endpoint, an example request is shown in each of the languages specified in this array. Currently, only bash (curl), javascript(Fetch), php (Guzzle) and python (requests) are included. You can add extra languages, but you must also create the corresponding Blade view (see Adding more example languages).

Default: ["bash", "javascript"]

Please visit scribe for more details.

TESTS

It's recommended that you run the tests before you start adding your custom models and controllers. Make sure to keep your database/factories/UserFactory.php Class updated with your users table so that the Tests can continue to run successfully.

Passwords

The passwords created within the database/factories/UserFactory.php Class must match the validation below:

Running Tests

RECOMMENED PACKAGES

PUBLISH VIEWS

PUBLISH LANG

PUBLISH LARAVEL EMAIL NOTIFICATIONS BLADE

PUBLISH GITHUB WORKFLOWS

LICENSE

The SAS package is an open-sourced software licensed under the MIT license.


All versions of sanctumauthstarter with dependencies

PHP Build Version
Package Version
Requires beyondcode/laravel-websockets Version ^1.14
doctrine/dbal Version ^3.5
hisorange/browser-detect Version ^4.5
illuminate/auth Version ^9.0|^10.0
illuminate/bus Version ^9.0|^10.0
illuminate/broadcasting Version ^9.0|^10.0
illuminate/contracts Version ^9.0|^10.0
illuminate/database Version ^9.0|^10.0
illuminate/events Version ^9.0|^10.0
illuminate/http Version ^9.0|^10.0
illuminate/notifications Version ^9.0|^10.0
illuminate/queue Version ^9.0|^10.0
illuminate/routing Version ^9.0|^10.0
illuminate/support Version ^9.0|^10.0
illuminate/validation Version ^9.0|^10.0
illuminate/view Version ^9.0|^10.0
laravel/sanctum Version ^3.0
laravel/socialite Version ^5.5
laragear/two-factor Version ^1.2
laravel/ui Version ^4.0
nesbot/carbon Version ^2.67
php Version ^8.0
predis/predis Version ^2.1
pusher/pusher-php-server Version ^7.2
stevebauman/location Version ^6.6
symfony/console Version ^6.0
symfony/finder Version ^6.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 ikechukwukalu/sanctumauthstarter contains the following files

Loading the files please wait ....