Your SlideShare is downloading. ×
0
ALPHA Architectural Overview
ALPHA Architectural Overview
ALPHA Architectural Overview
ALPHA Architectural Overview
ALPHA Architectural Overview
ALPHA Architectural Overview
ALPHA Architectural Overview
ALPHA Architectural Overview
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

ALPHA Architectural Overview

488

Published on

This short slideshow is an overview about the architechture behind ALPHA Framework.

This short slideshow is an overview about the architechture behind ALPHA Framework.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
488
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Accessible and Lightweight PHP Application Framework http://github.com/diegolamonica/ALPHA/ http://diegolamonica.info/categoria/alpha/ Architectural Overview
  • 2. Installation Step1 Download latest version from: http://github.com/diegolamonica/ALPHA
  • 3. Installation / Root directory alpha core var www Web Server Document Root Step2 The best framework installation should be done outside the web server document root: ● Improve security issues: anyone can reach the cores scripts ● Clean directory organization: leave the framework and the applications separatevar Step1 Download latest version from: http://github.com/diegolamonica/ALPHA
  • 4. Common PHP page Index.php <? echo('hello world!'); ?> Output: Hello world! PHP Interpreter
  • 5. Alpha PHP page Output: Hello world! PHP Interpreter ALPHA FrameworkALPHA Framework executes some tasks and includes some stuffs (classes and helpers) then embed the page index.php in the application framework environment. Index.php <? echo('hello world!'); ?>
  • 6. ALPHA ClassFactory and singleton logic Output: <html> <head><title>Hello world</title></head> <body> Hello world! </body> Output: <html> <head><title>Hello world</title></head> <body> Hello world! </body> PHP Interpreter ALPHA Framework Index.php <? $m = ClassFactory::get('Model'); $m->setView('myView'); $m->process(); $m->render(); ?> URL Rewriting Debug Databinding AJAX Model Events File manager Authentication Data Connector Singleton myView.htm <html> <head><title>Hello world</title></head> <body> Hello world! </body> myView.htm <html> <head><title>Hello world</title></head> <body> Hello world! </body>
  • 7. ALPHA execution order http://example.com/page.php .htaccess Client side Server side app /controller /page.php index.php /alpha /core /index.php Output: <html> <head><title>Hello world</title></head> <body> Hello world! </body> Output: <html> <head><title>Hello world</title></head> <body> Hello world! </body>
  • 8. Accessible and Lightweight PHP Application Framework http://github.com/diegolamonica/ALPHA/ http://diegolamonica.info/categoria/alpha/

×