This document describes Keires_DB, an ORM library for PHP. It provides an object-relational mapping for PostgreSQL databases. Key features include using PDO for database access, late static binding support for PHP 5.3+, and defining database schemas and models through class declarations. Examples demonstrate basic CRUD operations and querying data through both object and raw SQL methods.
This document lists 4 PHP frameworks: CodeIgniter, Lithify, Silex, and Solar. CodeIgniter and Lithify are full-stack frameworks while Silex is micro and Solar is lightweight. These frameworks provide tools to build PHP web applications and websites.
This document discusses encoding and decoding of data. It includes 1) an introduction of the author, 2) an agenda covering ID generation and encoding/decoding, 3) a reference to the RFC on base64 encoding, 4) an example of ID generation from a database sequence, and 5) code examples for generating unique hashes and encoding/decoding data using gzip compression and base64url encoding. The document concludes by thanking the reader.
The Widgetization Of Media by Futurist Gerd Leonhard (MIPCOM 2008)Gerd Leonhard
?
Gerd Leonhard's presentation discusses the concept of media 'widgetization', highlighting its role in creating embeddable web objects that enhance user engagement and content distribution. With statistics showing significant user interaction with widgets across social networks and blogs, Leonhard emphasizes their potential as a low-cost viral marketing tool. The future is seen as a shift towards less control and more user-driven content interaction, necessitating a change in branding strategies.
This document discusses a lightweight programming language called LL Planets. It is written in Java and has a blog located at http://ll.jus.or.jp/blog/ that provides more information about the language.
This document discusses IPv6 addressing and formatting recommendations. It provides examples of valid IPv6 addresses and comparisons. RFC5952 rules for representing IPv6 addresses are presented, with notes on incompatible rules. The discussion includes using the PEAR::Net_IPv6 PHP library for IPv6 validation and address compression, along with submitting a patch to make the library compliant with RFC5952.
This document describes Keires_DB, an ORM library for PHP. It provides an object-relational mapping for PostgreSQL databases. Key features include using PDO for database access, late static binding support for PHP 5.3+, and defining database schemas and models through class declarations. Examples demonstrate basic CRUD operations and querying data through both object and raw SQL methods.
This document lists 4 PHP frameworks: CodeIgniter, Lithify, Silex, and Solar. CodeIgniter and Lithify are full-stack frameworks while Silex is micro and Solar is lightweight. These frameworks provide tools to build PHP web applications and websites.
This document discusses encoding and decoding of data. It includes 1) an introduction of the author, 2) an agenda covering ID generation and encoding/decoding, 3) a reference to the RFC on base64 encoding, 4) an example of ID generation from a database sequence, and 5) code examples for generating unique hashes and encoding/decoding data using gzip compression and base64url encoding. The document concludes by thanking the reader.
The Widgetization Of Media by Futurist Gerd Leonhard (MIPCOM 2008)Gerd Leonhard
?
Gerd Leonhard's presentation discusses the concept of media 'widgetization', highlighting its role in creating embeddable web objects that enhance user engagement and content distribution. With statistics showing significant user interaction with widgets across social networks and blogs, Leonhard emphasizes their potential as a low-cost viral marketing tool. The future is seen as a shift towards less control and more user-driven content interaction, necessitating a change in branding strategies.
This document discusses a lightweight programming language called LL Planets. It is written in Java and has a blog located at http://ll.jus.or.jp/blog/ that provides more information about the language.
This document discusses IPv6 addressing and formatting recommendations. It provides examples of valid IPv6 addresses and comparisons. RFC5952 rules for representing IPv6 addresses are presented, with notes on incompatible rules. The discussion includes using the PEAR::Net_IPv6 PHP library for IPv6 validation and address compression, along with submitting a patch to make the library compliant with RFC5952.
3. Traits
Stefan Marr箆がinternalsに戻宛した
仟たな猟
http://news.php.net/php.internals/35562
2008/02/18
Request for Comments: Traits for PHP
http://www.stefan-marr.de/artikel/rfc-traits-for-
php.html
3
4. <?php
class Base {
猟隈の児云
public function sayHello() {
echo 'Hello ';
}
}
trait SayWorld {
public function sayHello() {
parent::sayHello();
echo 'World!';
}
}
class MyHelloWorld extends Base {
use SayWorld;
}
$o = new MyHelloWorld();
$o->sayHello(); // echos Hello World!
?>
4
5. <?php
}方use
trait Hello {
public function sayHello() {
echo 'Hello ';
}
}
trait World {
public function sayWorld() {
echo ' World';
}
}
class MyHelloWorld {
use Hello, World;
public function sayExclamationMark() {
echo '!';
}
}
$o = new MyHelloWorld();
$o->sayHello();
$o->sayWorld();
$o->sayExclamationMark();
// Results eventually in: Hello World!
5
6. <?php
trait Hello {
mix-in
public function sayHello() {
echo 'Hello ';
}
}
trait World {
public function sayWorld() {
echo 'World!';
}
}
trait HelloWorld {
use Hello, World;
}
class MyHelloWorld {
use HelloWorld;
}
$o = new MyHelloWorld();
$o->sayHello();
$o->sayWorld();
// Results eventually in: Hello World!
?>
6