Download the PHP package proklung/bitrix-symfony-base.git without Composer

On this page you can find all versions of the php package proklung/bitrix-symfony-base.git. 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 bitrix-symfony-base.git

Bitrix Project + Symfony

Заготовка для 1C Bitrix проектов. На базе https://github.com/regiomedia/bitrix-project

Основное отличие: максимальное использование Symfony. Поддерживаются бандлы, сервис контейнер с полным функционалом фрэймворка (аннотации, auto wiring), роутинг, консоль и так далее.

От Битрикса остается админка, база, компоненты (где контейнер доступен через сервис-локатор). Все остальное пишется в максимально приближенной к Symfony манере.

Плюс всевозможный - используемый мною в реальных проектах - функционал (размещается в бандлах Symfony).

А также плоды всевозможных досужих экспериментов, оказавшихся полезными в работе.

Создание нового проекта

К примеру:

Зависимости

Bitrix

Или настроить его иным способом (через git submodule ad).

ВАЖНО

Перед этой процедурой обновить include.php в environments/*/bitrix/modules/main, на актуальный из сабмодуля или устанавливаемого иным способом Битрикса.

После этого рекомендуется сделать еще разок composer update дабы подтянулись битриксовые модули.

Символьные ссылки

В директорию sites/s1 перенести публичные файлы сайта.

В виндовом терминале:

База данных и окружение

sh php migrator install sh php migrator migrate sh npm run encore -- dev sh composer run lint:php sh composer run fix:php sh npm run encore -- dev # запустить сборку для разработчика один раз npm run encore -- dev --watch # запустить сборку для разработчика в режиме слежения за файлами npm run encore -- production # запустить сборку для продакшена html

html

js import DemoApp from './components/DemoApp.vue';

export default { DemoApp, };

mkdir sites/s2 # создать директорию для дополнительного сайта cd sites/s2 # перейти в нее mklink "local" "../../local" /j mklink "bitrix" "../../bitrix" /j mklink "upload" "../../upload" /j

json "scripts": { "post-update-cmd": [ "Local\ComposerScript\RunMigrationsHandler::doInstall", "Local\ComposerScript\CacheWarmerHandler::doInstall" ], "post-install-cmd": [ "Local\ComposerScript\RunMigrationsHandler::doInstall", "Local\ComposerScript\CacheWarmerHandler::doInstall" ], "cache:warm": "Local\ComposerScript\CacheWarmerHandler::doInstall", "migrations:run": "Local\ComposerScript\RunMigrationsHandler::doInstall" }, sh composer cache:warm sh composer migrations:run



## Прочее

- Пришлось залочить пакет `psr/container` на версию 1.0. Без этого ставился 1.1.1 (по запросу Symfony DI) 
и конструкция падала из-за несоответствия интерфейсов.

Последствия: DI компонент пока версии 5.2, а не актуальной 5.3.

All versions of bitrix-symfony-base.git with dependencies

PHP Build Version
Package Version
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 proklung/bitrix-symfony-base.git contains the following files

Loading the files please wait ....