Download the PHP package silverorange/site without Composer
On this page you can find all versions of the php package silverorange/site. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silverorange/site
More information about silverorange/site
Files in silverorange/site
Package site
Short Description Framework for building a website.
License LGPL-2.1
Homepage https://github.com/silverorange/site
Informations about the package site
Site
Site is a Website framework built on top of Swat. Site provides several features in one monolothic package:
- general application framework
- command line application framework
- web application framework
- web request routing
- image processing
- media processing
- account sign in and session management
- ad referral processing
- attachment uploading
- cdn management
- user commenting
SiteApplication
This represents an application. There are two main child classes:
- SiteWebApplication, and
- SiteCommandLineApplication
SiteApplicationModule
Reusable features of applications (web or CLI) that should be available wherever there is application context are provided using a module interface.
Example provided modules are:
- database
- config
- memcache
- cd
- messages (cross-request session messages)
Modules declare their dependencies and are initialized using a tree sorting
algorithm. For example, the messages module depends on the session module.
SitePage and SitePageDecorator
Pages represent route endpoints (URLs) in a web application. The URL path is
often referred to as $source. Each page has several lifecycle hooks that can
be overridden:
init()- initialize objects that may be common to both theprocess()and build methods. Validating HTTP GET parameters can be done here.process()- runs betweeninit()andbuild(). This method is indended to contain request logic that might prevent the page from being rendered. Handling HTTP POST parameters is done here.build()- use this method to render content and pass it to the page layout. If the page request does not cause a redirect, this method is used to build the response.finalize()- use this method to collect HTML head entries or perform any other post-build operations.
Decorators are composable objects that implement the page interface. They can enable horizontal reuse of features.
SiteLayout
In a web application, each page has an associated layout. The page and layout
are created and configured in SiteWebApplication::getPage(). One or more
SitePageFactory objects may be used to select the correct page object and
layout for a request.
The page sets properties on the layout's $data object. These properties can
be used directly inside layout templates. Templates use pure immediate-mode
PHP.
Like pages, layouts have request lifecycle hooks. These hooks run before the page hooks of the same name:
init()process()build()finalize()complete()- this hook is only present in layouts and allows using data from the page'sfinalize()hook to build layout template values. It runs after the page'sfinalize()hook.
Additional Documentation
Installation
All versions of site with dependencies
ext-curl Version *
ext-gd Version *
ext-iconv Version *
ext-json Version *
ext-mbstring Version *
ext-openssl Version *
ext-pcre Version *
aws/aws-sdk-php Version ^3.0.0
codescale/ffmpeg-php Version ^3.2.0
pear/text_password Version ^1.1.1
sentry/sentry Version ^4.9
silverorange/concentrate Version ^3.1.0
silverorange/mdb2 Version ^3.2.0
silverorange/swat Version ^7.10.0
silverorange/xml_rpc2 Version ^2.1.0
silverorange/xml_rpc_ajax Version ^3.2.0
symfony/mailer Version ^5.4