Skip to content

Instantly share code, notes, and snippets.

View AdnanHussainTurki's full-sized avatar
👓
Yes! You found me.

Adnan Hussain Turki AdnanHussainTurki

👓
Yes! You found me.
View GitHub Profile
{
"require": {
"adnanhussainturki/microsoft-api-php": "^0.03.0"
}
}
<?php
use myPHPnotes\Microsoft\Auth;
use myPHPnotes\Microsoft\Handlers\Session;
use myPHPnotes\Microsoft\Models\User;
session_start();
require "vendor/autoload.php";
@AdnanHussainTurki
AdnanHussainTurki / signin.php
Created February 14, 2021 22:51
signin.php
<?php
session_start();
require "vendor/autoload.php";
use myPHPnotes\Microsoft\Auth;
$tenant = "common";
@AdnanHussainTurki
AdnanHussainTurki / index.php
Created February 14, 2021 22:49
index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign in with Microsoft</title>
</head>
<body>
<a href="/signin.php">Sign in with Microsoft</a>
</body>
@AdnanHussainTurki
AdnanHussainTurki / init.php
Created February 1, 2021 15:47
Documentation
<?php
require "../vendor/autoload.php";
use myPHPnotes\cPanel;
// Creating Connection
$cPanel = new cPanel(__USERNAME__,__PASSWORD__, __HOST__);
<?php
session_start();
require "../vendor/autoload.php";
use myPHPnotes\cPanel;
$cPanel = new cPanel(__USERNAME__,__PASSWORD__, __HOST__);
@AdnanHussainTurki
AdnanHussainTurki / IndianStates.php
Last active July 20, 2020 14:52 — forked from shubhamjain/IndianStates.json
Indian States and Union Territories in PHP Array
<?php
$states = [
"AN" => "Andaman and Nicobar Islands",
"AP" => "Andhra Pradesh",
"AR" => "Arunachal Pradesh",
"AS" => "Assam",
"BR" => "Bihar",
"CG" => "Chandigarh",
"CH" => "Chhattisgarh",
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
<?php
namespace App\Providers;
use Hypweb\Flysystem\GoogleDrive\GoogleDriveAdapter;
use Illuminate\Support\ServiceProvider;
use League\Flysystem\Filesystem;
class GoogleDriveServiceProvider extends ServiceProvider
{
<?php
namespace myPHPnotes;
use Crummy\Phlack\Phlack;
class SlackLogger
{
protected $client;