In this tutorial, we will go through the setup process and the main development tasks to create a Codeigniter 4 application from scratch. CodeIgniter is a PHP application development framework featuring a small footprint and great documentation. However, it’s simple and flexible enough to let you choose your way to work. It provides simple configuration and helpful tools for common development tasks.
Continue reading “Create a Codeigniter 4 Application”Tag: PHP
Building a Laravel 8 Application: Routes and Views
In this post, we start building a Laravel 8 Application just created. You can follow the tutorial Create a Laravel 8 application from scratch to install and create your first project and the initial application structure. However, this can be applied to a project created using the Laravel Sail tools or Composer.
The main areas to work at the start of the project are:
- Understanding the project directory structure
- Navigation paths, adding/modifying routes
- Application screens, creating/modifying views
Create a Laravel 8 application from scratch
In this tutorial, we will explore how to create a Laravel 8 application from scratch and then prepare your application for development. However, the overall process changed from the previous version (Laravel 7), improving the developer experience with a fresh set of tools. Now, the new Laravel 8 provides Sail, a built-in solution for running your Laravel project using Docker.
Continue reading “Create a Laravel 8 application from scratch”Configure PHP and Laravel Framework
In this guide we configure PHP and Laravel Framework to build web applications and REST APIs. As a result, you can prepare the environment to start the development process in a Laravel Project.
Note: for the newest Laravel 8, you can follow the instructions in this new post: Create a Laravel 8 application from scratch
After this process, you will get installed the following components:
- PHP (PHP 7 or newer)
- MySQL/MariaDB server engine and client
- PEAR (PHP repository of common reusable components)
- Composer (PHP package and dependency manager)
- XDebug (PHP debugger used by unit tests tools like PHPUnit)
- Laravel command line tools (
laravel
andphp artisan
)
Continue reading “Configure PHP and Laravel Framework”
Deploy your Applications in Heroku
In this post we will learn how to deploy your web applications in Heroku, for free. Heroku is a Cloud Platform-as-a-Service (PAAS). This company provides the base platform server, network resources and endpoints to publish your applications. However, you need to provide the application code and the rest is created automatically for you.
Sometimes, we need to test or showcase a quick prototype of a cloud based web application, REST API backend , or a static web application client. Heroku is a good solution to quickly host application at no cost. For example, they support the most popular languages and frameworks like Node.js, Ruby, Python, Java, PHP, Go, Scala, Clojure.
The general steps to deploy your application are:
- Register in the Heroku platform
- Install the Heroku CLI
- Login locally to Heroku
- Create your application and store it in a Git repository
- Configure your application for Heroku deployment.
- Register your application in Heroku
- Associate your git repository with your Heroku app
- Push your application to the Heroku application master repository
- Access your application from
https://your-app.herokuapp.com
Continue reading “Deploy your Applications in Heroku”
How to change the Laravel public folder path
In this post, we will show how to change the Laravel public
folder path (the default path for publishing public content, including the index). Actually, there is no configuration value to change this, but you can change some special files to change it to another location, and your application will continue working as expected.
Note: For Laravel 8, you can check this new post: Create a Laravel 8 application from scratch
Continue reading “How to change the Laravel public folder path”
Installation of PHP in Windows, MacOS and Linux
There are several steps for the installation of PHP in Windows MacOS and Linux. In this article we cover the most common installation procedure for each operating system. As a result, you can install and configure other tools and frameworks like Laravel.
Continue reading “Installation of PHP in Windows, MacOS and Linux”