Use the php bin to get all declared classes

fix #13