This is a sample PHP script to retrieve the access token from Service Account of Google without using googleapis.
<?php
$private_key = "-----BEGIN PRIVATE KEY-----\n###-----END PRIVATE KEY-----\n"; // private_key of JSON file retrieved by creating Service Account