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 |
|---|---|---|---|---|---|---|---|---|
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Config/BarChart.php | src/Widgets/Config/BarChart.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\Widgets\Config;
use CodeIgniter\Config\BaseConfig;
class BarChart extends Bas... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Config/PieChart.php | src/Widgets/Config/PieChart.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\Widgets\Config;
use CodeIgniter\Config\BaseConfig;
class PieChart extends Bas... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Config/PolarAreaChart.php | src/Widgets/Config/PolarAreaChart.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\Widgets\Config;
use CodeIgniter\Config\BaseConfig;
class PolarAreaChart exten... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Config/DoughnutChart.php | src/Widgets/Config/DoughnutChart.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\Widgets\Config;
use CodeIgniter\Config\BaseConfig;
class DoughnutChart extend... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Language/en/Widgets.php | src/Widgets/Language/en/Widgets.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
return [
'widgetsModTitle' => 'Widgets',
'viewDetail' => 'View Detail',
];
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Language/it/Widgets.php | src/Widgets/Language/it/Widgets.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
return [
'widgetsModTitle' => 'Widgets',
'viewDetail' => 'Visualizza dettaglio',
];
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Language/lt/Widgets.php | src/Widgets/Language/lt/Widgets.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
return [
'widgetsModTitle' => 'Skydelio elementai',
'viewDetail' => 'Rodyti detaliau... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Widgets/Language/ru/Widgets.php | src/Widgets/Language/ru/Widgets.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
return [
'widgetsModTitle' => 'Виджеты',
'viewDetail' => 'Детали',
];
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Settings/Module.php | src/Settings/Module.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\Settings;
use Bonfire\Core\BaseModule;
use Bonfire\Menus\MenuItem;
/**
* Ema... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Settings/Controllers/GeneralSettingsController.php | src/Settings/Controllers/GeneralSettingsController.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\Settings\Controllers;
use Bonfire\Core\AdminController;
use CodeIgniter\HTTP\R... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Settings/Views/_timezones.php | src/Settings/Views/_timezones.php | <option value="">Select...</option>
<?php foreach ($options as $timezone => $name) : ?>
<option value="<?= $timezone ?>" <?php if ($selectedTZ === $timezone): ?> selected <?php endif ?>>
<?= $name ?>
</option>
<?php endforeach ?>
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Settings/Views/general.php | src/Settings/Views/general.php | <?php $this->extend('master') ?>
<?php $this->section('main') ?>
<x-page-head>
<h2>Settings</h2>
</x-page-head>
<x-admin-box>
<form action="<?= site_url(ADMIN_AREA . '/settings/general') ?>" method="post">
<?= csrf_field() ?>
<fieldset class="first">
<legend>General</legend>
... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/Settings/Config/Routes.php | src/Settings/Config/Routes.php | <?php
use CodeIgniter\Router\RouteCollection;
/**
* @var RouteCollection $routes
*/
$routes->group(ADMIN_AREA . '/settings', ['namespace' => '\Bonfire\Settings\Controllers'], static function ($routes) {
$routes->get('general', 'GeneralSettingsController::general', ['as' => 'general-settings']);
$routes->pos... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/View/ComponentRenderer.php | src/View/ComponentRenderer.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\View;
use RuntimeException;
use Throwable;
class ComponentRenderer
{
publ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/View/Metadata.php | src/View/Metadata.php | <?php
namespace Bonfire\View;
use RuntimeException;
class Metadata
{
private string $title = '';
private array $meta = [];
private array $link = [];
private array $script = [];
private array $rawScripts = [];
private array $style = [];
public function __construct... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/View/Theme.php | src/View/Theme.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\View;
/**
* Class Theme
*
* Provides utility commands to work with themes.
... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/View/Decorator.php | src/View/Decorator.php | <?php
namespace Bonfire\View;
use CodeIgniter\View\ViewDecoratorInterface;
/**
* Class Decorator
*
* Enables rendering of View Components into the views.
*/
class Decorator implements ViewDecoratorInterface
{
private static ?ComponentRenderer $components = null;
public static function decorate(string $h... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/View/Themeable.php | src/View/Themeable.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\View;
use CodeIgniter\View\View;
use RuntimeException;
/**
* Trait Themeable... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/src/View/Component.php | src/View/Component.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bonfire\View;
/**
* Class BaseComponent
*
* Provides the basic functionality used w... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/FilterableTest.php | tests/FilterableTest.php | <?php
namespace Tests\Bonfire;
use Bonfire\Core\Traits\Filterable;
use Bonfire\Users\Models\UserFilter;
use Bonfire\Users\Models\UserModel;
use Bonfire\Users\User;
use CodeIgniter\Model;
use CodeIgniter\Test\DatabaseTestTrait;
use Tests\Support\TestCase;
/**
* @internal
*/
final class FilterableTest extends TestCa... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/CommonTest.php | tests/CommonTest.php | <?php
namespace Tests\Bonfire;
use CodeIgniter\I18n\Time;
use PHPUnit\Framework\Attributes\DataProvider;
use Tests\Support\TestCase;
/**
* @internal
*/
final class CommonTest extends TestCase
{
public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass();
helper('setting');... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/SiteOnlineTest.php | tests/SiteOnlineTest.php | <?php
namespace Tests;
use Tests\Support\TestCase;
/**
* @internal
*/
final class SiteOnlineTest extends TestCase
{
public function testSiteOnline()
{
$response = $this->get('/');
$response->assertStatus(200);
// Should display the CI welcome page.
$response->assertSee('We... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Users/SearchProviderTest.php | tests/Users/SearchProviderTest.php | <?php
namespace Tests\Users;
use Bonfire\Users\SearchProvider;
use CodeIgniter\Test\DatabaseTestTrait;
use Tests\Support\TestCase;
/**
* @internal
*/
final class SearchProviderTest extends TestCase
{
use DatabaseTestTrait;
protected $refresh = true;
protected $namespace;
private SearchProvider $pr... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Users/AdminSettingsTest.php | tests/Users/AdminSettingsTest.php | <?php
namespace Tests\Users;
use Bonfire\Users\User;
use Tests\Support\TestCase;
/**
* @internal
*/
final class AdminSettingsTest extends TestCase
{
protected $refresh = true;
private User $user;
protected function setUp(): void
{
parent::setUp();
$this->user = $this->createUser()... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Users/UserFormTest.php | tests/Users/UserFormTest.php | <?php
namespace Tests\Users;
use Bonfire\Users\User;
use CodeIgniter\HTTP\Exceptions\RedirectException;
use Exception;
use Tests\Support\TestCase;
/**
* @internal
*/
final class UserFormTest extends TestCase
{
protected $refresh = true;
private User $user;
protected function setUp(): void
{
... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Users/MetaTest.php | tests/Users/MetaTest.php | <?php
namespace Tests\Users;
use Bonfire\Users\User;
use CodeIgniter\Config\Factories;
use CodeIgniter\Test\DatabaseTestTrait;
use Tests\Support\TestCase;
/**
* @internal
*/
final class MetaTest extends TestCase
{
use DatabaseTestTrait;
protected $namespace;
private User $user;
protected function... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Recycler/RecyclerTest.php | tests/Recycler/RecyclerTest.php | <?php
namespace Tests\Recycler;
use Bonfire\Users\Models\UserModel;
use Bonfire\Users\User;
use Tests\Support\TestCase;
/**
* @internal
*/
final class RecyclerTest extends TestCase
{
protected $refresh = true;
private User $admin;
private UserModel $users;
protected function setUp(): void
{
... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Dashboard/DashboardTest.php | tests/Dashboard/DashboardTest.php | <?php
namespace Tests\Dashboard;
use Bonfire\Users\User;
use Tests\Support\TestCase;
/**
* @internal
*/
final class DashboardTest extends TestCase
{
protected $refresh = true;
private User $user;
protected function setUp(): void
{
parent::setUp();
$this->user = $this->createUser()... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Assets/AssetHelperTest.php | tests/Assets/AssetHelperTest.php | <?php
declare(strict_types=1);
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Assets;
use CodeIgniter\Config\Factories;
use InvalidA... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Menus/MenuCollectionTest.php | tests/Menus/MenuCollectionTest.php | <?php
namespace Tests\Menus;
use Bonfire\Menus\MenuCollection;
use Bonfire\Menus\MenuItem;
use Bonfire\Users\Models\UserModel;
use Tests\Support\TestCase;
/**
* @internal
*/
final class MenuCollectionTest extends TestCase
{
protected function setUp(): void
{
parent::setUp();
helper('setting... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Menus/MenuItemTest.php | tests/Menus/MenuItemTest.php | <?php
namespace Tests\Menus;
use Bonfire\Menus\MenuItem;
use Tests\Support\TestCase;
/**
* @internal
*/
final class MenuItemTest extends TestCase
{
public function testBasicDetails()
{
$item = new MenuItem();
$item->setTitle('Item A')
->setUrl('example.com/foo?bar=baz')
... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Menus/MenuTest.php | tests/Menus/MenuTest.php | <?php
namespace Tests\Menus;
use Bonfire\Menus\Menu;
use Bonfire\Menus\MenuCollection;
use Bonfire\Menus\MenuItem;
use Tests\Support\TestCase;
/**
* @internal
*/
final class MenuTest extends TestCase
{
public function testWithItems()
{
$menu = new Menu();
$item1 = new MenuItem(['title' => ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Groups/GroupsTest.php | tests/Groups/GroupsTest.php | <?php
namespace Tests\Groups;
use Bonfire\Users\User;
use CodeIgniter\Shield\Authorization\Groups;
use CodeIgniter\Shield\Entities\Group;
use Tests\Support\TestCase;
/**
* @internal
*/
final class GroupsTest extends TestCase
{
protected $refresh = true;
private User $user;
protected function setUp(): ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Auth/RegisterTest.php | tests/Auth/RegisterTest.php | <?php
namespace Tests\Auth;
use CodeIgniter\Shield\Authentication\Actions\EmailActivator;
use CodeIgniter\Test\DatabaseTestTrait;
use Tests\Support\TestCase;
/**
* @internal
*/
final class RegisterTest extends TestCase
{
use DatabaseTestTrait;
protected $refresh = true;
protected $namespace;
publ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Auth/AdminAccessTest.php | tests/Auth/AdminAccessTest.php | <?php
namespace Tests\Auth;
use CodeIgniter\Config\Factories;
use CodeIgniter\HTTP\Exceptions\RedirectException;
use CodeIgniter\Test\DatabaseTestTrait;
use Exception;
use Tests\Support\TestCase;
/**
* @internal
*/
final class AdminAccessTest extends TestCase
{
use DatabaseTestTrait;
protected $refresh = ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Auth/LoginTest.php | tests/Auth/LoginTest.php | <?php
namespace Tests\Auth;
use Bonfire\Users\Models\UserModel;
use Bonfire\Users\User;
use CodeIgniter\Shield\Authentication\Actions\Email2FA;
use CodeIgniter\Test\DatabaseTestTrait;
use Tests\Support\TestCase;
/**
* @internal
*/
final class LoginTest extends TestCase
{
use DatabaseTestTrait;
protected $... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Resources/ResourceTabTest.php | tests/Resources/ResourceTabTest.php | <?php
namespace Tests\Resources;
use Bonfire\Resources\ResourceTab;
use CodeIgniter\Test\DatabaseTestTrait;
use Tests\Support\TestCase;
/**
* @internal
*/
final class ResourceTabTest extends TestCase
{
use DatabaseTestTrait;
protected $namespace;
protected function tearDown(): void
{
pare... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Consent/ConsentHelperTest.php | tests/Consent/ConsentHelperTest.php | <?php
namespace Tests\Consent;
use CodeIgniter\Config\Factories;
use PHPUnit\Framework\Attributes\BackupGlobals;
use Tests\Support\TestCase;
/**
* @internal
*/
#[BackupGlobals(false)]
final class ConsentHelperTest extends TestCase
{
protected function setUp(): void
{
parent::setUp();
if (!... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/DatabaseTestCase.php | tests/_support/DatabaseTestCase.php | <?php
namespace Tests\Support;
use CodeIgniter\Test\CIUnitTestCase;
use CodeIgniter\Test\DatabaseTestTrait;
/**
* @internal
*/
abstract class DatabaseTestCase extends CIUnitTestCase
{
use DatabaseTestTrait;
/**
* Should the database be refreshed before each test?
*
* @var bool
*/
p... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/TestCase.php | tests/_support/TestCase.php | <?php
namespace Tests\Support;
use Bonfire\Bonfire;
use Bonfire\Users\Models\UserModel;
use Bonfire\Users\User;
use CodeIgniter\CodeIgniter;
use CodeIgniter\Shield\Test\AuthenticationTesting;
use CodeIgniter\Test\CIUnitTestCase;
use CodeIgniter\Test\DatabaseTestTrait;
use CodeIgniter\Test\FeatureTestTrait;
use CodeIg... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/bootstrap.php | tests/_support/bootstrap.php | <?php
/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
use Bonfire\Core\Namespaces;
use CodeIgniter\Config\DotEnv;
use CodeI... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/Libraries/ConfigReader.php | tests/_support/Libraries/ConfigReader.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2021 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/Database/Seeds/ExampleSeeder.php | tests/_support/Database/Seeds/ExampleSeeder.php | <?php
namespace Tests\Support\Database\Seeds;
use CodeIgniter\Database\Seeder;
class ExampleSeeder extends Seeder
{
public function run()
{
$factories = [
[
'name' => 'Test Factory',
'uid' => 'test001',
'class' => 'Factories\Tests\N... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/Config/Paths.php | tests/_support/Config/Paths.php | <?php
namespace Config;
/**
* Paths
*
* Holds the paths that are used by the system to
* locate the main directories, app, system, etc.
*
* Modifying these allows you to restructure your application,
* share a system folder between multiple applications, and more.
*
* All paths are relative to the project's ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/Config/Security.php | tests/_support/Config/Security.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Security extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* CSRF Protection Method
* --------------------------------------------------------------------------
*
* Protec... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/_support/Models/ExampleModel.php | tests/_support/Models/ExampleModel.php | <?php
namespace Tests\Support\Models;
use CodeIgniter\Model;
class ExampleModel extends Model
{
protected $table = 'factories';
protected $primaryKey = 'id';
protected $returnType = 'object';
protected $useSoftDeletes = false;
protected $allowedFields = [
'name',
... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Tools/LogsTest.php | tests/Tools/LogsTest.php | <?php
namespace Tests\Logs;
use Bonfire\Tools\Libraries\Logs;
use Tests\Support\TestCase;
/**
* @internal
*/
final class LogsTest extends TestCase
{
private string $logFileName;
private string $logsPath = WRITEPATH . 'logs/';
protected function setUp(): void
{
parent::setUp();
log... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Widgets/ChartsTest.php | tests/Widgets/ChartsTest.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Widgets;
use Bonfire\Widgets\Types\Charts\Charts;
use Bonfire\Widgets\Types\Char... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Widgets/ChartsCollectionTest.php | tests/Widgets/ChartsCollectionTest.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Widgets;
use Bonfire\Widgets\Types\Charts\ChartsCollection;
use Bonfire\Widgets\... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Widgets/ChartsItemTest.php | tests/Widgets/ChartsItemTest.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Widgets;
use Bonfire\Widgets\Types\Charts\ChartsItem;
use Tests\Support\TestCase... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Widgets/StatsTest.php | tests/Widgets/StatsTest.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Widgets;
use Bonfire\Widgets\Types\Stats\Stats;
use Bonfire\Widgets\Types\Stats\... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Widgets/StatsCollectionTest.php | tests/Widgets/StatsCollectionTest.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Widgets;
use Bonfire\Widgets\Types\Stats\StatsCollection;
use Bonfire\Widgets\Ty... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Widgets/StatsItemTest.php | tests/Widgets/StatsItemTest.php | <?php
/**
* This file is part of Bonfire.
*
* (c) Lonnie Ezell <lonnieje@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Tests\Widgets;
use Bonfire\Widgets\Types\Stats\StatsItem;
use Tests\Support\TestCase;
... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Settings/SiteOfflineTest.php | tests/Settings/SiteOfflineTest.php | <?php
namespace Tests\Settings;
use Bonfire\Users\User;
use Tests\Support\TestCase;
/**
* @internal
*/
final class SiteOfflineTest extends TestCase
{
protected $refresh = true;
private User $admin;
private User $nonAdmin;
protected function setUp(): void
{
parent::setUp();
$th... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/Settings/GeneralSettingsTest.php | tests/Settings/GeneralSettingsTest.php | <?php
namespace Tests\Settings;
use Bonfire\Users\User;
use Tests\Support\TestCase;
/**
* @internal
*/
final class GeneralSettingsTest extends TestCase
{
protected $refresh = true;
private User $user;
protected function setUp(): void
{
parent::setUp();
$this->user = $this->createU... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/tests/View/MetadataTest.php | tests/View/MetadataTest.php | <?php
namespace Tests\View;
use Bonfire\View\Metadata;
use Tests\Support\TestCase;
/**
* @internal
*/
final class MetadataTest extends TestCase
{
private Metadata $meta;
protected function setUp(): void
{
parent::setUp();
$this->meta = new Metadata();
}
public function testCa... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/master.php | themes/Admin/master.php | <!doctype html>
<html lang="<?= service('request')->getLocale() ?>">
<head>
<?= $viewMeta->render('meta') ?>
<?= $viewMeta->render('title') ?>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/_table_head.php | themes/Admin/_table_head.php | <thead>
<?php if (isset($headers) && count($headers)) : ?>
<tr class="text-uppercase">
<?php if (isset($showSelectAll) && auth()->user()->can('users.delete')) : ?>
<th style="width: 3em">
<input type="checkbox" class="form-check select-all">
</th>
<?php endif ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/_header.php | themes/Admin/_header.php | <header class="navbar navbar-light flex-md-nowrap p-0 shadow-sm d-flex">
<?php
/** disable button untill a more elegant solution is
* found. The menu can be toggled using the bottom-left expand button anyway
* <button class="navbar-toggler d-sm-none collapsed mx-2 border-none" type="button" @click="open = ! open">
*... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/filter-list.php | themes/Admin/Components/filter-list.php | <div class="col-auto order-1 order-md-2" x-cloak x-show="filtered" x-transition.duration.240ms>
<?= $slot ?>
</div> | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/filter-link.php | themes/Admin/Components/filter-link.php | <div class="d-flex justify-content-end">
<a href="#" x-on:click="filtered = ! filtered"><?= lang('Bonfire.filter')?></a>
</div>
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/page-head.php | themes/Admin/Components/page-head.php | <div class="page-head mt-3 mb-4">
<?= $slot ?? '' ?>
</div>
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/SidebarComponent.php | themes/Admin/Components/SidebarComponent.php | <?php
use Bonfire\View\Component;
/**
* Class SidebarComponent
*
* Uses the MenuManager to get the registered menu items
* and render out the sidebar.
*/
class SidebarComponent extends Component
{
public function render(): string
{
return $this->renderView($this->view, [
'menu' => ser... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/button.php | themes/Admin/Components/button.php | <button
<?= isset($onclick) ? 'onclick="' . $onclick . '"' : '' ?>
type="<?= $type ?? 'submit' ?>"
class="btn btn-<?= $color ?? 'primary' ?> btn-lg"
<?= isset($id) ? 'id="' . $id . '"' : '' ?>
<?= isset($name) ? 'name="' . $name . '"' : '' ?>
>
<?= $slot ?? '' ?>
</button>
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/module-title.php | themes/Admin/Components/module-title.php | <p class="m-0 p-0 fs-6 text-black-50">
<?= $slot ?? '' ?>
</p>
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/button-container.php | themes/Admin/Components/button-container.php | <div class="text-end px-0 px-md-5 py-5">
<?= $slot ?? '' ?>
</div> | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/sidebar.php | themes/Admin/Components/sidebar.php | <a class="px-3 d-block fs-3 text-light text-decoration-none me-0" href="<?= site_url(ADMIN_AREA) ?>">
<div class="site-stamp rounded d-inline-flex align-content-center justify-content-center">
<?= substr(setting('Site.siteName') ?? 'bonfire', 0, 1) ?>
</div>
<span class="site-name"><?= setting('Site... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Components/admin-box.php | themes/Admin/Components/admin-box.php | <div class="bg-white p-2 p-sm-4 mb-4 border rounded-3 shadow-sm">
<?= $slot ?>
</div>
| php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Search/users.php | themes/Admin/Search/users.php | <div class="table-responsive">
<table class="table table-hover">
<?= $this->setData(['headers' => [
'email' => lang('Bonfire.email'),
'username' => lang('Bonfire.username'),
'groups' => lang('Bonfire.groups'),
'last_active' => lang('Bonfire.lastA... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Admin/Search/index.php | themes/Admin/Search/index.php | <?= $this->extend('master') ?>
<?= $this->section('main') ?>
<x-page-head>
<h2><?= lang('Bonfire.searchResults') ?></h2>
</x-page-head>
<x-admin-box>
<?php if (! isset($results) || ! count($results)) : ?>
<div class="alert alert-info"><?= lang('Bonfire.nothingFound') ?></div>
<?ph... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Auth/master.php | themes/Auth/master.php | <!doctype html>
<html lang="<?= service('request')->getLocale() ?>">
<head>
<?= $viewMeta->render('meta') ?>
<?= $viewMeta->render('title') ?>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Auth/Components/unsplash.php | themes/Auth/Components/unsplash.php | <div style="background-image:url(https://picsum.photos/1600/900);background-size:cover;position:absolute;top:0px;left:0;right:0;bottom:0;z-index:0">
<?= $slot ?>
<p style="position: absolute; bottom: 0px; right: 15px; width: auto; mix-blend-mode: difference; color: white; font-size: 12px">
Image by <a ... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/Auth/Components/auth-card.php | themes/Auth/Components/auth-card.php | <div class="card col-lg-5 col-md-7 shadow-lg" style="background-color: rgba(255,255,255,0.92)">
<?= $slot ?>
</div> | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/App/master.php | themes/App/master.php | <!doctype html>
<html lang="<?= service('request')->getLocale() ?>">
<head>
<?= $viewMeta->render('meta') ?>
<?= $viewMeta->render('title') ?>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
lonnieezell/Bonfire2 | https://github.com/lonnieezell/Bonfire2/blob/54f85800ce585efae6d13a352b1bdf573d9779ec/themes/App/_tmp_bonfire_links_include.php | themes/App/_tmp_bonfire_links_include.php | <!--
This file is included into app/Views/welcome_message.php to let user know that
Bonfire2 is installed. You can remove it once you no longer use that file
-->
<!-- CONTENT -->
<section>
<h1>
Codeigniter4 with Admin Area
</h1>
<p>This installation contains Bonfire2: Codeigniter4 admin area... | php | MIT | 54f85800ce585efae6d13a352b1bdf573d9779ec | 2026-01-05T04:14:44.878202Z | false |
JellyBool/translug | https://github.com/JellyBool/translug/blob/c1005d9faab182d04ac15d8e469dbfe1a7fbf42a/src/TranslugServiceProvider.php | src/TranslugServiceProvider.php | <?php
namespace JellyBool\Translug;
use GuzzleHttp\Client;
use Illuminate\Support\ServiceProvider;
class TranslugServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Bootstrap the appli... | php | MIT | c1005d9faab182d04ac15d8e469dbfe1a7fbf42a | 2026-01-05T04:14:57.083623Z | false |
JellyBool/translug | https://github.com/JellyBool/translug/blob/c1005d9faab182d04ac15d8e469dbfe1a7fbf42a/src/Translation.php | src/Translation.php | <?php
namespace JellyBool\Translug;
use GuzzleHttp\Client;
use JellyBool\Translug\Exceptions\TranslationErrorException;
/**
* Class Translation.
*/
class Translation
{
/**
* Youdao new API url.
*
* @var string
*/
protected $api = 'https://openapi.youdao.com/api?from=zh-CHS&to=EN&';
... | php | MIT | c1005d9faab182d04ac15d8e469dbfe1a7fbf42a | 2026-01-05T04:14:57.083623Z | false |
JellyBool/translug | https://github.com/JellyBool/translug/blob/c1005d9faab182d04ac15d8e469dbfe1a7fbf42a/src/Translug.php | src/Translug.php | <?php
namespace JellyBool\Translug;
use GuzzleHttp\Client;
/**
* Class Translug.
*/
class Translug
{
/**
* @var array
*/
protected $config = [];
/**
* Translug constructor.
*
* @param array $config
*/
public function __construct(array $config = [])
{
$this... | php | MIT | c1005d9faab182d04ac15d8e469dbfe1a7fbf42a | 2026-01-05T04:14:57.083623Z | false |
JellyBool/translug | https://github.com/JellyBool/translug/blob/c1005d9faab182d04ac15d8e469dbfe1a7fbf42a/src/TranslugFacade.php | src/TranslugFacade.php | <?php
namespace JellyBool\Translug;
use Illuminate\Support\Facades\Facade;
class TranslugFacade extends Facade
{
/**
* Get the binding in the IoC container.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'translug';
}
}
| php | MIT | c1005d9faab182d04ac15d8e469dbfe1a7fbf42a | 2026-01-05T04:14:57.083623Z | false |
JellyBool/translug | https://github.com/JellyBool/translug/blob/c1005d9faab182d04ac15d8e469dbfe1a7fbf42a/src/Exceptions/TranslationErrorException.php | src/Exceptions/TranslationErrorException.php | <?php
namespace JellyBool\Translug\Exceptions;
class TranslationErrorException extends \Exception
{
}
| php | MIT | c1005d9faab182d04ac15d8e469dbfe1a7fbf42a | 2026-01-05T04:14:57.083623Z | false |
JellyBool/translug | https://github.com/JellyBool/translug/blob/c1005d9faab182d04ac15d8e469dbfe1a7fbf42a/src/helpers/functions.php | src/helpers/functions.php | <?php
use Illuminate\Support\Str;
if (!function_exists('translug')) {
/**
* Text to translug.
*
* @param string|null $text.
*
* @return
*/
function translug($text = '')
{
$translator = app('translug');
if (!is_null($text)) {
return $translator->t... | php | MIT | c1005d9faab182d04ac15d8e469dbfe1a7fbf42a | 2026-01-05T04:14:57.083623Z | false |
JellyBool/translug | https://github.com/JellyBool/translug/blob/c1005d9faab182d04ac15d8e469dbfe1a7fbf42a/tests/TranslugTest.php | tests/TranslugTest.php | <?php
use PHPUnit\Framework\TestCase;
class TranslugTest extends TestCase
{
protected $translug;
protected $translator;
protected function setUp(): void
{
$this->translator = new \JellyBool\Translug\Translation(new \GuzzleHttp\Client());
$this->translug = new JellyBool\Translug\Trans... | php | MIT | c1005d9faab182d04ac15d8e469dbfe1a7fbf42a | 2026-01-05T04:14:57.083623Z | false |
bazilio91/yii2-stubs-generator | https://github.com/bazilio91/yii2-stubs-generator/blob/02062a01c3bd48cae37c00542f6fa1599bb27fc5/StubsController.php | StubsController.php | <?php
namespace bazilio\stubsgenerator;
use yii\console\Controller;
use yii\console\Exception;
use yii\di\Instance;
class StubsController extends Controller
{
public $outputFile = null;
protected function getTemplate()
{
return <<<TPL
<?php
/**
* Yii app stub file. Autogenerated by yii2-stubs-... | php | MIT | 02062a01c3bd48cae37c00542f6fa1599bb27fc5 | 2026-01-05T04:15:04.326492Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/.stubs.php | .stubs.php | <?php
namespace Livewire\Features\SupportTesting {
class Testable {
public function assertPropertyWired(string $property): self {}
public function assertPropertyNotWired(string $property): self {}
public function assertPropertyEntangled(string $property): self {}
public function... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/*')
->notPath('storage/*')
->notPath('resources/view/mail/*')
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(tr... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/src/CustomLivewireAssertionsMixin.php | src/CustomLivewireAssertionsMixin.php | <?php
namespace Christophrumpel\MissingLivewireAssertions;
use Closure;
use Illuminate\Support\Str;
use Livewire\Component;
use Livewire\Mechanisms\ComponentRegistry;
use PHPUnit\Framework\Assert as PHPUnit;
/**
* @mixin \Livewire\Features\SupportTesting\Testable
*/
class CustomLivewireAssertionsMixin
{
public... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/src/ComponentName.php | src/ComponentName.php | <?php
namespace Christophrumpel\MissingLivewireAssertions;
use Livewire\Component;
use Livewire\Mechanisms\ComponentRegistry;
class ComponentName
{
public static function resolve(Component|string $component): ?string
{
if (is_subclass_of($component, Component::class)) {
$component = app(C... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/src/MissingLivewireAssertionsServiceProvider.php | src/MissingLivewireAssertionsServiceProvider.php | <?php
namespace Christophrumpel\MissingLivewireAssertions;
use Livewire\Features\SupportTesting\Testable;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
class MissingLivewireAssertionsServiceProvider extends PackageServiceProvider
{
public function configurePackage... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use Christophrumpel\MissingLivewireAssertions\MissingLivewireAssertionsServiceProvider;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\View;
use Livewire\LivewireServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
class TestCase extends Orchestra... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/AssertionsTest.php | tests/AssertionsTest.php | <?php
use \Tests\NonExistantButton;
use \Tests\NonExistantLivewireTestComponent;
use Livewire\Livewire;
use Tests\Components\FileDownloadComponent;
use Tests\Components\LivewireTestComponentA;
use Tests\Components\LivewireTestComponentB;
use Tests\Components\LivewireTestComponentC;
use Tests\Components\LivewireTestCom... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/Components/LivewireTestComponentB.php | tests/Components/LivewireTestComponentB.php | <?php
namespace Tests\Components;
use Livewire\Component;
class LivewireTestComponentB extends Component
{
public function render()
{
return view('livewire-test-component-b');
}
}
| php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/Components/LivewireTestComponentC.php | tests/Components/LivewireTestComponentC.php | <?php
namespace Tests\Components;
use Livewire\Component;
class LivewireTestComponentC extends Component
{
public function render()
{
return view('livewire-test-component-c');
}
}
| php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/Components/FileDownloadComponent.php | tests/Components/FileDownloadComponent.php | <?php
namespace Tests\Components;
use Livewire\Component;
class FileDownloadComponent extends Component
{
public function streamDownload($filename = null, $headers = [])
{
return response()->streamDownload(function () {
echo 'alpinejs';
}, $filename, $headers);
}
public f... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/Components/LivewireTestComponentD.php | tests/Components/LivewireTestComponentD.php | <?php
namespace Tests\Components;
use Livewire\Component;
class LivewireTestComponentD extends Component
{
public function render()
{
return view('livewire-test-component-d');
}
}
| php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/Components/LivewireTestComponentA.php | tests/Components/LivewireTestComponentA.php | <?php
namespace Tests\Components;
use Livewire\Component;
class LivewireTestComponentA extends Component
{
public function render()
{
return view('livewire-test-component-a');
}
}
| php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/resources/views/livewire-test-component-d.php | tests/resources/views/livewire-test-component-d.php | <div>
<input type="text" wire:change="change" />
<input type="text" wire:keydown="keydown" />
<input type="text" wire:keyup="keyup" />
<input type="text" wire:mouseenter="mouseEnter" />
<input type="text" wire:keydown.enter="keyDownEnter" />
<input type="text" wire:keydown.shift.enter="keyDownSh... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/resources/views/blade-test-component.php | tests/resources/views/blade-test-component.php | <div>
<button>Click Me</button>
</div>
| php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/resources/views/livewire-test-component-c.php | tests/resources/views/livewire-test-component-c.php | <div>
@livewire('tests.components.livewire-test-component-a')
@livewire(
'tests.components.livewire-test-component-b'
)
</div>
| php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/resources/views/livewire-test-component-a.php | tests/resources/views/livewire-test-component-a.php | <div>
<input type="text" wire:model="user" />
<input type="text" wire:model.blur="blur" />
<input type="text" wire:model.change="change" />
<input type="text" wire:model.boolean="boolean" />
<input type="text" wire:model.self="self" />
<input type="text" wire:model.lazy="lazy" />
<input type... | php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
christophrumpel/missing-livewire-assertions | https://github.com/christophrumpel/missing-livewire-assertions/blob/890c46c860b6dfef161f1f54f425876a9065887d/tests/resources/views/livewire-test-component-b.php | tests/resources/views/livewire-test-component-b.php | <div>
<p>Livewire Test Component B</p>
</div>
| php | MIT | 890c46c860b6dfef161f1f54f425876a9065887d | 2026-01-05T04:15:11.621411Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.