yeoman for codeigniter doesn't set grunt task server - codeigniter

i want to use yoeman for codeigniter project. i use generator from this:
https://github.com/homerjam/generator-codeigniter
but i have a problem, when i run grunt then appear a notification like below:
Warning: Task "server" not found. Use --force to continue.
Aborted due to warnings.
how to fixed that warning? and how to make libraries (like : /bower_component) to following codeigniter template rule?

As far as I can tell, that generator doesn't include a server task. This makes sense because grunt-contrib-connect, which is the usual server used in Grunt tasks, isn't of any use for a PHP framework like CodeIgniter because it won't execute PHP. You need to use either the PHP development server (in PHP 5.4 and up, use the -S option), or install a proper web server like Apache.

Related

How to setup the Shopware development template without docker? (to provide a Shopware platform pull request)

I understand, that in order to contribute to the Shopware platform / core, I have to setup Shopware 6 using the development template.
I followed the steps at
https://github.com/shopware/platform#quickstart--installation
But only until
./psh.phar docker:start
I was thinking about installing via bin/console system:setup and bin/console system:install but it fails with
PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException:
Unable to read the "/home/projects/shopware-dev-bd/bin/../.env" environment file. in
/home/projects/shopware-dev-bd/vendor/symfony/dotenv/Dotenv.php:567
Is there an easy way to create the .env? Do I have to copy it manually?
It is recommended now to use the platform repository directly for setting up development installations.
Just clone directly from shopware/platform
composer install
bin/console system:setup to create the .env file
composer run setup
optionally bin/console framework:demodata if you need demo data
Addition to the accepted answer:
While in the development template there was psr.phar to manage things like building the admin theme, and in production template there is bin/build-administration.sh none of those are there in the method described by #dneustadt.
Instead this is managed by composer scripts which are defined in the composer.json
For example admin JS is build using
composer run build:js:admin

We cannot install extension in admin panel in Magento 2.3.2

We have installed magento 2.3 community edition in windows. We use Xampp 7.2.20. Magento installation is done successfully and admin panel is running fine. But when we try to install any extension from extension manager section it shows different errors. The errors is like as followings:
Step 1: Readiness Check
Error! You need to resolve these issues to continue.
Check Updater Application Availability
Updater application is available.
Check Cron Scripts
Cron script readiness check passed.
Check Component Dependency
Component dependency is correct.
PHP Settings Check *
Need Help? PHP Extension Help
PHP Extensions Check
missing PHP extensions. Hide detail
The best way to resolve this is to install the correct missing extensions. The exact fix depends on our server, your host, and other system variables.
Our PHP extension help can get you started.
For additional assistance, contact your hosting provider.
In some cases, you might have two PHP configuration files: one for the PHP command line and for the web server. If so, make the change in both php.ini files. For details, see the php.ini reference.
We cannot understand what is the problem in php extension and php settings. We cannot understand which extension, library, module is missing to install extension.
If any one has solution please give us.
Check the following modules are installed and enabled on your server. This are the required PHP extension for Magento 2
bc-math
curl
gd, ImageMagick 6.3.7 (or later) or both
intl
PDO/MySQL
SimpleXML
soap
xml
xsl
zipmbstring
mbstring
mcrypt
mhash
openssl

Simplest way to get Laravel "Hello World" going?

I have programmed in PHP for many years, but it was before frameworks like Laravel. I am trying to understand Laravel now.
Can someone point me to something that explains the simplest possible way to get a Laravel "Hello World" app running. I know how to use composer. I have a Linux shared hosting account I can use for this.
I'd appreciate if someone could explain how I can get a simple Laravel example up and running, without having to install a ton of stuff on my PC.
Thanks.
Using composer download the latest version of laravel. Documentation is available at https://laravel.com/docs/5.8
composer create-project --prefer-dist laravel/laravel hello
After that go to that directory
cd hello
and run this command
php artisan server
Now open the browser and go to http://127.0.0.1:8000/
You will get a basic page that says Laravel and some links
Open hello with your code editor and open this file resources/views/welcome.blade.php
Write some content on the page and check http://127.0.0.1:8000/
You can watch the https://laracasts.com/series/laravel-from-scratch-2018 to get a basic idea.
(Optional) If you are in windows you can use https://laragon.org/ in that the installation is pretty easy.
To run this app on shared hosting.
First,
1) Create a folder Application on your file manager
2) Upload files to that folder. (Laravel files, installed via composer)
3) Move public folder files to /public_html/ if you want the site in root domain
4) open index.php file and edit these lines
require __DIR__.'/Application/vendor/autoload.php';
....
$app = require_once __DIR__.'/Application/bootstrap/app.php';

