How to create yii2 inline checkbox list-open source projects yiisoft/yii2

I have described my problem on yii2 forum, but no one helped me, most likely because no one knows the answer.

Here is the short description here.

I would like to make this:

Option 1
Option 2
Option 3

but with yii2 checkboxList Html helper.

This is my simplified array of checkbox values


I need to insert the class="checkbox-inline" into the label tags of each checkbox generated by this yii2 helper method but I can not figure out how to do it.

I was following these guides: checkboxList and checkbox one ( I can’t post more than 2 links because I am new here ) but they are not helpful to me, I just do not understand what I have to do. Everything I tried just failed.

Can someone help me please, I am trying for 3 days now ?