Accessible and Lightweight PHP Application Framework
http://github.com/diegolamonica/ALPHA/
http://diegolamonica.info/cate...
Installation
Step1
Download latest version from:
http://github.com/diegolamonica/ALPHA
Installation
/ Root directory
alpha
core
var
www Web Server Document Root
Step2
The best framework installation should be ...
Common PHP page
Index.php
<?
echo('hello world!');
?>
Output:
Hello world!
PHP Interpreter
Alpha PHP page
Output:
Hello world!
PHP Interpreter
ALPHA FrameworkALPHA Framework
executes some tasks
and includes some
s...
ALPHA ClassFactory and singleton logic
Output:
<html>
<head><title>Hello world</title></head>
<body>
Hello world!
</body>
...
ALPHA execution order
http://example.com/page.php
.htaccess
Client side
Server side
app
/controller
/page.php
index.php
/a...
Accessible and Lightweight PHP Application Framework
http://github.com/diegolamonica/ALPHA/
http://diegolamonica.info/cate...
Upcoming SlideShare
Loading in …5
×

ALPHA Architectural Overview

714 views

Published on

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
714
On SlideShare
0
From Embeds
0
Number of Embeds
63
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ALPHA Architectural Overview

  1. 1. Accessible and Lightweight PHP Application Framework http://github.com/diegolamonica/ALPHA/ http://diegolamonica.info/categoria/alpha/ Architectural Overview
  2. 2. Installation Step1 Download latest version from: http://github.com/diegolamonica/ALPHA
  3. 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. 4. Common PHP page Index.php <? echo('hello world!'); ?> Output: Hello world! PHP Interpreter
  5. 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. 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. 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. 8. Accessible and Lightweight PHP Application Framework http://github.com/diegolamonica/ALPHA/ http://diegolamonica.info/categoria/alpha/

×