# Is there any actual documentation for the PHP API package

**URL:** <https://community.hubspot.com/t/is-there-any-actual-documentation-for-the-php-api-package/38957>\
**Category:** APIs & Integrations\
**Tags:** php\
**Created:** [June 15, 2021, 3:42pm UTC](https://community.hubspot.com/t/is-there-any-actual-documentation-for-the-php-api-package/38957 "2021-06-15T15:42:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nickm66](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickm66/32/74736_2.png) [@Nickm66](https://community.hubspot.com/u/Nickm66)\
**Post date:** [June 15, 2021, 3:42pm UTC](https://community.hubspot.com/t/is-there-any-actual-documentation-for-the-php-api-package/38957/1 "2021-06-15T15:42:50Z")

</div>

Going from this:

> **[hubspot/api-client - Packagist.org](https://packagist.org/packages/hubspot/api-client)**
>
> Hubspot API client

There is a quickstart guide but no further documentation.

For example in the quickstart quide it shows you how to get a list of contacts by email. By default this example only gives you ten results, how would i up this to say 100 (like you can do in the online test area).

Just seems like a very verbose API package with no actual PHP specific doucmentation?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [June 15, 2021, 4:08pm UTC](https://community.hubspot.com/t/is-there-any-actual-documentation-for-the-php-api-package/38957/2 "2021-06-15T16:08:35Z")

</div>

@MichaelC ,

Are you using the PHP library?

@Nickm66 , we are working on providing more documentation on these libraries.

In the interim, keep in mind that it is an open source project so if happened to create a md file and called it “cheatsheet” and if you happened to add tips to it, I wouldn’t complain 🙃

---

<div class="post-metadata">

**Author:** ![Nickm66](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickm66/32/74736_2.png) [@Nickm66](https://community.hubspot.com/u/Nickm66)\
**Post date:** [June 15, 2021, 7:40pm UTC](https://community.hubspot.com/t/is-there-any-actual-documentation-for-the-php-api-package/38957/3 "2021-06-15T19:40:52Z")

</div>

I ened up interrogating the \codegen\crm\companies\model\PublicObjectSearchRequest class and worked out you can use the setters there e.g.

setLimit

so for future searchers this would be as simple as:

$searchRequest = new \HubSpot\Client\Crm\Companies\Model\PublicObjectSearchRequest();  
$searchRequest-\>setFilterGroups([$filterGroup]);  
**$searchRequest-\>setLimit(100);**

See how much hubspot stuff i need to do, might get round to a cheat sheet 😄
