title: PHP - How to subscribe user to MailerLite using API
body: <p>On my website, people can register to become a member. Now I want them to be also immediately be subscribed to my MailerLite mailinglist. In the API documentation I have fount the following PHP example which should work:</p>
  
  <pre><code>$ML_Subscribers = new MailerLite\Subscribers('xxxxxxxxxxxxxxxxxxxxxx');
              $subscriber = array(
                  'email' =&gt; $e,
                  'name' =&gt; $f,
              );
              $subscriber = $ML_Subscribers-&gt;setId('xxxxxxxxxxx')-&gt;setAutoresponders(false)-&gt;add($subscriber);
  </code></pre>
  
  <p>The API url that's mentioned on their website is the following:</p>
  
  <p><a href="https://app.mailerlite.com/api/v1/subscribers/" rel="nofollow">https://app.mailerlite.com/api/v1/subscribers/</a>{list_id}/</p>
  
  <p>I am unsure how to implement this URL in the script.. I have the above PHP code that should add a subscriber to the list, but should I also include the link in some way? I could use some help to make it work. Thanks in advance!</p>