Download the PHP package designcoda/backpack-blockcrud without Composer

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

Backpack\BlockCRUD for Laravel Backpack

An admin panel for block items on Laravel 7, using Backpack\CRUD. Add, edit blocks of code or model widgets to Backpack\PageManager pages.

BlockCRUD

Requirements

Description

This addon allows you to add custom blocks on pages via Blade directive syntax i.e.

Installation

Composer

Laravel (english)

  1. After installation run migrations

  2. Publish main add-on file

  3. Run publish command for scripts and styles (files will be in 'blockcrud' section of your public folder) (optional). Run these commands after every add-on upgrade

  4. Add blocks section to your Backpack Adminpanel side menu (optional)

Laravel (рус.)

  1. После установки аддона запустите миграции

  2. Опубликуйте основной файл аддона командой

  3. Запустите команду для публикации скриптов и стилей (они будут в разделе 'blockcrud' вашей публичной папки) (необязательно). Эти же команды надо запускать после обновления версии аддона

  4. Добавьте пункт "Блоки" в меню вашей админпанели BackPack (необязательно)

alt text

Usage (english)

Now you can create and update new blocks in adminpanel section of your site.
Title - name of block in adminpanel.
Slug - name of block for using in Blade directive (i.e. block with slug 'my-block' will look like @customblock('my-block')).
Type - type of block (HTML, Entity or Template).
Content (visible if type is HTML) - HTML code of block. You can see live preview on the right with encapsulated hardcoded css-file /css/style.css. Applying custom styles will be set in config in future versions of add-on.
Entity (visible if type is Entity) - list of all available models in your project (folder App\Models temporarily is hardcoded for searching). You can manage block from Model itself by adding new model properties. For example, in file App\Models\User:

Template (visible if type is Template) - Blade template for include (temporarily readonly field). You can use any standard features of Blade and @customblock directive as well.
Template content (visible if type is Template) - Preview of template with ability to edit certain blocks. If you want to make block editable, add following attributes to template

Active - show on pages flag.

After creating a block you can insert directive (@customblock('my-block')) in any place of your page content. If you use code from database (for example, in PageManager), wrap your code in Blade templates with directive

For Entity you can use scope parameter

For Entity and Template types you can use array with parameters

You can use sortable list of blocks with preview and convenient adding/removing blocks instead of manual adding directives with this page settings:

Blocks scopes and parameters in sorting list will be added soon.

Использование (рус.)

Теперь вы можете создавать и изменять новые блоки в админпанели вашего сайта.
Название - название блока в админпанели.
Обозначение - название блока для использования в директиве Blade (например, блок с обозначением 'my-block' будет выглядеть в коде как @customblock('my-block')).
Тип - тип блока (HTML, Сущность или Шаблон).
Содержание (показывается, если выбран тип HTML) - HTML-код вашего блока. Справа находится живое превью вашего блока с изолированным css-файлом /css/style.css. Применение своих стилей будет реализовано в будущих версиях аддона. Сущность (показывается, если выбран тип Сущность) - список всех доступных моделей вашего проекта (временно для поиска захардкожена только папка App\Models). Свойствами блока можно управлять прямо из файла модели, добавляя новые свойства. Например, в файл App\Models\User:

Шаблон (показывается, если выбран тип Шаблон) - шаблон Blade (поле временно только для чтения). Можно использовать весь функционал Blade и директиву @customblock.
Содержание шаблона (показывается, если выбран тип Шаблон) - Превью шаблона с возможностью отредактировать текст в некоторых блоках. Если вы хотите сделать блок редактируемым, добавьте в шаблон следующие атрибуты

Активен - флаг показывать/не показывать на странице.

После сохранения блока вы можете вставить его в любое место контента страницы с помощью директивы Blade (@customblock('my-block')). Если вы используете код из базы данных (например, из аддона PageManager), оберните код в дополнительную директиву Blade

В Сущности можно использовать параметр scope

Для типов Сущность и Шаблон вы можете указать массив параметров

Вы можете редактировать контент страницы в режиме списка блоков с сортировкой, добавлением и удалением вместо ручной вставки директив в код. Для этого используйте следующие настройки для поля контента страницы:

Scope и параметры блоков в сортирующемся списке будут добавлены позже.

LICENSE

GNU GPLv3
Copyright Alexanyasha


All versions of backpack-blockcrud with dependencies

PHP Build Version
Package Version
Requires backpack/crud Version ^4.1.0|^4.0.0
backpack/pagemanager Version ^3.0|^2.0
laravel/framework Version ^8.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 designcoda/backpack-blockcrud contains the following files

Loading the files please wait ....