repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/WhatsAppTemplate.php | src/WhatsAppTemplate.php | <?php
namespace NotificationChannels\WhatsApp;
use Netflie\WhatsAppCloudApi\Message\Template\Component as CloudApiComponent;
use NotificationChannels\WhatsApp\Component\Button;
use NotificationChannels\WhatsApp\Component\Component;
class WhatsAppTemplate
{
/**
* WhatsApp ID or phone number for the person yo... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/WhatsAppChannel.php | src/WhatsAppChannel.php | <?php
namespace NotificationChannels\WhatsApp;
use Illuminate\Notifications\Notification;
use Netflie\WhatsAppCloudApi\Response;
use Netflie\WhatsAppCloudApi\Response\ResponseException;
use Netflie\WhatsAppCloudApi\WhatsAppCloudApi;
use NotificationChannels\WhatsApp\Exceptions\CouldNotSendNotification;
class WhatsAp... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component.php | src/Component.php | <?php
namespace NotificationChannels\WhatsApp;
class Component
{
/**
* Currency code as defined in ISO 4217.
*/
public static function currency(float $amount, string $code = 'EUR'): Component\Currency
{
return new Component\Currency($amount, $code);
}
public static function date... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Exceptions/UnsupportedMediaValue.php | src/Exceptions/UnsupportedMediaValue.php | <?php
namespace NotificationChannels\WhatsApp\Exceptions;
class UnsupportedMediaValue extends \Exception
{
public function __construct($value, string $mediaType, string $extendedMessage = '')
{
$message = "The $value value for $mediaType is unsupported.";
$message .= $extendedMessage ? " Messa... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Exceptions/CouldNotSendNotification.php | src/Exceptions/CouldNotSendNotification.php | <?php
namespace NotificationChannels\WhatsApp\Exceptions;
final class CouldNotSendNotification extends \Exception
{
public static function serviceRespondedWithAnError($responseBody)
{
return new self($responseBody);
}
}
| php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/Video.php | src/Component/Video.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class Video extends Component
{
/**
* Link to the video; e.g. https://URL.
*/
protected string $link;
public function __construct(string $link)
{
$this->link = $link;
}
public function toArray(): array
{
r... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/Text.php | src/Component/Text.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class Text extends Component
{
protected string $text;
public function __construct(string $text)
{
$this->text = $text;
}
public function toArray(): array
{
return [
'type' => 'text',
'text' => $... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/Image.php | src/Component/Image.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class Image extends Component
{
/**
* Link to the image; e.g. https://URL.
*/
protected string $link;
public function __construct(string $link)
{
$this->link = $link;
}
public function toArray(): array
{
r... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/Currency.php | src/Component/Currency.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class Currency extends Component
{
protected float $amount;
/**
* Currency code as defined in ISO 4217.
*/
protected string $code;
public function __construct(float $amount, string $code = 'EUR')
{
$this->amount = $amount... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/DateTime.php | src/Component/DateTime.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class DateTime extends Component
{
protected \DateTimeImmutable $dateTime;
protected string $format;
public function __construct(\DateTimeImmutable $dateTime, string $format = 'Y-m-d H:i:s')
{
$this->dateTime = $dateTime;
$this... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/Button.php | src/Component/Button.php | <?php
namespace NotificationChannels\WhatsApp\Component;
abstract class Button extends Component
{
protected int $index = 0;
protected array $parameters = [];
public function toArray(): array
{
return [
'type' => 'button',
'sub_type' => $this->subType(), // quick_reply... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/Document.php | src/Component/Document.php | <?php
namespace NotificationChannels\WhatsApp\Component;
use NotificationChannels\WhatsApp\Exceptions\UnsupportedMediaValue;
class Document extends Component
{
protected const SUPPORTED_EXTENSIONS = ['pdf'];
/**
* Link to the document; e.g. https://URL
* Only PDF documents are supported.
*/
... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/FlowButton.php | src/Component/FlowButton.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class FlowButton extends Button
{
public function __construct(?string $token, array $data)
{
$this->parameters[] = [
'type' => 'action',
'action' => [
'flow_token' => $token,
'flow_action_d... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/QuickReplyButton.php | src/Component/QuickReplyButton.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class QuickReplyButton extends Button
{
public function __construct(array $payloads)
{
foreach ($payloads as $payload) {
$this->parameters[] = [
'type' => 'payload',
'payload' => $payload,
... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/UrlButton.php | src/Component/UrlButton.php | <?php
namespace NotificationChannels\WhatsApp\Component;
class UrlButton extends Button
{
public function __construct(array $url_suffixes)
{
foreach ($url_suffixes as $url_suffix) {
$this->parameters[] = [
'type' => 'text',
'text' => $url_suffix,
... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/src/Component/Component.php | src/Component/Component.php | <?php
namespace NotificationChannels\WhatsApp\Component;
abstract class Component
{
abstract public function toArray(): array;
}
| php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/WhatsAppTemplateTest.php | tests/WhatsAppTemplateTest.php | <?php
namespace NotificationChannels\WhatsApp\Test;
use NotificationChannels\WhatsApp\Component\Currency;
use NotificationChannels\WhatsApp\Component\Document;
use NotificationChannels\WhatsApp\Component\Image;
use NotificationChannels\WhatsApp\Component\QuickReplyButton;
use NotificationChannels\WhatsApp\Component\T... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/ComponentTest.php | tests/ComponentTest.php | <?php
namespace NotificationChannels\WhatsApp\Test;
use NotificationChannels\WhatsApp\Component;
use PHPUnit\Framework\TestCase;
final class ComponentTest extends TestCase
{
/** @test */
public function it_can_return_a_currency_component()
{
$component = Component::currency(10, 'EUR');
$... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/WhatsAppChannelTest.php | tests/WhatsAppChannelTest.php | <?php
namespace NotificationChannels\WhatsApp\Test;
use Illuminate\Notifications\Notifiable;
use Illuminate\Notifications\Notification;
use Netflie\WhatsAppCloudApi\Http\ClientHandler;
use Netflie\WhatsAppCloudApi\Http\RawResponse;
use Netflie\WhatsAppCloudApi\WhatsAppCloudApi;
use NotificationChannels\WhatsApp\Excep... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/WhatsAppTextMessageTest.php | tests/WhatsAppTextMessageTest.php | <?php
namespace NotificationChannels\WhatsApp\Test;
use NotificationChannels\WhatsApp\WhatsAppTextMessage;
use PHPUnit\Framework\TestCase;
final class WhatsAppTextMessageTest extends TestCase
{
/** @test */
public function the_notification_recipient_can_be_set()
{
$message = WhatsAppTextMessage::... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/QuickReplyButtonTest.php | tests/Component/QuickReplyButtonTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\QuickReplyButton;
use PHPUnit\Framework\TestCase;
final class QuickReplyButtonTest extends TestCase
{
/** @test */
public function quick_reply_button_is_valid()
{
$button = new QuickReplyButt... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/ImageTest.php | tests/Component/ImageTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\Image;
use PHPUnit\Framework\TestCase;
final class ImageTest extends TestCase
{
/** @test */
public function currency_is_valid()
{
$currency = new Image('https://netflie.es/image.png');
... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/DateTimeTest.php | tests/Component/DateTimeTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\DateTime;
use PHPUnit\Framework\TestCase;
final class DateTimeTest extends TestCase
{
/** @test */
public function currency_is_valid()
{
$dateTime = new \DateTimeImmutable();
$currenc... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/CurrencyTest.php | tests/Component/CurrencyTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\Currency;
use PHPUnit\Framework\TestCase;
final class CurrencyTest extends TestCase
{
/** @test */
public function currency_is_valid()
{
$amount = 10.25; // 10,25 €
$currency = new Cu... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/DocumentTest.php | tests/Component/DocumentTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\Document;
use NotificationChannels\WhatsApp\Exceptions\UnsupportedMediaValue;
use PHPUnit\Framework\TestCase;
final class DocumentTest extends TestCase
{
/** @test */
public function the_document_link_is... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/UrlButtonTest.php | tests/Component/UrlButtonTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\UrlButton;
use PHPUnit\Framework\TestCase;
final class UrlButtonTest extends TestCase
{
/** @test */
public function url_button_is_valid()
{
$button = new UrlButton(['event', '01']);
... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/VideoTest.php | tests/Component/VideoTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\Video;
use PHPUnit\Framework\TestCase;
final class VideoTest extends TestCase
{
/** @test */
public function currency_is_valid()
{
$currency = new Video('https://netflie.es/video.webm');
... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Component/FlowButtonTest.php | tests/Component/FlowButtonTest.php | <?php
namespace NotificationChannels\WhatsApp\Test\Component;
use NotificationChannels\WhatsApp\Component\FlowButton;
use PHPUnit\Framework\TestCase;
final class FlowButtonTest extends TestCase
{
/** @test */
public function flow_button_is_valid()
{
$button = new FlowButton('token', ['test' => 'e... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Support/DummyNotification.php | tests/Support/DummyNotification.php | <?php
namespace NotificationChannels\WhatsApp\Test\Support;
use Illuminate\Notifications\Notification;
use NotificationChannels\WhatsApp\WhatsAppTemplate;
class DummyNotification extends Notification
{
public function toWhatsApp($notifiable): WhatsAppTemplate
{
return WhatsAppTemplate::create()
... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Support/DummyNotificationWithoutRecipient.php | tests/Support/DummyNotificationWithoutRecipient.php | <?php
namespace NotificationChannels\WhatsApp\Test\Support;
use Illuminate\Notifications\Notification;
use NotificationChannels\WhatsApp\WhatsAppTemplate;
class DummyNotificationWithoutRecipient extends Notification
{
public function toWhatsApp($notifiable): WhatsAppTemplate
{
return WhatsAppTemplate... | php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
netflie/laravel-notification-whatsapp | https://github.com/netflie/laravel-notification-whatsapp/blob/2d99bcdc42d1a43bb5795c36cb137dfdf9473368/tests/Support/DummyNotifiable.php | tests/Support/DummyNotifiable.php | <?php
namespace NotificationChannels\WhatsApp\Test\Support;
class DummyNotifiable
{
use \Illuminate\Notifications\Notifiable;
public function routeNotificationForWhatsApp()
{
return '0123456789';
}
}
| php | MIT | 2d99bcdc42d1a43bb5795c36cb137dfdf9473368 | 2026-01-05T03:44:10.693293Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/TwitterImage.php | src/TwitterImage.php | <?php
namespace NotificationChannels\Twitter;
class TwitterImage
{
public function __construct(private string $imagePath)
{
//
}
public function getPath(): string
{
return $this->imagePath;
}
}
| php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/TwitterVideo.php | src/TwitterVideo.php | <?php
namespace NotificationChannels\Twitter;
class TwitterVideo
{
public function __construct(private string $videoPath)
{
//
}
public function getPath(): string
{
return $this->videoPath;
}
public function getMimeType(): string
{
return mime_content_type($th... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/TwitterServiceProvider.php | src/TwitterServiceProvider.php | <?php
namespace NotificationChannels\Twitter;
use Abraham\TwitterOAuth\TwitterOAuth;
use Illuminate\Support\ServiceProvider;
class TwitterServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
{
$this->app->when([TwitterChannel::cla... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/TwitterChannel.php | src/TwitterChannel.php | <?php
namespace NotificationChannels\Twitter;
use Abraham\TwitterOAuth\TwitterOAuth;
use Illuminate\Notifications\Notification;
use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification;
class TwitterChannel
{
public function __construct(protected TwitterOAuth $twitter)
{
//
}
/**... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/TwitterMessage.php | src/TwitterMessage.php | <?php
namespace NotificationChannels\Twitter;
abstract class TwitterMessage
{
public bool $isJsonRequest = true;
public function __construct(protected string $content)
{
//
}
public function getContent(): string
{
return $this->content;
}
abstract public function get... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/TwitterDirectMessage.php | src/TwitterDirectMessage.php | <?php
namespace NotificationChannels\Twitter;
use Abraham\TwitterOAuth\TwitterOAuth;
use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification;
class TwitterDirectMessage extends TwitterMessage
{
public bool $isJsonRequest = true;
public function __construct(private string|int $to, string $conten... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/TwitterStatusUpdate.php | src/TwitterStatusUpdate.php | <?php
namespace NotificationChannels\Twitter;
use Illuminate\Support\Collection;
use Kylewm\Brevity\Brevity;
use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification;
class TwitterStatusUpdate extends TwitterMessage
{
public ?Collection $imageIds = null;
public ?Collection $videoIds = null;
... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/src/Exceptions/CouldNotSendNotification.php | src/Exceptions/CouldNotSendNotification.php | <?php
namespace NotificationChannels\Twitter\Exceptions;
use Exception;
class CouldNotSendNotification extends Exception
{
public static function serviceRespondsNotSuccessful(mixed $response): CouldNotSendNotification
{
if (isset($response->error)) {
return new static("Couldn't post notif... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/tests/TwitterStatusUpdateTest.php | tests/TwitterStatusUpdateTest.php | <?php
namespace NotificationChannels\Twitter\Test;
use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification;
use NotificationChannels\Twitter\TwitterImage;
use NotificationChannels\Twitter\TwitterStatusUpdate;
use NotificationChannels\Twitter\TwitterVideo;
class TwitterStatusUpdateTest extends TestCase
{... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/tests/TwitterMessageTest.php | tests/TwitterMessageTest.php | <?php
namespace NotificationChannels\Twitter\Test;
use ArgumentCountError;
use NotificationChannels\Twitter\TwitterMessage;
class TwitterMessageTest extends TestCase
{
public function test_it_needs_a_content()
{
$this->expectException(ArgumentCountError::class);
$message = new class extends ... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/tests/TestCase.php | tests/TestCase.php | <?php
namespace NotificationChannels\Twitter;
function mime_content_type($path)
{
return 'video/mp4';
}
namespace NotificationChannels\Twitter\Test;
use Mockery as m;
abstract class TestCase extends \Orchestra\Testbench\TestCase
{
protected function tearDown(): void
{
parent::tearDown();
... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/tests/TwitterVideoTest.php | tests/TwitterVideoTest.php | <?php
namespace NotificationChannels\Twitter\Test;
use NotificationChannels\Twitter\TwitterVideo;
class TwitterVideoTest extends TestCase
{
public function test_it_accepts_a_video_path_when_constructing_a_twitter_video(): void
{
$video = new TwitterVideo('/foo/bar/baz.mp4');
$this->assertEqua... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/tests/TwitterChannelTest.php | tests/TwitterChannelTest.php | <?php
namespace NotificationChannels\Twitter\Test;
use Abraham\TwitterOAuth\TwitterOAuth;
use Illuminate\Notifications\Notifiable;
use Illuminate\Notifications\Notification;
use Mockery as m;
use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification;
use NotificationChannels\Twitter\TwitterChannel;
use Not... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/tests/TwitterDirectMessageTest.php | tests/TwitterDirectMessageTest.php | <?php
namespace NotificationChannels\Twitter\Test;
use Abraham\TwitterOAuth\TwitterOAuth;
use Mockery as m;
use NotificationChannels\Twitter\TwitterDirectMessage;
class TwitterDirectMessageTest extends TestCase
{
protected TwitterDirectMessage $messageWithUserId;
protected TwitterDirectMessage $messageWithS... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
laravel-notification-channels/twitter | https://github.com/laravel-notification-channels/twitter/blob/216d544b8a4250b64aee80d80ac6bfa615ebb306/tests/TwitterImageTest.php | tests/TwitterImageTest.php | <?php
namespace NotificationChannels\Twitter\Test;
use NotificationChannels\Twitter\TwitterImage;
class TwitterImageTest extends TestCase
{
public function test_it_accepts_an_image_path_when_constructing_a_twitter_image(): void
{
$image = new TwitterImage('/foo/bar/baz.png');
$this->assertEqu... | php | MIT | 216d544b8a4250b64aee80d80ac6bfa615ebb306 | 2026-01-05T03:44:21.456892Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/src/Profiler/ProfilerServiceProvider.php | src/Profiler/ProfilerServiceProvider.php | <?php namespace Profiler;
use Profiler\Logger\Logger;
use Illuminate\Support\ServiceProvider;
class ProfilerServiceProvider extends ServiceProvider {
const SESSION_HASH = '_profiler';
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->package('loic-sharma/prof... | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/src/Profiler/Timer.php | src/Profiler/Timer.php | <?php namespace Profiler;
class Timer {
/**
* The time at which the timer was started.
*
* @var double
*/
protected $startTime;
/**
* The time at which the timer was ended.
*
* @var double
*/
protected $endTime;
/**
* Start the timer.
*
* @param double|null $startTime
* @return void
... | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/src/Profiler/Profiler.php | src/Profiler/Profiler.php | <?php namespace Profiler;
use Psr\Log\LoggerInterface;
use Psr\Log\LoggerAwareInterface;
class Profiler implements LoggerAwareInterface {
/**
* Wether the profiler is enabled or not.
*
* @var bool
*/
public $enabled;
/**
* The logger.
*
* @var \Psr\Log\LoggerInterface
*/
public $log;
/**
* A... | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/src/Profiler/Logger/ProfilerLoggerInterface.php | src/Profiler/Logger/ProfilerLoggerInterface.php | <?php namespace Profiler\Logger;
use Psr\Log\LoggerInterface;
interface ProfilerLoggerInterface extends LoggerInterface {
/**
* Log a query statement.
*
* @param string $query
* @param int $time
* @return null
*/
public function query($query, $time = 0);
/**
* Retrieve the queries.
*
* @... | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/src/Profiler/Logger/Logger.php | src/Profiler/Logger/Logger.php | <?php namespace Profiler\Logger;
use Psr\Log\LogLevel;
use Psr\Log\AbstractLogger;
use Psr\Log\LoggerInterface;
class Logger extends AbstractLogger implements ProfilerLoggerInterface {
/**
* The array of logs.
*
* @var array
*/
protected $logs = array();
/**
* The array of queries.
*
* @var array
... | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/src/Profiler/Facades/Profiler.php | src/Profiler/Facades/Profiler.php | <?php namespace Profiler\Facades;
use Illuminate\Support\Facades\Facade;
class Profiler extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor() { return 'profiler'; }
} | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/src/config/config.php | src/config/config.php | <?php
return array(
/*
| -----------------------------------------------------------------------------
| Enable profiler
| -----------------------------------------------------------------------------
|
| By default, enabled is set to null. This tells the profiler to use the
| application's debug configuratio... | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
loic-sharma/profiler | https://github.com/loic-sharma/profiler/blob/956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c/views/profiler.php | views/profiler.php | <!-- ANBU - LARAVEL PROFILER -->
<style type="text/css"><?php echo file_get_contents($assetPath.'profiler.css'); ?></style>
<div class="anbu">
<div class="anbu-window">
<div class="anbu-content-area">
<div class="anbu-tab-pane anbu-table anbu-log">
<?php if(count($logger->getLogs()) > 0): ?>
<table>
... | php | BSD-2-Clause | 956e1e1fdb788ebdfcd9d9765ea56d39043c6a7c | 2026-01-05T03:44:35.394436Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Connection.php | src/PHPSocketIO/Connection.php | <?php
namespace PHPSocketIO;
class Connection implements ConnectionInterface
{
const MAX_INPUT = 4000000; // 4MB
protected $baseEvent;
protected $eventBufferEvent = null;
protected $request;
protected $eventHTTPRequest;
protected $namespace;
protected $timeoutEvent;
protected $shu... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/ConnectionInterface.php | src/PHPSocketIO/ConnectionInterface.php | <?php
namespace PHPSocketIO;
/**
* Description of ConnectionInterface
*
* @author ricky
*/
interface ConnectionInterface
{
public function getRequest();
public function setRequest(Request\Request $request);
public function clearTimeout();
public function write(Response\ResponseInterface $response, ... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/SocketIOSocket.php | src/PHPSocketIO/SocketIOSocket.php | <?php
namespace PHPSocketIO;
class SocketIOSocket
{
protected $endpoint;
public function __construct($endpoint = null)
{
$this->endpoint = $endpoint;
}
public function on($eventName, $callback)
{
$dispatcher = Event\EventDispatcher::getDispatcher();
$dispatcher->addLis... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/SocketIO.php | src/PHPSocketIO/SocketIO.php | <?php
namespace PHPSocketIO;
use Symfony\Component\HttpFoundation\Session;
class SocketIO
{
protected $baseEvent;
protected $eventHttp;
protected $listenHost;
protected $listenPort;
protected $eventBufferEvents=array();
protected $requests=array();
protected $onConnectCallback;
prote... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Event/MessageEvent.php | src/PHPSocketIO/Event/MessageEvent.php | <?php
namespace PHPSocketIO\Event;
use Symfony\Component\EventDispatcher\Event;
use PHPSocketIO\ConnectionInterface;
/**
* Description of MessageEvent
*
* @author ricky
*/
class MessageEvent extends Event
{
protected $message;
protected $connection;
protected $endpoint;
public function getEndpo... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Event/EventDispatcher.php | src/PHPSocketIO/Event/EventDispatcher.php | <?php
namespace PHPSocketIO\Event;
use Symfony\Component\EventDispatcher\Event;
class EventDispatcher
{
protected $events = array();
protected $groupEvents = array();
protected static $dispatcher = null;
/**
*
* @return EventDispatcher
*/
public static function getDispatcher()
... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Event/RequestEvent.php | src/PHPSocketIO/Event/RequestEvent.php | <?php
namespace PHPSocketIO\Event;
use Symfony\Component\EventDispatcher\Event;
use PHPSocketIO\Request\Request;
/**
* Description of RequestEvent
*
* @author ricky
*/
class RequestEvent extends Event
{
protected $request;
public function setRequest(Request $request)
{
$this->request = $req... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/SessionStorage/AbstractStorage.php | src/PHPSocketIO/SessionStorage/AbstractStorage.php | <?php
namespace PHPSocketIO\SessionStorage;
use Symfony\Component\HttpFoundation\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag;
/**
* Description of AbstractStorage
*
* @author ricky
*/
abstract class AbstractStorage implements Session\Storage\SessionStorageInterface
{
protected $id... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/SessionStorage/MemoryStorage.php | src/PHPSocketIO/SessionStorage/MemoryStorage.php | <?php
namespace PHPSocketIO\SessionStorage;
use Symfony\Component\HttpFoundation\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag;
/**
* Description of ArrayStorage
*
* @author ricky
*/
class MemoryStorage extends AbstractStorage
{
protected static $sessions;
/**
* @var boole... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/Http.php | src/PHPSocketIO/Http/Http.php | <?php
namespace PHPSocketIO\Http;
use PHPSocketIO\Response\Response;
use PHPSocketIO\Request\Request;
use PHPSocketIO\Protocol\Handshake;
class Http
{
public static function handleRequest(Request $request)
{
$handshakeResult = Handshake::initialize($request);
if ($handshakeResult === Handsha... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/HttpJsonpPolling.php | src/PHPSocketIO/Http/HttpJsonpPolling.php | <?php
namespace PHPSocketIO\Http;
use PHPSocketIO\Response\ResponseInterface;
class HttpJsonpPolling extends HttpPolling
{
protected function parseClientEmitData()
{
return json_decode($this->getRequest()->request->get('d'), true);
}
protected function generateResponseData($content)
{
... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/HttpWebSocket.php | src/PHPSocketIO/Http/HttpWebSocket.php | <?php
namespace PHPSocketIO\Http;
use PHPSocketIO\ConnectionInterface;
use PHPSocketIO\Request\Request;
use PHPSocketIO\Response\Response;
use PHPSocketIO\Protocol\Builder as ProtocolBuilder;
use PHPSocketIO\Event;
use PHPSocketIO\Response\ResponseWebSocketFrame;
use PHPSocketIO\Protocol\Handshake;
class HttpWebSock... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/HttpXHRPolling.php | src/PHPSocketIO/Http/HttpXHRPolling.php | <?php
namespace PHPSocketIO\Http;
use PHPSocketIO\Response\ResponseInterface;
class HttpXHRPolling extends HttpPolling
{
protected function parseClientEmitData()
{
return $this->getRequest()->getContent();
}
protected function generateResponseData($content)
{
return $content;
... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/HttpPolling.php | src/PHPSocketIO/Http/HttpPolling.php | <?php
namespace PHPSocketIO\Http;
use PHPSocketIO\ConnectionInterface;
use PHPSocketIO\Event;
use PHPSocketIO\Protocol\Builder as ProtocolBuilder;
use PHPSocketIO\Response\ResponseInterface;
use PHPSocketIO\Response\Response;
use PHPSocketIO\Response\ResponseChunk;
use PHPSocketIO\Response\ResponseChunkStart;
use PHP... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/WebSocket/MessageQueue.php | src/PHPSocketIO/Http/WebSocket/MessageQueue.php | <?php
namespace PHPSocketIO\Http\WebSocket;
/**
* Description of Message
*
* @author ricky
*/
class MessageQueue
{
protected $data = '';
public function __construct($data = '')
{
$this->data = $data;
}
public function clear()
{
$this->data = '';
}
public function a... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/WebSocket/Frame.php | src/PHPSocketIO/Http/WebSocket/Frame.php | <?php
namespace PHPSocketIO\Http\WebSocket;
/**
* Description of Frame
*
* @author ricky
*/
class Frame
{
const DECODE_STATUS_MORE_DATA = 0;
const DECODE_STATUS_ERROR = -1;
const OP_CONTINUE = 0;
const OP_TEXT = 1;
const OP_BINARY = 2;
const OP_CLOSE = 8;
const OP_PING = 9;
const ... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Http/WebSocket/WebSocket.php | src/PHPSocketIO/Http/WebSocket/WebSocket.php | <?php
namespace PHPSocketIO\Http\WebSocket;
use PHPSocketIO\Request\Request;
use PHPSocketIO\Response\ResponseWebSocket;
/**
* Description of WebSocket
*
* @author ricky
*/
class WebSocket
{
const MIN_WS_VERSION = 13;
const MAGIC_GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
protected $messageQueue;... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Request/Request.php | src/PHPSocketIO/Request/Request.php | <?php
namespace PHPSocketIO\Request;
use Symfony\Component\HttpFoundation;
use PHPSocketIO\ConnectionInterface;
/**
* Description of Request
*
* @author ricky
*/
class Request extends HttpFoundation\Request
{
protected $connection;
public function setConnection(ConnectionInterface $connection)
{
... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/ResponseChunkEnd.php | src/PHPSocketIO/Response/ResponseChunkEnd.php | <?php
namespace PHPSocketIO\Response;
class ResponseChunkEnd implements ResponseInterface
{
public function __toString()
{
return "0\r\n\r\n";
}
}
| php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/ResponseWebSocket.php | src/PHPSocketIO/Response/ResponseWebSocket.php | <?php
namespace PHPSocketIO\Response;
use Symfony\Component\HttpFoundation;
/**
* Description of Request
*
* @author ricky
*/
class ResponseWebSocket extends HttpFoundation\Response implements ResponseInterface
{
public function __construct($content = '', $status = 101, $headers = array())
{
paren... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/Response.php | src/PHPSocketIO/Response/Response.php | <?php
namespace PHPSocketIO\Response;
use Symfony\Component\HttpFoundation;
/**
* Description of Request
*
* @author ricky
*/
class Response extends HttpFoundation\Response implements ResponseInterface
{
public function setContentType($type, $charset)
{
$this->headers->set('Content-Type', "$type; ... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/ResponseInterface.php | src/PHPSocketIO/Response/ResponseInterface.php | <?php
namespace PHPSocketIO\Response;
/**
* Description of ResponseInterface
*
* @author ricky
*/
interface ResponseInterface
{
public function __toString();
}
| php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/ResponseChunkStart.php | src/PHPSocketIO/Response/ResponseChunkStart.php | <?php
namespace PHPSocketIO\Response;
use Symfony\Component\HttpFoundation;
/**
* Description of ResponseChunkStart
*
* @author ricky
*/
class ResponseChunkStart extends HttpFoundation\Response implements ResponseInterface
{
public function __construct($content = '', $status = 200, $headers = array())
{... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/ResponseRaw.php | src/PHPSocketIO/Response/ResponseRaw.php | <?php
namespace PHPSocketIO\Response;
/**
* Description of Request
*
* @author ricky
*/
class ResponseRaw implements ResponseInterface
{
protected $content;
public function __construct($content)
{
$this->content = $content;
}
public function __toString()
{
return $this->co... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/ResponseWebSocketFrame.php | src/PHPSocketIO/Response/ResponseWebSocketFrame.php | <?php
namespace PHPSocketIO\Response;
use PHPSocketIO\Http\WebSocket\Frame;
/**
* Description of Request
*
* @author ricky
*/
class ResponseWebSocketFrame implements ResponseInterface
{
protected $frame;
public function __construct(Frame $frame)
{
$this->frame = $frame;
}
public func... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Response/ResponseChunk.php | src/PHPSocketIO/Response/ResponseChunk.php | <?php
namespace PHPSocketIO\Response;
class ResponseChunk implements ResponseInterface
{
protected $content;
public function __construct($content)
{
$this->content = $content;
}
public function __toString()
{
return sprintf("%x\r\n%s\r\n", strlen($this->content), $this->conte... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Protocol/Builder.php | src/PHPSocketIO/Protocol/Builder.php | <?php
namespace PHPSocketIO\Protocol;
class Builder
{
public static function Event($data, $endpoint = null)
{
return "5::$endpoint:".json_encode($data);
}
public static function Connect($endpoint = null)
{
return "1::$endpoint";
}
public static function Heartbeat()
{
... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/src/PHPSocketIO/Protocol/Handshake.php | src/PHPSocketIO/Protocol/Handshake.php | <?php
namespace PHPSocketIO\Protocol;
use PHPSocketIO\Event;
use PHPSocketIO\Response\Response;
use PHPSocketIO\Request\Request;
use PHPSocketIO\Http;
use PHPSocketIO\ConnectionInterface;
class Handshake
{
const PROTOCOL_WEBSOCKET = 'websocket';
const PROTOCOL_HTMLFILE = 'htmlfile';
const PROTOCOL_XHR_POL... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/bootstrap.php | tests/bootstrap.php | <?php
$autoloadFile=__DIR__.'/../autoload.php';
if (!file_exists($autoloadFile)) {
$autoloadFile=__DIR__.'/../autoload.php.dist';
}
if (!($loader=@include $autoloadFile)) {
die("please use auto loader!\n");
} | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Event/EventDispatcherTest.php | tests/src/PHPSocketIO/Event/EventDispatcherTest.php | <?php
namespace PHPSocketIO\Event;
use Symfony\Component\EventDispatcher\Event;
class myEventDispatch extends EventDispatcher
{
static public function reset()
{
static::$dispatcher = null;
}
}
/**
* Description of EventDispatcherTest
*
* @author ricky
*/
class EventDispatcherTest extends \PHPU... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Event/MessageEventTest.php | tests/src/PHPSocketIO/Event/MessageEventTest.php | <?php
namespace PHPSocketIO\Event;
use PHPSocketIO\Request\Request;
use PHPSocketIO\ConnectionInterface;
class MessageEventMockConnection implements ConnectionInterface
{
public function clearTimeout()
{
}
public function getRemote()
{
}
public function getRequest()
{
}
pu... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Event/RequestEventTest.php | tests/src/PHPSocketIO/Event/RequestEventTest.php | <?php
namespace PHPSocketIO\Event;
use PHPSocketIO\Request\Request;
/**
* Test class for Request.
* Generated by PHPUnit on 2013-05-30 at 13:37:50.
*/
class RequestEventTest extends \PHPUnit_Framework_TestCase
{
public function test_setRequest()
{
$requestEvent = new RequestEvent();
$this->... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Http/WebSocket/MessageQueueTest.php | tests/src/PHPSocketIO/Http/WebSocket/MessageQueueTest.php | <?php
namespace PHPSocketIO\Http\WebSocket;
use PHPSocketIO\Http\WebSocket\MessageQueue;
class myMessageQueue extends MessageQueue
{
public function __get($name)
{
$property = str_replace('_','', $name);
return $this->$property;
}
public function __set($name, $value)
{
$pro... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Http/WebSocket/FrameTest.php | tests/src/PHPSocketIO/Http/WebSocket/FrameTest.php | <?php
namespace PHPSocketIO\Http\WebSocket;
use PHPSocketIO\Http\WebSocket\Frame;
/**
* Description of Message
*
* @author ricky
*/
class FrameTest extends \PHPUnit_Framework_TestCase
{
public function test__close()
{
$data = md5(microtime().rand());
$frameData = pack("CC", 0x88, strlen($d... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Http/WebSocket/WebSocketTest.php | tests/src/PHPSocketIO/Http/WebSocket/WebSocketTest.php | <?php
namespace PHPSocketIO\Http\WebSocket;
use PHPSocketIO\Request\Request;
use PHPSocketIO\Response\ResponseWebSocket;
/**
* Description of WebSocketTest
*
* @author ricky
*/
class WebSocketTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider provider_test_getHandshakeReponse
*/
publ... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Request/RequestTest.php | tests/src/PHPSocketIO/Request/RequestTest.php | <?php
namespace PHPSocketIO\Request;
use PHPSocketIO\ConnectionInterface;
class MockConnection implements ConnectionInterface
{
public function clearTimeout()
{
}
public function getRemote()
{
}
public function getRequest()
{
}
public function setRequest(Request $request)
... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Response/ResponseChunkStartTest.php | tests/src/PHPSocketIO/Response/ResponseChunkStartTest.php | <?php
namespace PHPSocketIO\Response;
/**
* Test class for Request.
* Generated by PHPUnit on 2013-05-30 at 13:37:50.
*/
class ResponseChunkStartTest extends \PHPUnit_Framework_TestCase
{
public function test__toString()
{
$content = md5(rand(). microtime());
$response = new ResponseChunkSt... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Response/ResponseRawTest.php | tests/src/PHPSocketIO/Response/ResponseRawTest.php | <?php
namespace PHPSocketIO\Response;
/**
* Test class for Request.
* Generated by PHPUnit on 2013-05-30 at 13:37:50.
*/
class ResponseRawTest extends \PHPUnit_Framework_TestCase
{
public function test__toString()
{
$content = md5(rand(). microtime());
$response = new ResponseRaw($cont... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Response/ResponseWebSocketTest.php | tests/src/PHPSocketIO/Response/ResponseWebSocketTest.php | <?php
namespace PHPSocketIO\Response;
/**
* Test class for Request.
* Generated by PHPUnit on 2013-05-30 at 13:37:50.
*/
class ResponseWebSocketTest extends \PHPUnit_Framework_TestCase
{
public function test__construct()
{
$response = new ResponseWebSocket();
$this->assertEquals(101, $respo... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Response/ResponseChunkEndTest.php | tests/src/PHPSocketIO/Response/ResponseChunkEndTest.php | <?php
namespace PHPSocketIO\Response;
/**
* Test class for Request.
* Generated by PHPUnit on 2013-05-30 at 13:37:50.
*/
class ResponseChunkEndTest extends \PHPUnit_Framework_TestCase
{
public function test__toString()
{
$content = md5(rand(). microtime());
$response = new ResponseChunkEnd(... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Response/ResponseChunkTest.php | tests/src/PHPSocketIO/Response/ResponseChunkTest.php | <?php
namespace PHPSocketIO\Response;
/**
* Test class for Request.
* Generated by PHPUnit on 2013-05-30 at 13:37:50.
*/
class ResponseChunkTest extends \PHPUnit_Framework_TestCase
{
public function test__toString()
{
$content = md5(rand(). microtime());
$response = new ResponseChunk($conte... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/tests/src/PHPSocketIO/Response/ResponseWebSocketFrameTest.php | tests/src/PHPSocketIO/Response/ResponseWebSocketFrameTest.php | <?php
namespace PHPSocketIO\Response;
use PHPSocketIO\Http\WebSocket\Frame;
/**
* Test class for Request.
* Generated by PHPUnit on 2013-05-30 at 13:37:50.
*/
class ResponseWebSocketFrameTest extends \PHPUnit_Framework_TestCase
{
public function test__to_string()
{
$response = new ResponseWebSocket... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
RickySu/phpsocket.io | https://github.com/RickySu/phpsocket.io/blob/3d9694b3f0e748d460c607b1090b5b17d011044f/example/server.php | example/server.php | <?php
$loader = include '../autoload.php.dist';
$loader->add('PHPSocketIO', __DIR__ . '/../src');
use PHPSocketIO\SocketIO;
use PHPSocketIO\Connection;
use PHPSocketIO\Response\Response;
use PHPSocketIO\Event;
$socketio = new SocketIO();
$chat = $socketio
->getSockets()
->on('addme', function(Event\M... | php | MIT | 3d9694b3f0e748d460c607b1090b5b17d011044f | 2026-01-05T03:44:48.113421Z | false |
esterTion/unity-texture-toolkit | https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/UnityBundle.php | UnityBundle.php | <?php
abstract class Stream {
abstract protected function read($length);
abstract public function seek($position);
abstract public function position();
abstract protected function getPos();
abstract protected function setPos($pos);
public function __get($name) {
switch($name) {
case 'position': re... | php | MIT | d5c52d9cba82dce717f0ddae75a869972bbb766a | 2026-01-05T03:45:03.797410Z | false |
esterTion/unity-texture-toolkit | https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/UnityAsset.php | UnityAsset.php | <?php
require_once 'UnityBundle.php';
class AssetFile {
public $stream;
public $filePath;
public $fileName;
public $fileGen;
public $m_Version = '2.5.0f5';
public $platform = 0x6000000;
public $platformStr = '';
public $baseDefinitions = false;
public $classIDs = [];
public $ClassStructures = [];
... | php | MIT | d5c52d9cba82dce717f0ddae75a869972bbb766a | 2026-01-05T03:45:03.797410Z | true |
esterTion/unity-texture-toolkit | https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/dankagu/main.php | dankagu/main.php | <?php
chdir(__DIR__);
require 'flatc/D4AO_autoloader.php';
use \D4L\TakashoFes\Master\AssetPathRaw;
use \Google\FlatBuffers\ByteBuffer;
require_once 'UnityBundle.php';
require_once 'resource_fetch.php';
require_once 'sec_dankagu.php';
if (!file_exists('last_version.json')) {
$last_version = array('data'=>'0');
} els... | php | MIT | d5c52d9cba82dce717f0ddae75a869972bbb766a | 2026-01-05T03:45:03.797410Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.