Giter Site home page Giter Site logo

luyadev / luya-kickstarter-bootstrap4 Goto Github PK

View Code? Open in Web Editor NEW
16.0 8.0 7.0 783 KB

LUYA boilerplate to kickstart projects with Bootstrap 4.

Home Page: https://luya.io

License: MIT License

PHP 70.01% JavaScript 19.91% SCSS 10.09%
luya gulp bootstrap bootstrap4 yii2 boilerplate hacktoberfest

luya-kickstarter-bootstrap4's Introduction

LUYA Logo

LUYA Bootstrap 4 Kickstarter Application

LUYA Total Downloads License

LUYA is a Yii 2 PHP Framework wrapper which provides out of the box functions like an administration interface, a beautiful looking content management system, payment modules, agency workflows and other tools to develop your website pretty fast!

Attention: As of Bootstrap 4, the grid is completely written in FLEX. Check the Browser Support to decide if you want to use Bootstrap 4 for your Project.

Installation

We have a made an absolut easy to understand STEP-BY-STEP Guide to install LUYA:

Tl;dr

composer create-project luyadev/luya-kickstarter-bootstrap4

Frontend

Libraries

These libraries are included and available:

» jQuery (yii\web\JqueryAsset)
» Bootstrap v4 (CSS & JS)

Bootstrap is included as a composer requirement

Compiling

We have created our own NPM Package that includes our gulp workflow.
Everything is prepared inside the resources/ folder.

See zephir/zephir-gulp-workflow for a full documentation of the workflow.

Backend

Assets

To speed up your local development you can uncomment the following lines in configs/local.php in order to use symlinking your assets instead of copy them every run.

'assetManager' => [
    'class' => 'luya\web\AssetManager',
    'linkAssets' => true,
],

Now all assets will be symlinked and not copied.

This will also enable CSS instant reload provided by browserSync (gulp).

Questions and Problems

If you have any questions or problems, don't hesitate to create a new issue on the project repository.

Contribution

We are always looking for people who share their thoughts, code and problems with us. Below the links to the contribution guides:

Help us building LUYA

luya-kickstarter-bootstrap4's People

Contributors

arhell avatar charescape avatar dependabot[bot] avatar dev7ch avatar hbugdoll avatar nadar avatar themaaarc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luya-kickstarter-bootstrap4's Issues

Update docker-compose.yml?

U should update the docker-compose.yml to at least latest php 7.4 and maybe add 8.x+ option to choose from.

The current template is only 7.2.29 and this creates issues with development as most packages are transitioning to 8.x or stay (for now) at the latest 7.4.x or provide it for compatibility, but 7.2 is basically outdated.

Also im not sure which docker-compose.yml file structure is now the latest as basic kickstarter does not have the luya_php entry any more, seem like merged with nginx but its 7.4, while this is with luya_php but only 7.2.29, so is there a simple way to update it to 7.4?

installation error

What steps will reproduce the problem?

while running composer install, got an error

What is the expected result?

luya-kickstarter-bootstrap4 to be installed using composer

What do you get instead? (A Screenshot can help us a lot!)

` 48/48 [============================] 100%
In ZipDownloader.php line 220:

'C:\luya-kickstarter-bootstrap4/vendor/composer/tmp-165a360462429839125e3007ea9d6425' is not a zip archive.`

LUYA Check ouput (run this script and post the result: luyacheck.php)

Additional infos

Q A
LUYA Version
PHP Version
Platform Apache/XAMPP/MAMPP/etc.
Operating system Windows/Linux Server/OSX/etc.

Question

I did the installation using Composer. Did the import and migration. But bootsrap4 didn't show up in the page edit. What needs to be registered perhaps in a config?

License is missing

License is missing... maybe MIT License like the LUYA main modules.

All LUYA modules should have a LICENSE.md.

gulp installation

you should define in the documentations to install gulp globally otherwhise you can not run npm install and using gulp afterwards.

4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Latest gulp workflow

