I am toying with the idea of releasing my PHP application framework and test applications under an open source license similiar to the LGPL. That way any changes made by people to the framework would be returned to the project, while people would be free to develop other applications which they would not have to open source or return to the project. I was just hoping to get peoples' thoughts on using such a license especially on whether it would be liberal enough that people would use the framework and contribute back to the project.
The first example program is a simple Wiki, though the current version doesn't show the control box to users that are not logged in. The next program will be a simple news program. The demo site is at:
http://pixellent.stodge.net
The framework is designed to let people with minimal or no PHP experience/knowledge develop PHP applications. Some sample code:
function &FindLatestNews($limit)
{
// Return an array of all of the pages, grouped by name.
$config = &wsConfig::GetInstance();
$prefix = $config->GetValue("table_name_prefix");
$q = "select * from " . $prefix .
"news order by timestamp desc limit $limit";
// Retrieve the instance of the database manager.
$DatabaseManager = &wsDatabaseManager::GetInstance();
// Retrieve a connection to the database.
$Connection = $DatabaseManager->GetConnection();
// Perform the query from the string.
$rs = $Connection->ExecuteQuery($q);
$items = new wsArray();
$NewsObject = $rs->GetObject();
while ($NewsObject)
{
$newsItem = new wsNews();
$newsItem->PopulateFrom($NewsObject);
$newsItem->ClearUpdate();
$items->PushBack($newsItem);
$NewsObject = $rs->GetObject();
}
return $items;
}
Cheers