I can list the labels for a project using $project->labels() where $project is a Model\Project object. But the label object contains only the name and the color of the label, not the id.
I need the label id however for board list creation.
I want to maintain labels and board lists for projects with a script, hence I need this.