Skip to content

Instantly share code, notes, and snippets.

@devajmeireles
Last active June 27, 2025 16:16
Show Gist options
  • Save devajmeireles/9f794e11c95bcb604788467f3a65c149 to your computer and use it in GitHub Desktop.
Save devajmeireles/9f794e11c95bcb604788467f3a65c149 to your computer and use it in GitHub Desktop.
<?php
class Users
{
private Carbon $carbon;
public function __construct(Carbon $carbon)
{
$this->carbon = $carbon;
}
/** @throws Exception */
private function request()
{
// Using curl...
$ch = curl_init('https://aj.dev.br/f');
// ...
}
public function getAllCreatedToday()
{
// ...
}
public function getCountCreatedToday()
{
// ...
}
}
$users = new Users();
echo $users->getCountCreatedToday() . PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment