using the Zend Framework in a module

cotto - July 11, 2007 - 21:54

I'm working on a module for my employer that needs to do some PDF parsing. I have a couple options, but the best is to include a subset of the Zend Framework with the Drupal module and parse PDFs via the Zend_Pdf API. The Zend Framework is released under a new BSD license.

From my research, it looks like it's possible distribute and use new BSD code in a GPL project like Drupal (GPL FAQ). This works because the new BSD license allows users to impose additional requirements (like those in the GPL) but doesn't contain any restrictions above what's already in the GPL. Is this a correct interpretation?

no comments?

cotto - July 17, 2007 - 17:22

Since this seems to have generated no response, I'll assume that my interpretation is correct. If it's not OK to include BSD-licensed code with a module and to use it through its API, I'd appreciate someone setting me straight now. Otherwise, I'll barge ahead.

Zend Framework Module

Rob Loach - December 28, 2007 - 08:18

I've added your suggestion to the Zend Framework Drupal Module here. Would be a good addon module.

Only GPL license code into the Drupal CVS

kiamlaluno - December 16, 2008 - 02:36

It is possible to put in Drupal CVS only code that is released under GPL license. If you need to use code released under new BSD license, it's not possible to include it within the Drupal module. Then, it's not possible to add into the Drupal CVS repository third party code that is available from other web sites.

-- Kiam@AVPnet

Can You use Zend syntax in a drupal module?

msumme - October 27, 2009 - 22:44

For example, if I want to make calls to Zend Objects and Methods, could I have the code that does that, like "new Zend_Db" within a drupal module as long as I leave the actual zend framework up to the user to download?

---

kiamlaluno - October 28, 2009 - 14:56

You can do that.

-- Kiam
Kiam la luno renkontas la sunon

 
 

Drupal is a registered trademark of Dries Buytaert.