• Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    PHP
  • Created almost 13 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example Project based on the Yaf PECL extension.

ABANDONED

This project is not in any way maintained and probably does not work. I do not even know if yaf works. If you are looking for an extension-based framework you probably want this: https://phalconphp.com/en/

Yaf-php Example Project

http://uk.php.net/manual/en/book.yaf.php

This is a full-ish example Yaf application implementing:

  • Zend-like folder structure
  • Error Controller
  • Third Party libraries (zend_db)
  • Routing
  • Plugins (to achieve layout wrapper view)
  • Registry

Requirements:

  • PHP 5.3+
  • Yaf Extension Installed/Enabled
  • PDO (sqlite)
  • .htaccess must be enabled

Useful:

  • Sqliteman (Linux) / Sqlite Administrator (Windows)

Example Development Apache Vhost:

    #ensure vhosts are enabled
    NameVirtualHost *:80

    #the vhost
    <VirtualHost *:80>
        DocumentRoot [project dir]/public
        ServerName yaf.dev #or whatever
    </VirtualHost>

Set you hosts file to:

    127.0.0.1   yaf.dev #or whatever

Set the environment in you php.ini by adding this to the bottom:

    [yaf]
    yaf.environ=devel

Benchmark

To see the equivilent benchmart for Zend see:

https://github.com/warmans/Yaf-PHP-Example-ZendEquiv

Server Software:        Apache/2.2.21
Server Hostname:        yaf.dev
Server Port:            80

Document Path:          /
Document Length:        3314 bytes

Concurrency Level:      5
Time taken for tests:   10.931 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      3509000 bytes
HTML transferred:       3314000 bytes
Requests per second:    91.49 [#/sec] (mean)
Time per request:       54.653 [ms] (mean)
Time per request:       10.931 [ms] (mean, across all concurrent requests)
Transfer rate:          313.50 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       0
Processing:    15   54  10.9     53     114
Waiting:       15   48  12.0     47     114
Total:         15   55  10.9     53     114

Percentage of the requests served within a certain time (ms)
  50%     53
  66%     56
  75%     58
  80%     61
  90%     66
  95%     74
  98%     89
  99%     96

More Repositories

1

golocc

Counts lines of code, comments, functions, structs, imports etc in a go project
Go
50
star
2

prometheus-aggregate-exporter

Aggregates many exporters to a single endpoint.
Go
36
star
3

rsk-search

https://scrimpton.com
Go
16
star
4

go-thr

Experimental library for communicating with Yamaha THR II amps.
Go
15
star
5

fluentd-monitor

Monitor fluentd plugin stats
Go
10
star
6

colour

Colourize arbitrary terminal application output using a config file.
Python
7
star
7

kairosdb-perf

kairosdb performance monitoring/benchmarking tool.
Go
5
star
8

quad-cortex-foot-switch

MIDI footswitch for switching between QC scenes.
C++
5
star
9

Yaf-PHP-Example-ZendEquiv

Yaf-PHP Example re-built using Zend
PHP
4
star
10

appnexus-client

PHP 5.4 Client for the AppNexus console API.
PHP
4
star
11

dlock

Distributed locking library.
PHP
3
star
12

hack-mvc

MVC microframework written in Hack
C++
3
star
13

ClosureForm

Form generation library with heavy use of closures to achieve flexibility in final rendering.
PHP
3
star
14

docblocker

CLI tool to analyze the documentation quality of a library.
PHP
2
star
15

silex-ldap-auth-controller-provider

Ldap auth controller provider for silex
PHP
2
star
16

tbpdump

Parse cassandra thrift messages out of a tcpdump binary output.
Go
2
star
17

Yaf-PHP-Example-Symfony2Equiv

Yaf test application rebuilt in Symfony2
PHP
2
star
18

gochart

Go library for generating static chart (bar, line) images.
Go
2
star
19

cassandra-log2sqlite

Parse a cassandra system.log into a sqlite file to for analysis
Go
2
star
20

KataTestSolutions

Solutions to kata in KataTest repos.
PHP
2
star
21

KataTest

PHPUnit-like framework for producing and testing code "kata".
PHP
1
star
22

pick

pick elements out of text data dumps
Go
1
star
23

ggpio

Higher level interface for dealing with GPIO across devices (Pi, RTk)
Go
1
star
24

ntdash

Experimental nodetool console dashboard
Go
1
star
25

silex-rest-provider

Basic library for generating REST resources in Silex using extremely terse configuration. Based somewhat on mach/silex-rest.
PHP
1
star
26

MarkdownApiGen

Tool for generating API Documentation in GitHub Markdown format from a PSR-0 Compatible PHP Library
PHP
1
star
27

golang-bank-kata

mocking/tdd practise for golang
Go
1
star
28

jditest

Incident Tracker Test
JavaScript
1
star
29

pedal-decals

Vector graphics for use on guitar pedal decals
HTML
1
star
30

miser

quick and dirty incremental materialised views for postgres.
Go
1
star
31

kairosdb-monitor

Dashboard for monitoring kairosdb cluster status
JavaScript
1
star
32

phpsh

PHP library for running shell commands inspired by python-sh
PHP
1
star
33

extjs4-styx-theme

Dark theme for ExtJS 4
CSS
1
star