Posts

Showing posts from December, 2018

PHP frameworks in 2018 and Why i chose Laravel

PHP is the most popular server-side scripting language for developing Web applications or dynamic websites. PHP has great HTML and Database interactions. Compare to other languages, It is very simple to use. PHP has great frameworks for developing great and secure web applications. Here I am introducing some frameworks of PHP 1. Laravel: Laravel is the free open source PHP framework created by Taylor Otwell in 2011. This framework has many functions, the aim of which is to provide as fast development process as it is possible. Laravel offers the following key features – New directory structure – This new folder contains all language and template files. Route caching – Route caching feature speeds up the application route registration Authentication – Laravel 5 contains the ready to use inbuilt authentication system. Multiple file system – Laravel 5 provides the native support for multiple file system Unit testing is provided as an integral part of Laravel Template engi

Laravel artisan commands list

Image
Laravel has awesome set of artisan commands, probably the most often used are make:xxx – like make:model or make:migration etc. First, there is a command php artisan list which gives us all the commands, like this:   make:auth              Scaffold basic login and registration views and routes   make:command     Create a new Artisan command   make:controller     Create a new controller class   make:event            Create a new event class   make:job                Create a new job class   make:listener         Create a new event listener class   make:mail              Create a new email class   make:middleware  Create a new middleware class   make:migration     Create a new migration file   make:model           Create a new Eloquent model class   make:notification  Create a new notification class   make:policy           Create a new policy class   make:provider       Create a new service provider class   make:request         Create a new form request class   make

Install and configure Laravel with MongoDB on Windows

Image
Install MongoDB driver for PHP: Check your PHP version using phpinfo(). Download the zip file of dll which is suitable for your system configuration. Extract the archive and put php_mongodb.dll in your PHP extension directory. Add the following line to your php.ini file: extension=php_mongodb.dll Note: On earlier versions, the dll file was called php_mongo.dll, but on newer versions, it is called php_mongodb.dll Restart Apache to load the module. Check the output of phpinfo(). If the driver is installed correctly you should see a MongoDB section in your phpinfo() output as shown in the figure below. MongoDB Driver In case you don't see the section,cross-check the PHP version and architecture again. Install Laravel Package for MongoDB Install the latest stable version of the jenssegers/laravel-mongodb package, compatible with your version of Laravel. To check your Laravel version, run the command php artisan --version inside your Laravel Application folder. In