Laravel Download and Installation - laravel

I'm a webdeveloper and I'm starting a huge project requested by a company.
I'm trying to figure out if is best to use a PHP framework or not, and in case, which one.
I know Codeigniter, but I wanted to look around to see what's the best framework at the moment. I found out Laravel is trending at the top so I wanted to try it out.
Being used to Codeigniter I usually download the zip file with all the phps inside and start working. I'm trying to do the same with Laravel but I saw you are to download and use composer to install it.
I'm not really used to the Terminal and I wanted to ask if that's the only way of installing it or if there is a downloadable version as in Codeigniter, CakePHP, etc...

You can always download the ZIPped code directly from project's GitHub site. You can find the base application here: https://github.com/laravel/laravel - you'll find a link at the bottom of the right column. This code is what composer downloads when you use that to setup the application.
If you want to use Laravel you will have to use Composer as this is what the application uses to manage its dependencies. It's not hard, as you'll only need to run a few commands.
You can learn more about how to install and use composer in the docs: https://getcomposer.org/download/

Related

Laravel QR code scanner

I'm interested in adding QR Scanner to my Laravel project, I found one that suits me it's called gruhn/vue-qrcode-reader there is also a written tutorial how to install it, but I just don't know where to add those codes or files. I've installed everything the problem is that I just don't know what to edit and how.
This is a late response: but for anyone who comes across this like me...
gruhn/vue-qrcode-reader was created using VueJS a Javascript Framework. Since you use Laravel: VueJS already comes preinstalled with Laravel depending on the version you use. You should also have Npm in order to use the npm run watch (the watcher).
Follow the installation steps found at their GitHub and then Simply create a new VueJS component and paste the code found in GitHub: gruhn/vue-qrcode-reader: while having a little understanding you can easily integrate this with Laravel by mounting the component where you wish to have the scanner in your project and viola it should work as advertised.
I hope this helps a bit.
You should try this one laravel package:-
https://github.com/werneckbh/laravel-qr-code
It would be best for you, because there are only few steps and that are too easy.

Laravel or OctoberCMS Phoca Download Like Kind of Library

I need a Laravel or OctoberCMS files and folders view on website front-end. I can use Phoca Download in Joomla to allow users to navigate folders and download files in the folders. Which Laravel or OctoberCMS library I can use to achieve almost similar behavior?
In case of Laravel:
First of all Laravel is not a CMS, its actually a framework to develop web applications rapidly. You can get file manager packages for laravel, there are lots of packages/libraries and tools for Laravel but gain you have to manually install and manage those packages in your intended way.
Laravel File Management - Usefull Links:
1) laravel-filemanager
2) laravel-elfinder
3) laravel-medialibrary
You might like Laravel File Manager
There is huge difference between framework and CMSs. CMS does have easy to install modules/extensions for a particular problem and frameworks too. But most of the time you have to implement best library or package for your framework on your own and use available functionalities on your own.
Laravel has its own native file management system included with Laravel framework:
Laravel File System
Random Link: Use Laravel-filemanager without editor
You can develop your own plugins like Phoca on Laravel Framework or you can simply utilize one of the available library to update and configure file system as Phoca
We have build a Download Manager for October
http://octobercms.com/plugin/inetis-downloadmanager
you will find a demo here : https://demo.inetis.ch/plugins/download-manager
It could fit your needs

Composer - how to autoload only needed modules

While using composer autoload function, I faced annoying case.
For example for following situation:
I have 10 modules installed so far, and in the specific PHP, I just
want to load only needed module with it's dependencies.
What can I do?
If I do
require "composer/vendor/autoload.php";
it will load all modules' name space, and I DO NOT WANT THAT!
So let me explain exact sample case.
I have a Facebook SDK v4.0, which I manually downloaded last time. And there is code snap in, let say, a.php which is using this, by following code:
require 'facebook_v4/autoload.php';
use Facebook\FacebookRedirectLoginHelper;
use Facebook\FacebookSession;
use Facebook\FacebookRequest;
use Facebook\GraphUser;
use Facebook\FacebookRequestException;
Now, I have downloaded Facebook SDK v5 just by composer, with running following command:
composer require facebook/graph-sdk
And because I need to use other modules downloaded via composer, I added following line at very fist line of the a.php file:
require "composer/vendor/autoload.php";
Now it turns out it totally uses Facebook SDK v5 instead of v4, that 's why I just want to know the way to load ONLY needed modules by composer.
Please help me to figure out this case.
Thank you.

Installing yii2 framework using Xampp - do i need a github account?

A couple of years of go i used to program using PHP, but without frameworks. With these recent developments I've decided to get in the to the game and try using one. I've decided to use yii 2.0 .
I've read some of the documentation and in my opinion there is some lack of information (at least for who is getting started), so i´m having some problems installing yii 2.0 on my computer using Xampp. The PHP version is 5.5.9.
From what i could understand i downloaded the yii 2.0 framework, extracted the content and copied to c:\xampp\htdocs\yii2
I've already installed the composer, so the the next thing to do i think would be, using the cmd, do these two lines of code:
composer global require "fxp/composer-asset-plugin:1.0.0"
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic
The problem is when i do the last one it asks for username and password i think of GitHub. Can you tell me if I'm obligated to have an account on github to install yii 2.0 framework.
Is there a way to get around this?
Yii2 is integrated with composer asset plugin. It allows download Bower and NodeJs packages through Composer.
Github account is required to overcome API rate limit. Here is the explanation from the main contributor of this extension:
It's a rate limit of Github API. In anonymous access, Github at a
greatly reduced limit (60/hr it seems to me), and we must be logged
with a token for have a much higher limit.
See composer/composer#1569 and composer/composer#1877
The problem also exists using Nodejs and Bower.
You can find it in this issue, it's 9th from the top.
I think workaround with installing Bower and the same packages is not an option, because initially and with each framework update you must manually synchronize packages with their versions and override some configuration. Also some extensions require javascript plugins and using composer asset plugin too. So you have to do the same with each of them too. It simply not worth it. And having account on Github for web developer nowadays is kind of de facto standard.
Just create Github account if you are still don't have one and everything should be fine. Earlier updating process was pretty slow, now it's faster and I found this approach pretty interesting and flexible.

Where is Laravel's core?

I understand this is Laravel's core, but when you want to create a Laravel application you need download this, create a project via composer, or whatever.
This question might be stupid, but, where is the actual core in a Laravel project? Meaning that I can't browse through the application's folder to find it, whereas I am pretty sure I could do it in other frameworks such as CodeIgniter, core folder maybe?.
So where is the kernel? How is all linked so that the application works?
When you composer install, it downloads it to this directory:
vendor/laravel/framework/src/Illuminate

Resources