Download the PHP package nizam/passport-api without Composer

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

Nizam Passport API

Nizam Passport API is a Laravel package designed to streamline API authentication setup using Laravel Passport. Compatible with Laravel versions 8, 9, 10, and 11, this package simplifies Passport integration by automating the installation and configuration process, making it ideal for API-only projects.

Features

Requirements

Installation

  1. Install the Nizam Passport API package:

  2. Set up the Passport API:

    This command will:

    • Check and install Laravel Passport if necessary
    • Set up required controllers, requests, and routes
    • Add the HasApiTokens trait to the User model
    • Update your auth.php configuration to use Passport as the API driver
    • Update your web.php and api.php configurations
    • Modify .env with default URL settings
    • Clean up unnecessary files and directories

Usage

This package provides the following API routes:

Configuration

After installation, ensure your application's config/auth.php configuration file includes an API authentication guard with the Passport driver. This configuration instructs your application to use Passport's TokenGuard for authenticating incoming API requests.

Examples

To see how the integration and setup have evolved, you can view the differences between versions in the repository commits. For specific examples of changes, check out the commit history.

Reporting Issues

If you encounter any issues or have suggestions for improvements, please follow these steps to report them:

  1. Check Existing Issues: Before creating a new issue, check the Issues tab to see if the issue has already been reported.
  2. Create a New Issue: If the issue has not been reported, click on the "New Issue" button and provide a detailed description of the problem. Include:
    • A clear title
    • A detailed description of the issue
    • Steps to reproduce the issue
    • Any error messages or logs
    • The version of Laravel and Laravel Passport you are using
  3. Submit the Issue: Once you have provided all the necessary information, submit the issue. The maintainers will review and address it as soon as possible.

License

This package is licensed under the MIT License. See the LICENSE file for details.

Credits

Acknowledgements

Thank you for using Nizam Passport API! Special thanks to My God, everyone who has contributed, tested, and provided feedback. Your support is greatly appreciated. May this package help you in your API development journey. πŸ™


All versions of passport-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
laravel/framework Version ^8.0|^9.0|^10.0|^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 nizam/passport-api contains the following files

Loading the files please wait ....