Joaquín L. Robles
Joaquín L. Robles

Reputation: 6494

Get classes in a directory with PHP

Is there a way to obtain a list of all classes that implement a certain Interface inside a directory?

Upvotes: 0

Views: 620

Answers (1)

Jeff Day
Jeff Day

Reputation: 3717

In the directory:

grep 'implements {x}' *

That should do it.

Upvotes: 1

Related Questions