# Lead API not working in php

**URL:** <https://forum.mautic.org/t/lead-api-not-working-in-php/3937>\
**Category:** Product Support\
**Created:** [May 23, 2016, 9:19am UTC](https://forum.mautic.org/t/lead-api-not-working-in-php/3937 "2016-05-23T09:19:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhaskar123](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhaskar123](https://forum.mautic.org/u/bhaskar123)\
**Post date:** [May 23, 2016, 9:19am UTC](https://forum.mautic.org/t/lead-api-not-working-in-php/3937/1 "2016-05-23T09:19:52Z")

</div>

From this link we have download api library files “[https://github.com/mautic/api-library/tree/master/tests/Api](https://github.com/mautic/api-library/tree/master/tests/Api)” then again we copied the lead creation code from this link “[https://developer.mautic.org/#leads](https://developer.mautic.org/#leads)” but no use getting fatal error with library files. If we am fixing one fatal error then facing another one. Can any one help with the below fatal error to move forward:  
  
Fatal error: Interface ‘PsrLogLoggerAwareInterface’ not found in /home/grameen0/public\_html/leadapi/lib/Api/Api.php on line 21

---

<div class="post-metadata">

**Author:** ![bhaskar123](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhaskar123](https://forum.mautic.org/u/bhaskar123)\
**Post date:** [May 23, 2016, 9:19am UTC](https://forum.mautic.org/t/lead-api-not-working-in-php/3937/2 "2016-05-23T09:19:52Z")

</div>

From this link we have download api library files “[https://github.com/mautic/api-library/tree/master/tests/Api](https://github.com/mautic/api-library/tree/master/tests/Api)” then again we copied the lead creation code from this link “[https://developer.mautic.org/#leads](https://developer.mautic.org/#leads)” but no use getting fatal error with library files. If we am fixing one fatal error then facing another one. Can any one help with the below fatal error to move forward:  
Fatal error: Interface ‘PsrLogLoggerAwareInterface’ not found in /home/grameen0/public\_html/leadapi/lib/Api/Api.php on line 21

---

<div class="post-metadata">

**Author:** ![bhaskar123](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhaskar123](https://forum.mautic.org/u/bhaskar123)\
**Post date:** [May 24, 2016, 6:22am UTC](https://forum.mautic.org/t/lead-api-not-working-in-php/3937/3 "2016-05-24T06:22:51Z")

</div>

Hi,  
Can any one help on above post with the issue which we are facing.Its very urgent to resolve this issue

Thanks
