Download the PHP package randohinn/userfile without Composer

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

Laravel Userfile

Latest Version on Packagist

UNMAINTAINED AND OF UNKNOWN WORKING STATUS

Userfile is a Laravel package that allows storing user data in yaml files. It also supports Bearer type API authentication.

Usage

Installation

Generate Laravel's default auth scafffolding. php artisan make:auth.

You can install the package by running

Laravel will auto-detect and register the neccessary provider and auth configuration.

Next, run

This will create a config/userfile.php file in your app.

Setup

Userfile uses the default Laravel user model. Therefore, it is necessary to make these changes to the model.

Add public $incrementing = false; to the model. This enables the use of string-based uuids, that Userfile generates for your users.

Add id and api_token to the $fillable array of the model. This allows the package to populate those fields on your model instances. It is in this array where you will later define any custom fields you would like to store in the user file.

Configuration

By default, Userfile expects to find a userfile folder in your storage folder. You can change this, by creating a custom filesystem disk in the filyesystem config, and editing config/userfile.php to state the name of the new disk, instead of userfile. In this file, you can also define a subfolder or your user files, if that is what you want.

The last part, is to set your config/auth.php to contain 'guard' => 'userfile', instead of the default 'guard' => 'web'. You may the delete unnecessary auth controllers.

Creating users

Userfile expects to find files in your configured disk's configured subfolder. Filenames go by the standard of user-email.yaml. For example [email protected].

At the bare minimum, when creating a new user file, it needs to contin the user's email, name and password (in plaintext). The password will be encrypted on first log-in!

For example:

After you log in with the first user, for the first time, several things will happen:

As a result, your user file may look something like this:

Should you want to add any fields, just add them to this file, and define them in the model's $fillable array, like you normally would.

License

The MIT License. See License.md for more information.

Contributing

All contributions welcome. Before you start working on something, please create an issue for it.

If you find a security-related bug, please write directly to [email protected] . Do not create a GitHub issue!


All versions of userfile with dependencies

PHP Build Version
Package Version
Requires symfony/yaml Version ^4.1
php Version ^7.1
illuminate/support Version ~5.6.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 randohinn/userfile contains the following files

Loading the files please wait ....