Skip to content

Commit

Permalink
Skytells Framework v3.2
Browse files Browse the repository at this point in the history
The Official Release for Skytells Framework v3.2.
  • Loading branch information
Skytells, Inc committed Dec 25, 2017
1 parent d8d01b5 commit a066432
Show file tree
Hide file tree
Showing 307 changed files with 378 additions and 1,012 deletions.
32 changes: 31 additions & 1 deletion Application/Misc/Config/Autoload.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
<?
/*
| -------------------------------------------------------------------
| CUSTOMIZED AUTOLOAD
| AUTOLOAD Settings
| -------------------------------------------------------------------
| BY DEFAULT; Skytells Framework doesn't load the controllers, models,
| db seeds ..etc all at once for performance optimization.
| You can configure there settings to allow the framework to load
| what you want automatically
*/
// Turn this to true to enable the features below.
$ALCONF['Autoload'] = false;

// Turn this to true to automatically load all of your controllers.
$ALCONF['Controllers'] = false;

// Turn this to true to automatically load all of your controllers Alliances.
$ALCONF['Alliances'] = false;

// Turn this to true to automatically load all of your Models.
$ALCONF['Models'] = false;

// Turn this to true to automatically load all of your Models Eloquents.
$ALCONF['Eloquents'] = false;

// Turn this to true to automatically load all of your Models Migrations.
$ALCONF['Migrations'] = false;




/*
| -------------------------------------------------------------------
| EXTRA Autoload
| -------------------------------------------------------------------
| BY DEFAULT; SKYTELLS FRAMEWORK LOADS ITS LIBRARIES, FUNCTIONS ..ETC
|
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion Application/Misc/Phrases/ar_EG.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Application/Misc/Phrases/en_US.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Application/Misc/Phrases/fr_FR.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
6 changes: 3 additions & 3 deletions Application/Misc/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand All @@ -21,11 +21,11 @@
// WHERE SKYTELLS FRAMEWORK IS INSTAALLED? IF YOU'RE RUNNING ON THE ROOT
// FOLDER OR THE MAIN (WWW), PLEASE LEAVE IT EMPTY, OTHERWISE,
// PLEASE WRITE THE NAME OF THE DIRECTORY YOU INSTALLED SKYTELLS FW ON IT.
$Settings["ROOT_PATH"] = 'Framework';
$Settings["ROOT_PATH"] = '';

// PLEASE WRITE THE BASE URL WITHOUT (HTTP, HTTPS OR WWW) WITHOUT END-SLASHES
// EXAMPLE: Skytells.org/Framework or Skytells.org
$Settings["SITEBASE"] = 'localhost/Framework';
$Settings["SITEBASE"] = 'localhost';


// TURN IT TO (TRUE) TO FORCE USING SECURE PROTOCOL (HTTPS)
Expand Down
Empty file added Application/Misc/index.html
Empty file.
2 changes: 1 addition & 1 deletion Application/Resources/Controllers/Alliances/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
8 changes: 7 additions & 1 deletion Application/Resources/Controllers/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down Expand Up @@ -39,6 +39,7 @@ public function __construct($Ref = 'Core', $IsAlliance = false) {
* This function cannot be deleted.
* This function is responsible for rendering the view, Each controller must
* have this public function.
* @route /index
*/
public function index($args = '') {
// Access this function from ( http://www.domain.com/{Framework_FOLDER}/class:{Home}/func:{index}/ )
Expand All @@ -54,6 +55,11 @@ public function index($args = '') {
View::render('index.php', array("foo"=>'bar'));
}

/**
* for fast routing creation, use (@route {URI_PATH})
* @route /Hello
* @arguments ['arg1' => 'test']
*/
public function Hello() {
// This function created for demo only.
// Did you know that you can extend you controller with other child controllers?
Expand Down
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion Application/Resources/Models/Eloquents/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion Application/Resources/Models/HomeModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
6 changes: 3 additions & 3 deletions Application/Resources/Models/Migrations/CreateUsersTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand All @@ -22,7 +22,7 @@
*/
public static function run()
{
Capsule::schema()->create('users2', function (Blueprint $table) {
Capsule::schema()->create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email');
Expand All @@ -36,6 +36,6 @@ public static function run()
* @return void
*/
public static function drop() {
Capsule::schema()->drop('users2');
Capsule::schema()->drop('users');
}
}
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added Application/Storage/index.html
Empty file.
4 changes: 2 additions & 2 deletions Core/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
* @see The Framework's changelog to be always up to date.
*/

const FRAMEWORK_VERSION = '3.1';
const FRAMEWORK_VERSION = '3.2';
define(ENVCORE, BASEPATH.$ENVIRONMENT_CONFIG['ENVIRONMENT_PATH'].'/');
define(ENV_DIR, BASEPATH.$ENVIRONMENT_CONFIG['ENVIRONMENT_PATH'].'/');
define(APPBASE, BASEPATH.$ENVIRONMENT_CONFIG['APPLICATION_PATH'].'/');
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Bases/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Bases/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Bases/Interfaces/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Bases/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Bases/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file added Core/Ecosystem/Bases/index.html
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Drivers/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Drivers/Database/mysqli/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
Empty file.
6 changes: 5 additions & 1 deletion Core/Ecosystem/Functions/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down Expand Up @@ -89,6 +89,10 @@ function flush_cache() {
@mkdir(APP_STORAGE_DIR.'Cache/FileCache/');
@mkdir(APP_STORAGE_DIR.'Cache/Views/');
@mkdir(APP_STORAGE_DIR.'Cache/Sessions/');
@file_put_contents(APP_STORAGE_DIR.'Cache/index.html', '');
@file_put_contents(APP_STORAGE_DIR.'Cache/FileCache/index.html', '');
@file_put_contents(APP_STORAGE_DIR.'Cache/Views/index.html', '');
@file_put_contents(APP_STORAGE_DIR.'Cache/Sessions/index.html', '');
}

function deleteDirectory($dir) {
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Functions/Typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Functions/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Handlers/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Helpers/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Helpers/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
Empty file added Core/Ecosystem/Hooks/index.html
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Libraries/CSRFProtection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Modules/Firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion Core/Ecosystem/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
2 changes: 1 addition & 1 deletion Core/Ecosystem/Runtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
Empty file added Core/Ecosystem/index.html
Empty file.
2 changes: 1 addition & 1 deletion Core/Global.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down
4 changes: 3 additions & 1 deletion Core/Kernel/Boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Skytells PHP Framework --------------------------------------------------*
* @category Web Development ( Programming )
* @package Skytells PHP Framework
* @version 3.1
* @version 3.2
* @copyright 2007-2018 Skytells, Inc. All rights reserved.
* @license MIT | https://www.skytells.net/us/terms .
* @author Dr. Hazem Ali ( fb.com/Haz4m )
Expand Down Expand Up @@ -124,6 +124,8 @@ private function BootORM() {
return true;
}



public static function Controller($Controller, $method = false, $args = false) {
$Controller = str_replace('.php', '', $Controller);
$Name = $Controller;
Expand Down
Empty file.
Loading

0 comments on commit a066432

Please sign in to comment.