@TheMaaarc as we are linking to the gulp process in the readme, we should either link the the correct version or change to latest version.

luya import error

What steps will reproduce the problem?

After install via composer create-project and running the migration, I ran the command vendor/bin/luya import.

What is the expected result?

Run the import successfully.

What do you get instead? (A Screenshot can help us a lot!)

~# ./vendor/bin/luya import

PHP Fatal error:  During inheritance of ArrayAccess: Uncaught yii\base\ErrorException: Return type of luya\cms\base\InternalBaseBlock::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/vendor/luyadev/luya-module-cms/src/base/InternalBaseBlock.php:124
Stack trace:
#0 /app/vendor/luyadev/luya-module-cms/src/base/InternalBaseBlock.php(25): yii\base\ErrorHandler->handleError(8192, 'Return type of ...', '/app/vendor/luy...', 124)
#1 /app/vendor/composer/ClassLoader.php(576): include('/app/vendor/luy...')
#2 /app/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/app/vendor/com...')
#3 /app/vendor/luyadev/luya-module-cms/src/base/PhpBlock.php(17): Composer\Autoload\ClassLoader->loadClass('luya\\cms\\base\\I...')
#4 /app/vendor/composer/ClassLoader.php(576): include('/app/vendor/luy...')
#5 /app/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/app/vendor/com...')
#6 /app/vendor/luyadev/luya-module-cms/src/frontend/blocks/HtmlBlock.php(15): Composer\Autoload\ClassLoader->loadClass('luya\\cms\\base\\P...')
#7 /app/vendor/composer/ClassLoader.php(576): include('/app/vendor/luy...')
#8 /app/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/app/vendor/com...')
#9 [internal function]: Composer\Autoload\ClassLoader->loadClass('luya\\cms\\fronte...')
#10 /app/vendor/yiisoft/yii2/di/Container.php(507): ReflectionClass->__construct('\\luya\\cms\\front...')
#11 /app/vendor/yiisoft/yii2/di/Container.php(385): yii\di\Container->getDependencies('\\luya\\cms\\front...')
#12 /app/vendor/yiisoft/yii2/di/Container.php(170): yii\di\Container->build('\\luya\\cms\\front...', Array, Array)
#13 /app/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('\\luya\\cms\\front...', Array, Array)
#14 /app/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(263): yii\BaseYii::createObject(Array)
#15 /app/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(202): luya\cms\admin\importers\BlockImporter->createBlockObject('\\luya\\cms\\front...')
#16 /app/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(40): luya\cms\admin\importers\BlockImporter->saveBlock('\\luya\\cms\\front...')
#17 /app/vendor/luyadev/luya-core/console/commands/ImportController.php(192): luya\cms\admin\importers\BlockImporter->run()
#18 [internal function]: luya\console\commands\ImportController->actionIndex()
#19 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#20 /app/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#21 /app/vendor/yiisoft/yii2/console/Controller.php(182): yii\base\Controller->runAction('', Array)
#22 /app/vendor/yiisoft/yii2/base/Module.php(552): yii\console\Controller->runAction('', Array)
#23 /app/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('import', Array)
#24 /app/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('import', Array)
#25 /app/vendor/yiisoft/yii2/base/Application.php(384): yii\console\Application->handleRequest(Object(yii\console\Request))
#26 /app/vendor/luyadev/luya-core/base/Boot.php(238): yii\base\Application->run()
#27 /app/vendor/luyadev/luya-core/bin/luya(36): luya\base\Boot->applicationConsole()
#28 /app/vendor/bin/luya(119): include('/app/vendor/luy...')
#29 {main} in /app/vendor/luyadev/luya-module-cms/src/base/InternalBaseBlock.php on line 25
PHP Fatal Error 'yii\base\ErrorException' with message 'During inheritance of ArrayAccess: Uncaught yii\base\ErrorException: Return type of luya\cms\base\InternalBaseBlock::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/vendor/luyadev/luya-module-cms/src/base/InternalBaseBlock.php:124
Stack trace:
#0 /app/vendor/luyadev/luya-module-cms/src/base/InternalBaseBlock.php(25): yii\base\ErrorHandler->handleError(8192, 'Return type of ...', '/app/vendor/luy...', 124)
#1 /app/vendor/composer/ClassLoader.php(576): include('/app/vendor/luy...')
#2 /app/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/app/vendor/com...')
#3 /app/vendor/luyadev/luya-module-cms/src/base/PhpBlock.php(17): Composer\Autoload\ClassLoader->loadClass('luya\\cms\\base\\I...')
#4 /app/vendor/composer/ClassLoader.php(576): include('/app/vendor/luy...')
#5 /app/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/app/vendor/com...')
#6 /app/vendor/luyadev/luya-module-cms/src/frontend/blocks/HtmlBlock.php(15): Composer\Autoload\ClassLoader->loadClass('luya\\cms\\base\\P...')
#7 /app/vendor/composer/ClassLoader.php(576): include('/app/vendor/luy...')
#8 /app/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/app/vendor/com...')
#9 [internal function]: Composer\Autoload\ClassLoader->loadClass('luya\\cms\\fronte...')
#10 /app/vendor/yiisoft/yii2/di/Container.php(507): ReflectionClass->__construct('\\luya\\cms\\front...')
#11 /app/vendor/yiisoft/yii2/di/Container.php(385): yii\di\Container->getDependencies('\\luya\\cms\\front...')
#12 /app/vendor/yiisoft/yii2/di/Container.php(170): yii\di\Container->build('\\luya\\cms\\front...', Array, Array)
#13 /app/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('\\luya\\cms\\front...', Array, Array)
#14 /app/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(263): yii\BaseYii::createObject(Array)
#15 /app/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(202): luya\cms\admin\importers\BlockImporter->createBlockObject('\\luya\\cms\\front...')
#16 /app/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(40): luya\cms\admin\importers\BlockImporter->saveBlock('\\luya\\cms\\front...')
#17 /app/vendor/luyadev/luya-core/console/commands/ImportController.php(192): luya\cms\admin\importers\BlockImporter->run()
#18 [internal function]: luya\console\commands\ImportController->actionIndex()
#19 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#20 /app/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#21 /app/vendor/yiisoft/yii2/console/Controller.php(182): yii\base\Controller->runAction('', Array)
#22 /app/vendor/yiisoft/yii2/base/Module.php(552): yii\console\Controller->runAction('', Array)
#23 /app/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('import', Array)
#24 /app/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('import', Array)
#25 /app/vendor/yiisoft/yii2/base/Application.php(384): yii\console\Application->handleRequest(Object(yii\console\Request))
#26 /app/vendor/luyadev/luya-core/base/Boot.php(238): yii\base\Application->run()
#27 /app/vendor/luyadev/luya-core/bin/luya(36): luya\base\Boot->applicationConsole()
#28 /app/vendor/bin/luya(119): include('/app/vendor/luy...')
#29 {main}'

in /app/vendor/luyadev/luya-module-cms/src/base/InternalBaseBlock.php:25

Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}

LUYA Check ouput (run this script and post the result: luyacheck.php)

It can't be executed.

Additional infos

Q A
LUYA Version 2.3(?)
PHP Version 8.2
Platform nginx+php-fpm.
Operating system Linux (docker).

Bootstrap 4 files from vendor.

It think we should retrieve the bs4 files from vendor instead of copy those files into rsc folders. (like we did in LUYA Admin UI)

Basic blocks are missing in CMS

The BS3 kickstarter installs the module luya-generic which brings elementary blocks for the CMS such as heading, list, text, texteditor etc. This module is missing in the BS4 kickstarter.
It is not expedient to have a complex BS4-Carousel but no basic text block.

Are there any known incompatibilities between luya-generic and BS4?
Can we simply add

"require": {
   ...,
   "luyadev/luya-generic" : "^1.0"
},

to composer.json?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.