Skip to content

Commit 04b8f11

Browse files
authored
Merge pull request #11 from Purecis/v2.1
update codeHive to V2.1
2 parents 7567d91 + 78327da commit 04b8f11

39 files changed

+5413
-2592
lines changed

.gitignore

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# exclude everything except directory foo/bar
2+
/*
3+
!/system
4+
!/docs
5+
6+
!/assets
7+
!/assets/library
8+
/assets/library/*
9+
!/assets/extensions
10+
/assets/extensions/*
11+
/assets/extras
12+
!/assets/cache
13+
/assets/cache/*
14+
15+
!/apps
16+
/apps/*
17+
!/apps/sample
18+
!/apps/_cli
19+
!/apps/_global
20+
21+
!LICENSE.md
22+
!README.md
23+
!robots.txt
24+
25+
# remove ! if you want to use your own path and project
26+
!index.php
27+
!.htaccess
28+
29+
30+
# global files to ignore from https://github.com/github/gitignore/tree/master/Global
31+
32+
# OSX Git Agnore
33+
.DS_Store
34+
.AppleDouble
35+
.LSOverride
36+
37+
# Thumbnails
38+
._*
39+
40+
# Files that might appear in the root of a volume
41+
.DocumentRevisions-V100
42+
.fseventsd
43+
.Spotlight-V100
44+
.TemporaryItems
45+
.Trashes
46+
.VolumeIcon.icns
47+
48+
# Directories potentially created on remote AFP share
49+
.AppleDB
50+
.AppleDesktop
51+
Network Trash Folder
52+
Temporary Items
53+
.apdisk
54+
55+
#
56+
# Windows image file caches
57+
Thumbs.db
58+
ehthumbs.db
59+
60+
# Folder config file
61+
Desktop.ini
62+
63+
# Recycle Bin used on file shares
64+
$RECYCLE.BIN/
65+
66+
# Windows Installer files
67+
*.cab
68+
*.msi
69+
*.msm
70+
*.msp
71+
72+
# Windows shortcuts
73+
*.lnk

README.md

+25-43
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,41 @@
1-
## CodeHive PHP Framework v2.0
2-
***
3-
codeHive is a lightweight web Application Development Framework with expressive elegant syntax. codeHive gives you an MVC structure allowing you to concentrate on the fun stuff while building web applications.
4-
5-
codeHive is tiny in code and huge in thought. Being lightweight and simple is fundamental to codeHive.
6-
7-
8-
1+
# CodeHive PHP Framework v2.1
92

10-
### Core values
11-
12-
* MVC - The MVC pattern, or Model View Controller, is at the heart of codeHive applications. It ensures your application is modular, name-spaced and doesn't descend into a mess of view and model logic by having a consistent architecture. It's great for teams, and brings a well needed structure to PHP development.
13-
14-
* Simplicity - codeHive is a minimum possible viable product. It doesn't dictate you it way of programming, you can chose how to play with code in many ways, even your way, It is a huge framework consisting of different kinds of widgets and modules. The goal is to get things out of your way, letting you go ahead and do what you do best, build awesome web applications.
15-
16-
* Extensions : every thing you need is one step away from your hands, just put the extension in the extension folder then import it in your code, and you can create your own extensions and module in a minitues
17-
18-
* Query - codeHive has new way to query, you can use normal sql way or our own Special NoSql method, its even work with mysql, its smart way to use sql as noSql.
3+
--------------------------------------------------------------------------------
194

5+
codeHive is a lightweight web Application Development Framework with expressive elegant syntax. codeHive gives you an MVC structure allowing you to concentrate on the fun stuff while building web applications.
206

7+
codeHive is tiny in code and huge in thought. Being lightweight and simple is fundamental to codeHive.
218

22-
### Why should you use codeHive
9+
## Core values
10+
- `MVC` - The MVC pattern, or Model View Controller, is at the heart of codeHive applications. It ensures your application is modular, name-spaced and doesn't descend into a mess of view and model logic by having a consistent architecture. It's great for teams, and brings a well needed structure to PHP development.
11+
- `Modular` ...
12+
- `Simplicity` - codeHive is a minimum possible viable product. It doesn't dictate you it way of programming, you can chose how to play with code in many ways, even your way, It is a huge framework consisting of different kinds of widgets and modules. The goal is to get things out of your way, letting you go ahead and do what you do best, build awesome web applications.
13+
- `Extensions` : every thing you need is one step away from your hands, just put the extension in the extension folder then import it in your code, and you can create your own extensions and module in a minutes
14+
- `Query` - codeHive has new way to query, you can use normal sql way or our own Special NoSql method, its even work with mysql, its smart way to use sql as noSql.
2315

16+
## Why should you use codeHive
2417
`PHP frameworks are a dime a dozen, and more are appearing everyday. So what makes codeHive so special?`
25-
26-
27-
* Built in a real-world environment
28-
* Tiny foorprint in CPU and Memory
29-
* Great performance
30-
* Smart debugger
31-
* Simple and lightweight
32-
* Minimal dependencies
33-
* Very Approachable Source Code
34-
* Great documentation
35-
* and the most imporatnt thing, its OpenSource
36-
37-
38-
39-
## Official Documentation
40-
18+
- Built in a real-world environment
19+
- Tiny foorprint in CPU and Memory
20+
- Great performance
21+
- Smart debugger
22+
- Simple and lightweight
23+
- Minimal dependencies
24+
- Very Approachable Source Code
25+
- Great documentation
26+
- and the most imporatnt thing, its OpenSource
27+
28+
# Official Documentation
4129
Documentation for the framework can be found on the [Purecis website](http://codehive.purecis.com/docs).
4230

4331
or you can build it by your self using spinix after you checkout the code and for API documentation use APIGen to Generate new api documentation by using :
4432

4533
apigen generate -s system -d api --template-theme "bootstrap"
4634

47-
48-
## Contributing
49-
35+
# Contributing
5036
Thank you for considering contributing to the codeHive framework! The contribution guide can be found in the [codeHive documentation](http://codehive.purecis.com/docs/contributions).
5137

52-
### License
53-
54-
Copyright (c) 2004 - 2015, Purecis, Inc.
55-
All rights reserved.
38+
## License
39+
Copyright (c) 2013 - 2015, Purecis, Inc. All rights reserved.
5640

5741
The codeHive framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
58-
59-

apps/sample/config.php

+58-52
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
<?php if (!defined('VERSION'))exit('Direct access to this location is not permitted.');
2-
/**
1+
<?php
2+
if (!defined('VERSION')) {
3+
exit('Direct access to this location is not permitted.');
4+
}
5+
/*
36
* CONFIG File
47
*
58
* @package codeHive
@@ -10,54 +13,57 @@
1013
*/
1114

