Laravel - for a start

Slides at fstm.kuis.edu.my/blog/laravel


TMMT6053 Advance Web Development - download proforma


Advantages of PHP Framework

There have been multiple advantages of PHP framework, while developing a website with a PHP framework. Utilizing the PHP framework can encourage website developers to show their best efforts.
  1. PHP framework inbuilt with robust functions: This framework is built with an excellent set of functions; you can abridge tough tasks and get quick results from PHP coding. PHP framework is freeware with various functions; utilizing these functions you can simplify the code in PHP.
  2. Database is a vital point: Database is the crucial factor for each project. It is the central point, where the entire data of the project are saved and called for, when required. MySQL is utilized for the database requirements for PHP.
  3. Use wire-frame before coding: It is always beneficial to use wire frame before you start coding in PHP. The practice of using wire-frame, boost your web development projects effectively. Make sure the wire-frame club and all its elements are integrated perfectly. 
  4. MVC – The Model-View-Controller architectural pattern helps you tier your code for easier maintenance. By keeping the data-manipulating logic separate from the bits that handle the display, you make it much easier to change either the template or the underlying code without touching the other.
  5. Bundled classes – A framework includes classes and helper functions for common tasks, such as database access, pagination, and form handling. Not to mention smaller things, like truncating text to a specific word/character count.
  6. Rapid development – Frameworks help you create a small to medium-sized application much quicker than if you wrote everything from scratch. If you’re in a hurry, using a framework will help you finish things before you reach that looming deadline.

MVC in Laravel 


LARAGON - compiled tools
(Laragon official download/docs site)

What is Laragon?
Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.

Why Laragon?
Laragon is great for building and managing modern web applications. It is focused on performance - designed around stability, simplicity, flexibility and freedom.

Laragon improves web development. Developers all over the world are using Laragon to make apps quickly and easily. It is used by thousands of developers with loves. You can check out the Testimonials to see how users think of Laragon and it’s features page for more details.



INSTALLING TOOLS - manual
NodeJS = https://nodejs.org
GIT - https://git-scm.com/
Composer https://getcomposer.org/download/ PHP package manager
Text Editor/ PHP storm

CHECK YOUR TOOLS’ VERSION
In your command prompt (cmd) – run as administrator
composer –v       (open source package manager)  to run LARAVEL
git –v                 (versioning control)
npm –v
php –v               (>PHP v5.6)
Do make sure all tools are installed and ready.

DOWNLOAD LARAVEL module to composer
composer global require "laravel/installer"
Expect a long download project package for the first time.
Laravel Project Folder
laravel new hr         (download the Laravel project template)
cd hr
php artisan serve (to ON the project server)
(Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for use while developing your application)
GO to your browser and test http://127.0.0.1:8000/
LARAVEL DOCUMENTATIONS https://laravel.com/docs
Concept of MVC – model view controller
In web environment ----> Routing –> Controller –> View(Presentation) –> Model(DB)

CONTROLLER
To make Controller – its the logic/process. In cmd
php artisan make:controller PagesController

ROUTING
to Pages –> Home, About, Contact

DATABASE
Have your database ready
In .env  - edit database configuration settings.
database-env
PHP ARTISAN MIGRATE to dump the users login content
Migration HRdb
php artisan make:migration create_employees_table
create-db-error
MAKE MODEL
Best practice to have the same name as the table name. Table name plural, model name singular.
php artisan make:model Employee
php artisan make:model Department
php artisan make:model Job
SEEDER - to populate predefined data
php artisan make:seeder JobTableSeeder
php artisan db:seed –-class=JobTableSeeder


FORMS


Validation – custom REQUEST
C:\hr>php artisan make:request Employee\AddRequest




MANY TO MANY with bridge-table

php artisan make:migration create_employee_project_table








Cuma nak kongsi apa yang kami tahu. Supaya mudah nak kick off projek guna Laravel PHP framework. Belum terrorists lagi. Tapi katanya kalau kita kongsi, yang sikit akan jadi banyak. Pasal ilmu bukan fizikal sifatnya. Lagi banyak dikongsi lagi besar dia tumbuh. InsyaAllah 

Kursus khidmat komuniti FSTM Laravel. Jangka satu hari sahaja. Bersama trainer Khirulnizam Abd Rahman.

