Download the PHP package feiron/fe_roles without Composer

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

Welcome to Fe_Roles 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 and run the following command to install Fe_Roles

  4. This package is going to publish several files to the following path
    • config/fe_roles/
    • public/feiron/fe_roles/
  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.

    Important! Command "Build:BuildUserClass" is ran to modify the user proivider class needed for the system. It modified the class(feiron\fe_roles\models\fe_User.php) to inherit from the user provider class the system is currently using. This package will force the system to use class(feiron\fe_roles\models\fe_User.php), therefore, we need to have the class inherit from the current user class.

    You can also instruct the system to use other user provider classes by making changes to the config file (/config/fe_roles/appconfig.php) and modify the (target_user_model) parameter.

  7. Seeding is also performed at the end of the migrations to create some stock permissions and roles.

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:

note: You can create your own user provider class by either inherit from \feiron\fe_roles\models\fe_User.php or simply use trait "feiron\fe_roles\lib\traits\fe_user_traits" in your current user provider class.

  1. Protecting Routes: note multiple role/permission names can be seperated by "|".

    • Chain methods (role,permission,etc) in route definitions:

    • Use middleware(ProtectByRoles,ProtectBypermission,etc) and pass in list of checks as parameters:

    Or in a controller definition:

  2. Protecting Contents: within blade files, use the following directives to check for access levels:

configuration:

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

Explainations:

option name Values Description Default
target_user_model string Model class used by the system to handel user storage. required
usr_provider string Class file used by the system user and guard provider. required
user_name_field string Table field name used to store user names. false
user_password_field string Table field name used to store user passwords. false
user_remember_token_field string Table field name used to store user expiration tokens. false

Permission/Role Management Feature

This package provides many useful permission/role management features along with the ability to extend management feature.

Manage user roles and permission is enabled with the use this package jointly with LaraFrame and Fe_Login.

LaraFrame Support

This package was tailored to work with LaraFrame.

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_roles with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.1
laravel/framework Version >=5.8
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_roles contains the following files

Loading the files please wait ....