Download the PHP package feiron/fe_login without Composer

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

Welcome to Fe_Login Repo

Recommended to be used with LaraFrame

Let's collaborate!

Email me for bugs, feature suggestions,pull requests,etc... or even hang out :) [email protected]

This package allows users to

Dependencies:

Installation:

  1. Please make sure composer is installed on your machine. For installation of composer, please visit This Link
  2. Once composer is installed properly, please make sure Larave is up to date.
  3. Navigate to your project root directory

  4. This package is going to publish several files to the following path
    • config/Fe_Login/
    • public/FeIron/Fe_Login/
  5. Important! This package is also going to perform several migrations. Please refer to the following changes and make backups of your tables if they are present.
  6. Since I can't seem to have package auto publish assets. make sure you run the following command at the end and every updates of this package.

Note: During migration, if you encounter error showing "Specified key was too long" This was due to MySQL version being older than 5.7.7, if you don't wish to upgrade MySQL server, consider the following.

Within your AppServiceProvider

Further reading on this could be found at This Link

Basic Usage:

General Usage: Within any php/blade files

Important, Make sure to insert the following at template header tags or the last line of body tag to import the necessary js and css.

You may also put everything all together like the following

configuration:

Important. There is a configuration file being published to /config/Fe_Login/appconfig.php. Proper configuration is required. Sample config:

Explainations:

  1. DefaultLoginProviders is an array that defines the social media authentication providers. You can define as many providers as needed. a list of supported providers are provided at socialite website.
    • client_id is required and can be obtained from the provider's developer site.
    • client_secret is required and can be obtained from the provider's developer site.
    • redirect can be modified but not recommended. This is called once authentication from the provider is finished.
  2. useSSOAuth settings: This option provides the ability to use Other Single Sign-On providers. You can created third party/custom providers by implementing thirdpartyDriver interface, located at feiron\fe_login\lib\thirdpartyDriver.
    • Driver is the path to the driver class to be used to handle the Single Sign-On Requests.
    • URL is the SSO end point.
    • Label is what shows on the Sign-On button.
    • image is the relative path to the image from the public root. It's used as the sign-on button image. note Refer to the end of this file for General instructions on building custom driver.
  3. Other config settings:
option name Values Description Default
HasRegister boolean If user registration option is displayed and available to user. true
HasFormLogin boolean If traditional username and password authentication option is displayed and available to user. true
HasForgotPassword boolean If password retrieval option is displayed and available to user. true
HasSocialSignin boolean If social media authentication option is displayed and available to user. true
RememberLogin boolean If remember login option is displayed and available to user. true
HasTermURL URL If this URL is set, a link to term of use is diaplayed when showing user registration table null

note Registration and password retrieval are not available when HasFormLogin is disabled

Options and parameters:

option name Values Description Default
ajax boolean Enable ajax mode.
This will disable single page mode and use modal to display login windows in one page.
null
target string Choose to render target section when displaying login window null
logo URL pass in full img tag to display logo on the login screen. app.name
FormTitle string Title to be shown on the login sreen app.name
Slot string Caption/statements displayed under title null
SignInTitle string title or statement displayed for sign in section Sign in to your account
ResetTitle string title or statement displayed for password resetting section Reset your password
SignUpTitle string title or statement displayed for registration section Create your account
linkType link/button When Ajax is enabled, display login menu as link or button false
FormAction URL URL for submiting sign in request /login/webform
FormAction_forgotPass URL URL for processing password retrieval /emailresetlink
SignUpURL URL URL for processing user registration /register
FormAction_resetURL URL URL for processing password reset /passreset

Examples:

  1. Display login control as modal and process requests using ajax. Also having link displayed as button

  2. Change logo displayed on the login screen. and have title displayed as "Welcome to my website" while stating "Something Amazing is coming..." under the title.

  3. Change Registration URL.

User Management Feature

This package provides many useful user management features along with the ability to extend management feature.

  1. User management area can be access with URL "/usermanagement/" or route("Fe_UserManagementUI").
  2. This package also provide user Meta-info storage, and these information can be managed from the interface.
  3. Outlet Feature: Outlet is a feature provided for developers to attach/extend more funtionalities into the management interface. How to use Outlet:
    • "UserManagementOutlet" is an outlet instance defined and stored within the app's service container. This is what you will need for outlet registration.
    • "UserManageOutlet" is the outlet name made available by the package that you can register outlets with. This outlet is used by the management interface as well as other frameworks that is compatible with this package.
    • \feiron\fe_login\lib\outlet\feOutlet is the outlet definition. Feel free to create your own outlet by implementing interface (feiron\felaraframe\lib\outlet\feOutletContract).
    • Constructor Parameters: i. view: the view class to be used by this outlet when rendering it's interface. ii. myName: the label to be displayed when rendering this outlet section. iii. resource: the resources used by this outlet and its interface.
    • Outlets are automatically attached and rendered from the user management interface according to the definitions.
    • Within Service Provider's boot method, attach an outlet instance as follow:

LaraFrame Support

This package was tailored to work with LaraFrame.

General Instruction on Custom Driver:

Drivers must implement feiron\fe_login\lib\thirdpartyDriver interface.

  1. Method "Login" will be called when user clicked on single singe-on button. From here you can assign values, build payloads, encrypt cookies or set session data.
  2. Once the authentication is processed and returned with a valid status. It is routed to /login_SSO/callback. Method "handle" from the driver is subsequently called. From there, you can retrieve session data, cookies, etc. You may also want to set private variables that stores user information to be used when creating user when first signed in.
  3. Getter methods like 'getName()' are used for user creation process.

Support us:

If you like this project, Please, please, please consider put a Star⭐️ and tweet about it.

I would love for any forms of supports and they are deeply appreciated👍! Thanks!


All versions of fe_login with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.1
laravel/framework Version >=8.0
laravel/socialite Version >=5.0
laravel/ui Version >=3.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 feiron/fe_login contains the following files

Loading the files please wait ....