1215
return array(
13-
"index" => "index.php",
14-
// title for the app
15-
"title" => "Sample App",
16-
17-
// app, website, api, cli
18-
"type" => "app",
19-
20-
// plugins that the app will load
21-
"modules" => array(),
22-
23-
/**
24-
* Define DataBase and Connection
25-
*
26-
* Acceptable Database Types (sqlite,mysql,pgsql,oracle,firebird,infomix,dblib,odbc)
27-
*
28-
*/
29-
"database" => array(
30-
"type" => "mysql",
31-
"host" => "localhost",
32-
"port" => "3306",
33-
"name" => "purecis-v2",
34-
"user" => "root",
35-
"pass" => "root",
36-
"prefix"=> ""
37-
),
38-
39-
/**
40-
* Define Upload
41-
*/
42-
"upload" => array(
43-
"maxsize" => 32,
44-
"public" => "JPG,JPEG,PNG,GIF,MP3,WAV,PDF,MP4",
45-
"private" => "JPG,JPEG,PNG,GIF,MP3,M4A,OGG,WAV,MP4,M4V,MOV,WMV,AVI,MPG,OGV,3GP,3G2,PDF,ODT,DOC,DOCX,XLS,XLSX,PPT,PPTX,PPS,PPSX,RAR,ZIP,GZ,TAR",
46-
"thumbnails" => array(
47-
'xs' => 150,
48-
'sm' => 300,
49-
'md' => 600,
50-
'lg' => 1200
51-
)
52-
),
53-
54-
"license" => array(
55-
"key" => "56500ef9db9a04820cd29cd444cab675",
56-
"secret" => "56500ef9db9a04820cd29cd444cab675",
57-
"hash" => md5('0598251486'),//for passwords on this site
58-
),
59-
60-
// development, production, debug
61-
"ENVIRONMENT" => "debug"
16+
'index' => 'index.php',
17+
// title for the app
18+
'title' => 'Sample App',
19+
20+
// app, website, api, cli
21+
'type' => 'app',
22+
23+
// plugins that the app will load
24+
'modules' => array(),
25+
26+
/*
27+
* Define DataBase and Connection
28+
*
29+
* Acceptable Database Types (sqlite,mysql,pgsql,oracle,firebird,infomix,dblib,odbc)
30+
*
31+
*/
32+
'database' => array(
33+
'type' => 'mysql',
34+
'host' => 'localhost',
35+
'port' => '3306',
36+
'name' => 'purecis-v2',
37+
'user' => 'root',
38+
'pass' => 'root',
39+
'prefix' => '',
40+
),
41+
42+
/*
43+
* Define Upload
44+
*/
45+
'upload' => array(
46+
'maxsize' => 32,
47+
'public' => 'JPG,JPEG,PNG,GIF,MP3,WAV,PDF,MP4',
48+
'private' => 'JPG,JPEG,PNG,GIF,MP3,M4A,OGG,WAV,MP4,M4V,MOV,WMV,AVI,MPG,OGV,3GP,3G2,PDF,ODT,DOC,DOCX,XLS,XLSX,PPT,PPTX,PPS,PPSX,RAR,ZIP,GZ,TAR',
49+
'thumbnails' => array(
50+
'xs' => 150,
51+
'sm' => 300,
52+
'md' => 600,
53+
'lg' => 1200,
54+
),
55+
),
56+
57+
'license' => array(
58+
'key' => '56500ef9db9a04820cd29cd444cab675',
59+
'secret' => '56500ef9db9a04820cd29cd444cab675',
60+
'hash' => md5('0598251486'), //for passwords on this site
61+
),
62+
63+
'timezone' => 'Asia/Jerusalem',
64+
65+
// development, production, trace
66+
'ENVIRONMENT' => 'trace',
67+
68+
"locale" => "en-us"
6269
);
63-
?>

