Skip to content

Commit

Permalink
Merge pull request #11 from Purecis/v2.1
Browse files Browse the repository at this point in the history
update codeHive to V2.1
  • Loading branch information
TamerZorba authored Sep 5, 2016
2 parents 7567d91 + 78327da commit 04b8f11
Show file tree
Hide file tree
Showing 39 changed files with 5,413 additions and 2,592 deletions.
73 changes: 73 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# exclude everything except directory foo/bar
/*
!/system
!/docs

!/assets
!/assets/library
/assets/library/*
!/assets/extensions
/assets/extensions/*
/assets/extras
!/assets/cache
/assets/cache/*

!/apps
/apps/*
!/apps/sample
!/apps/_cli
!/apps/_global

!LICENSE.md
!README.md
!robots.txt

# remove ! if you want to use your own path and project
!index.php
!.htaccess


# global files to ignore from https://github.com/github/gitignore/tree/master/Global

# OSX Git Agnore
.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

#
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk
68 changes: 25 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,41 @@
## CodeHive PHP Framework v2.0
***
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.

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



# CodeHive PHP Framework v2.1

### Core values

* 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.

* 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.

* 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

* 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.
--------------------------------------------------------------------------------

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.

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

### Why should you use codeHive
## Core values
- `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.
- `Modular` ...
- `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.
- `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
- `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.

## Why should you use codeHive
`PHP frameworks are a dime a dozen, and more are appearing everyday. So what makes codeHive so special?`


* Built in a real-world environment
* Tiny foorprint in CPU and Memory
* Great performance
* Smart debugger
* Simple and lightweight
* Minimal dependencies
* Very Approachable Source Code
* Great documentation
* and the most imporatnt thing, its OpenSource



## Official Documentation

- Built in a real-world environment
- Tiny foorprint in CPU and Memory
- Great performance
- Smart debugger
- Simple and lightweight
- Minimal dependencies
- Very Approachable Source Code
- Great documentation
- and the most imporatnt thing, its OpenSource

# Official Documentation
Documentation for the framework can be found on the [Purecis website](http://codehive.purecis.com/docs).

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 :

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


## Contributing

# Contributing
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).

### License

Copyright (c) 2004 - 2015, Purecis, Inc.
All rights reserved.
## License
Copyright (c) 2013 - 2015, Purecis, Inc. All rights reserved.

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


110 changes: 58 additions & 52 deletions apps/sample/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php if (!defined('VERSION'))exit('Direct access to this location is not permitted.');
/**
<?php
if (!defined('VERSION')) {
exit('Direct access to this location is not permitted.');
}
/*
* CONFIG File
*
* @package codeHive
Expand All @@ -10,54 +13,57 @@
*/

return array(
"index" => "index.php",
// title for the app
"title" => "Sample App",

// app, website, api, cli
"type" => "app",

// plugins that the app will load
"modules" => array(),

/**
* Define DataBase and Connection
*
* Acceptable Database Types (sqlite,mysql,pgsql,oracle,firebird,infomix,dblib,odbc)
*
*/
"database" => array(
"type" => "mysql",
"host" => "localhost",
"port" => "3306",
"name" => "purecis-v2",
"user" => "root",
"pass" => "root",
"prefix"=> ""
),

/**
* Define Upload
*/
"upload" => array(
"maxsize" => 32,
"public" => "JPG,JPEG,PNG,GIF,MP3,WAV,PDF,MP4",
"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",
"thumbnails" => array(
'xs' => 150,
'sm' => 300,
'md' => 600,
'lg' => 1200
)
),

"license" => array(
"key" => "56500ef9db9a04820cd29cd444cab675",
"secret" => "56500ef9db9a04820cd29cd444cab675",
"hash" => md5('0598251486'),//for passwords on this site
),

// development, production, debug
"ENVIRONMENT" => "debug"
'index' => 'index.php',
// title for the app
'title' => 'Sample App',

// app, website, api, cli
'type' => 'app',

// plugins that the app will load
'modules' => array(),

/*
* Define DataBase and Connection
*
* Acceptable Database Types (sqlite,mysql,pgsql,oracle,firebird,infomix,dblib,odbc)
*
*/
'database' => array(
'type' => 'mysql',
'host' => 'localhost',
'port' => '3306',
'name' => 'purecis-v2',
'user' => 'root',
'pass' => 'root',
'prefix' => '',
),

/*
* Define Upload
*/
'upload' => array(
'maxsize' => 32,
'public' => 'JPG,JPEG,PNG,GIF,MP3,WAV,PDF,MP4',
'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',
'thumbnails' => array(
'xs' => 150,
'sm' => 300,
'md' => 600,
'lg' => 1200,
),
),

'license' => array(
'key' => '56500ef9db9a04820cd29cd444cab675',
'secret' => '56500ef9db9a04820cd29cd444cab675',
'hash' => md5('0598251486'), //for passwords on this site
),

'timezone' => 'Asia/Jerusalem',

// development, production, trace
'ENVIRONMENT' => 'trace',

"locale" => "en-us"
);
?>
2 changes: 1 addition & 1 deletion docs/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ check the requirements then upload and have fun


### PHP.ini Customization
1. short_open_tag = off
1. short_open_tag = on
2. error_reporting = E_ALL ~ E_NOTICE

29 changes: 13 additions & 16 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
<?php
/**
* Purecis codeHive Class
* codeHive Excute File.
*
* bootstrap class
*
* @package codeHive
* @subpackage Core
* @category Libraries
* @author Purecis Dev Team
* @copyright Copyright (c) 2004 - 2015, Purecis, Inc.
* @copyright Copyright (c) 2013 - 2016, Purecis, Inc.
* @license http://purecis.com/license
*
* @link http://purecis.com
* @since Version 2.0
* @filesource
*/

session_start();

include "system/core/codeHive.php";
include 'system/core/codeHive.php';

codeHive::start(array(
'app' => 'sample',

$start = array(
"app" => "apps/sample",
"assets" => "assets",
"system" => "system"
);
// define folders
'container' => "apps",
'assets' => 'assets',
'system' => 'system',
));

codeHive::start($start);

/* End of file index.php */
/* Location: ./index.php */
/* Location: ./index.php */
Loading

0 comments on commit 04b8f11

Please sign in to comment.