Download the PHP package amranibrahem/laravel-jwt-setup without Composer

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

Laravel JWT Auto Setup

🚀 Automated JWT Authentication Setup for Laravel Applications

A powerful Laravel package that automatically installs and configures JWT authentication with a single command, saving you hours of manual setup.

✨ Features

🚀 Installation

You can install the package via Composer:

📖 Usage

Run the auto-setup command:

What This Command Does:

📦 Installs tymon/jwt-auth package
Automatically installs the required JWT package via Composer

📁 Publishes JWT configuration files
Publishes all necessary configuration files for JWT setup

🔑 Generates JWT secret key
Creates a secure JWT secret key for token signing

⚙️ Updates auth configuration
Automatically configures auth guards in config/auth.php

👤 Enhances User model with JWT methods
Updates the User model to implement JWTSubject interface

🛠 Creates professional file structure:

Response class - Standardized JSON response format
Form requests - Register & Login validation classes
AuthController - Complete authentication logic
API routes - Ready-to-use authentication endpoints

🎯 Generated File Structure

🔌 API Endpoints

After setup, you'll have these ready-to-use endpoints:

Public Routes

Protected Routes (Require JWT)

🎨 Code Examples

Generated AuthController Methods

Professional Response Format

Enhanced User Model

⚙️ Configuration

Manual Configuration (If Needed)

After running the setup, you can customize:

  1. JWT Configuration - config/jwt.php
  2. Auth Guards - config/auth.php
  3. Token Expiry - Modify in JWT config
  4. Response Format - Edit App\Http\Responses\Response

Environment Variables

Add to your .env file:

🔒 Security Features

🛠 Troubleshooting

Common Issues & Solutions

  1. "Class JWTSubject not found"

    • Run: composer dump-autoload
  2. "Auth guard [api] is not defined"

    • Check config/auth.php was updated correctly
  3. Token not working

    • Verify JWT secret: php artisan jwt:secret
  4. Routes not found
    • Ensure routes are added to routes/api.php

⚡ Comparison with Manual Setup

Feature Manual Setup This Package
Time Required 30-60 minutes 30 seconds
Configuration Manual editing Automatic
Error Handling Manual debugging Built-in
Code Quality Variable Consistent & Professional
Best Practices Research required Pre-implemented
File Structure Manual creation Auto-generated

🎯 Use Cases

🔄 Migration

After setup, run database migrations:

🐛 Reporting Issues

If you encounter any issues, please report them on the GitHub issue tracker.

🏆 Credits

💡 Why Use This Package?

🔗 Links


⭐ Star us on GitHub if this package saved you time!

🚀 Happy coding with secure JWT authentication!


All versions of laravel-jwt-setup with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^9.0|^10.0|^11.0
tymon/jwt-auth Version ^2.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 amranibrahem/laravel-jwt-setup contains the following files

Loading the files please wait ...