Title: Plugins en PHP libraries
Last modified: August 19, 2016

---

# Plugins en PHP libraries

 *  [Aries-Belgium](https://wordpress.org/support/users/aries-belgium/)
 * (@aries-belgium)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/plugins-en-php-libraries/)
 * Hi,
 * I created two plugins for WordPress but they use the same php library (one class).
   Now when the plugins are both activated WP will trow an error that I cannot redeclare
   the same class twice.
 * How can I resolve this the best way?

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/plugins-en-php-libraries/#post-693288)
 * [http://php.net/class_exists](http://php.net/class_exists)

Viewing 1 replies (of 1 total)

The topic ‘Plugins en PHP libraries’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/plugins-en-php-libraries/#post-693288)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