"Full REPL not supported. Falling back to simple shell" - error in Laravel While Trying To Use php artisan tinker

My Development Environment:
Windows 7 + WAMP
PHP Version: 5.4.16
While I try to use php artisan tinker - my console give me the following error:
REPL not supported. Falling back to simple shell
I search solution for this and found this :
Full REPL not supported
But this could not helped me much.I know Boris is By default supported by laravel 4.1.
And I might do some changes in php.ini according to this.
If the tinker command doesn't work for you, it is very likely the disable_functions setting in your php.ini contains the needed pcntl_() functions. Put a comment before this line in your php.ini and that should allow tinker to work.
Source :http://laravel-recipes.com/recipes/280
But when I Open my php.ini file the disable_functions contains nothing except this:
disable_functions =
; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; NOT affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-classes
Is this My WAMP problem? Do I Missing Something !!!
Boris In Tinker
The php artisan tinker command now utilizes the Boris REPL if your system supports it. The readline >and pcntl PHP extensions must be installed to use this feature. If you do not have these extensions, >the shell from 4.0 will be used.
From the Laravel docs here:
http://laravel.com/docs/releases
So basically, they are telling you that php55-pcntl and readline needs to be installed.
Everytime I try to brew install php55-pcntl though, I get
configure: error: Cannot find openSSL's <evp.h>
Try running that and see what you get.
UPDATE: Use Laravel's Homestead environment
I completely gave up trying to run it on a XAMPP/WAMP/MAMP-style localhost.
If you go to the quickstart docs and scroll down to local development environment:
http://laravel.com/docs/quick#local-development-environment
It actually recommends you use Laravel's custom homestead environment:
http://laravel.com/docs/homestead
Read the docs for installing that and report back with results. It has been working perfectly for me.
One or more of readline posix and pcntl extensions are missing. You need to compile PHP with the appropiate configuration options to enabled it.
Here are the instructions:
readline http://www.php.net/manual/en/readline.installation.php
pcntl http://www.php.net/manual/en/pcntl.installation.php
posix http://www.php.net/manual/en/posix.installation.php
Note that posix functions are enabled by default.

cannot install or use ZeroMQ library

I am working on Debian Linux / Apache (a VPS at Dreamhost). I have tried to install ZeroMQ (version 3.2.3) as per these instructions. At the first glance, it looks like everything went well.
The sudo make install command proudly reports back that (among others)
Libraries have been installed in: /usr/local/lib
Indeed, here is the ls of /usr/local/lib:
libzmq.a libzmq.so libzmq.so.3.0.0 php python2.5 site_ruby
libzmq.la libzmq.so.3 ocaml pkgconfig python2.6
In order to use ZeroMQ I have added to my php.ini:
extension = /usr/local/lib/libzmq.so
But when I run PHP, I get:
PHP Startup: Invalid library (maybe not a PHP library) '/usr/local/lib/libzmq.so
What am I doing wrong?
update
As per djf's answer, I worked my way through the instructions for PHP bindings (building from Github). Those seem to work. But then, when I run PHP I get:
PHP Warning: PHP Startup:
zmq: Unable to initialize module Module compiled with module API=20060613
PHP compiled with module API=20100525
These options need to match in Unknown on line 0`
Now what?
update 2
Oh, wait a minute. I may know what that is. Dreamhost has PHP 5.2 on the command line. I need PHP 5.4, so I have been calling PHP like so /usr/local/php54/bin/php (this is apparently where the PHP 5.4 executable resides).
However, commands like configure and make use the ordinary, standard PHP. So I needed to upgrade CLI PHP to 5.4.
After that, everything worked. Thanks for the help, everyone!
Seems like you've only installed the C library, hence the error:
PHP Startup: Invalid library (maybe not a PHP library) '/usr/local/lib/libzmq.so
You also have to build the PHP bindings. Check these instructions on howto build them.
I do this for windows but i thinks linux is same.
Just go to http://pecl.php.net/package/zmq/1.1.2/windows and download package that fit with your php version.
Then extract it and coppy 'libzmq.dll' to 'xampp/php' folder, 'php_zmq.dll' to 'xampp/php/etc'.
At the end of 'php.ini' add following line:extension=php_zmq.dll
Don't forget restart your xampp!Good luck

Resources