docs/Getting-Started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ check the requirements then upload and have fun
3333

3434

3535
### PHP.ini Customization
36-
1. short_open_tag = off
36+
1. short_open_tag = on
3737
2. error_reporting = E_ALL ~ E_NOTICE
3838

index.php

+13-16
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
11
<?php
22
/**
3-
* Purecis codeHive Class
3+
* codeHive Excute File.
44
*
5-
* bootstrap class
6-
*
7-
* @package codeHive
8-
* @subpackage Core
9-
* @category Libraries
105
* @author Purecis Dev Team
11-
* @copyright Copyright (c) 2004 - 2015, Purecis, Inc.
6+
* @copyright Copyright (c) 2013 - 2016, Purecis, Inc.
127
* @license http://purecis.com/license
8+
*
139
* @link http://purecis.com
1410
* @since Version 2.0
1511
* @filesource
1612
*/
17-
1813
session_start();
1914

20-
include "system/core/codeHive.php";
15+
include 'system/core/codeHive.php';
16+
17+
codeHive::start(array(
18+
'app' => 'sample',
2119

22-
$start = array(
23-
"app" => "apps/sample",
24-
"assets" => "assets",
25-
"system" => "system"
26-
);
20+
// define folders
21+
'container' => "apps",
22+
'assets' => 'assets',
23+
'system' => 'system',
24+
));
2725

28-
codeHive::start($start);
2926

3027
/* End of file index.php */
31-
/* Location: ./index.php */
28+
/* Location: ./index.php */

0 commit comments

Comments
 (0)