UDG - PHP osnove
-
Upload
tarik-zaimovi -
Category
Documents
-
view
32 -
download
4
Transcript of UDG - PHP osnove
![Page 1: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/1.jpg)
UVOD U PHP
UDGMart 2015
![Page 2: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/2.jpg)
2
01 PHP i ostali programski jezici
03 PHP CMS & Frameworks
04 Best practice/ Dobra praksa
05 Projekat
| Predavači i teme
06 Literatura
Danilo Purić Tehnicki direktor
02 Zasto PHP I MySQL
Tarik ZaimovićBusiness development
![Page 3: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/3.jpg)
3| 01 PHP i ostali programski jeziciTIOBE Programming community index
• Broj kvalifikovanih inzenjera u svijetu• Broj kurseva i nezavisnih distributera• Popularnosti na pretrazivacima (Google, Bingm, Yahoo, Amazon, Wikipedia…)
• Ne postoji najbolji programski jezik• Zasto sluzi TIOBE index
Pomoc prilikom odabira softvera
![Page 4: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/4.jpg)
4| 01 PHP i ostali programski jeziciKoriscenje programskih jezika I njihova primjena
• Web• Java• Python• C#• PHP• Java Script• Ruby• …
• Desktop• Java• C• C++• Python• C#• ….
• Mobile• Java• C#• Objective C• Python• ….
![Page 5: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/5.jpg)
5| 02 Zašto PHP & MySQLDobre i lose strane programskog jezika PHP
• DOBRE STRANE• Brza i laka instalacija• Brzo ucenje• Brzo izvrsavanje• Cjenovna pristupacnost alata, licenci,
izradjenog softwera, hostinga• Fleksibilnost odabira baza podataka• Veliki broj PHP programera• Velika zajednica• Dobra dokumentacija• Veliki broj open source platformi i
frameworka
• LOSE STRANE• Podrzava proceduralani kod• Nema jasnih tipova podataka• Nema podrsku integrisanih biblioteka • Losa koding praksa kod velikog broja PHP
developera• Kvari programerske navike• Mnostvo loseg koda• Losa sigurnost aplikacija• Nije dobar za velike aplikacije i informacione
sisteme
![Page 6: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/6.jpg)
6| 03 PHP CMS AND FRAMEWORS
![Page 7: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/7.jpg)
7| 03 PHP CMS AND FRAMEWORS
www.drupal.org
1,164,850 people in 229 countries* speaking 180 languages power Drupal.
![Page 8: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/8.jpg)
8| 03 PHP CMS AND FRAMEWORS
www.joomla.org
The Platform Millions of Websites Are Built On
![Page 9: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/9.jpg)
9| 03 PHP CMS AND FRAMEWORS
www.wordpress.com
WordPress powers 23% of the internet
![Page 10: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/10.jpg)
10| 03 PHP CMS AND FRAMEWORS
![Page 11: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/11.jpg)
11| 03 PHP CMS AND FRAMEWORS
WordPress – Best pick for beginners, works well for small to medium sized websites & blogs.
Joomla – Good for E-commerce type of sites, but require at least some level of technical coding.
Drupal – The most difficult one, but also the most powerful CMS.
Magento is the eCommerce software and platform trusted by the world's leading brands.
![Page 12: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/12.jpg)
12| 03 PHP CMS AND FRAMEWORS
![Page 13: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/13.jpg)
13| 03 PHP CMS AND FRAMEWORS
What exactly is a PHP framework?
A PHP framework gives you a well defined coding template where you need to place certain types of code.
Built in Database support
MODEL –VIEW – CONTROLER (MVC)
PHP frameworks can be used as a rapid application development method, enabling quick prototypes to be developed.
Security
Job Opportunities
Suitable for Teamwork
Libraries and Helpers
![Page 14: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/14.jpg)
14| 03 PHP CMS AND FRAMEWORS
1. Symfony22. Laravel3. Phalcon4. CodeIgniter5. Zend Framework 26. Yii
![Page 15: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/15.jpg)
15| 03 PHP CMS AND FRAMEWORS
![Page 16: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/16.jpg)
16| 03 PHP CMS AND FRAMEWORS
Symfony – Build bigger enterprise applications the right way.
Laravel – Good small and midsize applications. Uses symphony in CORE.
Phalcon – Phalcon is the fastest framework on the list. Built on C, but offered as PHP extension.
CodeIgniter Best pick for beginners – built for developers who need a simple and elegant toolkit
![Page 17: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/17.jpg)
17
PHP EnviromentXAMPPZend ServerVagrant
Integrated development environmentNotepad ++ Dreamviewer Zend Studio PHP Storm
Code PracticeOOP, MVC, Coding Standards, DBAL
S
IDE
C
DebuggingManual debuging
Xdebug
USE FrameworksSymfony, Laravel, CodeIgniter
D
F
| 04 BEST PRACTICE
![Page 18: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/18.jpg)
18| 04 BEST PRACTICE – PHP ENVIROMENT
XAMPP is the most popular PHP development environmentXAMPP is a completely free, easy to install Apache distribution containing MySQL, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.
The Complete PHP Application Platform
Zend Server is the #1 professional PHP stack. It is the most complete PHP distribution value-add features designed to optimize productivity, performance, scalability and reliability.
Development environments made easy.
Create and configure lightweight, reproducible, and portable development environments.
![Page 19: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/19.jpg)
19| 04 BEST PRACTICE - IDE
![Page 20: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/20.jpg)
20| 04 BEST PRACTICE – CODE PRACTICE
![Page 21: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/21.jpg)
21| 04 BEST PRACTICE – CODE PRACTICEPHP kod ne smije imati html u sebi. Mora se koristi neyki Template engine
1. Smarty2. Twig
Za konekciju na bazu koristiti DBAL3. Doctrine 4. PDO
Use Objects (or OOP)
Coding Standards Documents
Befriend the PHP Manual
Turn on Error Reporting
![Page 22: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/22.jpg)
22| 05 Projekat - smjerniceReplika komentar sistema www.blic.rs - http://goo.gl/T4fM4L
• Obavezno koriscenje MVC paterna• Neophodno koriscenje nekog od popularnih frameworka• Koristiti servise za komunikaciju sa AJAX-om• Kod mora biti napisan iskljucivo OOP• Adrministratorski panel
Pozeljna implementacija Kendo UI kao grid za prikaz komentara u admin djelu
• Implementacija binarnog stabla umjesto rekruzivnog pristupa • Koriscenje database DBL (Database Abstraction Layer)• Koriscenje GIT alata i postavljanje na google code• Imlementacija mini sistema za rad sa sadrzajem - Mini CMS
![Page 24: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/24.jpg)
24| Pitanja
PITANJA?
![Page 25: UDG - PHP osnove](https://reader035.fdocument.pub/reader035/viewer/2022081420/55d23877bb61eb0f7f8b4683/html5/thumbnails/25.jpg)
Hvala na pažnji