PHP package for instantiating objects using configurations