Showing posts with the label php

CakePHP - Environment Setup - Ubuntu

Hello everyone, In this tutorial, we will set up a CakePHP development environment in Ubuntu. We’ll install Apache2 HTTP, MariaDB, PHP 7.2, Composer and CakePHP in order to provide you with the tools necessary for developing web applications with  CakePHP . Step 1 — Install Apache2 HTTP Apache is available within Ubuntu’s default software repositories, making it possible to install it using conventional package management tools.  Let’s begin by updating the local package index to reflect the latest upstream changes: $ sudo apt-get update && sudo apt-get -y upgrade Then, install the apache2 package: $ sudo apt install apache2 After installing Apache2, the commands below can be used to stop, start and enable Apache2 service to always start up with the server boots. $ sudo systemctl stop apache2.service $ sudo systemctl start apache2.service $ sudo systemctl enable apache2.service Confirm whether apache is successfully installed on your machine. http://loca

PHP + Angular + MySQL CRUD Example

In this section, we  will learn how to develop a full-stack web application that is a basic User Management Application using PHP, Angular 10 and MySQL. GitHub repository link is provided at the end of this tutorial. You can download the source code. After completing this tutorial what we will build? We will build a full-stack web application that is a basic User Management Application with CRUD features: •  Create User  • List User  • Update User  • Delete User User Interface -Add User: -Retrieve all Users: -Find User by ID: -Update User: We divided this tutorial into two parts. PART 1 - Rest APIs Development using PHP and MySQL  PART 2 - UI development using Angular PART 1 - Rest APIs Development using PHP Final Project Directory Setting Up Database Create Database " user_db " and create table " user ". -- -- Database: `user_db` -- -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id`