1. Go to this page and download the library: Download hasokeyk/instagram library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hasokeyk / instagram example snippets
use Hasokeyk\Instagram\Instagram;
sword';
$instagram = new Instagram($username,$password);
$login = $instagram->login->login();
if($login){
echo 'Login success';
}else{
echo 'Login Fail';
}
//LOGIN CONTROL
$login_control = $instagram->login->login_control();
if($login_control){
echo 'Login True';
}else{
echo 'Login False';
}
//LOGIN CONTROL