Download the PHP package dereffi/issuing without Composer

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

DerEffi/laravel-issuing is a PHP package built for Laravel 5.* to save creator last updator and deletor in database tables

View on Packagist

VERSIONS

This package is Laravel 5.8 compliant. Currentl Package version 0.1.0

ABOUT

INSTALLATION

This project can be installed via Composer. To get the latest version of the Issuing Package run the following command:

composer require dereffi/issuing

After the installation you can run following command to publish the config file

php artisan vendor:publish --tag=dereffi-issuing

Usage

CONFIGURATION

The model representing the Issuer must implement the authenticatable interface Illuminate\Contracts\Auth\Authenticatable (or any child of it) which is the default with the Eloquent User model.

Easy Configuration of the Issuer Model and the database column in the config file issuing.php

Migrations

To auto create the *_by columns to migration tables you have to call the IssuerColumns class anywhere in the Schema::create function with the $table as parameter. The names of the columns can be changed in the config/issuing.php file. If you do so you have to refresh the migration or do it bevor you migrate your tables.

Following exaple with the default laravel users migration file:

<?php

use Dereffi\Issuing\IssuerColumns;              // <-- Import

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
    * Run the migrations.
    *
    * @return void
    */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();

            IssuerColumns::create($table);      // <-- auto adding the columns

        });
    }

    /**
    * Reverse the migrations.
    *
    * @return void
    */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}

Models

To auto save the issuer id with the element on creating, updationg or deleting you have to use the Dereffi\Issuing\Issuable Trait in the model files like the following example with the default laravel User Model:

<?php

namespace App;

use Dereffi\Issuing\Issuable;               // <-- add this line to Import the Trait

use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable, Issuable;               // <-- add the Issuable Trait to the Model

LICENSE

Laravel User Verification is licensed under The MIT License (MIT).


All versions of issuing with dependencies

PHP Build Version
Package Version
No informations.
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 dereffi/issuing contains the following files

Loading the files please wait ...