Download the PHP package 4myth/laravel-tools without Composer

On this page you can find all versions of the php package 4myth/laravel-tools. 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 laravel-tools

MyTh Laravel tools

Laravel framework Tools. useful to development API applications. Support for JS framework such as vuejs & vuetify. All documentation under building.

Installation


Using composer:

composer require 4myth/laravel-tools

Publishes

Provider

php artisan vendor:publish --provider="Myth\LaravelTools\Providers\ServiceProvider"

Configuration

php artisan vendor:publish --tag=4myth-tools-config

Migrations

php artisan vendor:publish --tag=4myth-tools-migrations

Views

php artisan vendor:publish --tag=4myth-tools-views

Language

php artisan vendor:publish --tag=4myth-tools-lang

Models

php artisan vendor:publish --tag=4myth-tools-models

Public Assets

php artisan vendor:publish --tag=4myth-tools-assets

Tool Middleware


Convert Arabic numbers to English:

Edit file app/Http/Kernel.php.

use Myth\LaravelTools\Http\Middleware\ArToEnMiddleware;

protected $middleware = [
    ...Your Middleware
    ArToEnMiddleware::class
]

Postman documentation Example:

Define your routes. for example in : routes/api.php

Route::group(['middleware' => ['postman']], function(Router $router){
    your routes here
});

Edit app/Http/Kernel.php to define route middleware in kernel.

use Myth\LaravelTools\Http\Middleware\PostmanMiddleware;

protected $routeMiddleware = [
    ...Your Middleware
    'postman' => PostmanMiddleware::class,
]

Permissions Example:

Define your routes. for example in : routes/api.php

Route::group(['middleware' => ['auth:sanctum', 'permission']], function(Router $router){
    Route::get('route-path', [UserController::class, 'example'])->name('example');
    Route::get('route-path', [UserController::class, 'example'])->name('Model.DeleteFile');
    Route::get('', [UserController::class, 'index'])->name('User.index');
});

The name of the permissions depend on the route name. an example: example , User.index and Model.DeleteFile

Edit app/Http/Kernel.php to define route middleware in kernel.

use Myth\LaravelTools\Http\Middleware\PermissionMiddleware;

protected $routeMiddleware = [
    ...Your Middleware
    'permission' => PermissionMiddleware::class,
]

Tool commands


Laravel File system

This tool use the laravel file system config/filesystems.php

Types: root, app, setup, logs, media, pdf, excel and qr

'disks' => [
    ... your disks

    'root' => [
        'driver' => 'local',
        'root'   => base_path(),
        'throw'  => false,
    ],

    'app' => [
        'driver' => 'local',
        'root'   => app_path(),
        'throw'  => false,
    ],

    'logs' => [
        'driver' => 'local',
        'root'   => storage_path('logs'),
        'throw'  => false,
    ],

    'setup' => [
        'driver' => 'local',
        'root'   => resource_path('setup'),
        'throw'  => false,
    ],

    'media' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/media'),
        'url'        => env('APP_URL').'/storage/media',
        'visibility' => 'public',
        'throw'      => false,
    ],

    'pdf' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/pdf'),
        'url'        => env('APP_URL').'/storage/pdf',
        'visibility' => 'public',
        'throw'      => false,
    ],

    'excel' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/excel'),
        'url'        => env('APP_URL').'/storage/excel',
        'visibility' => 'public',
        'throw'      => false,
    ],

    'qr' => [
        'driver'     => 'local',
        'root'       => storage_path('app/public/qr'),
        'url'        => env('APP_URL').'/storage/qr',
        'visibility' => 'public',
        'throw'      => false,
    ],
]

All versions of laravel-tools with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
laravel/framework Version >=9.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 4myth/laravel-tools contains the following files

Loading the files please wait ....