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 |
|---|---|---|---|---|---|---|---|---|
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/WhereLikeClauseTest.php | tests/Filters/WhereLikeClauseTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters;
use Illuminate\Support\Facades\Route;
use Mehradsadeghi\FilterQueryString\Models\User;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class WhereLikeClauseTest extends TestCase
{
/** @test */
public function a_where_like_clause_can_be_perfor... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/CombinationTest.php | tests/Filters/CombinationTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class CombinationTest extends TestCase
{
/** @test */
public function combination1()
{
$query = 'name[0]=mehrad&name[1]=reza&between=age,20,30&sort=created_at';
$response = ... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/ComparisonClauses/LessOrEqualToTest.php | tests/Filters/ComparisonClauses/LessOrEqualToTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters\ComparisonClauses;
use Mehradsadeghi\FilterQueryString\Models\User;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class LessOrEqualToTest extends TestCase
{
/** @test */
public function list_of_users_with_age_of_less_or_equal_to_22_is_shown_... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/ComparisonClauses/GreaterThanTest.php | tests/Filters/ComparisonClauses/GreaterThanTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters\ComparisonClauses;
use Mehradsadeghi\FilterQueryString\Models\User;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class GreaterThanTest extends TestCase
{
/** @test */
public function list_of_users_with_age_of_greater_than_20_is_shown_correc... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/ComparisonClauses/BetweenTest.php | tests/Filters/ComparisonClauses/BetweenTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters\ComparisonClauses;
use Mehradsadeghi\FilterQueryString\Models\User;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class BetweenTest extends TestCase
{
/** @test */
public function list_of_user_with_age_between_20_and_40()
{
$quer... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/ComparisonClauses/CombinationTest.php | tests/Filters/ComparisonClauses/CombinationTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters\ComparisonClauses;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class CombinationTest extends TestCase
{
/** @test */
public function unite_two_different_fields_with_greater_and_less()
{
$query = 'greater=age,20&less=created_at,... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/ComparisonClauses/GreaterOrEqualTest.php | tests/Filters/ComparisonClauses/GreaterOrEqualTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters\ComparisonClauses;
use Mehradsadeghi\FilterQueryString\Models\User;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class GreaterOrEqualTest extends TestCase
{
/** @test */
public function list_of_users_with_age_of_greater_or_equal_to_20_is_sh... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/ComparisonClauses/LessThanTest.php | tests/Filters/ComparisonClauses/LessThanTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters\ComparisonClauses;
use Mehradsadeghi\FilterQueryString\Models\User;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class LessThanTest extends TestCase
{
/** @test */
public function list_of_users_with_age_of_less_to_22_is_shown_correctly()
... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/tests/Filters/ComparisonClauses/NotBetweenTest.php | tests/Filters/ComparisonClauses/NotBetweenTest.php | <?php
namespace Mehradsadeghi\FilterQueryString\Tests\Filters\ComparisonClauses;
use Mehradsadeghi\FilterQueryString\Models\User;
use Mehradsadeghi\FilterQueryString\Tests\TestCase;
class NotBetweenTest extends TestCase
{
/** @test */
public function list_of_user_with_age_not_between_22_and_40()
{
... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/models/User.php | models/User.php | <?php
namespace Mehradsadeghi\FilterQueryString\Models;
use Illuminate\Database\Eloquent\Model;
use Mehradsadeghi\FilterQueryString\FilterQueryString;
class User extends Model
{
use FilterQueryString, UserFilters;
protected $guarded = [];
}
| php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/models/UserFilters.php | models/UserFilters.php | <?php
namespace Mehradsadeghi\FilterQueryString\Models;
trait UserFilters {
protected $filters = [
'sort',
'greater',
'greater_or_equal',
'less',
'less_or_equal',
'between',
'not_between',
'in',
'like',
'name',
'age',
... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/database/seeds/UsersTableSeeder.php | database/seeds/UsersTableSeeder.php | <?php
use Illuminate\Database\Seeder;
use Mehradsadeghi\FilterQueryString\Models\User;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$users = $this->getStub();
foreach ($users as $user) {
f... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/database/seeds/DatabaseSeeder.php | database/seeds/DatabaseSeeder.php | <?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(UsersTableSeeder::class);
}
}
| php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/database/factories/UserFactory.php | database/factories/UserFactory.php | <?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use Faker\Generator as Faker;
use Mehradsadeghi\FilterQueryString\Models\User;
$factory->define(User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'username' => $f... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
mehradsadeghi/laravel-filter-querystring | https://github.com/mehradsadeghi/laravel-filter-querystring/blob/e408fa0673b0ee961c6f077794f5dcfacceb8c25/database/migrations/2020_01_01_000000_create_users_table.php | database/migrations/2020_01_01_000000_create_users_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... | php | MIT | e408fa0673b0ee961c6f077794f5dcfacceb8c25 | 2026-01-05T03:56:53.466644Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'array_syntax' => [... | php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/src/Defibrillator.php | src/Defibrillator.php | <?php
namespace Dyrynda\Defibrillator;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Str;
trait Defibrillator
{
protected static string $heart;
public function heart(): string
{
return static::$heart ??= S... | php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/src/DefibrillatorServiceProvider.php | src/DefibrillatorServiceProvider.php | <?php
namespace Dyrynda\Defibrillator;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
class DefibrillatorServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
$package
->name('laravel-def... | php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/tests/TestCase.php | tests/TestCase.php | <?php
namespace Dyrynda\Defibrillator\Tests;
use Dyrynda\Defibrillator\DefibrillatorServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
class TestCase extends Orchestra
{
protected function getPackageProviders($app)
{
return [
DefibrillatorServiceProvider::class,
];
... | php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/tests/DefibrillatorTest.php | tests/DefibrillatorTest.php | <?php
use Dyrynda\Defibrillator\Defibrillator;
use Dyrynda\Defibrillator\Tests\Fixtures\Artisan;
use Dyrynda\Defibrillator\Tests\TestCase;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Date;
uses(TestCase::class);
it('correctly identifies the heart to def... | php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/tests/Fixtures/IntrabeatArtisan.php | tests/Fixtures/IntrabeatArtisan.php | <?php
namespace Dyrynda\Defibrillator\Tests\Fixtures;
class IntrabeatArtisan extends Artisan
{
public function interval(): int
{
return 30;
}
}
| php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/tests/Fixtures/Artisan.php | tests/Fixtures/Artisan.php | <?php
namespace Dyrynda\Defibrillator\Tests\Fixtures;
use Dyrynda\Defibrillator\Defibrillator;
class Artisan
{
use Defibrillator;
}
| php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
michaeldyrynda/laravel-defibrillator | https://github.com/michaeldyrynda/laravel-defibrillator/blob/5eb1f9b21db568db974f18aad76cd1926792eb4a/config/defibrillator.php | config/defibrillator.php | <?php
return [
// The number of seconds between heartbeat pulses to be considered normal
'interval' => 90,
];
| php | MIT | 5eb1f9b21db568db974f18aad76cd1926792eb4a | 2026-01-05T03:57:01.765219Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/ServiceProvider.php | src/ServiceProvider.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed;
use Eduardokum\LaravelMailAutoEmbed\Contracts\Listeners\EmbedImages;
use Eduardokum\LaravelMailAutoEmbed\Listeners\SwiftEmbedImages;
use Eduardokum\LaravelMailAutoEmbed\Listeners\SymfonyEmbedImages;
use Illuminate\Foundation\Application;
use Illuminate\Mail\Events\Mess... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Listeners/SymfonyEmbedImages.php | src/Listeners/SymfonyEmbedImages.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Listeners;
use DOMDocument;
use DOMElement;
use Eduardokum\LaravelMailAutoEmbed\Embedder\AttachmentEmbedder;
use Eduardokum\LaravelMailAutoEmbed\Embedder\Base64Embedder;
use Eduardokum\LaravelMailAutoEmbed\Embedder\Embedder;
use Eduardokum\LaravelMailAutoEmbed\Models\Em... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Listeners/SwiftEmbedImages.php | src/Listeners/SwiftEmbedImages.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Listeners;
use DOMDocument;
use DOMElement;
use Eduardokum\LaravelMailAutoEmbed\Embedder\AttachmentEmbedder;
use Eduardokum\LaravelMailAutoEmbed\Embedder\Base64Embedder;
use Eduardokum\LaravelMailAutoEmbed\Embedder\Embedder;
use Eduardokum\LaravelMailAutoEmbed\Models\Em... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Contracts/Listeners/EmbedImages.php | src/Contracts/Listeners/EmbedImages.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Contracts\Listeners;
interface EmbedImages
{
} | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Contracts/Embedder/EntityEmbedder.php | src/Contracts/Embedder/EntityEmbedder.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Contracts\Embedder;
use Eduardokum\LaravelMailAutoEmbed\Models\EmbeddableEntity;
interface EntityEmbedder
{
/**
* @param EmbeddableEntity $entity
* @return string
*/
public function fromEntity(EmbeddableEntity $entity);
}
| php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Contracts/Embedder/UrlEmbedder.php | src/Contracts/Embedder/UrlEmbedder.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Contracts\Embedder;
interface UrlEmbedder
{
/**
* @param string $url
* @return string
*/
public function fromUrl($url);
/**
* @param string $path
* @return string
*/
public function fromPath($path);
/**
* @param s... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Models/EmbeddableEntity.php | src/Models/EmbeddableEntity.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Models;
interface EmbeddableEntity
{
/**
* @param mixed $id
* @return EmbeddableEntity|null
*/
public static function findEmbeddable($id);
/**
* @return mixed
*/
public function getRawContent();
/**
* @return string
... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Embedder/Base64Embedder.php | src/Embedder/Base64Embedder.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Embedder;
use Illuminate\Support\Arr;
use Eduardokum\LaravelMailAutoEmbed\Models\EmbeddableEntity;
class Base64Embedder extends Embedder
{
/**
* @var array
*/
private $config;
public function __construct($config)
{
$this->config = $c... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Embedder/Embedder.php | src/Embedder/Embedder.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Embedder;
use Eduardokum\LaravelMailAutoEmbed\Contracts\Embedder\UrlEmbedder;
use Eduardokum\LaravelMailAutoEmbed\Contracts\Embedder\EntityEmbedder;
abstract class Embedder implements UrlEmbedder, EntityEmbedder
{
}
| php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/src/Embedder/AttachmentEmbedder.php | src/Embedder/AttachmentEmbedder.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Embedder;
use Eduardokum\LaravelMailAutoEmbed\Models\EmbeddableEntity;
use Exception;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Str;
use Swift_EmbeddedFile;
use Swift_Message;
use Symfony\Component\Mime\Email;
c... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/MailTest.php | tests/MailTest.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests;
use Eduardokum\LaravelMailAutoEmbed\Listeners\SwiftEmbedImages;
use Eduardokum\LaravelMailAutoEmbed\Tests\Traits\InteractsWithMessage;
class MailTest extends TestCase
{
use InteractsWithMessage;
/**
* @test
*/
public function testAutomatic... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/TestCase.php | tests/TestCase.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests;
use Illuminate\Foundation\Application;
class TestCase extends \Orchestra\Testbench\TestCase
{
/**
* Define environment setup.
*
* @param \Illuminate\Foundation\Application $app
* @return void
*/
protected function getEnvironmen... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/FormatTest.php | tests/FormatTest.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests;
use Eduardokum\LaravelMailAutoEmbed\Tests\Traits\InteractsWithMessage;
/**
* Tests some scenarios, like HTML5 mails and mail with "invalid" HTML that mail clients
* like.
*/
class FormatTest extends TestCase
{
use InteractsWithMessage;
private const ... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/Traits/InteractsWithMessage.php | tests/Traits/InteractsWithMessage.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests\Traits;
use Eduardokum\LaravelMailAutoEmbed\Listeners\SwiftEmbedImages;
use Eduardokum\LaravelMailAutoEmbed\Listeners\SymfonyEmbedImages;
use Illuminate\Mail\Events\MessageSending;
use Swift_Message;
use Symfony\Component\Mime\Email;
/**
* Shared code for creati... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/fixtures/PictureEntity.php | tests/fixtures/PictureEntity.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests\fixtures;
use Eduardokum\LaravelMailAutoEmbed\Models\EmbeddableEntity;
class PictureEntity implements EmbeddableEntity
{
/**
* @param mixed $id
* @return EmbeddableEntity|null
*/
public static function findEmbeddable($id)
{
if... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/fixtures/WrongEntity.php | tests/fixtures/WrongEntity.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests\fixtures;
class WrongEntity
{
}
| php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/Embedder/Base64EmbedderTest.php | tests/Embedder/Base64EmbedderTest.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests\Embedder;
use Eduardokum\LaravelMailAutoEmbed\Embedder\Base64Embedder;
use Eduardokum\LaravelMailAutoEmbed\Tests\fixtures\PictureEntity;
use Eduardokum\LaravelMailAutoEmbed\Tests\TestCase;
class Base64EmbedderTest extends TestCase
{
public function testOkBase... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/tests/Embedder/AttachmentEmbedderTest.php | tests/Embedder/AttachmentEmbedderTest.php | <?php
namespace Eduardokum\LaravelMailAutoEmbed\Tests\Embedder;
use Eduardokum\LaravelMailAutoEmbed\Embedder\AttachmentEmbedder;
use Eduardokum\LaravelMailAutoEmbed\Tests\fixtures\PictureEntity;
use Eduardokum\LaravelMailAutoEmbed\Tests\TestCase;
use Swift_EmbeddedFile;
use Swift_Message;
class AttachmentEmbedderTes... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
eduardokum/laravel-mail-auto-embed | https://github.com/eduardokum/laravel-mail-auto-embed/blob/ba5438aff4b4a78c4af101acaf69cad6577f2775/config/mail-auto-embed.php | config/mail-auto-embed.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Mail auto embed
|--------------------------------------------------------------------------
|
| If true, images will be automatically embedded.
| If false, only images with the 'data-auto-embed'... | php | MIT | ba5438aff4b4a78c4af101acaf69cad6577f2775 | 2026-01-05T03:57:10.713541Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Configuration.php | src/Configuration.php | <?php
namespace Notion;
use Http\Discovery\Psr17FactoryDiscovery;
use Http\Discovery\Psr18ClientDiscovery;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestFactoryInterface;
/**
* Notion SDK configuration
*
* @psalm-type ConfigProperties = array{
* token: string,
* version: string,
* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Notion.php | src/Notion.php | <?php
namespace Notion;
use Notion\Blocks\Client as BlocksClient;
use Notion\Comments\Client as CommentsClient;
use Notion\Databases\Client as DatabasesClient;
use Notion\Pages\Client as PagesClient;
use Notion\Search\Client as SearchClient;
use Notion\Users\Client as UsersClient;
use Psr\Http\Client\ClientInterface;... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/NumberedListItem.php | src/Blocks/NumberedListItem.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type NumberedListItemJson = array{
* numbered_list_item: array{
* rich_text: ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/TableOfContents.php | src/Blocks/TableOfContents.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type TableOfContentsJson = array{
* table_of_contents: array{
* color?: string
* }
* }
*
* @psalm-immutable
*/
class Tabl... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Unknown.php | src/Blocks/Unknown.php | <?php
namespace Notion\Blocks;
/**
* An unknown block not implemented yet by the SDK.
*
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-immutable
*/
class Unknown implements BlockInterface
{
private function __construct(
private readonly BlockMetadata $metadata,
private ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Heading1.php | src/Blocks/Heading1.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
use Notion\Common\RichText;
use Notion\Exceptions\HeadingException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type Heading1Js... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Heading2.php | src/Blocks/Heading2.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
use Notion\Common\RichText;
use Notion\Exceptions\HeadingException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type Heading2Js... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/BlockType.php | src/Blocks/BlockType.php | <?php
namespace Notion\Blocks;
enum BlockType: string
{
case Paragraph = "paragraph";
case Heading1 = "heading_1";
case Heading2 = "heading_2";
case Heading3 = "heading_3";
case Callout = "callout";
case Quote = "quote";
case BulletedListItem = "bulleted_list_item";
case NumberedListIt... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Video.php | src/Blocks/Video.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
use Notion\Common\File;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type FileJson from \Notion\Common\File
*
* @psalm-type VideoJson = array{ video: FileJson }
*
* @psalm-immutable
*/
class Video implements ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Client.php | src/Blocks/Client.php | <?php
namespace Notion\Blocks;
use Notion\Blocks\BlockInterface;
use Notion\Configuration;
use Notion\Infrastructure\Http;
class Client
{
/**
* @internal Use `\Notion\Notion::blocks()` instead
*/
public function __construct(
private readonly Configuration $config,
) {
}
public ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/BlockInterface.php | src/Blocks/BlockInterface.php | <?php
namespace Notion\Blocks;
/** @psalm-immutable */
interface BlockInterface
{
public function metadata(): BlockMetadata;
public function addChild(BlockInterface $child): self;
public function changeChildren(BlockInterface ...$children): self;
public function archive(): self;
/** @internal */
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/ChildPage.php | src/Blocks/ChildPage.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type ChildPageJson = array{
* child_page: array{ title: string },
* }
*
* @psalm-immutable
*/
class ChildPage implements BlockInterface
{
private function __c... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/BlockMetadata.php | src/Blocks/BlockMetadata.php | <?php
namespace Notion\Blocks;
use DateTimeImmutable;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
/**
* @psalm-type BlockMetadataJson = array{
* type: string,
* id: string,
* created_time: string,
* last_edited_time: string,
* archived: bool,
* has_children: boo... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Table.php | src/Blocks/Table.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type TableJson = array{
* table: array{
* table_width: int,
* has_column_header: b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/BlockFactory.php | src/Blocks/BlockFactory.php | <?php
namespace Notion\Blocks;
class BlockFactory
{
/**
* @param array{ type: string, ... } $array
*/
public static function fromArray(array $array): BlockInterface
{
$type = $array["type"];
return match ($type) {
BlockType::Bookmark->value => Bookmark::fromA... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/ToDo.php | src/Blocks/ToDo.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type ToDoJson = array{
* to_do: array{
* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Image.php | src/Blocks/Image.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
use Notion\Common\File;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type FileJson from \Notion\Common\File
*
* @psalm-type ImageJson = array{ image: FileJson }
*
* @psalm-immutable... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Paragraph.php | src/Blocks/Paragraph.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type ParagraphJson = array{
* paragraph: array{
* rich_text: list<RichTextJso... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/ColumnList.php | src/Blocks/ColumnList.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\ColumnListException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type ColumnListJson = array{
* column_list: array{
* children: list<BlockMetadataJson>
* },
* }
*
* @psalm-immutable
*/
class ColumnList impleme... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Toggle.php | src/Blocks/Toggle.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type ToggleJson = array{
* toggle: array{
* rich_text: list<RichTextJson>,
*... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Heading3.php | src/Blocks/Heading3.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
use Notion\Common\RichText;
use Notion\Exceptions\HeadingException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type Heading3Js... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Callout.php | src/Blocks/Callout.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Common\Emoji;
use Notion\Common\File;
use Notion\Common\Icon;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
* @psalm-import-type EmojiJson f... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Breadcrumb.php | src/Blocks/Breadcrumb.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type BreadcrumbJson = array{
* breadcrumb: array<empty, empty>
* }
*
* @psalm-immutable
*/
class Breadcrumb implements BlockInterface
{
private function __con... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Embed.php | src/Blocks/Embed.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type EmbedJson = array{
* embed: array{ url: string },
* }
*
* @psalm-immutable
*/
class Embed implements BlockInterface
{
private function __construct(
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/EquationBlock.php | src/Blocks/EquationBlock.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
use Notion\Common\Equation;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type EquationJson from \Notion\Common\Equation
*
* @psalm-type EquationBlockMetadataJson = array{
* equation: EquationJson,
* }
*
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/FileBlock.php | src/Blocks/FileBlock.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
use Notion\Common\File;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type FileJson from \Notion\Common\File
*
* @psalm-type FileBlockMetadataJson = array{ file: FileJson }
*
* @psalm-immutable
*/
class FileBl... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Bookmark.php | src/Blocks/Bookmark.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
use Notion\Common\RichText;
/**
* Bookmark block
*
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type BookmarkJson = array{
* bookmark: array{
* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/LinkPreview.php | src/Blocks/LinkPreview.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
/**
* Link Preview block.
*
* This block cannot be created, only retrieved by the API.
*
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type LinkPreviewJson = array{
* link_preview: array{ url: string },
* }
*
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/ChildDatabase.php | src/Blocks/ChildDatabase.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type ChildDatabaseJson = array{
* child_database: array{ title: string },
* }
*
* @psalm-immutable
*/
class ChildDatabase implements BlockInterface
{
private ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Divider.php | src/Blocks/Divider.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type DividerJson = array{
* divider: array<empty, empty>
* }
* @psalm-immutable
*/
class Divider implements BlockInterface
{
private function __construct(
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/CodeLanguage.php | src/Blocks/CodeLanguage.php | <?php
namespace Notion\Blocks;
enum CodeLanguage: string
{
case Abap = "abap";
case Arduino = "arduino";
case Bash = "bash";
case Basic = "basic";
case C = "c";
case Clojure = "clojure";
case Coffeescript = "coffeescript";
case Cpp = "c++";
case CSharp = "c#";
case Css = "css";... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Pdf.php | src/Blocks/Pdf.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
use Notion\Common\File;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type FileJson from \Notion\Common\File
*
* @psalm-type PdfJson = array{ pdf: FileJson }
*
* @psalm-immutable
*/
class Pdf implements BlockI... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/BulletedListItem.php | src/Blocks/BulletedListItem.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Common\RichText;
/**
* Bulleted list item
*
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type BulletedListItemJson = array{
* bulleted_list_item: array... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/TableRow.php | src/Blocks/TableRow.php | <?php
namespace Notion\Blocks;
use Notion\Common\RichText;
use Notion\Exceptions\BlockException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type TableRowJson = array{
* table_row: array{
* cells: list<lis... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Code.php | src/Blocks/Code.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\BlockException;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type CodeJson = array{
* code: array{
* rich_text: RichTextJson[... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Column.php | src/Blocks/Column.php | <?php
namespace Notion\Blocks;
use Notion\Exceptions\ColumnException;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
*
* @psalm-type ColumnJson = array{
* column: array {
* children: list<BlockMetadataJson>
* },
* }
*
* @psalm-immutable
*/
class Column implements BlockInterfa... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Quote.php | src/Blocks/Quote.php | <?php
namespace Notion\Blocks;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
use Notion\Common\RichText;
/**
* @psalm-import-type BlockMetadataJson from BlockMetadata
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type QuoteJson = array{
* quote: array{
* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/MarkdownRenderer.php | src/Blocks/Renderer/MarkdownRenderer.php | <?php
namespace Notion\Blocks\Renderer;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\BlockType;
use Notion\Blocks\Renderer\Markdown;
class MarkdownRenderer implements RendererInterface
{
public static function render(BlockInterface ...$blocks): string
{
$markdown = "";
foreach ($blocks... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/RendererInterface.php | src/Blocks/Renderer/RendererInterface.php | <?php
namespace Notion\Blocks\Renderer;
use Notion\Blocks\BlockInterface;
interface RendererInterface
{
public static function render(BlockInterface ...$blocks): string;
public static function renderBlock(BlockInterface $block, int $depth = 0): string;
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/BlockRendererInterface.php | src/Blocks/Renderer/BlockRendererInterface.php | <?php
namespace Notion\Blocks\Renderer;
use Notion\Blocks\BlockInterface;
interface BlockRendererInterface
{
public static function render(BlockInterface $block, int $depth = 0): string;
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/BreadcrumbRenderer.php | src/Blocks/Renderer/Markdown/BreadcrumbRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Breadcrumb;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class BreadcrumbRenderer implements BlockRendererInterface
{
public static function render(BlockIn... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/BulletedListItemRenderer.php | src/Blocks/Renderer/Markdown/BulletedListItemRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\BulletedListItem;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class BulletedListItemRenderer implements BlockRendererInterface
{
public static function re... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ColumnListRenderer.php | src/Blocks/Renderer/Markdown/ColumnListRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\ColumnList;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class ColumnListRenderer implements BlockRendererInterface
{
public static function render(BlockIn... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ChildPageRenderer.php | src/Blocks/Renderer/Markdown/ChildPageRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\ChildPage;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class ChildPageRenderer implements BlockRendererInterface
{
public static function render(BlockInte... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/Heading3Renderer.php | src/Blocks/Renderer/Markdown/Heading3Renderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Heading3;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class Heading3Renderer implements BlockRendererInterface
{
public static function render(BlockInterf... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/EmbedRenderer.php | src/Blocks/Renderer/Markdown/EmbedRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Embed;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class EmbedRenderer implements BlockRendererInterface
{
public static function render(BlockInterface $b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/CalloutRenderer.php | src/Blocks/Renderer/Markdown/CalloutRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Callout;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class CalloutRenderer implements BlockRendererInterface
{
public static function render(BlockInterfac... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/PdfRenderer.php | src/Blocks/Renderer/Markdown/PdfRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Pdf;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class PdfRenderer implements BlockRendererInterface
{
public static function render(BlockInterface $block... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ToDoRenderer.php | src/Blocks/Renderer/Markdown/ToDoRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\ToDo;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class ToDoRenderer implements BlockRendererInterface
{
public static function render(BlockInterface $blo... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/RichTextRenderer.php | src/Blocks/Renderer/Markdown/RichTextRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Common\RichText;
final class RichTextRenderer
{
public static function render(RichText ...$text): string
{
$result = "";
foreach ($text as $t) {
$markdown = $t->plainText;
if ($t->isEquation()) {
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/Heading2Renderer.php | src/Blocks/Renderer/Markdown/Heading2Renderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Heading2;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class Heading2Renderer implements BlockRendererInterface
{
public static function render(BlockInterf... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/VideoRenderer.php | src/Blocks/Renderer/Markdown/VideoRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Video;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class VideoRenderer implements BlockRendererInterface
{
public static function render(BlockInterface $b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/LinkPreviewRenderer.php | src/Blocks/Renderer/Markdown/LinkPreviewRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\LinkPreview;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class LinkPreviewRenderer implements BlockRendererInterface
{
public static function render(Block... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ChildDatabaseRenderer.php | src/Blocks/Renderer/Markdown/ChildDatabaseRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\ChildDatabase;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class ChildDatabaseRenderer implements BlockRendererInterface
{
public static function render(B... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/FileRenderer.php | src/Blocks/Renderer/Markdown/FileRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\FileBlock;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class FileRenderer implements BlockRendererInterface
{
public static function render(BlockInterface... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ColumnRenderer.php | src/Blocks/Renderer/Markdown/ColumnRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Column;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class ColumnRenderer implements BlockRendererInterface
{
public static function render(BlockInterface ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/NumberedListItemRenderer.php | src/Blocks/Renderer/Markdown/NumberedListItemRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\NumberedListItem;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class NumberedListItemRenderer implements BlockRendererInterface
{
public static function re... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/TableOfContentsRenderer.php | src/Blocks/Renderer/Markdown/TableOfContentsRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\TableOfContents;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class TableOfContentsRenderer implements BlockRendererInterface
{
public static function rend... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.