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
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Env/MethodSet.php
src/Env/MethodSet.php
<?php declare(strict_types=1); namespace GoPhp\Env; use GoPhp\Error\InternalError; use GoPhp\Error\RuntimeError; use GoPhp\GoType\GoType; use GoPhp\GoType\PointerType; use GoPhp\GoValue\Func\FuncValue; use GoPhp\GoValue\Hashable; final class MethodSet { /** * @var array<string, array<string, FuncValue>> ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Env/EnvValue.php
src/Env/EnvValue.php
<?php declare(strict_types=1); namespace GoPhp\Env; use GoPhp\Env\ValueConverter\AddressableValueConverter; use GoPhp\Env\ValueConverter\TypeableValueConverter; use GoPhp\Env\ValueConverter\ValueConverter; use GoPhp\Error\RuntimeError; use GoPhp\GoType\GoType; use GoPhp\GoType\UntypedNilType; use GoPhp\GoType\Untype...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Env/ValueConverter/AddressableValueConverter.php
src/Env/ValueConverter/AddressableValueConverter.php
<?php declare(strict_types=1); namespace GoPhp\Env\ValueConverter; use GoPhp\GoType\GoType; use GoPhp\GoType\WrappedType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\TypeValue; final class AddressableValueConverter implements ValueConverter { public function supports(GoValue...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Env/ValueConverter/TypeableValueConverter.php
src/Env/ValueConverter/TypeableValueConverter.php
<?php declare(strict_types=1); namespace GoPhp\Env\ValueConverter; use GoPhp\GoType\GoType; use GoPhp\GoType\NamedType; use GoPhp\GoType\UntypedType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Sealable; use GoPhp\GoValue\Typeable; final class TypeableValueConverter implements V...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Env/ValueConverter/ValueConverter.php
src/Env/ValueConverter/ValueConverter.php
<?php declare(strict_types=1); namespace GoPhp\Env\ValueConverter; use GoPhp\GoType\GoType; use GoPhp\GoValue\GoValue; interface ValueConverter { public function supports(GoValue $value, GoType $type): bool; public function convert(GoValue $value, GoType $type): GoValue; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Error/InternalError.php
src/Error/InternalError.php
<?php declare(strict_types=1); namespace GoPhp\Error; use LogicException; use ReflectionClass; use function get_debug_type; use function is_object; use function is_string; use function sprintf; /** * Errors that indicate a bug in the code. * They must not occur even when running a wrongly written program. * * ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Error/AbortExecutionError.php
src/Error/AbortExecutionError.php
<?php declare(strict_types=1); namespace GoPhp\Error; use LogicException; final class AbortExecutionError extends LogicException {}
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Error/GoError.php
src/Error/GoError.php
<?php declare(strict_types=1); namespace GoPhp\Error; use GoParser\Lexer\Position; interface GoError { public function getPosition(): ?Position; public function getMessage(): string; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Error/RuntimeError.php
src/Error/RuntimeError.php
<?php declare(strict_types=1); namespace GoPhp\Error; use GoParser\Ast\Keyword; use GoParser\Ast\Stmt\Stmt; use GoPhp\Arg; use GoPhp\Argv; use GoPhp\GoType\GoType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\BuiltinFuncValue; use GoPhp\GoValue\Func\FuncValue; use GoPhp\GoValue\Func\Params; use GoPhp\GoValu...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Error/InterfaceTypeError.php
src/Error/InterfaceTypeError.php
<?php declare(strict_types=1); namespace GoPhp\Error; use GoPhp\GoType\GoType; use GoPhp\GoType\InterfaceType; use GoPhp\GoValue\GoValue; use function sprintf; class InterfaceTypeError extends RuntimeError { private GoValue|GoType|null $value = null; private ?string $missingMethod = null; public stati...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Error/PanicError.php
src/Error/PanicError.php
<?php declare(strict_types=1); namespace GoPhp\Error; use GoPhp\GoType\GoType; use GoPhp\GoType\UntypedNilType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Interface\InterfaceValue; use GoPhp\GoValue\String\UntypedStringValue; use RuntimeException; use function sprintf; class PanicError extends RuntimeEx...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Error/ParserError.php
src/Error/ParserError.php
<?php declare(strict_types=1); namespace GoPhp\Error; use GoParser\Error; use GoParser\Lexer\LexError; use GoParser\Lexer\Position; use GoParser\SyntaxError; use function sprintf; final class ParserError implements GoError { public function __construct( private readonly Position $position, priv...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/tests/Functional/InterpreterTest.php
tests/Functional/InterpreterTest.php
<?php declare(strict_types=1); namespace GoPhp\Tests\Functional; use GoPhp\EnvVarSet; use GoPhp\Interpreter; use GoPhp\Stream\StringStreamProvider; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use function glob; use function file_get_contents; use function sprintf; use function bas...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/tests/Unit/ZeroArityValidatorTest.php
tests/Unit/ZeroArityValidatorTest.php
<?php declare(strict_types=1); namespace GoPhp\Tests\Unit; use GoPhp\Error\RuntimeError; use GoPhp\GoType\FuncType; use GoPhp\GoType\NamedType; use GoPhp\GoValue\Func\Param; use GoPhp\GoValue\Func\Params; use GoPhp\ZeroArityValidator; use PHPUnit\Framework\TestCase; final class ZeroArityValidatorTest extends TestCa...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/tests/Unit/GoValue/BoolValueTest.php
tests/Unit/GoValue/BoolValueTest.php
<?php declare(strict_types=1); namespace GoPhp\Tests\Unit\GoValue; use GoPhp\Error\RuntimeError; use GoPhp\GoValue\BoolValue; use GoPhp\GoValue\Int\UintValue; use GoPhp\GoValue\String\StringValue; use GoPhp\Operator; use PHPUnit\Framework\TestCase; final class BoolValueTest extends TestCase { public function te...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/tests/Unit/Env/EnvMapTest.php
tests/Unit/Env/EnvMapTest.php
<?php declare(strict_types=1); namespace GoPhp\Tests\Unit\Env; use GoPhp\Env\EnvMap; use GoPhp\Env\EnvValue; use GoPhp\Error\RuntimeError; use GoPhp\GoType\NamedType; use PHPUnit\Framework\TestCase; final class EnvMapTest extends TestCase { private EnvMap $map; private EnvValue $valueA; private EnvValue...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/tests/Unit/Env/EnvironmentTest.php
tests/Unit/Env/EnvironmentTest.php
<?php declare(strict_types=1); namespace GoPhp\Tests\Unit\Env; use GoPhp\Env\Environment; use GoPhp\Error\RuntimeError; use GoPhp\GoValue\Int\IntValue; use PHPUnit\Framework\TestCase; final class EnvironmentTest extends TestCase { public function testWithoutEnclosing(): void { $env = Environment::ne...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/tests/Unit/Env/EnvValueTest.php
tests/Unit/Env/EnvValueTest.php
<?php declare(strict_types=1); namespace GoPhp\Tests\Unit\EnvValue; use GoPhp\Env\EnvValue; use GoPhp\GoType\NamedType; use GoPhp\GoValue\Int\IntValue; use GoPhp\GoValue\Int\Uint32Value; use GoPhp\GoValue\Int\UintValue; use GoPhp\GoValue\Int\UntypedIntValue; use PHPUnit\Framework\TestCase; final class EnvValueTest ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/examples/helloworld/main.php
examples/helloworld/main.php
<?php declare(strict_types=1); require __DIR__ . '/../../vendor/autoload.php'; use GoPhp\Interpreter; use GoPhp\Stream\StringStreamProvider; $stdout = ''; $interp = Interpreter::create( source: <<<'GO' package main func main() { println("Hello, World!") } GO, ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/examples/sorting/main.php
examples/sorting/main.php
<?php declare(strict_types=1); require __DIR__ . '/../../vendor/autoload.php'; use GoPhp\EnvVarSet; use GoPhp\Interpreter; use GoPhp\Stream\StringStreamProvider; $goRoot = __DIR__; $goFile = __DIR__ . '/src/main.go'; $goSrc = file_get_contents($goFile); $stdout = ''; $interp = Interpreter::create( source: $goS...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/src/Facade.php
src/Facade.php
<?php /** * Laravel-Markdown * * A small, lightweight and easy-to-use Laravel package for * handling markdown. * * @author Andreas Indal <andreas@rocketship.se> * @package andreasindal/laravel-markdown * @link https://github.com/andreasindal/laravel-markdown * @license MIT */ namespace Indal\Ma...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/src/MarkdownServiceProvider.php
src/MarkdownServiceProvider.php
<?php /** * Laravel-Markdown * * A small, lightweight and easy-to-use Laravel package for * handling markdown. * * @author Andreas Indal <andreas@rocketship.se> * @package andreasindal/laravel-markdown * @link https://github.com/andreasindal/laravel-markdown * @license MIT */ namespace Indal\Ma...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/src/helpers.php
src/helpers.php
<?php /** * Laravel-Markdown * * A small, lightweight and easy-to-use Laravel package for * handling markdown. * * @author Andreas Indal <andreas@rocketship.se> * @package andreasindal/laravel-markdown * @link https://github.com/andreasindal/laravel-markdown * @license MIT */ if (! function_exi...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/src/Parser.php
src/Parser.php
<?php /** * Laravel-Markdown * * A small, lightweight and easy-to-use Laravel package for * handling markdown. * * @author Andreas Indal <andreas@rocketship.se> * @package andreasindal/laravel-markdown * @link https://github.com/andreasindal/laravel-markdown * @license MIT */ namespace Indal\Ma...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/src/Exceptions/InvalidTagException.php
src/Exceptions/InvalidTagException.php
<?php /** * Laravel-Markdown * * A small, lightweight and easy-to-use Laravel package for * handling markdown. * * @author Andreas Indal <andreas@rocketship.se> * @package andreasindal/laravel-markdown * @link https://github.com/andreasindal/laravel-markdown * @license MIT */ namespace Indal\Ma...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/src/Drivers/MarkdownDriver.php
src/Drivers/MarkdownDriver.php
<?php /** * Laravel-Markdown * * A small, lightweight and easy-to-use Laravel package for * handling markdown. * * @author Andreas Indal <andreas@rocketship.se> * @package andreasindal/laravel-markdown * @link https://github.com/andreasindal/laravel-markdown * @license MIT */ namespace Indal\Ma...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/src/Drivers/ParsedownDriver.php
src/Drivers/ParsedownDriver.php
<?php /** * Laravel-Markdown * * A small, lightweight and easy-to-use Laravel package for * handling markdown. * * @author Andreas Indal <andreas@rocketship.se> * @package andreasindal/laravel-markdown * @link https://github.com/andreasindal/laravel-markdown * @license MIT */ namespace Indal\Ma...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/tests/ParsedownDriverTest.php
tests/ParsedownDriverTest.php
<?php use PHPUnit\Framework\TestCase; use Indal\Markdown\Drivers\ParsedownDriver; class ParsedownDriverTest extends TestCase { /** @test */ public function it_transforms_markdown_into_html() { $parser = new ParsedownDriver([]); $html = $parser->text("# Hello"); $this->assertEquals...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/tests/ParserTest.php
tests/ParserTest.php
<?php use Indal\Markdown\Parser; use PHPUnit\Framework\TestCase; use Indal\Markdown\Drivers\MarkdownDriver; class ParserTest extends TestCase { /** @test */ public function it_transforms_markdown_into_html() { $mock = Mockery::mock(MarkdownDriver::class); $parser = new Parser($mock); ...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
alsterholm/laravel-markdown
https://github.com/alsterholm/laravel-markdown/blob/d35465e40f613ba87b88e48ab5e82021f00d4991/config/markdown.php
config/markdown.php
<?php return [ /* |-------------------------------------------------------------------------- | Escape output |-------------------------------------------------------------------------- | | This option controls whether or not JavaScript in anchor tags should be | escaped or not, e.g. m...
php
MIT
d35465e40f613ba87b88e48ab5e82021f00d4991
2026-01-05T03:09:11.916727Z
false
centrifugal/phpcent
https://github.com/centrifugal/phpcent/blob/03be8f3e68097a346c4a31c5fdb164671fafa5f5/src/Client.php
src/Client.php
<?php namespace phpcent; /** * Centrifugo API Client * * @package phpcent * @copyright Copyright (c) 2019 Centrifugal * @license The MIT License (MIT) */ class Client { private $url; private $apikey; private $secret; private $cert; private $caPath; private $connectTimeoutOption;...
php
MIT
03be8f3e68097a346c4a31c5fdb164671fafa5f5
2026-01-05T03:09:14.854931Z
false
centrifugal/phpcent
https://github.com/centrifugal/phpcent/blob/03be8f3e68097a346c4a31c5fdb164671fafa5f5/tests/ClientTest.php
tests/ClientTest.php
<?php class ClientTest extends PHPUnit\Framework\TestCase { protected $client; public function setUp(): void { $this->client = new \phpcent\Client("http://localhost:8000/api"); } public function testSetters() { $this->assertNotNull($this->client->setSecret('secret')); $th...
php
MIT
03be8f3e68097a346c4a31c5fdb164671fafa5f5
2026-01-05T03:09:14.854931Z
false
centrifugal/phpcent
https://github.com/centrifugal/phpcent/blob/03be8f3e68097a346c4a31c5fdb164671fafa5f5/tests/bootstrap.php
tests/bootstrap.php
<?php require dirname(__DIR__) . '/vendor/autoload.php';
php
MIT
03be8f3e68097a346c4a31c5fdb164671fafa5f5
2026-01-05T03:09:14.854931Z
false
josh/overcast-sonos
https://github.com/josh/overcast-sonos/blob/6d828de0a3a7364fa444532f31d233f54bf964fd/overcast.php
overcast.php
<?php $memcache = new Memcached(); $memcache->setOption(Memcached::OPT_BINARY_PROTOCOL, true); if (getenv('MEMCACHIER_USERNAME') && getenv('MEMCACHIER_PASSWORD')) { $memcache->setSaslAuthData( getenv('MEMCACHIER_USERNAME'), getenv('MEMCACHIER_PASSWORD') ); } if (!$memcache->getServerList()) { if (getenv...
php
MIT
6d828de0a3a7364fa444532f31d233f54bf964fd
2026-01-05T03:09:23.058961Z
false
josh/overcast-sonos
https://github.com/josh/overcast-sonos/blob/6d828de0a3a7364fa444532f31d233f54bf964fd/smapi.php
smapi.php
<?php include_once 'sonos.php'; set_time_limit(10); ini_set("soap.wsdl_cache_enabled", "0"); $server = new SoapServer('Sonos.wsdl'); $server->setClass('Sonos'); $server->handle(); ?>
php
MIT
6d828de0a3a7364fa444532f31d233f54bf964fd
2026-01-05T03:09:23.058961Z
false
josh/overcast-sonos
https://github.com/josh/overcast-sonos/blob/6d828de0a3a7364fa444532f31d233f54bf964fd/sonos.php
sonos.php
<?php include_once 'overcast.php'; class Sonos { private $sessionId; function getSessionId($params) { error_log("SOAP getSessionId"); $username = $params->username; $password = $params->password; $token = login($username, $password); if ($token) { $response = new StdClass(); $r...
php
MIT
6d828de0a3a7364fa444532f31d233f54bf964fd
2026-01-05T03:09:23.058961Z
false
josh/overcast-sonos
https://github.com/josh/overcast-sonos/blob/6d828de0a3a7364fa444532f31d233f54bf964fd/setup.php
setup.php
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: https://github.com/josh/overcast-sonos"); exit(); ?>
php
MIT
6d828de0a3a7364fa444532f31d233f54bf964fd
2026-01-05T03:09:23.058961Z
false
josh/overcast-sonos
https://github.com/josh/overcast-sonos/blob/6d828de0a3a7364fa444532f31d233f54bf964fd/debug.php
debug.php
<?php include_once 'overcast.php'; $url = isset($_GET['url']) ? $_GET['url'] : null; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="/css/bootstrap.css"> <link rel="stylesheet" href="/css/site.css"> </head> <body> <div class="container"> <form method="GET" acti...
php
MIT
6d828de0a3a7364fa444532f31d233f54bf964fd
2026-01-05T03:09:23.058961Z
false
josh/overcast-sonos
https://github.com/josh/overcast-sonos/blob/6d828de0a3a7364fa444532f31d233f54bf964fd/index.php
index.php
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: https://github.com/josh/overcast-sonos"); exit(); ?>
php
MIT
6d828de0a3a7364fa444532f31d233f54bf964fd
2026-01-05T03:09:23.058961Z
false
josh/overcast-sonos
https://github.com/josh/overcast-sonos/blob/6d828de0a3a7364fa444532f31d233f54bf964fd/api.php
api.php
<?php ini_set('display_errors', 0); include_once 'overcast.php'; include_once 'sonos.php'; switch ($_GET['method']) { case 'login': echo json_encode(login($_GET['email'], $_GET['password'])); break; case 'fetchAccount': echo json_encode(fetchAccount($_GET['token'])); break; case 'fetchPodcast': ...
php
MIT
6d828de0a3a7364fa444532f31d233f54bf964fd
2026-01-05T03:09:23.058961Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/functions.php
functions.php
<?php /** * functions.php * */ /** * Include all php files in the /includes directory * * https://gist.github.com/theandystratton/5924570 */ add_action( 'genesis_setup', 'bsg_load_lib_files', 15 ); function bsg_load_lib_files() { foreach ( glob( dirname( __FILE__ ) . '/lib/*.php' ) as $file ) { include $fi...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/no-js.php
lib/no-js.php
<?php /** * Remove the .no-js class from the html element via JavaScript * * This allows styles targetting browsers without JavaScript */ add_action( 'wp_head', 'bsg_remove_no_js_class', 1 ); function bsg_remove_no_js_class() { echo "<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(doc...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/title-area-only-display-on-front-page.php
lib/title-area-only-display-on-front-page.php
<?php // hide title and description on all pages other than front page add_action( 'template_redirect', 'bsg_title_area_hide_on_pages_other_than_front' ); function bsg_title_area_hide_on_pages_other_than_front() { if ( !is_front_page() ) { remove_action( 'genesis_site_title', 'genesis_seo_site_title' ); ...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/title-area-jumbotron-on-front-page.php
lib/title-area-jumbotron-on-front-page.php
<?php add_action( 'template_redirect', 'bsg_title_area_jumbotron_unit_on_front_page' ); function bsg_title_area_jumbotron_unit_on_front_page() { if ( is_front_page() ) { add_action( 'genesis_site_title', 'bsg_jumbotron_unit_open', 2 ); add_action( 'genesis_site_description', 'bsg_jumbotron_unit_cl...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/bootstrap-markup-layout-options.php
lib/bootstrap-markup-layout-options.php
<?php /* Modify the Bootstrap Classes being applied * based on the Genesis template chosen */ // modify bootstrap classes based on genesis_site_layout add_filter('bsg-classes-to-add', 'bsg_modify_classes_based_on_template', 10, 3); // remove unused layouts function bsg_layout_options_modify_classes_to_add( $classe...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/widget-markup.php
lib/widget-markup.php
<?php // Update the default widget markup to use bootstrap panel component styles as well as other relevant nested components add_filter( 'genesis_register_sidebar_defaults', 'bsg_register_sidebar_defaults' ); function bsg_register_sidebar_defaults($defaults) { $defaults = array( 'before_widget' => genesis...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/pagination-add-type-class.php
lib/pagination-add-type-class.php
<?php /** * Add class "bsg-pagination-numeric" or "bsg-pagination-prev-next" depending on * the pagination style selected in the Genesis theme options * * @since 0.7.0 */ remove_filter( 'genesis_attr_archive-pagination', 'genesis_attributes_pagination' ); add_filter( 'bsg-add-class', 'bsg_prev_next_or_numeric_arc...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/genesis-setup.php
lib/genesis-setup.php
<?php // Add HTML5 markup structure add_theme_support( 'html5' ); // Remove structural Wraps remove_theme_support( 'genesis-structural-wraps' ); // Remove item(s) from genesis admin screens add_action( 'genesis_admin_before_metaboxes', 'bsg_remove_genesis_theme_metaboxes' ); // Remove item(s) from genesis customize...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/sidebar-secondary-move-inside-content-sidebar-wrap.php
lib/sidebar-secondary-move-inside-content-sidebar-wrap.php
<?php remove_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_sidebar_alt' ); add_action( 'genesis_after_content', 'genesis_get_sidebar_alt' );
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/add-x-ua-compatible.php
lib/add-x-ua-compatible.php
<?php // Add X-UA-Compatible tag add_action( 'genesis_meta', 'bsg_x_ua_compatible' ); function bsg_x_ua_compatible() { ?> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <?php }
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/search-form.php
lib/search-form.php
<?php // search-form same behavior as genesis with additional classes // for bootstrap styling add_filter( 'genesis_search_form', 'bsg_search_form', 10, 4); function bsg_search_form( $form, $search_text, $button_text, $label ) { $value_or_placeholder = ( get_search_query() == '' ) ? 'placeholder' : 'value'; $f...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/load-assets.php
lib/load-assets.php
<?php // replace style.css - Theme Information (no css) // with css/style.min.css - Compressed CSS for Theme remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); add_action( 'wp_enqueue_scripts', 'bsg_enqueue_css_js' ); function bsg_enqueue_css_js() { $version = wp_get_theme()->Version; // wp_enqueue...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/add-header-xua.php
lib/add-header-xua.php
<?php /** * Add X-UA-Compatible header to all responses * * @package salcode/boostrap-genesis */ if ( ! is_admin() ) { add_action( 'send_headers', 'bsg_add_header_xua' ); } /** * Send X-UA-Compatible header */ function bsg_add_header_xua() { header( 'X-UA-Compatible: IE=edge,chrome=1' ); }
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/image-display-archive.php
lib/image-display-archive.php
<?php remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); add_action( 'genesis_entry_header', 'genesis_do_post_image', 0 ); add_filter( "genesis_attr_entry-image", 'bsg_archive_image_attr_filter' ); function bsg_archive_image_attr_filter( $attributes ) { $attributes['class'] .= ' wp-post-ima...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/pagination-numeric.php
lib/pagination-numeric.php
<?php /** * Modify Previous Page / Next Page to use Bootstrap styling * * To generate the proper markup, we've recreated genesis_posts_nav() * and genesis_prev_next_posts_nav() since there was not a good way * to hook in and modify the markup. * * @since 0.7.0 */ add_filter( 'genesis_prev_link_text', 'bsg_gene...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/image-display-single.php
lib/image-display-single.php
<?php add_action( 'genesis_entry_header', 'bsg_single_featured_image', 5 ); function bsg_single_featured_image() { global $post; if ( ! is_singular() ) { return; } if ( ! has_post_thumbnail() ) { return; } $featured_image_attr = apply_filters( 'bsg-featured-image-attr', array...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/ie-conditional-comments.php
lib/ie-conditional-comments.php
<?php // remove default doctype // replace doctype/opening html tag with conditional comments doctype/opening html tag remove_action( 'genesis_doctype', 'genesis_do_doctype' ); add_action( 'genesis_doctype', 'bsg_conditional_comments' ); function bsg_conditional_comments() { ?> <!doctype html> <!--[if lt IE 7...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/image-sizes.php
lib/image-sizes.php
<?php add_image_size( 'bsg-featured-image', 1170, 630, true );
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/comment-form.php
lib/comment-form.php
<?php add_filter( 'comment_form_defaults', 'bsg_comment_form_modifications' ); function bsg_comment_form_modifications( $fields ) { //Remove Form Allowed Tags Box $fields['comment_notes_after'] = ''; return $fields; }
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/pagination-prev-next.php
lib/pagination-prev-next.php
<?php /** * Modify Previous Page / Next Page to use Bootstrap styling * * To generate the proper markup, we've recreated genesis_posts_nav() * and genesis_prev_next_posts_nav() since there was not a good way * to hook in and modify the markup. * * @since 0.7.0 */ remove_action( 'genesis_after_endwhile', 'genesi...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/bootstrap-walker.php
lib/bootstrap-walker.php
<?php /** * Class Name: wp_bootstrap_navwalker * GitHub URI: https://github.com/twittem/wp-bootstrap-navwalker * Description: A custom WordPress nav walker class to implement the Bootstrap 3 navigation style in a custom theme using the WordPress built in menu manager. * Version: 2.0.4 * Author: Edward McIntyre - ...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/remove-genesis-page-templates.php
lib/remove-genesis-page-templates.php
<?php /* Remove Genesis Page Templates * * @author Bill Erickson * @link http://www.billerickson.net/remove-genesis-page-templates * * @param array $page_templates * @return array */ function bsg_be_remove_genesis_page_templates( $page_templates ) { unset( $page_templates['page_archive.php'] ); unset( $page_te...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/skip-to-main-content.php
lib/skip-to-main-content.php
<?php /* Skip to Main Content - Accessibility Link * */ // add markup for the link add_action( 'genesis_before', 'bsg_skip_navigation_add_link', 5 ); // add id="main-content-container" as target add_filter( 'genesis_attr_content', 'bsg_skip_navigation_add_id_for_target' ); function bsg_skip_navigation_add_link() {...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/responsive-viewport.php
lib/responsive-viewport.php
<?php // Add viewport meta tag for mobile browsers add_theme_support( 'genesis-responsive-viewport' );
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/bootstrap-markup.php
lib/bootstrap-markup.php
<?php // add bootstrap classes add_filter( 'genesis_attr_nav-primary', 'bsg_add_markup_class', 10, 2 ); add_filter( 'genesis_attr_nav-secondary', 'bsg_add_markup_class', 10, 2 ); add_filter( 'genesis_attr_site-header', 'bsg_add_markup_class', 10, 2 ); add_filter( 'genesis_attr_site-inner', ...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/post-content-nav.php
lib/post-content-nav.php
<?php /** * Apply Bootstrap Styles to Page links when a post has multiple * pages via the <!--nextpage--> tag. * * See https://codex.wordpress.org/Styling_Page-Links * * @since 0.4.0 */ // remove default post_content_nav remove_action( 'genesis_entry_content', 'genesis_do_post_content_nav', 12 ); // add custo...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/nav.php
lib/nav.php
<?php if ( class_exists('UberMenu') || class_exists('UberMenuStandard') ) { return; } // remove primary & secondary nav from default position remove_action( 'genesis_after_header', 'genesis_do_nav' ); remove_action( 'genesis_after_header', 'genesis_do_subnav' ); // add primary & secondary nav to top of the...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
salcode/bootstrap-genesis
https://github.com/salcode/bootstrap-genesis/blob/a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503/lib/footer-creds.php
lib/footer-creds.php
<?php add_filter('genesis_footer_creds_text', 'bsg_footer_creds_filter'); function bsg_footer_creds_filter( $creds ) { $rel = is_front_page() ? '' : 'rel="nofollow"'; $creds = "<a {$rel} href=\"http://ironcodestudio.com/bootstrap-genesis-theme/\">Bootstrap Genesis Theme</a> by <a {$rel} href=\"http://ironcode...
php
MIT
a614b91e47b2d8d2b895f8f1a7edbaf02f1c0503
2026-01-05T03:09:37.181661Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/src/ModelInfo.php
src/ModelInfo.php
<?php namespace Spatie\ModelInfo; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; use ReflectionClass; use Spatie\ModelInfo\Attributes\Attribute; use Spatie\ModelInfo\Attributes\AttributeFinder; use Spatie\ModelInfo\Relations\Relation; use Spatie\ModelInfo\Relations\RelationFinder; class M...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/src/ModelFinder.php
src/ModelFinder.php
<?php namespace Spatie\ModelInfo; use Error; use Exception; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; use Illuminate\Support\Str; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; use ReflectionClass; use SplFileInfo; class ModelFinder { /** @return Collection<class-...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/src/Relations/Relation.php
src/Relations/Relation.php
<?php namespace Spatie\ModelInfo\Relations; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Traits\Macroable; use Spatie\ModelInfo\ModelInfo; class Relation implements Arrayable { use Macroable; public function __construct( public string $name, public string $type, ...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/src/Relations/RelationFinder.php
src/Relations/RelationFinder.php
<?php namespace Spatie\ModelInfo\Relations; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\Relation as IlluminateRelation; use Illuminate\Support\Collection; use ReflectionClass; use ReflectionMethod; use ReflectionNamedType; use ReflectionUnionType; use Spatie\ModelInfo\Attributes...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/src/Attributes/Attribute.php
src/Attributes/Attribute.php
<?php namespace Spatie\ModelInfo\Attributes; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Traits\Macroable; class Attribute implements Arrayable { use Macroable; public function __construct( public string $name, public ?string $phpType, public ?string $type, ...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/src/Attributes/AttributeFinder.php
src/Attributes/AttributeFinder.php
<?php namespace Spatie\ModelInfo\Attributes; use BackedEnum; use Carbon\CarbonInterface; use Illuminate\Database\Eloquent\Casts\AsStringable; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; use Illuminate\Support\Str; use ReflectionClass; use ReflectionMethod; use UnitEnum; class Attribute...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/RelationTest.php
tests/RelationTest.php
<?php use Illuminate\Foundation\Auth\User; use Illuminate\Support\Collection; use Spatie\ModelInfo\ModelInfo; use Spatie\ModelInfo\Relations\Relation; use Spatie\ModelInfo\Relations\RelationFinder; use Spatie\ModelInfo\Tests\TestSupport\Models\RelationTestModel; use Spatie\ModelInfo\Tests\TestSupport\Models\TestModel;...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/Pest.php
tests/Pest.php
<?php use Spatie\ModelInfo\Tests\TestSupport\TestCase; uses(TestCase::class)->in(__DIR__);
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/AttributeTest.php
tests/AttributeTest.php
<?php use Illuminate\Support\Collection; use Spatie\ModelInfo\Attributes\AttributeFinder; use Spatie\ModelInfo\Tests\TestSupport\Enums\TestEnum; use Spatie\ModelInfo\Tests\TestSupport\Models\ExtendedTypesModel; use Spatie\ModelInfo\Tests\TestSupport\Models\PhpTypeFromCastModel; use Spatie\ModelInfo\Tests\TestSupport\M...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/ModelInfoTest.php
tests/ModelInfoTest.php
<?php use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Foundation\Auth\User; use Spatie\ModelInfo\ModelInfo; use Spatie\ModelInfo\Tests\TestSupport\Models\ExtraModelInfoModel; use Spatie\ModelInfo\Tests\TestSupport\Models\RelationTestModel; use Spatie\ModelInfo\Tests\TestSupport\Models\TraitTestMod...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/ModelFinderTest.php
tests/ModelFinderTest.php
<?php namespace Spatie\ModelInfo\Tests; use Spatie\ModelInfo\ModelFinder; use Spatie\ModelInfo\Tests\TestSupport\Models\ExtendedTypesModel; use Spatie\ModelInfo\Tests\TestSupport\Models\ExtraModelInfoModel; use Spatie\ModelInfo\Tests\TestSupport\Models\Nested\Model\NestedModel; use Spatie\ModelInfo\Tests\TestSupport\...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/TestCase.php
tests/TestSupport/TestCase.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Orchestra\Testbench\TestCase as Orchestra; use Spatie\Snapshots\MatchesSnapshots; class TestCase extends Orchestra { use MatchesSnapshots; public function getEnvironmentSe...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Traits/TestTrait.php
tests/TestSupport/Traits/TestTrait.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Traits; trait TestTrait {}
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Enums/TestEnum.php
tests/TestSupport/Enums/TestEnum.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Enums; enum TestEnum {}
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/TraitTestModel.php
tests/TestSupport/Models/TraitTestModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models; use Illuminate\Database\Eloquent\Model; use Spatie\ModelInfo\Tests\TestSupport\Traits\TestTrait; class TraitTestModel extends Model { use TestTrait; }
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/ExtendedTypesModel.php
tests/TestSupport/Models/ExtendedTypesModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models; use Illuminate\Database\Eloquent\Model; class ExtendedTypesModel extends Model {}
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/RelationTestModel.php
tests/TestSupport/Models/RelationTestModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Foundation\Auth\User; class RelationTestModel extends Model { public function user(): BelongsTo { return $this->belongsTo(User::class...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/PhpTypeFromCastModel.php
tests/TestSupport/Models/PhpTypeFromCastModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models; use Illuminate\Database\Eloquent\Model; use Spatie\ModelInfo\Tests\TestSupport\Enums\TestEnum; class PhpTypeFromCastModel extends Model { /** * Get the attributes that should be cast. * * @return array<string, string> */ protected...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/TestModel.php
tests/TestSupport/Models/TestModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; class TestModel extends Model { protected $hidden = [ 'password', ]; public function getTitleUppercaseAttribute(): string { return strt...
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/ExtraModelInfoModel.php
tests/TestSupport/Models/ExtraModelInfoModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models; use Illuminate\Database\Eloquent\Model; class ExtraModelInfoModel extends Model { public function extraModelInfo() { return 'extra info'; } }
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/AbstractBaseModel.php
tests/TestSupport/Models/AbstractBaseModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models; use Illuminate\Database\Eloquent\Model; abstract class AbstractBaseModel extends Model {}
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
spatie/laravel-model-info
https://github.com/spatie/laravel-model-info/blob/822e73dac44550462eecb42acf0a646b3e78d2dc/tests/TestSupport/Models/Nested/Model/NestedModel.php
tests/TestSupport/Models/Nested/Model/NestedModel.php
<?php namespace Spatie\ModelInfo\Tests\TestSupport\Models\Nested\Model; use Illuminate\Database\Eloquent\Model; class NestedModel extends Model {}
php
MIT
822e73dac44550462eecb42acf0a646b3e78d2dc
2026-01-05T03:09:58.991411Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php return (new \PhpCsFixer\Config()) ->setFinder( \Symfony\Component\Finder\Finder::create() ->in([ __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/build', __DIR__ . '/tools', ]) ->name('*.php') ) ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/tools/full-coverage-check.php
tools/full-coverage-check.php
#!/usr/bin/env php <?php declare(strict_types=1); require_once dirname(__DIR__).'/vendor/autoload.php'; use Psl\Type; use VeeWee\Xml\Dom\Document; use function Psl\invariant; (static function (array $argv) { if (!$file = $argv[1] ?? null) { throw new InvalidArgumentException('Expected clover.xml as first...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/bootstrap.php
src/bootstrap.php
<?php declare(strict_types=1); (static function (): void { /** @var array<string, string> $functions */ $functions = [ 'Xml\Dom\Assert\assert_attribute' => __DIR__.'/Xml/Dom/Assert/assert_attribute.php', 'Xml\Dom\Assert\assert_cdata' => __DIR__.'/Xml/Dom/Assert/assert_cdata.php', 'Xml\D...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Xpath.php
src/Xml/Dom/Xpath.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom; use Dom\Node; use Dom\XPath as DOMXPath; use InvalidArgumentException; use Psl\Type\TypeInterface; use VeeWee\Xml\Dom\Collection\NodeList; use VeeWee\Xml\Exception\RuntimeException; use function VeeWee\Xml\Dom\Locator\Node\detect_document; use function VeeWee\...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Document.php
src/Xml/Dom/Document.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom; use Closure; use Dom\Element; use Dom\Node; use Dom\XMLDocument; use Dom\XPath as DOMXPath; use VeeWee\Xml\Dom\Traverser\Traverser; use VeeWee\Xml\Dom\Traverser\Visitor; use VeeWee\Xml\ErrorHandling\Issue\IssueCollection; use VeeWee\Xml\Exception\RuntimeExcept...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/xmlns_attribute.php
src/Xml/Dom/Builder/xmlns_attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Builder; use Closure; use Dom\Element; use VeeWee\Xml\Xmlns\Xmlns; use function VeeWee\Xml\Assertion\assert_strict_prefixed_name; /** * @return Closure(Element): Element */ function xmlns_attribute(string $prefix, string $namespaceURI): Closure { return ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/nodes.php
src/Xml/Dom/Builder/nodes.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Builder; use Closure; use Dom\Node; use function is_array; use function Psl\Iter\reduce; use function VeeWee\Xml\Dom\Locator\Node\detect_document; /** * @param list<callable(Node): (list<Node>|Node)> $builders * * @return Closure(Node): list<Node> */ funct...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/attribute.php
src/Xml/Dom/Builder/attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Builder; use Closure; use Dom\Element; /** * @return Closure(Element): Element */ function attribute(string $name, string $value): Closure { return static function (Element $node) use ($name, $value): Element { $node->setAttribute($name, $value);...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/Builder.php
src/Xml/Dom/Builder/Builder.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Builder; use Dom\Node; interface Builder { public function __invoke(Node $node): Node; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Builder/element.php
src/Xml/Dom/Builder/element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Builder; use Closure; use Dom\Element; use Dom\Node; use function VeeWee\Xml\Dom\Assert\assert_element; use function VeeWee\Xml\Dom\Locator\Node\detect_document; use function VeeWee\Xml\Internal\configure; /** * @param list<callable(Element): Element> $config...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false