Webjects - An Object oriented Web-framework written in PHP
Introduction
Webjects
is an object oriented application framework,
designed for creating advanced web applications in PHP. It runs on webservers
providing PHP5 support with libXML extension.
Since MVC compatible application development is an up-to-date issue for most companies, "Webjects" is compatible with the MVC2 design model specification. In addition, "Webjects" is released under the terms of the MIT license which makes the code distributable in commercial applications.
Why this software?
I have developed this software during the creation of the website unixpeople.org. After looking for some lightweight PHP framework I decided to write down my own ideas as code and this is what came out after 160 hours hacking... ;)
Features
- Object Oriented Design
- Multi or Single Language Websites
- Multi or Single Module Websites
- Default Language and Module configurable
- Well formed Url structure e.g.: www.domain.org/LANGUAGECODE/MODULENAME/MODULEARG1/MODULEARG2 etc.
- Mutiple Output Formats - e.g.: index.php = XHTML, pdf.php = PDF (each output format instantiates an own controller). The Url will have a prefix like: domain.org/PDF/LANGUAGECODE etc... for every format except the default.
- MVC2 oriented design model
- Url Redirects e.g.: forward a request from /index.html => /en/test/
- Url Hardlinks e.g.: call language "en" and module "test" when requesting test.hml but do not resend HTTP Location header.
- Use as Many Modules as you want.
- Set Virtuals to be an alias for an allready existing module. E.g.: Call module "main" when requesting module "test" in the url but get the content for the virtual.
- Clean XML based configuration files.
Requirements
- A Webserver (I prefer Apache for Webjects but others should work too)
- PHP5 with the following extensions:
- libxml
- gdlib (optional but output of images is much better with gdlib installed)
- iconv (for charset conversion in PDF file creation)
- Some knowhow about web application frameworks
License
The Webjects sourcecode / project is released under the terms of the MIT License. You will find a copy below.
Copyright (c) 2006 Johannes Findeisen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Weblinks
- MVC and MVC2 (PDF) - Design model specification
- Mojavi - MVC PHP framework
- AWF - Adaptive Website Framework
- FPDF - FPDF is a PHP class which allows to generate PDF files with pure PHP
Comments
Please enter your comment here:
$Date: 2008-01-25 22:51:23 +0100 (Fri, 25 Jan 2008) $