Download the PHP package stormpath/lumen without Composer

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

Latest Stable Version Latest Unstable Version License Chat

Getting Started

Follow these steps to add Stormpath user authentication to your Lumen app.

  1. Download Your Key File

    Download your key file from the Stormpath Console.

  2. Store Your Key As Environment Variables

    Open your key file and grab the API Key ID and API Key Secret, then add this to your .env file in the root of your project:

    You may need to create a .env file if this is a fresh install of lumen.

  3. Get Your Stormpath Application HREF

    Login to the Stormpath Console and grab the HREF (called REST URL in the UI) of your Application. It should look something like this:

    https://api.stormpath.com/v1/applications/q42unYAj6PDLxth9xKXdL

  4. Store Your Stormpath App HREF In the .env file

  5. Install The Package

    Open your composer.json file and add the following to your require block:

  6. Include It In Your App

    Open you bootstrap/app.php file and add the following to your providers section

  7. Configure It

    To modify the configuration of the package, you will need to publish the config file. Run the following in your terminal:

    This will create a stormpath.yaml file in the root of your project with all the options you are able to modify. By default, Login, Logout, OAuth, and Register routes will be enabled. Other routes will be enabled based on your directory settings.

  8. Login

    Working with an API, we suggest that you work with OAuth tokens. We have created a route for your, /oauth/tokens where you can do client_credentials, password, or refresh grant types.

    • Client Credentials

    In this workflow, an api key and secret is provisioned for a stormpath account. These credentials can be exchanged for an access token by making a POST request to /oauth/token on the web application. The request must look like this:

    • Password Grant

    In this workflow, an account can post their login (username or email) and password to the `/oauth/token endpoint, with the following body data:

    • Refresh Grant

    The refresh grant type is required for clients using the password grant type to refresh their access_token. Thus, it's automatically enabled alongside the password grant type.

    An account can post their refresh_token with the following body data:

    The product guide for token management: http://docs.stormpath.com/guides/token-management

  9. Register

    To get the model for the registration form, make a GET request to /register. This will return a JSON representation of the form along with the available Account Stores.

    When you want to register a new Account, take the user data from the form model and put into the body of a POST request to the /register endpoint.

  10. That's It!

    You just added user authentication to your app with Stormpath.

Support

If you are having issues with this package, please feel free to submit an issue on this github repository. If it is an issue you are having that needs a little more private attention, please feel free to contact us at [email protected] or visit our support center.

Contributing

We welcome anyone to make contributions to this project. Just fork the develop branch of this repository, make your changes, then issue a pull request on the develop branch.

Any pull request you make will need to have associated tests with them. If a test is not provided, the pull request will be closed automatically. Also, any pull requests made to a branch other than develop will be closed and a new submission will need to be made to the develop branch.

We regularly maintain this repository, and are quick to review pull requests and accept changes!

Copyright

Copyright © 2013-2016 Stormpath, Inc. and contributors.

This project is open-source via the Apache 2.0 License.


All versions of lumen with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
stormpath/sdk Version ~1.14
illuminate/support Version ~5.2
illuminate/http Version ~5.2
illuminate/routing Version ~5.2
illuminate/validation Version ~5.2
illuminate/cookie Version ~5.2
illuminate/console Version ~5.2
bretterer/iso_duration_converter Version ^0.1.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 stormpath/lumen contains the following files

Loading the files please wait ....