Tarikh: 27 Januari 2018 (9am - 5pm) (DIBATALKAN kerana kurang penyertaan)
Tempat : Makmal Komputer 5, Bangunan Teknologi Maklumat KUIS ( maps http://bit.ly/mapfstm )

Prasyarat: tahu HTML (Bootstrap) & PHP.
Perisian (sila install sendiri sebelum datang kursus): LARAGON, dicadangkan kod editor PHPStorm atau Eclipse for PHP.
.
YURAN
**RM??/day/person
Laptop & line Internet sendiri. Tiada makanan disediakan. Sijil tertakluk kepada permintaan.

Course Outline

Day 1
Laravel Project Structure
Login Module Example
+ Routing
+ Controller
+ Interface
+ Database 
+ Migration
+ Model
+ Example: Employee Search & Pagination
----

Kaedah Install Laragon (developing)


PHP Course Module




bit.ly/phpfstm
SQLdump download : mycompanyhr.sql
Slide: Discussion on BootStrap
Materials: Template with BootStrap Flat-UI <DOWNLOAD>

Part 1 – Client-side
HTML- HTML references
Basics of PHP

Part 2 – Database basics
  • Chapter 08:  (PDF) Tools for Web Application Development 
  • Chapter 09:  (PDF) Record Listing using SELECT
  • Chapter 10:  (PDF) Search Record using SELECT
  • Chapter 11:  (PDF) Inserting a New Record using INSERT

Part 3 – Intermediate DB – Developing System with Parameterized Security
  • Chapter 12:  (PDF) DELETE an Existing Record 
  • Chapter 13:  (PDF) UPDATE an Existing Record
  • Chapter 14:  (PDF) Logging in using Username and Password 
  • Chapter 15:  (PDF) Server-side Session  
  • Chapter 16:  (PDF) Securing the System’s Parameter using Session
  • Chapter 17:  (PDF) Responsive Web Design with Bootstrap 


Template sample sistem and the database: Download here;
http://blog.kerul.net/2015/08/template-for-php-database-system.html

PHP training

TRAINING on Web Database Development using PHP & MySQL

**Suggested content (any changes are most welcome)

1st Day
09.00-10.30 Introduction to Web Application Development
Installation

Break
11.00-12.30 Basic HTML and Forms

Break
2.00-5.00 Intro to PHP (Syntax, Variable, Array, Operators dan Query String )
2nd Day
09.00-10.30 Arithmetic Operators dan Boolean Expressions

Break
11.00-12.30 Control Structures in PHP (Selection and Repetition)

Break
2.00-5.00 SQL
3rd Day
09.00-10.30 Database Connection
Record listing

Break
11.00-12.30 Record Searching
Insert a new Record

Break
2.00-5.00 Update a Record
Delete a Record
4th Day
09.00-10.30 Implementing Login and Password

Break
11.00-12.30 Session Control

Break
2.00-5.00 Web Application Security Considerations

Contact:
Khirulnizam +60129034614 (khirulnizam@gmail.com)

KURSUS ICT Khidmat Komuniti FSTM

FSTM NAK OFFER TRAINING* IT PERCUMA Kami menawarkan Kursus ICT percuma kepada organisasi terpilih; NGO, sekolah, politeknik, kolej komuniti, dll.
Kursus-kursus yang ditawarkan (satu organisasi layak satu sahaja kursus); 📷 Pengaturcaraan Java 📷 Pengaturcaraan Visual 📷 Buat mobile apps - Android Studio 📷 Buat mobile apps tanpa programming 📷 Buat website Responsif Bootstrap 📷 Buat web database PHP + MySQL 📷 Buat sistem web guna Laravel 📷 Teknologi rangkaian 📷 Grafik editing 📷 Video Editing 📷 Video Montage 📷 Animasi 2D 📷 Penggunaan Media Sosial 📷 Penggunaan Microsoft Office (Word, Excel, Powerpoint) Boleh buat di tempat anda* atau di KUIS. *Sekiranya venue di luar Lembah Kelang mohon pihak tuan/puan sponsor pengangkutan dan penginapan. Berminat boleh PM kami di http://m.me/kuis.fstm http://Wasap.my/60129034614 Kami suka nak berkongsi kepada masyarakat sekitar melalui kursus Khidmat Komuniti. Antara institusi yang telah kami adakan kerjasama; Politeknik Dungun, Kolej Vokasional Sepang, TATIUC, Polimetro Kuantan, Institut Professional Baitulmal, City University KL, Politeknik Nilai, Sekolah Sultan Abdul Samad PJ, dll. Jadual program November & Disember 2017 Dalaman (KUIS) 1. 30 - 31 Okt 2017 Laravel open to Public (Khirul & SIGFSTM) ✅done 2. 1 Nov Kursus Promosi melalui FB - Khirul ✅done Kursus di Luar 1. Politeknik Perlis Android 13 -14 Nov 2017 (Khirul) 2. Kolej Vokasional Sepang 14 & 15 Nov 2017 (Muizz , Ashraf) 3. UiTM Tapah Perak Appsmoment December (Asyraf) 4. Institut Professional Baitulmal KL December (Muizz , Khirul) 5. UNITEN Android 18 Nov (Khirul) 6. SMK Puchong Php&Mysql Dec 2018 7. Politeknik Sabak Bernam Appsmoment Dec 2018 Kursus-kursus sebelum ini Kursus Buat Apps Tanpa Programming. 1. Politeknik Nilai +CWSB (6 Mac) ✔done 2. Politeknik Shah Alam 3. Poli Metro Kuantan +Asyraf+Cwsb (20 Apr) ✔done 4. SMK Abdul Samad PJ +FAA+SMS (26 April) ✔done Android Studio 1. Poli Dungun +KN+CWSB (27 Mac) ✔done 2. TATIUC +KN+CWSB (28 Mac) ✔done Berminat boleh PM kami di FB Messenger http://m.me/kuis.fstm WhatsApp http://Wasap.my/60129034614

Android Studio Training

Course Outline

Pre-requisite: Know Java OOProgramming
Make sure to install the latest Android Studio prior to attending this training (JDK1.8 is optional). 
Day 1
0830am - 0900am

Registration
0900am - 1030amIntro to Android Apps Development
- Dowload Slide Here
1030am - 1130amBeginning Android Project
- Module is here bit.ly/newandroidproject 
- Graphic resources download here.
1130am - 1230pmGUI Editor
- Spinner Module is Here
Better GUI Design
1230pm - 200pmLunch Break
2.00pm - 3.00pmSwipe ViewPager
 - Dowload Slide Here
3.00pm - 4.00pmMultiple Activities & Pass Arguments to Intent
4.00pm - 5.00pmGenerate Signed APK
Publishing App
- Slide Download Here
.
Day2
0900am - 1100am
SQLite
Offline Database
http://blog.kerul.net/2013/08/android-database-p1-intro-sqlite-db.html
- Slide download here
1100am - 1300pmGoogle Maps Activity + view bit.ly/kerulmaps

Closing


Reference/textbook
bit.ly/android7book


(installation will not be covered as it requires downloading big files for additional plugins, kindly install everything prior to attending the training.
The Android Studio installer is here.
This is the JDK1.8 download link
Universal ADB Android driver )


NEXT - 10th iteration Android Studio 2.3 Training 16 & 17 December 2017 .
  • Venue: Computer Lab 5, FSTM,KUIS ( maps http://bit.ly/mapfstm 
    ).
  • Time 0900am - 5pm
  • Open TO ALL
  • Fee: Community Service - pay what you can afford (meals & cert not provided)
  • Registration/Payment queries  Khairul 0129034614
Pre-requisite: Good if you know Java or any Programming language

Requirements:
  • BYOL – Bring your own Laptop with RAM capacity >4GB. Install JDK 1.8 & Android Studio http://developer.android.com/sdk/ 
  • Make sure to install JDK1.8 & latest Android Studio prior to attending this training.
  • Bring also a USB data cable and your Android device.

What is Android Studio?
Android Studio is the official integrated development environment (IDE) for Android platform development.

Based on JetBrains' IntelliJ IDEA software, Android Studio is designed specifically for Android development. It is available for download on Windows, Mac OS X and Linux, and replaced Eclipse Android Development Tools (ADT) as Google's primary IDE for native Android application development.

What will be covered in this training?
The participants will be guided to create an Android app project, and how to handle the project codes and resources. We will add basic GUIs such as textbox, label, button, image, menus, screens and activities.
The second day will be covering multiple screen interactions, local database, and maps. At the end of the training we will generate Android installer file (APK) and publish it to the Google Playstore.


Registration Form

Popular Posts