CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 18 Aug 2025 08:11:42 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090804005809
location: https://web.archive.org/web/20090804005809/https://github.com/desfrenes/yapf/tree/master
server-timing: captures_list;dur=0.726344, exclusion.robots;dur=0.023151, exclusion.robots.policy;dur=0.009364, esindex;dur=0.013947, cdx.remote;dur=45.679439, LoadShardBlock;dur=235.177880, PetaboxLoader3.datanode;dur=79.299580, PetaboxLoader3.resolve;dur=79.636233
x-app-server: wwwb-app211
x-ts: 302
x-tr: 318
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app211; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 18 Aug 2025 08:11:43 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Tue, 04 Aug 2009 00:58:09 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 1369ms
x-archive-orig-etag: "93b2291afbd888cc374c2da84542a779"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 24333
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 04 Aug 2009 00:58:09 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 04 Aug 2009 00:58:09 GMT", ; rel="memento"; datetime="Tue, 04 Aug 2009 00:58:09 GMT", ; rel="last memento"; datetime="Tue, 04 Aug 2009 00:58:09 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_11_20090803230357_crawl100_IndexOnly.gpg-c/52_11_20090804005718_crawl101.arc.gz
server-timing: captures_list;dur=4.754078, exclusion.robots;dur=0.015374, exclusion.robots.policy;dur=0.007385, esindex;dur=0.009388, cdx.remote;dur=21.738011, LoadShardBlock;dur=553.608542, PetaboxLoader3.datanode;dur=217.266509, PetaboxLoader3.resolve;dur=637.717757, load_resource;dur=468.557727
x-app-server: wwwb-app211
x-ts: 200
x-tr: 1102
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
desfrenes's yapf at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Yet Another PHP Framework edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/desfrenes/yapf.git
Give this clone URL to anyone.
git clone git://github.com/desfrenes/yapf.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:desfrenes/yapf.git
|
yapf /
name | age | message | |
---|---|---|---|
![]() |
README | Loading commit data... ![]() |
|
![]() |
applications/ | ||
![]() |
bootstrap.php | ||
![]() |
cache/ | ||
![]() |
cli/ | ||
![]() |
config.php.dist | ||
![]() |
docroot/ | ||
![]() |
docs/ | ||
![]() |
errors/ | ||
![]() |
lang/ | ||
![]() |
lib/ |
README
YAPF hello there ! This is the default page and what serves as a documentation. About Yes, YAPF is Yet Another PHP (toy) Framework. There are already dozens thousands billions of PHP frameworks so why another (obviously useless) one ? Because: * Everybody else is doing it, why shouldn't I ? * It's fun to build * Building a framework is a nice excuse for not building an actual kick-ass application * 1 developer === 1 framework * It's rather fast and lightweight YAPF borrows and forks its main parts from other projects: * dispatcher/controller/view components come from the Green framework (same as Frog CMS) * optional model layer is from the Redbean ORM project There are things that YAPF does not provides: * Forms: all libraries dealing with forms tend to be either not flexible enough or too cumbersome. Plus, I like to keep control over the slighest bit of the UI. Until I find/crite one that suits my needs I prefer not to include any. Code samples Like I had time to write a proper tutorial... Controller / View Example controller: class IndexController extends Controller { public function indexAction() { // your code goes here } } ORM You can use the fun Redbean ORM which is bundled with YAPF. Redbean is an ORM that does not need an a priori schema configuration, everything is done on the fly, even create and alter table. First, activate Redbean in config.php: define('USE_REDBEAN', true); Then, generate your classes name in you application's AppInit: Redbean_OODB::gen('User,Role,Permission'); And now just use it: $permission = new Permission; $permission->setName('admin'); $role = new Role; $role->setName('admin'); $role->addRelatedPermission($permission); $user = new User; $user->setLogin('admin'); $user->setPassword(sha1('123456')); $user->addRelatedRole($role); $user->save(); Ajax Clic here for an example Write an action: public function ajaxtestAction() { $t = new Taconite; $t->replaceContent('#targetContainer', 'Server software: ' . $_SERVER['SERVER_SOFTWARE']); $t->render(true); } Infos phpinfo(); Benchmark 1. define config defaults time : 0.0001 memory: 1.48 kb 2. remove magic quotes time : 0.0000 memory: 640 b 3. dispatch request time : 0.3891 memory: 212.49 kb 4. set include path time : 0.3522 memory: 241.75 kb
This feature is coming soon. Sit tight!