Download the PHP package portedcheese/base-settings without Composer

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

Base settings

Набор классов, представлений и компонентов для разворачивания базового сайта.

Есть базовые команды для пакетов что бы заполнить конфигурацию и модели.

Установка

php artisan ui vue --auth
npm install && npm run dev
php artisan vendor:publish --provider="PortedCheese\BaseSettings\BaseSettingsServiceProvider" --tag=public --force
php artisan vendor:publish --provider="PortedCheese\BaseSettings\BaseSettingsServiceProvider" --tag=config
php artisan make:base-settings {--all : Run all}
                               {--views : Scaffold views}
                               {--force : Overwrite existing views by default}
                               {--models : Export models}
                               {--filters : Export filters}
                               {--controllers : Export controllers}
                               {--policies : Export and create rules}
                               {--only-default : Create default rules}
                               {--config : Make config}
                               {--scss : Export scss files}
                               {--vue : Export vue files}
                               {--js : Export js files}

В контроллер App\Http\Controllers\Controller добавить конструктор:

public function __construct()
{
    $this->routeName = Route::currentRouteName();
}

Для работы изображений настроить приложение:

php artisan storage:link
FILESYSTEM_DISK=public 

Middleware

Gates

Команды и функции

Функция для работы с датами:

datehelper()
    {->forFilter(date, date to condition = false)}
    {->changeTz(date)}
    {->format(date, format = "d.m.Y H:i")

Функция для работы с конфигурацией сайта:

base-config()
    @method static get(string $name, $value = "", $default = null)
    @method static create(string $name, array $data, array $info, $force = false)
    @method static update(string $name, string $var, $value)

Генерация ссылки на вход:

php artisan generate:login-link {email} {--send=} {--get}

Чистка ключа кэша:

php artisan cache:forget {key}

Чистка фильтра изображения:

php artisan cache:forget "image-filters:{template}-{filename}"
php artisan cache:forget "object-filters-original:{filename}"
php artisan cache:forget "object-filters-content:{template}-{filename}"

Чистка всех фильтров:

php artisan image-filters:clear

Components

universal-priority:

<universal-priority
    :elements="{{ json_encode([['name' => "name", "id" => "id"(, "url" => "url")], [..], [..]]) }}"
    url="{{ route("admin.vue.priority", ['table' => "table_name", "field" => "field_name"]) }}">
</universal-priority>

confirm-form:

<confirm-form :id="'{{ "delete-form-{$model->id}" }}'">
    <template>
        <form action="{{ route('admin.model.destroy', ['model' => $model]) }}"
              id="delete-form-{{ $model->id }}"
              class="btn-group"
              method="post">
            @csrf
            @method("delete")
        </form>
    </template>
</confirm-form>
Параметры:
    - title: Вы уверены?
    - text: Это действие будет невозможно отменить!
    - confirm-text: Да, удалить!
    - cancel-text: Отмена

Includes

@googleCaptcha2 - Google ReCaptcha для форм, google_captcha - правило валидации

@hiddenCaptcha - Скрытая капча, hidden_captcha - валидация

Редактирование галереи:

@eGall(["id" => Auth::user()->id, "model" => "user", "noCover" => false])

Вывод тега picture:

@pic([
    "image" => (object) ["file_name" => "example.jpg", "name" => "example"],
    "template" => "small",
    "grid" => [
        "example-grid" => 768,
    ],
    "imgClass" => "example-class",
])

Вывод изображения с lightbox:

@img([
    "image" => (object) ["file_name" => "example.jpg", "name" => "example", "id" => "unique"], (id требуется если lightbox не указан)
    "template" => "small",
    "lightbox" => "lightGroupExample",
    "imgClass" => "example-class",
    "grid" => [
        "example-grid" => 768,
    ],
])

Вывод галереии с lightbox:

@images([
    "gallery" => [(object) ..., (object) ...],
    "lightbox" => "lightExampleGroup",
    "template" => "sm-grid-6",
    "grid" => [
        "lg-grid-3" => 992,
        "md-grid-6" => 768,
    ],
    "imgClass" => "img-fluid",
])

Вывод тега picture Lazy:

@picLazy([
    "image" => (object) ["file_name" => "example.jpg", "name" => "example"],
    "template" => "small",
    "grid" => [
        "example-grid" => 768,
    ],
    "imgClass" => "example-class",
])

Вывод изображения Lazy с lightbox :

@imgLazy([
    "image" => (object) ["file_name" => "example.jpg", "name" => "example", "id" => "unique"], (id требуется если lightbox не указан)
    "template" => "small",
    "lightbox" => "lightGroupExample",
    "imgClass" => "example-class",
    "grid" => [
        "example-grid" => 768,
    ],
])

Вывод галереии Lazy с lightbox :

@imagesLazy([
    "gallery" => [(object) ..., (object) ...],
    "lightbox" => "lightExampleGroup",
    "template" => "sm-grid-6",
    "grid" => [
        "lg-grid-3" => 992,
        "md-grid-6" => 768,
    ],
    "imgClass" => "img-fluid",
])

All versions of base-settings with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0.1
laravel/ui Version ^4.0.0
laravel/framework Version ^9.0|^10.0
intervention/image Version ^2.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 portedcheese/base-settings contains the following files

Loading the files please wait ....