How to create a view with PHP SDK?

Thank you. I figured out, but it would be nice if there’s an official page with examples for any other future users.