bzt ac1caa0f69 Allow language packs to define language codes | 6 лет назад | |
---|---|---|
public | 6 лет назад | |
vendor | 6 лет назад | |
LICENSE | 9 лет назад | |
README.md | 6 лет назад | |
composer.json | 6 лет назад | |
phpunit.xml | 8 лет назад | |
screenshot.png | 6 лет назад |
PHPPE is a minimalistic, yet feature-full micro-framework and CMS. The framework's core is a single file and only a few kilobytes in size, so small, that it fits on your clipboard! Unlike other existing OpenSource PHP frameworks, PHPPE was written with security, MVC, KISS principle and no dependency at all in mind. As being a micro-framework, it won't solve all of your web-development oriented tasks, but will definitely solve the most common ones and make your life easier. It's not bloated, and with simplicity cames stability and high performance.
This ~90k bytes of PHP code will give you:
Of course one single file is limited, so here's the PHPPE Pack (~96KiB) to save the day and give you an easy start with configuration registry, email services, user management, SQL Query Builder etc.
For full CMS capability you'll also need the Content Editor in PHPPE CMS (46KiB), because PHPPE Core on it's own only serves contents.
Create a new project that ships production version of the PHPPE framework with
$ composer create-project "bztsrc/phppe3"
$ mv phppe3 myProject
There are many ways to install PHPPE if you don't want Packagist. You can use git, Composer alone, or use curl/wget. For detailed instructions and alternatives see documentation.
Create a webserver's document root in your project root
$ mkdir public
Download the framework Core
$ curl https://raw.githubusercontent.com/bztsrc/phppe3/master/public/index.php >public/index.php
Run diagnostics mode to extract directory structure, including vendor/phppe/Core (note that root privilege is only required for chown and chgrp calls)
$ sudo php public/index.php --diag
If you want the full functionality in vendor/phppe/Core, also install PHPPE Pack with
$ composer update
or without Composer
$ curl https://bztsrc.github.io/phppe3/phppe3_core.tgz | tar -xz -C vendor/phppe/Core && sudo php public/index.php --diag
The Core serves as content provider and can't modify contents on it's own. For that, install the Content Editor extension with
$ composer require "phppe/CMS"
or
$ curl https://bztsrc.github.io/phppe3/phppe3_cms.tgz | tar -xz -C vendor/phppe/CMS
In a scalable environment only one dedicated Content Editor required. See documentation for more details on load balancing.
If you want a web based interface for extension management, install
$ composer require "phppe/Extensions"
or
$ curl https://bztsrc.github.io/phppe3/phppe3_extensions.tgz | tar -xz -C vendor/phppe/Extensions
This will give you the standard webadmin feeling you're used to with other frameworks, but unlike the others, this works in a secure way over SSH.
Even if you don't want to contribute to the framework, just using it or writing your own Extensions, it's worth installing the Developer package! That will give you a nice templater to generate your php files, an utility to create language dictionaries out of your code, and also ships a minimal, PHPUnit compatible testing framework.
$ composer require "phppe/Developer"
or
$ curl https://bztsrc.github.io/phppe3/phppe3_developer.tgz | tar -xz -C vendor/phppe/Developer
This will provide you utilities like
$ php public/index.php create model myExtension myModel
$ php public/index.php create controller myExtension myController
$ php public/index.php create route myExtension myurl myController myAction
$ php public/index.php lang myExtension en
$ php public/index.php tests run
$ php public/index.php mkrepo
You can use Packagist to install the whole repository with all extensions:
$ composer create-project "bztsrc/phppe3:dev-master"
PHPPE Core, PHPPE Pack, PHPPE CMS, PHPPE Extensions as well as PHPPE Developer are free and OpenSource softwares, licensed under LGPL-3.0+. See vendor/phppe/LICENSE for details.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
PHPPE zoltan DOT baldaszti AT gmail DOT com
Simple Diff Paul Butler 2007 http://www.paulbutler.org/