Showing posts with label PHP Laravel. Show all posts
Showing posts with label PHP Laravel. Show all posts

Monday, February 8, 2016

Solution To: Laravel "vendor" folder does not exist



.
Solution To: Laravel "vendor" folder does not exist
Error:
bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The "vendor" folder does not exist.
Solution:
In Command Window, go to your project root folder and type composer install.
(The following screenshot is based on the previous tutorial, http://php-steps.blogspot.my/2016/02/how-to-create-laravel-5-new-project.html )
The process may take some time. Wait until it is done.
Once Composer completed its process, you should be able to see your Laravel 5 website.

.

How To Create Laravel 5 New Project


.
How To Create Laravel 5 New Project

0) Pre-requisite

Follow the previous tutorial to set up Laravel installer, http://php-steps.blogspot.my/2016/02/how-to-set-up-php-composer-and-laravel.html 

1) Using Laravel Installer

Go to your target installation directory, for e.g c:\z\webprojects\.
Type cd c:\z\webprojects
Then, Type laravel new blog1
You may encounter an error that says mbstring is missing.
Open php.ini file and uncomment the related line.

2) Using Composer

Alternatively, you can use Composer to create a new Laravel project.
It goes a long way to create the project.

3) Comparison

By comparison, the first approach created a folder blog1 with a size of 750kb while the second approach created a folder blog2 with a size of 20.7MB. Obviously Composer has downloaded more files.
Blog1 failed to load.
Blog2 displayed the following.
Why?
Directory comparison shows that Blog1 is missing the vendor folder (20.5MB)


Click here to solve this problem (Laravel project missing vendor files)
.

How To Set Up PHP, Composer and Laravel


.
PHP, Composer and Laravel Installation

Setting up your computer for PHP frameworks development could be frustrating if the steps are not working. This tutorial aims to provide easy step-by-step guide to setup PHP frameworks such as Laravel.
This tutorial uses Rapid Extension Editor (REE) to modify Windows Environment Path values.
Download here.

1) Download PHP Package.

Download PHP Package from http://windows.php.net/download#php-7.0 
or from cache.

2) Configure PHP.INI

Unzip the file into the computer eg C:\php.
Copy the php.ini-development into php.ini
Edit at the following two lines...
Ensure that the extension directory is set to ext
Uncomment the openssl directive
Add the PHP Path value to Windows (using REE)
Click Save button.
Run Windows Command (ie Press Windows Button, type cmd and press ENTER).
Type php --version.
Type php -r "echo OPENSSL_VERSION_NUMBER;"

3) Install composer

Let’s say we want to install composer at c:\composer
Change directory to C:\ (type cd \).
Type mkdir composer.
Change directory to composer (type cd composer)
Type php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
We are going to create a composer batch file so that we can call composer from any directory. Type echo @php "%~dp0composer.phar" %*>composer.bat
Add the Composer Path value to Windows (Using REE).
Click Save button.
Run a new Windows Command.
Type composer -V

4) Install Laravel

While in Windows Command, type composer global require "laravel/installer".
A folder named “laravel” has been created in C:\users\{your-username}\AppData\Roaming\Composer\vendor
By right, Laravel executable file is located in c:\users\{your-username}\AppDate\Roaming\Composer\vendor\bin\.
You can test this by going to the path and type laravel.
Copy this path value for the next step
Add Laravel Path value to Windows (Using REE)
Test again in a new Windows Command.

5) Remove Laravel

While in Windows Command, type composer global remove "laravel/installer"
Since you have removed laravel, don’t forget to delete the path value in Windows as well.
.

Sunday, February 7, 2016

Most popular PHP Frameworks 2015 [INFOGRAPHIC]


.
PHP is one of the most popular writing languages in today’s coding world. The reasons why, by latest statistics- it is preferred by 82% of the world’s web server software for its flexibility, database support, interactivity and abundance of Frameworks, that are easy to learn and can make the performance of your website lightning-fast. Thanks to their convenient file structure PHP frameworks give you the opportunity to organize your files and code and increase productivity.
Frameworks like Laravel, CodeIgniter, Symfony 2, CakePHP and Phalcon give you basic tools and functionality you can use, but at the same time allow for the freedom to select and modify them in a manner directly corresponding to your needs and goals.
Based on SitePoint’s “Best PHP Frameworks 2015 survey”, Google and Github trends, and our own research for what our clients are using and looking for. Here are the hottest PHP Frameworks today.
 Popular PHP Frameworks 2015 Infographic


.

Labels

apt-get (2) bash (4) Chrome (1) CMS (1) code-igniter (1) codenvy (1) composer (6) eclipse che (1) error (4) file-permission (1) firebase (2) Free PHP Hosting (11) FuelPHP (3) git (4) jwt (1) laravel (10) mysql (1) OpenShift (1) php (11) PHP Eclipse (9) PHP Joomla (2) PHP Laravel (4) PHP Yii (9) PHP-JBOSS (2) php-jwt (2) PHP-Wordpress (8) plain php (1) Postman (1) REST (2) sqlite (1) sudo (1) visual-studio (4) xampp (4)