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 |
|---|---|---|---|---|---|---|---|---|
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Models/MetaTag.php | src/Models/MetaTag.php | <?php
namespace AloiaCms\Models;
use AloiaCms\Models\Contracts\ModelInterface;
class MetaTag extends Model implements ModelInterface
{
protected $folder = 'meta_tags';
protected $required_fields = [
'title',
'description',
'author',
'image_url'
];
}
| php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Models/Traits/Postable.php | src/Models/Traits/Postable.php | <?php
namespace AloiaCms\Models\Traits;
use Carbon\Carbon;
trait Postable
{
/**
* Set the post date
*
* @param Carbon $post_date
* @return $this
*/
public function setPostDate(Carbon $post_date)
{
$this->matter['post_date'] = $post_date->toDateString();
$this->has... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Models/Traits/Publishable.php | src/Models/Traits/Publishable.php | <?php
namespace AloiaCms\Models\Traits;
use Illuminate\Support\Collection;
trait Publishable
{
/**
* Determine whether this article is published
*
* @return bool
*/
public function isPublished(): bool
{
return $this->matter['is_published'] ?? false;
}
/**
* Retu... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Models/Traits/Updatable.php | src/Models/Traits/Updatable.php | <?php
namespace AloiaCms\Models\Traits;
use Carbon\Carbon;
trait Updatable
{
/**
* Set the update date
*
* @param Carbon $update_date
* @return $this
*/
public function setUpdateDate(Carbon $update_date)
{
$this->matter['update_date'] = $update_date->toDateTimeString();
... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Models/Contracts/PublishInterface.php | src/Models/Contracts/PublishInterface.php | <?php
namespace AloiaCms\Models\Contracts;
use Illuminate\Support\Collection;
interface PublishInterface
{
/**
* Determine whether this object is published
*
* @return bool
*/
public function isPublished(): bool;
/**
* Retrieve all published models
*
* @return Collecti... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Models/Contracts/ModelInterface.php | src/Models/Contracts/ModelInterface.php | <?php
namespace AloiaCms\Models\Contracts;
use Illuminate\Support\Collection;
interface ModelInterface
{
/**
* Find the model by the given value
*
* @param string $file_name
* @return ModelInterface
*/
public static function find(string $file_name): ModelInterface;
/**
* G... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Models/Contracts/StorableInterface.php | src/Models/Contracts/StorableInterface.php | <?php
namespace AloiaCms\Models\Contracts;
interface StorableInterface
{
/**
* Get the absolute path of the folder in which this resource is saved
*
* @return string
*/
public function getFolderPath(): string;
}
| php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Writer/FolderCreator.php | src/Writer/FolderCreator.php | <?php
namespace AloiaCms\Writer;
class FolderCreator
{
/**
* Create a folder for the given path if it doesn't exist
*
* @param string $folder_path
* @throws \Exception
*/
public static function forPath(string $folder_path): void
{
if (!file_exists($folder_path)) {
... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Writer/FrontMatterCreator.php | src/Writer/FrontMatterCreator.php | <?php
namespace AloiaCms\Writer;
use Illuminate\Support\Collection;
use Symfony\Component\Yaml\Yaml;
class FrontMatterCreator
{
private $matter = [];
private $content = '';
/**
* FrontMatterCreator constructor.
* @param array $matter
* @param string $content
*/
private function... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Seo/Sitemap/ChangeFrequency.php | src/Seo/Sitemap/ChangeFrequency.php | <?php
namespace AloiaCms\Seo\Sitemap;
class ChangeFrequency
{
const Daily = "daily";
const Weekly = "weekly";
const Monthly = "monthly";
const Yearly = "yearly";
}
| php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Events/PreModelSaved.php | src/Events/PreModelSaved.php | <?php
namespace AloiaCms\Events;
use AloiaCms\Models\Contracts\ModelInterface;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PreModelSaved
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public ModelI... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Events/PostModelSaved.php | src/Events/PostModelSaved.php | <?php
namespace AloiaCms\Events;
use AloiaCms\Models\Contracts\ModelInterface;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PostModelSaved
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public Model... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Events/PostModelRenamed.php | src/Events/PostModelRenamed.php | <?php
namespace AloiaCms\Events;
use AloiaCms\Models\Contracts\ModelInterface;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PostModelRenamed
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public Mod... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Events/ModelRenameFailed.php | src/Events/ModelRenameFailed.php | <?php
namespace AloiaCms\Events;
use AloiaCms\Models\Contracts\ModelInterface;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ModelRenameFailed
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public Mo... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Events/PreModelDeleted.php | src/Events/PreModelDeleted.php | <?php
namespace AloiaCms\Events;
use AloiaCms\Models\Contracts\ModelInterface;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PreModelDeleted
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public Mode... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Events/PreModelRenamed.php | src/Events/PreModelRenamed.php | <?php
namespace AloiaCms\Events;
use AloiaCms\Models\Contracts\ModelInterface;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PreModelRenamed
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public Mode... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/src/Events/PostModelDeleted.php | src/Events/PostModelDeleted.php | <?php
namespace AloiaCms\Events;
use AloiaCms\Models\Contracts\ModelInterface;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PostModelDeleted
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public Mod... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Pest.php | tests/Pest.php | <?php
uses(\AloiaCms\Tests\TestCase::class)->in(__DIR__);
| php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/TestAuthServiceProvider.php | tests/TestAuthServiceProvider.php | <?php
namespace AloiaCms\Tests;
use AloiaCms\Auth\AloiaCmsUserProvider;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\ServiceProvider;
class TestAuthServiceProvider extends ServiceProvider
{
public function boot()
{
Auth::provider('aloiacms', function ($app, array $config) {
... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/InlineBlockParserTest.php | tests/InlineBlockParserTest.php | <?php
namespace AloiaCms\Tests;
use AloiaCms\InlineBlockParser;
use AloiaCms\Facades\BlockFacade;
use AloiaCms\Models\ContentBlock;
class InlineBlockParserTest extends TestCase
{
public function test_nothing_is_returned_if_block_does_not_exist()
{
$this->assertEmpty(BlockFacade::get('not_existing'))... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/TestCase.php | tests/TestCase.php | <?php
namespace AloiaCms\Tests;
use AloiaCms\AloiaCmsServiceProvider;
use AloiaCms\Auth\User;
use Illuminate\Support\Facades\Config;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamDirectory;
class TestCase extends \Orchestra\Testbench\TestCase
{
/**
* The base URL to use while testing the applica... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/HtmlParserTest.php | tests/HtmlParserTest.php | <?php
namespace AloiaCms\Tests;
use AloiaCms\HtmlParser;
class HtmlParserTest extends TestCase
{
public function test_tag_attribute_can_be_found()
{
$html_string = "<div><img src='https://google.com'/><img src='https://yahoo.com'/></div>";
$links = HtmlParser::getTagAttribute($html_string, ... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Auth/AloiaCmsUserProviderTest.php | tests/Auth/AloiaCmsUserProviderTest.php | <?php
use AloiaCms\Auth\User;
use Illuminate\Support\Facades\Auth;
it('can get user from guard', function () {
$user = User::find('test@example.com')->save();
Auth::login($user);
$logged_in_user = Auth::user();
$this->assertSame($user->getAuthIdentifier(), $logged_in_user->getAuthIdentifier());
});... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Console/ConfigCommandTest.php | tests/Console/ConfigCommandTest.php | <?php
test('config can be published through command', function () {
$this
->artisan('aloiacms:publish:config')
->assertExitCode(0);
});
| php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Console/SitemapCommandTest.php | tests/Console/SitemapCommandTest.php | <?php
use AloiaCms\Models\Article;
use Illuminate\Support\Facades\Config;
test('sitemap can be generated through the command', function () {
Article::find('test')
->setPostDate(now())
->save();
$this
->artisan('aloiacms:sitemap')
->assertExitCode(0);
$sitemap_path = Confi... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Console/NewArticleTest.php | tests/Console/NewArticleTest.php | <?php
use AloiaCms\Models\Article;
test('new article cannot be created without a slug', function () {
$this->expectExceptionMessage('You need to submit a slug using --slug');
$this->artisan('aloiacms:new:article');
});
test('new article can be created with slug', function () {
$this->artisan('aloiacms:n... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Models/ArticleTest.php | tests/Models/ArticleTest.php | <?php
namespace AloiaCms\Tests\Models;
use AloiaCms\Facades\ArticleFacade;
use Carbon\Carbon;
use AloiaCms\Models\Article;
use AloiaCms\Tests\TestCase;
use Illuminate\Support\Facades\Config;
use org\bovigo\vfs\vfsStream;
class ArticleTest extends TestCase
{
public function test_filename_is_required_to_create_ar... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Models/ContentBlockTest.php | tests/Models/ContentBlockTest.php | <?php
namespace AloiaCms\Tests\Models;
use AloiaCms\Facades\BlockFacade;
use AloiaCms\Models\ContentBlock;
use AloiaCms\Tests\TestCase;
class ContentBlockTest extends TestCase
{
public function test_nothing_is_returned_if_block_does_not_exist()
{
$block = new ContentBlock();
$this->assertEmp... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Models/ModelTest.php | tests/Models/ModelTest.php | <?php
use AloiaCms\Models\Article;
use AloiaCms\Models\Model;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\URL;
class Tutorial extends Model
{
}
test('matter is not overwritten when using addMatter()', function () {
$article = Article:... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Models/ModelEventTest.php | tests/Models/ModelEventTest.php | <?php
namespace AloiaCms\Tests\Models;
use AloiaCms\Events\ModelRenameFailed;
use AloiaCms\Events\PostModelDeleted;
use AloiaCms\Events\PostModelRenamed;
use AloiaCms\Events\PostModelSaved;
use AloiaCms\Events\PreModelDeleted;
use AloiaCms\Events\PreModelRenamed;
use AloiaCms\Events\PreModelSaved;
use AloiaCms\Models... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Models/MetaTagTest.php | tests/Models/MetaTagTest.php | <?php
namespace AloiaCms\Tests\Models;
use AloiaCms\Facades\MetaTagFacade;
use AloiaCms\Models\MetaTag;
use AloiaCms\Tests\TestCase;
class MetaTagTest extends TestCase
{
public function test_tags_can_be_parsed_by_page_name()
{
$tags = MetaTag::find('default')
->setMatter([
... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Models/PageTest.php | tests/Models/PageTest.php | <?php
namespace AloiaCms\Tests\Models;
use AloiaCms\Facades\PageFacade;
use Carbon\Carbon;
use AloiaCms\Models\ContentBlock;
use AloiaCms\Models\Page;
use AloiaCms\Tests\TestCase;
class PageTest extends TestCase
{
public function test_pages_need_to_have_a_title()
{
$this->expectExceptionMessage('Att... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Writer/FrontMatterCreatorTest.php | tests/Writer/FrontMatterCreatorTest.php | <?php
it('can generate markdown with front matter', function ($front_matter, $expected_yaml) {
$markdown_body = "# Test";
$creator = \AloiaCms\Writer\FrontMatterCreator::seed($front_matter, $markdown_body);
expect($creator->create())->toBe($expected_yaml);
})->with([
[
['test' => true],
... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/tests/Writer/FolderCreatorTest.php | tests/Writer/FolderCreatorTest.php | <?php
it('should create a new folder if it doesn\'t exist', function () {
$test_tutorials_root_path = \Illuminate\Support\Facades\Config::get('aloiacms.collections_path') . '/test-tutorials';
expect(file_exists($test_tutorials_root_path))->toBe(false);
\AloiaCms\Writer\FolderCreator::forPath($test_tutori... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
roelofjan-elsinga/aloia-cms | https://github.com/roelofjan-elsinga/aloia-cms/blob/1615722de4555d8c964f6a9556d5ebd416cadc54/config/aloiacms.php | config/aloiacms.php | <?php
return [
/*
* This value represents the folder locations where the collections are saved
* */
'collections_path' => storage_path('app/collections'),
/*
* The seo key allows you to customize certain SEO specific generator features
* */
'seo' => [
/*
* Specif... | php | MIT | 1615722de4555d8c964f6a9556d5ebd416cadc54 | 2026-01-05T02:59:11.524229Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$config = new \PhpCsFixer\Config();
return $config
->setRules([
'@PSR12' => true,
'@PHP81Migration' => true,
'no_unused_imports' => true,
])
->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
)
; | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/WaitStrategy.php | src/Wait/WaitStrategy.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Testcontainers\Container\StartedTestContainer;
interface WaitStrategy
{
public function wait(StartedTestContainer $container): void;
}
| php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/WaitForContainer.php | src/Wait/WaitForContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Docker\API\Model\ContainersIdJsonGetResponse200;
use Testcontainers\Container\StartedTestContainer;
use Testcontainers\Exception\ContainerNotReadyException;
/**
* Simply makes container inspect and checks if container is running.
* Uses $timout and... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/WaitForHttp.php | src/Wait/WaitForHttp.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Testcontainers\Container\HttpMethod;
use Testcontainers\Container\StartedTestContainer;
use Testcontainers\Exception\ContainerWaitingTimeoutException;
class WaitForHttp extends BaseWaitStrategy
{
protected HttpMethod $method = HttpMethod::GET;
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/WaitForLog.php | src/Wait/WaitForLog.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Testcontainers\Container\StartedTestContainer;
use Testcontainers\Exception\ContainerWaitingTimeoutException;
/**
* Uses $timout and $pollInterval in milliseconds to set the parameters for waiting.
*/
class WaitForLog extends BaseWaitStrategy
{
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/WaitForHealthCheck.php | src/Wait/WaitForHealthCheck.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Docker\API\Model\ContainersIdJsonGetResponse200;
use Testcontainers\Container\StartedTestContainer;
use Testcontainers\Exception\ContainerStateException;
use Testcontainers\Exception\ContainerWaitingTimeoutException;
use Testcontainers\Exception\Healt... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/WaitForHostPort.php | src/Wait/WaitForHostPort.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Testcontainers\Container\StartedTestContainer;
use Testcontainers\Exception\ContainerWaitingTimeoutException;
class WaitForHostPort extends BaseWaitStrategy
{
public function wait(StartedTestContainer $container): void
{
$startTime = ... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/BaseWaitStrategy.php | src/Wait/BaseWaitStrategy.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Testcontainers\Container\StartedTestContainer;
abstract class BaseWaitStrategy implements WaitStrategy
{
public function __construct(protected int $timeout = 10000, protected int $pollInterval = 500)
{
}
abstract public function wait... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Wait/WaitForExec.php | src/Wait/WaitForExec.php | <?php
declare(strict_types=1);
namespace Testcontainers\Wait;
use Closure;
use Docker\API\Model\ExecIdJsonGetResponse200;
use Testcontainers\Container\StartedTestContainer;
use Testcontainers\Exception\ContainerWaitingTimeoutException;
/**
* Uses $timout and $pollInterval in milliseconds to set the parameters for ... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/HttpMethod.php | src/Container/HttpMethod.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
enum HttpMethod: string
{
case GET = 'GET';
case POST = 'POST';
case PUT = 'PUT';
case DELETE = 'DELETE';
case HEAD = 'HEAD';
case OPTIONS = 'OPTIONS';
public static function fromString(string $method): self
{
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/StoppedGenericContainer.php | src/Container/StoppedGenericContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
class StoppedGenericContainer implements StoppedTestContainer
{
public function __construct(protected readonly string $id)
{
}
public function getId(): string
{
return $this->id;
}
}
| php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/StartedTestContainer.php | src/Container/StartedTestContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
use Docker\API\Model\PortBinding;
use Docker\Docker;
interface StartedTestContainer
{
/**
* @param list<string> $command
*/
public function exec(array $command): string;
/**
* @return iterable<string, array<PortBinding>>
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/InternetProtocol.php | src/Container/InternetProtocol.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
/**
* The IP protocols supported by Docker.
*/
enum InternetProtocol: string
{
case TCP = 'TCP';
case UDP = 'UDP';
public function toDockerNotation(): string
{
return strtolower($this->value);
}
public static funct... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/GenericContainer.php | src/Container/GenericContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
use Docker\API\Exception\ContainerCreateNotFoundException;
use Docker\API\Model\ContainerCreateResponse;
use Docker\API\Model\ContainersCreatePostBody;
use Docker\API\Model\EndpointSettings;
use Docker\API\Model\HealthConfig;
use Docker\API\Model\Hos... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/StoppedTestContainer.php | src/Container/StoppedTestContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
interface StoppedTestContainer
{
public function getId(): string;
}
| php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/TestContainer.php | src/Container/TestContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
use Testcontainers\Utils\PortGenerator\PortGenerator;
use Testcontainers\Wait\WaitStrategy;
interface TestContainer
{
public function start(): StartedGenericContainer;
/**
* @param array<string> $command
*/
public function wit... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Container/StartedGenericContainer.php | src/Container/StartedGenericContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Container;
use Docker\API\Client;
use Docker\API\Model\ContainersIdExecPostBody;
use Docker\API\Model\ContainersIdJsonGetResponse200;
use Docker\API\Model\EndpointSettings;
use Docker\API\Model\IdResponse;
use Docker\API\Model\PortBinding;
use Docker\API\Runtim... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/TarBuilder.php | src/Utils/TarBuilder.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils;
use InvalidArgumentException;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use RuntimeException;
use SplFileInfo;
class TarBuilder
{
/**
* @var array<array{source: string, target: string, mode: int|null}>
*/
private a... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/PortNormalizer.php | src/Utils/PortNormalizer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils;
use Testcontainers\Container\InternetProtocol;
class PortNormalizer
{
/**
* Normalize a port specification to ensure it includes a protocol.
* Defaults to 'tcp' if no protocol is specified.
*
* @param string|int $port Port to nor... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/HostResolver.php | src/Utils/HostResolver.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils;
use Docker\API\Model\Network;
use Docker\Docker;
use RuntimeException;
use Testcontainers\Container\GenericContainer;
use Testcontainers\ContainerClient\DockerContainerClient;
class HostResolver
{
public function __construct(protected ?Docker $docke... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/DockerAuthConfig.php | src/Utils/DockerAuthConfig.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils;
use RuntimeException;
use JsonException;
class DockerAuthConfig
{
private const DEFAULT_CONFIG_PATHS = [
'~/.docker/config.json',
'/etc/docker/config.json',
];
private static ?self $instance = null;
/**
* @var arra... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/PortGenerator/FixedPortGenerator.php | src/Utils/PortGenerator/FixedPortGenerator.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils\PortGenerator;
class FixedPortGenerator implements PortGenerator
{
protected int $portIndex = 0;
public function __construct(
/** @var int[] */
protected array $ports
) {
}
public function generatePort(): int
{
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/PortGenerator/RandomPortGenerator.php | src/Utils/PortGenerator/RandomPortGenerator.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils\PortGenerator;
class RandomPortGenerator implements PortGenerator
{
public function generatePort(): int
{
return $this->getRandomPort($this->randomBetweenInclusive(10000, 65535));
}
private function randomBetweenInclusive(int $min... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/PortGenerator/RandomUniquePortGenerator.php | src/Utils/PortGenerator/RandomUniquePortGenerator.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils\PortGenerator;
class RandomUniquePortGenerator implements PortGenerator
{
/** @var int[] */
protected static array $assignedPorts = [];
public function __construct(protected PortGenerator $portGenerator = new RandomPortGenerator())
{
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Utils/PortGenerator/PortGenerator.php | src/Utils/PortGenerator/PortGenerator.php | <?php
declare(strict_types=1);
namespace Testcontainers\Utils\PortGenerator;
interface PortGenerator
{
public function generatePort(): int;
}
| php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Modules/MySQLContainer.php | src/Modules/MySQLContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Modules;
use Testcontainers\Container\GenericContainer;
use Testcontainers\Wait\WaitForExec;
class MySQLContainer extends GenericContainer
{
public function __construct(string $version = 'latest', string $mysqlRootPassword = 'root')
{
parent::_... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Modules/OpenSearchContainer.php | src/Modules/OpenSearchContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Modules;
use Testcontainers\Container\GenericContainer;
use Testcontainers\Wait\WaitForLog;
class OpenSearchContainer extends GenericContainer
{
public function __construct(string $version = 'latest')
{
parent::__construct('opensearchproject/op... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Modules/RedisContainer.php | src/Modules/RedisContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Modules;
use Testcontainers\Container\GenericContainer;
use Testcontainers\Wait\WaitForLog;
class RedisContainer extends GenericContainer
{
public function __construct(string $version = 'latest')
{
parent::__construct('redis:' . $version);
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Modules/MariaDBContainer.php | src/Modules/MariaDBContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Modules;
use Testcontainers\Container\GenericContainer;
use Testcontainers\Wait\WaitForExec;
class MariaDBContainer extends GenericContainer
{
public function __construct(string $version = 'latest', string $mysqlRootPassword = 'root')
{
parent:... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Modules/PostgresContainer.php | src/Modules/PostgresContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Modules;
use Testcontainers\Container\GenericContainer;
use Testcontainers\Wait\WaitForExec;
class PostgresContainer extends GenericContainer
{
public function __construct(
string $version = 'latest',
public readonly string $username = 'tes... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Modules/MongoDBContainer.php | src/Modules/MongoDBContainer.php | <?php
declare(strict_types=1);
namespace Testcontainers\Modules;
use Testcontainers\Container\GenericContainer;
use Testcontainers\Wait\WaitForExec;
class MongoDBContainer extends GenericContainer
{
private const STARTUP_TIMEOUT_MS = 30_000;
public function __construct(
string $version = 'latest',
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Exception/ContainerNotReadyException.php | src/Exception/ContainerNotReadyException.php | <?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class ContainerNotReadyException extends ContainerException
{
}
| php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Exception/ContainerException.php | src/Exception/ContainerException.php | <?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class ContainerException extends \RuntimeException
{
protected string $containerId;
public function __construct(string $message, string $containerId = '', ?\Throwable $previous = null)
{
$this->containerId = $containerId;
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Exception/ContainerStateException.php | src/Exception/ContainerStateException.php | <?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class ContainerStateException extends ContainerException
{
public function __construct(string $containerId, ?\Throwable $previous = null)
{
$message = sprintf('Unable to retrieve state for container %s', $containerId);
parent:... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Exception/ContainerWaitingTimeoutException.php | src/Exception/ContainerWaitingTimeoutException.php | <?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class ContainerWaitingTimeoutException extends ContainerNotReadyException
{
public function __construct(string $containerId, ?string $message = null, ?\Throwable $previous = null)
{
$message ??= sprintf('Timeout reached while waiting ... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Exception/HealthCheckNotConfiguredException.php | src/Exception/HealthCheckNotConfiguredException.php | <?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class HealthCheckNotConfiguredException extends ContainerNotReadyException
{
public function __construct(string $containerId, ?\Throwable $previous = null)
{
$message = sprintf('Health check not configured for container %s', $containe... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Exception/UnknownHealthStatusException.php | src/Exception/UnknownHealthStatusException.php | <?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class UnknownHealthStatusException extends ContainerNotReadyException
{
public function __construct(string $containerId, string $status, ?\Throwable $previous = null)
{
$message = sprintf('Unknown health status %s for container %s', $... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/Exception/HealthCheckFailedException.php | src/Exception/HealthCheckFailedException.php | <?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class HealthCheckFailedException extends ContainerNotReadyException
{
public function __construct(string $containerId, ?\Throwable $previous = null)
{
$message = sprintf('Health check failed: Container %s is unhealthy', $containerId);... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/src/ContainerClient/DockerContainerClient.php | src/ContainerClient/DockerContainerClient.php | <?php
declare(strict_types=1);
namespace Testcontainers\ContainerClient;
use Docker\Docker as DockerClient;
class DockerContainerClient
{
/**
* @var DockerClient|null Singleton instance of DockerClient
*/
private static ?DockerClient $dockerClient = null;
private function __construct()
{
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/MongoDBContainerTest.php | tests/Integration/MongoDBContainerTest.php | <?php
declare(strict_types=1);
namespace Integration;
use Testcontainers\Container\StartedGenericContainer;
use Testcontainers\Modules\MongoDBContainer;
use Testcontainers\Tests\Integration\ContainerTestCase;
class MongoDBContainerTest extends ContainerTestCase
{
public function setUp(): void
{
if (... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/MariaDBContainerTest.php | tests/Integration/MariaDBContainerTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use Testcontainers\Modules\MariaDBContainer;
class MariaDBContainerTest extends ContainerTestCase
{
public function setUp(): void
{
$this->container = (new MariaDBContainer())
->withMariaDBDatabase('foo')
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/ContainerTestCase.php | tests/Integration/ContainerTestCase.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use PHPUnit\Framework\TestCase;
use Testcontainers\Container\StartedTestContainer;
abstract class ContainerTestCase extends TestCase
{
protected StartedTestContainer $container;
protected function tearDown(): void
{
if (... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/StartedGenericContainerTest.php | tests/Integration/StartedGenericContainerTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use Testcontainers\Container\GenericContainer;
class StartedGenericContainerTest extends ContainerTestCase
{
public function testShouldReturnContainerId(): void
{
$container = (new GenericContainer('alpine'))
->wi... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/OpenSearchContainerTest.php | tests/Integration/OpenSearchContainerTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use Testcontainers\Modules\OpenSearchContainer;
class OpenSearchContainerTest extends ContainerTestCase
{
public function setUp(): void
{
$this->container = (new OpenSearchContainer())
->withDisabledSecurityPlugin... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/MySQLContainerTest.php | tests/Integration/MySQLContainerTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use Testcontainers\Modules\MySQLContainer;
class MySQLContainerTest extends ContainerTestCase
{
public function setUp(): void
{
$this->container = (new MySQLContainer())
->withMySQLDatabase('foo')
->wi... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/GenericContainerTest.php | tests/Integration/GenericContainerTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use Docker\API\Model\ContainersIdJsonGetResponse200;
use PHPUnit\Framework\TestCase;
use Testcontainers\Container\GenericContainer;
use Testcontainers\Wait\WaitForHostPort;
use Testcontainers\Wait\WaitForHttp;
class GenericContainerTest exte... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/RedisContainerTest.php | tests/Integration/RedisContainerTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use Predis\Client;
use Testcontainers\Modules\RedisContainer;
class RedisContainerTest extends ContainerTestCase
{
public function setUp(): void
{
$this->container = (new RedisContainer())
->start();
}
pu... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Integration/PostgreSQLContainerTest.php | tests/Integration/PostgreSQLContainerTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Integration;
use Testcontainers\Modules\PostgresContainer;
class PostgreSQLContainerTest extends ContainerTestCase
{
public function setUp(): void
{
$this->container = (new PostgresContainer())
->withPostgresUser('bar')
... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Unit/Utils/HostResolverTest.php | tests/Unit/Utils/HostResolverTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Unit\Utils;
use Docker\Docker;
use PHPUnit\Framework\TestCase;
use RuntimeException;
use Testcontainers\Utils\HostResolver;
class HostResolverTest extends TestCase
{
protected function setUp(): void
{
putenv('TESTCONTAINERS_HOST_OVERRIDE'... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Unit/Utils/TarBuilderTest.php | tests/Unit/Utils/TarBuilderTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Unit\Utils;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use RuntimeException;
use SplFileInfo;
use Testcontainers\Utils\TarBuilder;
/**
* @covers \Testcontainers\Utils\TarB... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
testcontainers/testcontainers-php | https://github.com/testcontainers/testcontainers-php/blob/95a89dac1d553efbcc55680a6f8e17cb6046cb68/tests/Unit/Utils/DockerAuthConfigTest.php | tests/Unit/Utils/DockerAuthConfigTest.php | <?php
declare(strict_types=1);
namespace Testcontainers\Tests\Unit\Utils;
use PHPUnit\Framework\TestCase;
use Testcontainers\Utils\DockerAuthConfig;
use RuntimeException;
class DockerAuthConfigTest extends TestCase
{
private string $originalHome;
private ?string $originalAuthConfig;
protected function ... | php | MIT | 95a89dac1d553efbcc55680a6f8e17cb6046cb68 | 2026-01-05T02:59:11.100698Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/DatabaseServiceProvider.php | src/DatabaseServiceProvider.php | <?php
namespace Staudenmeir\LaravelMergedRelations;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Staudenmeir\LaravelMergedRelations\Facades\Schema;
class DatabaseServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @retu... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/IdeHelperServiceProvider.php | src/IdeHelperServiceProvider.php | <?php
namespace Staudenmeir\LaravelMergedRelations;
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
use Staudenmeir\LaravelMergedRelations\IdeHelper\MergedRelationsHook;
class IdeHelperServiceProvider extends ServicePro... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Schema/Builders/CreatesMergeViews.php | src/Schema/Builders/CreatesMergeViews.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Schema\Builders;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasOneOrMany;
use Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough;
use Illuminate\Da... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Schema/Builders/PostgresBuilder.php | src/Schema/Builders/PostgresBuilder.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Schema\Builders;
use Staudenmeir\LaravelMigrationViews\Schema\Builders\PostgresBuilder as Base;
class PostgresBuilder extends Base
{
use CreatesMergeViews;
}
| php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Schema/Builders/MariaDbBuilder.php | src/Schema/Builders/MariaDbBuilder.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Schema\Builders;
use Staudenmeir\LaravelMigrationViews\Schema\Builders\MariaDbBuilder as Base;
class MariaDbBuilder extends Base
{
use CreatesMergeViews;
}
| php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Schema/Builders/SQLiteBuilder.php | src/Schema/Builders/SQLiteBuilder.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Schema\Builders;
use Staudenmeir\LaravelMigrationViews\Schema\Builders\SQLiteBuilder as Base;
class SQLiteBuilder extends Base
{
use CreatesMergeViews;
}
| php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Schema/Builders/MySqlBuilder.php | src/Schema/Builders/MySqlBuilder.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Schema\Builders;
use Staudenmeir\LaravelMigrationViews\Schema\Builders\MySqlBuilder as Base;
class MySqlBuilder extends Base
{
use CreatesMergeViews;
}
| php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Schema/Builders/SqlServerBuilder.php | src/Schema/Builders/SqlServerBuilder.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Schema\Builders;
use Staudenmeir\LaravelMigrationViews\Schema\Builders\SqlServerBuilder as Base;
class SqlServerBuilder extends Base
{
use CreatesMergeViews;
}
| php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Facades/Schema.php | src/Facades/Schema.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Facades;
use Illuminate\Database\Connection;
use Illuminate\Support\Facades\Facade;
use RuntimeException;
use Staudenmeir\LaravelMergedRelations\Schema\Builders\MariaDbBuilder;
use Staudenmeir\LaravelMergedRelations\Schema\Builders\MySqlBuilder;
use Staudenmeir\Larav... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/IdeHelper/MergedRelationsHook.php | src/IdeHelper/MergedRelationsHook.php | <?php
namespace Staudenmeir\LaravelMergedRelations\IdeHelper;
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;
use I... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Eloquent/Builder.php | src/Eloquent/Builder.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Eloquent;
use Illuminate\Database\Eloquent\Builder as Base;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\Relation;
/**
* @template TModel of \Illuminate\Database\Eloquent\Model
*
* @extends \Illuminate\Database\Eloquent\... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Eloquent/HasMergedRelationships.php | src/Eloquent/HasMergedRelationships.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Eloquent;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Eloquent\Model;
use Staudenmeir\LaravelMergedRelations\Eloquent\Relations\MergedRelation;
/**
* @phpstan-ignore trait.unused
*/
trait HasMergedRelationships
{
/**
... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/src/Eloquent/Relations/MergedRelation.php | src/Eloquent/Relations/MergedRelation.php | <?php
namespace Staudenmeir\LaravelMergedRelations\Eloquent\Relations;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\Pivot;
/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
* @template TDeclaringModel ... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
staudenmeir/laravel-merged-relations | https://github.com/staudenmeir/laravel-merged-relations/blob/dcd1b2d84ddc95e4918cb995695e055542670077/tests/IdeHelperServiceProviderTest.php | tests/IdeHelperServiceProviderTest.php | <?php
namespace Tests;
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider as BarryvdhIdeHelperServiceProvider;
use Orchestra\Testbench\TestCase;
use Staudenmeir\LaravelMergedRelations\IdeHelper\MergedRelationsHook;
use Staudenmeir\LaravelMergedRelations\IdeHelperServiceProvider;
class IdeHelperServiceProviderTes... | php | MIT | dcd1b2d84ddc95e4918cb995695e055542670077 | 2026-01-05T02:59:18.441608Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.