https://github.com/benapetr/psf
PHP simple framework - toolkit for html / js / css + many other various tools I often use on my projects
https://github.com/benapetr/psf
css framework html php
Last synced: 20 days ago
JSON representation
PHP simple framework - toolkit for html / js / css + many other various tools I often use on my projects
- Host: GitHub
- URL: https://github.com/benapetr/psf
- Owner: benapetr
- Created: 2015-05-07T08:14:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2025-10-16T14:15:31.000Z (6 months ago)
- Last Synced: 2025-10-17T17:19:50.912Z (5 months ago)
- Topics: css, framework, html, php
- Language: PHP
- Size: 201 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PSF (PHP Simple Framework) Documentation
PSF is a lightweight PHP framework that allows you to create full-featured HTML pages using purely object-oriented PHP code, without writing any HTML, CSS, or JavaScript directly. It's designed to make web development simpler and more maintainable by providing a clean, object-oriented interface to web page elements.
See wiki or docs for a complete documentation.
Please note that PSF is a work in progress and many features are missing now.
Example code
=============
```
AppendObject(new GitHub_Ribbon("benapetr/psf/blob/master/examples/website"));
# Create a line of text
$wp->AppendParagraph("This is an example web page");
# Create a html table
$table = new HtmlTable();
$table->Headers = [ "Sample", "header" ];
$table->AppendRow([ "1", "2" ]);
# Insert it to web page
$wp->AppendObject($table);
#print it
$wp->PrintHtml();
```
See http://petr.insw.cz/devel/psf/psf/examples/website/ for result