Download the PHP package ruslander-rulez/laravel-buisiness-logic-encapsulator without Composer
On this page you can find all versions of the php package ruslander-rulez/laravel-buisiness-logic-encapsulator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ruslander-rulez/laravel-buisiness-logic-encapsulator
More information about ruslander-rulez/laravel-buisiness-logic-encapsulator
Files in ruslander-rulez/laravel-buisiness-logic-encapsulator
Download ruslander-rulez/laravel-buisiness-logic-encapsulator
More information about ruslander-rulez/laravel-buisiness-logic-encapsulator
Files in ruslander-rulez/laravel-buisiness-logic-encapsulator
Vendor ruslander-rulez
Package laravel-buisiness-logic-encapsulator
Short Description Encapsulating buisiness logic in Laravel projects
License
Package laravel-buisiness-logic-encapsulator
Short Description Encapsulating buisiness logic in Laravel projects
License
Please rate this library. Is it a good library?
Informations about the package laravel-buisiness-logic-encapsulator
Commands
This package is created for close business logic in the class. You can use closed business logic in different places of your project (views, controllers, jobs, tests etc.).
Usage
Install through composer
composer require ruslander-rulez/laravel-buisiness-logic-encapsulator
Create new class
<?php
namespace Some\Namespace;
use RuslanderRulez\Encapsulator\AbstractCommand;
class SomeName extents AbstractCommand
{
private $input1;
private $input2;
private $someInjection;
public function __construct($inputVariable1, $inputVariable2, SomeInjection $someInjection)
{
$this->input1 = $inputVariable1;
$this->input2 = $inputVariable2;
$this->someInjection = $someInjection;
}
public function handle()
{
/*
SOME LOGIC
*/
return $this->input1 === $this->input2;
}
/**
* @retunn boolean
**/
public function executeFromParams($inputVariable1, $inputVariable2)
{
return self::execute(compact("inputVariable1", "inputVariable2"));
}
}
Use created class in where your need
//some code here
$result = SomeName::executeFromParams($value1, $value2);
//some code here
if ($result) {
//some code here
}
//some code here
All versions of laravel-buisiness-logic-encapsulator with dependencies
PHP Build Version
Package Version
The package ruslander-rulez/laravel-buisiness-logic-encapsulator contains the following files
Loading the files please wait ....