Skip to content

Commit

Permalink
Merge pull request #88 from TwistPHP/development
Browse files Browse the repository at this point in the history
Release of v3.0.4
  • Loading branch information
ahosgood committed Apr 6, 2016
2 parents 219427c + 66c02d1 commit ec311cc
Show file tree
Hide file tree
Showing 127 changed files with 3,162 additions and 1,520 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ php:
- 5.6
env COVERALLS=ON
- 7.0
- hhvm
# - hhvm
- nightly

services:
Expand Down
772 changes: 613 additions & 159 deletions LICENCE.txt

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [TwistPHP](https://twistphp.com/) ![TwistPHP logo](http://static.twistphp.com/logo/square/32.png)

[![Master build status](https://img.shields.io/travis/TwistPHP/TwistPHP/master.svg?label=master%20build)](https://travis-ci.org/TwistPHP/TwistPHP) [![Development build status](https://img.shields.io/travis/TwistPHP/TwistPHP/development.svg?label=development%20build)](https://travis-ci.org/TwistPHP/TwistPHP) [![Coveralls](https://img.shields.io/coveralls/TwistPHP/TwistPHP.svg)](https://coveralls.io/github/TwistPHP/TwistPHP) [![Join the chat at https://gitter.im/TwistPHP/TwistPHP](https://img.shields.io/gitter/room/TwistPHP/TwistPHP.svg)](https://gitter.im/TwistPHP/TwistPHP) ![Licence](https://img.shields.io/badge/Licence-GPLv3-brightgreen.svg)
[![GitHub release](https://img.shields.io/github/release/TwistPHP/TwistPHP.svg)](https://github.com/TwistPHP/TwistPHP/releases?label=latest) [![GitHub license](https://img.shields.io/github/license/TwistPHP/TwistPHP.svg)](www.gnu.org/licenses/gpl-3.0.en.html) [![Development build status](https://img.shields.io/travis/TwistPHP/TwistPHP/development.svg?label=development)](https://travis-ci.org/TwistPHP/TwistPHP) [![Coveralls](https://img.shields.io/coveralls/TwistPHP/TwistPHP.svg)](https://coveralls.io/github/TwistPHP/TwistPHP) [![Join the chat at https://gitter.im/TwistPHP/TwistPHP](https://img.shields.io/gitter/room/TwistPHP/TwistPHP.svg)](https://gitter.im/TwistPHP/TwistPHP)

## A fresh, new open source PHP MVC micro framework

Expand Down Expand Up @@ -30,3 +30,9 @@ Please use the [GitHub's issue tracker](https://github.com/TwistPHP/TwistPHP/iss
### Branches

For branching, please use the 'development' branch. All updates apart from hotfixes will get pushed from the [development branch](https://github.com/TwistPHP/TwistPHP/tree/development) to the master.

## Licence

As of v3.0.4, TwistPHP is licenced with [GNU GPLv3](http://www.gnu.org/licenses/gpl-3.0.en.html).

Up to and including v3.0.3, the [GNU LGPLv3](http://www.gnu.org/licenses/lgpl-3.0.en.html) was used.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "TwistPHP is an open source PHP MVC framework built from the ground up",
"keywords": ["framework","twistphp","MVC","PHP"],
"homepage": "https://twistphp.com",
"license": "LGPL",
"license": "GPL",
"support": {
"issues": "https://github.com/TwistPHP/TwistPHP/issues",
"source": "https://github.com/TwistPHP/TwistPHP"
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Classes/Autoload.class.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Classes;
Expand Down
27 changes: 17 additions & 10 deletions dist/twist/Classes/Error.class.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Classes;
Expand Down Expand Up @@ -296,19 +297,21 @@ public static function handle404(){
* Output HTTP error response code, This function has been deprecated in favour of the response() method
* @param int $intErrorCode
* @param null|string $strCustomDescription
* @param boolean $blExitOnComplete Set false will output error and continue (Used for testing)
* @alias response
* @deprecated
*/
public static function errorPage($intErrorCode,$strCustomDescription = null){
self::response($intErrorCode,$strCustomDescription);
public static function errorPage($intErrorCode,$strCustomDescription = null,$blExitOnComplete = true){
self::response($intErrorCode,$strCustomDescription,$blExitOnComplete);
}

/**
* Output HTTP error response code and a custom message if required to the user, this function handles all HTTP response codes.
* @param int $intErrorCode
* @param null|string $strCustomDescription
* @param boolean $blExitOnComplete Set false will output page and continue (Used for testing)
*/
public static function response($intErrorCode,$strCustomDescription = null){
public static function response($intErrorCode,$strCustomDescription = null,$blExitOnComplete = true){

$strReturn = 'Unknown';
$strDescription = '';
Expand Down Expand Up @@ -633,7 +636,11 @@ public static function response($intErrorCode,$strCustomDescription = null){
'domain' => \Twist::framework() -> setting('SITE_HOST')
);

die(\Twist::View('Exception')->build(sprintf("%s/system/error-page.tpl",TWIST_FRAMEWORK_VIEWS),$arrTags));
if($blExitOnComplete){
die(\Twist::View('Exception')->build(sprintf("%s/system/error-page.tpl",TWIST_FRAMEWORK_VIEWS),$arrTags));
}else{
echo \Twist::View('Exception')->build(sprintf("%s/system/error-page.tpl",TWIST_FRAMEWORK_VIEWS),$arrTags);
}
}

/**
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Classes/Exception.class.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Classes;
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Classes/Instance.class.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Classes;
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Classes/Shutdown.class.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Classes;
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Classes/Throwable.class.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Classes;
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Config/default.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

/**
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Core/Controllers/Base.controller.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Core\Controllers;
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Core/Controllers/BaseAJAX.controller.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Core\Controllers;
Expand Down
13 changes: 7 additions & 6 deletions dist/twist/Core/Controllers/BaseUser.controller.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
<?php

/**
* This file is part of TwistPHP.
* TwistPHP - An open source PHP MVC framework built from the ground up.
* Copyright (C) 2016 Shadow Technologies Ltd.
*
* TwistPHP is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TwistPHP is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TwistPHP. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Shadow Technologies Ltd. <contact@shadow-technologies.co.uk>
* @license https://www.gnu.org/licenses/gpl.html LGPL License
* @license https://www.gnu.org/licenses/gpl.html GPL License
* @link https://twistphp.com
*
*/

namespace Twist\Core\Controllers;
Expand Down
Loading

0 comments on commit ec311cc

Please sign in to comment.