code by Alan Dix, developed at Talis

Download

The source is available to download in two files:

manage_sld.class.phps
The main class ManageSLD plus the default memory-bases storage RuleStoreSLD.
nosqlite_store.class.phps
An example database integration (using noSqlite, a lightweight noSQL database). The storage class NosqliteRuleStoreSLD extends RuleStoreSLD in order to use it as a cache. When writing to it an explicit RuleStoreSLD::save is required, which actually saves the rules, and also (optuionally), the meta data about the load from the Public Suffix list.