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 |
|---|---|---|---|---|---|---|---|---|
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/resetPassword.php | frontend/views/site/resetPassword.php | <?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap4\ActiveForm */
/* @var $model \frontend\models\ResetPasswordForm */
use yii\helpers\Html;
use yii\bootstrap4\ActiveForm;
$this->title = 'Reset password';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-reset-password">
<div clas... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/site/error.php | frontend/views/site/error.php | <?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
$this->title = $name;
?>
<div class="site-error">
<h1><?= Html::encode($this->title) ?></h1>
<div class="alert alert-danger">
<?= nl2br(Html::encode($message)... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/profile/user_account.php | frontend/views/profile/user_account.php | <?php
/**
* User: TheCodeholic
* Date: 12/12/2020
* Time: 1:54 PM
*/
/** @var \common\models\User $user */
/** @var \yii\web\View $this */
use yii\bootstrap4\ActiveForm;
?>
<?php if (isset($success) && $success): ?>
<div class="alert alert-success">
Your account was successfully updated
</div>
<... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/profile/user_address.php | frontend/views/profile/user_address.php | <?php
/**
* User: TheCodeholic
* Date: 12/12/2020
* Time: 1:48 PM
*/
use yii\bootstrap4\ActiveForm;
/** @var \yii\web\View $this */
/** @var \common\models\UserAddress $userAddress */
?>
<?php if (isset($success) && $success): ?>
<div class="alert alert-success">
Your address was successfully updat... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/profile/index.php | frontend/views/profile/index.php | <?php
/**
* User: TheCodeholic
* Date: 12/12/2020
* Time: 1:30 PM
*/
/** @var \common\models\User $user */
/** @var \yii\web\View $this */
/** @var \common\models\UserAddress $userAddress */
?>
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/layouts/main.php | frontend/views/layouts/main.php | <?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap4\Nav;
use yii\bootstrap4\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
$cartItemCount = $this->params['cartItemCount'];
AppAsset::register($this);
?>
<?php $this->b... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/cart/pay-now.php | frontend/views/cart/pay-now.php | <?php
/**
* User: TheCodeholic
* Date: 12/13/2020
* Time: 3:47 PM
*/
/** @var \common\models\Order $order */
$orderAddress = $order->orderAddress
?>
<script src="https://www.paypal.com/sdk/js?client-id=<?php echo param('paypalClientId') ?>"></script>
<h3>Order #<?php echo $order->id ?> summary: </h3>
<hr>
<div cl... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/cart/index.php | frontend/views/cart/index.php | <?php
/**
* User: TheCodeholic
* Date: 12/12/2020
* Time: 3:42 PM
*/
/** @var array $items */
?>
<div class="card">
<div class="card-header">
<h3>Your cart items</h3>
</div>
<div class="card-body p-0">
<?php if (!empty($items)): ?>
<table class="table table-hover">
... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/views/cart/checkout.php | frontend/views/cart/checkout.php | <?php
/**
* User: TheCodeholic
* Date: 12/12/2020
* Time: 8:12 PM
*/
/** @var \common\models\Order $order */
/** @var \common\models\OrderAddress $orderAddress */
/** @var array $cartItems */
/** @var int $productQuantity */
/** @var float $totalPrice */
use yii\bootstrap4\ActiveForm;
?>
<?php $form = ActiveFor... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/assets/AppAsset.php | frontend/assets/AppAsset.php | <?php
namespace frontend\assets;
use yii\web\AssetBundle;
/**
* Main frontend application asset bundle.
*/
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'build/app.css',
];
public $js = [
'build/app.js',
];
... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/config/main.php | frontend/config/main.php | <?php
$params = array_merge(
require __DIR__ . '/../../common/config/params.php',
require __DIR__ . '/../../common/config/params-local.php',
require __DIR__ . '/params.php',
require __DIR__ . '/params-local.php'
);
return [
'id' => 'app-frontend',
'name' => 'Yii2 E-commerce',
'basePath' => ... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/config/params.php | frontend/config/params.php | <?php
return [
'adminEmail' => 'admin@example.com',
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/config/test.php | frontend/config/test.php | <?php
return [
'id' => 'app-frontend-tests',
'components' => [
'assetManager' => [
'basePath' => __DIR__ . '/../web/assets',
],
'urlManager' => [
'showScriptName' => true,
],
'request' => [
'cookieValidationKey' => 'test',
],
... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/frontend/config/bootstrap.php | frontend/config/bootstrap.php | <?php
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/index.php | environments/index.php | <?php
/**
* The manifest of files that are local to specific environment.
* This file returns a list of environments that the application
* may be installed under. The returned data must be in the following
* format:
*
* ```php
* return [
* 'environment name' => [
* 'path' => 'directory storing the... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/console/config/params-local.php | environments/dev/console/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/console/config/test-local.php | environments/dev/console/config/test-local.php | <?php
return [
]; | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/console/config/main-local.php | environments/dev/console/config/main-local.php | <?php
return [
'bootstrap' => ['gii'],
'modules' => [
'gii' => 'yii\gii\Module',
],
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/backend/config/params-local.php | environments/dev/backend/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/backend/config/test-local.php | environments/dev/backend/config/test-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/backend/config/codeception-local.php | environments/dev/backend/config/codeception-local.php | <?php
return yii\helpers\ArrayHelper::merge(
require dirname(dirname(__DIR__)) . '/common/config/codeception-local.php',
require __DIR__ . '/main.php',
require __DIR__ . '/main-local.php',
require __DIR__ . '/test.php',
require __DIR__ . '/test-local.php',
[
]
);
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/backend/config/main-local.php | environments/dev/backend/config/main-local.php | <?php
$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '',
],
],
];
if (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment
... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/backend/web/index.php | environments/dev/backend/web/index.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../config/bootstrap.php';
$config... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/backend/web/index-test.php | environments/dev/backend/web/index-test.php | <?php
// NOTE: Make sure this file is not accessible when deployed to production
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
die('You are not allowed to access this file.');
}
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');
require __DIR__ ... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/common/config/params-local.php | environments/dev/common/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/common/config/test-local.php | environments/dev/common/config/test-local.php | <?php
return [
'components' => [
'db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2advanced_test',
],
],
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/common/config/codeception-local.php | environments/dev/common/config/codeception-local.php | <?php
return yii\helpers\ArrayHelper::merge(
require __DIR__ . '/main.php',
require __DIR__ . '/main-local.php',
require __DIR__ . '/test.php',
require __DIR__ . '/test-local.php',
[
'components' => [
'request' => [
// !!! insert a secret key in the following (if... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/common/config/main-local.php | environments/dev/common/config/main-local.php | <?php
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
],
'mailer' => [
'class' => 'yi... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/frontend/config/params-local.php | environments/dev/frontend/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/frontend/config/test-local.php | environments/dev/frontend/config/test-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/frontend/config/codeception-local.php | environments/dev/frontend/config/codeception-local.php | <?php
return yii\helpers\ArrayHelper::merge(
require dirname(dirname(__DIR__)) . '/common/config/codeception-local.php',
require __DIR__ . '/main.php',
require __DIR__ . '/main-local.php',
require __DIR__ . '/test.php',
require __DIR__ . '/test-local.php',
[
]
);
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/frontend/config/main-local.php | environments/dev/frontend/config/main-local.php | <?php
$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '',
],
],
];
if (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment
... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/frontend/web/index.php | environments/dev/frontend/web/index.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../config/bootstrap.php';
$config... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/dev/frontend/web/index-test.php | environments/dev/frontend/web/index-test.php | <?php
// NOTE: Make sure this file is not accessible when deployed to production
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
die('You are not allowed to access this file.');
}
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');
require __DIR__ ... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/console/config/params-local.php | environments/prod/console/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/console/config/main-local.php | environments/prod/console/config/main-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/backend/config/params-local.php | environments/prod/backend/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/backend/config/main-local.php | environments/prod/backend/config/main-local.php | <?php
return [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '',
],
],
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/backend/web/index.php | environments/prod/backend/web/index.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../config/bootstrap.php';
$conf... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/common/config/params-local.php | environments/prod/common/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/common/config/main-local.php | environments/prod/common/config/main-local.php | <?php
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
],
'mailer' => [
'class' => 'yi... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/frontend/config/params-local.php | environments/prod/frontend/config/params-local.php | <?php
return [
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/frontend/config/main-local.php | environments/prod/frontend/config/main-local.php | <?php
return [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '',
],
],
];
| php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
thecodeholic/yii2-ecommerce-website | https://github.com/thecodeholic/yii2-ecommerce-website/blob/11e6f2c1b010a67c28f9c46e5df951d9c5aea07d/environments/prod/frontend/web/index.php | environments/prod/frontend/web/index.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../config/bootstrap.php';
$conf... | php | BSD-3-Clause | 11e6f2c1b010a67c28f9c46e5df951d9c5aea07d | 2026-01-05T02:41:44.027017Z | false |
milesj/uploader | https://github.com/milesj/uploader/blob/7158642841bd0f872f17764f1298c3ac2c4dad05/Model/Behavior/FileValidationBehavior.php | Model/Behavior/FileValidationBehavior.php | <?php
/**
* @copyright 2006-2013, Miles Johnson - http://milesj.me
* @license https://github.com/milesj/uploader/blob/master/license.md
* @link http://milesj.me/code/cakephp/uploader
*/
App::uses('ModelBehavior', 'Model');
use Transit\Transit;
use Transit\File;
use Transit\Validator\ImageValidator;
... | php | MIT | 7158642841bd0f872f17764f1298c3ac2c4dad05 | 2026-01-05T02:41:48.443253Z | false |
milesj/uploader | https://github.com/milesj/uploader/blob/7158642841bd0f872f17764f1298c3ac2c4dad05/Model/Behavior/AttachmentBehavior.php | Model/Behavior/AttachmentBehavior.php | <?php
/**
* @copyright 2006-2013, Miles Johnson - http://milesj.me
* @license https://github.com/milesj/uploader/blob/master/license.md
* @link http://milesj.me/code/cakephp/uploader
*/
App::uses('Set', 'Utility');
App::uses('ModelBehavior', 'Model');
use Transit\Transit;
use Transit\File;
use Transi... | php | MIT | 7158642841bd0f872f17764f1298c3ac2c4dad05 | 2026-01-05T02:41:48.443253Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/QueryGrammar.php | src/QueryGrammar.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use Illuminate\Database\Query\Builder;
use Illuminate\Database\Query\Grammars\Grammar;
class QueryGrammar extends Grammar
{
const PARAMETER_SIGN = '#@?';
/** @inheritDoc */
public function parameter($value)
{
return $this->isExp... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/Connection.php | src/Connection.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use ClickHouseDB\Client;
use Closure;
use Illuminate\Database\Connection as BaseConnection;
class Connection extends BaseConnection
{
public const DEFAULT_NAME = 'clickhouse';
protected Cluster $cluster;
public function getCluster(): Clust... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/RawColumn.php | src/RawColumn.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use Tinderbox\ClickhouseBuilder\Query\Expression;
class RawColumn extends Expression
{
/**
* Create a new raw query expression.
*
* @param mixed $value
* @param string|null $alias
*/
public function __construct($value, $... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/Builder.php | src/Builder.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use ClickHouseDB\Client;
use ClickHouseDB\Statement;
use Closure;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Pagination\Paginator;
use PhpClickHouseLaravel\Exceptions\QueryException;
use Tinderbox\ClickhouseBuilder\Query\BaseBuilder;
... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/Migration.php | src/Migration.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use ClickHouseDB\Statement;
use ClickHouseDB\Transport\CurlerRequest;
use Illuminate\Database\Migrations\Migration as BaseMigration;
use PhpClickHouseSchemaBuilder\Tables\MergeTree;
use Symfony\Component\Console\Output\ConsoleOutput;
class Migration ext... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/Grammar.php | src/Grammar.php | <?php
namespace PhpClickHouseLaravel;
class Grammar extends \Tinderbox\ClickhouseBuilder\Query\Grammar
{
public function __construct()
{
$this->selectComponents[] = 'settings';
}
public function compileSettingsComponent($_, array $settings): string
{
if (empty($settings)) {
... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/SchemaGrammar.php | src/SchemaGrammar.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Grammars\Grammar;
use Illuminate\Support\Fluent;
class SchemaGrammar extends Grammar
{
/**
* Compile the query to determine if the given table exists.
*
* @param... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/WithClient.php | src/WithClient.php | <?php
namespace PhpClickHouseLaravel;
use ClickHouseDB\Client;
use Illuminate\Support\Facades\DB;
trait WithClient
{
public function getThisClient(): Client
{
return DB::connection($this->connection)->getClient();
}
/**
* @return Client
* @deprecated use $this->getThisClient() inst... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/ClickhouseServiceProvider.php | src/ClickhouseServiceProvider.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Support\ServiceProvider;
/**
* Service provider to connect Clickhouse driver in Laravel.
*/
class ClickhouseServiceProvider extends ServiceProvider
{
/**
* @throws ... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/Cluster.php | src/Cluster.php | <?php
namespace PhpClickHouseLaravel;
use ClickHouseDB\Client;
use ClickHouseDB\Exception\TransportException;
use ClickHouseDB\Statement;
class Cluster
{
/**
* @var Client[]
*/
protected array $nodes;
protected int $activeNodeIndex;
public function __construct(
protected array $nod... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/SchemaBuilder.php | src/SchemaBuilder.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use Illuminate\Database\Schema\Builder as BaseBuilder;
class SchemaBuilder extends BaseBuilder
{
/** @inheritDoc */
public function hasTable($table): bool
{
return count($this->connection->select(
$this->grammar->comp... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/BaseModel.php | src/BaseModel.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use ClickHouseDB\Client;
use ClickHouseDB\Statement;
use Exception;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Database\Eloquent\Concerns\HasAttributes;
use Illuminate\Database\Eloquent\Concerns\HasEvents;
use Illuminate\Database\Eloquent... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/CurlerRollingWithRetries.php | src/CurlerRollingWithRetries.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel;
use ClickHouseDB\Transport\CurlerRequest;
use ClickHouseDB\Transport\CurlerRolling;
class CurlerRollingWithRetries extends CurlerRolling
{
/**
* @var int 0 mean only one attempt, 1 mean one attempt + 1 retry while error (2 total attempts)
... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/BuilderMethodsFromLaravel.php | src/BuilderMethodsFromLaravel.php | <?php
namespace PhpClickHouseLaravel;
use Illuminate\Contracts\Database\Query\Expression as ExpressionContract;
use Tinderbox\ClickhouseBuilder\Query\Expression;
trait BuilderMethodsFromLaravel
{
public function useWritePdo()
{
return $this;
}
/**
* Get a collection instance containing... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/Exceptions/QueryException.php | src/Exceptions/QueryException.php | <?php
namespace PhpClickHouseLaravel\Exceptions;
class QueryException extends \ClickHouseDB\Exception\QueryException
{
public static function cannotUpdateEmptyValues(): self
{
return new self('Error updating empty values');
}
}
| php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/src/Expressions/InsertArray.php | src/Expressions/InsertArray.php | <?php
declare(strict_types=1);
namespace PhpClickHouseLaravel\Expressions;
use ClickHouseDB\Query\Expression\Expression;
/**
* Class InsertArray
* @package PhpClickHouseLaravel
*
* Used to insert Array datatype
* @link https://clickhouse.tech/docs/ru/sql-reference/data-types/array/
* @example Model::insertAss... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/MultiInstancesTest.php | tests/MultiInstancesTest.php | <?php
use Illuminate\Support\Facades\DB;
use Tests\Models\Example2;
use Tests\TestCase;
class MultiInstancesTest extends TestCase
{
public function testSecondConnection()
{
Example2::truncate();
Example2::insertAssoc([['f_int' => 1, 'f_int2' => 2, 'f_string' => 'a']]);
usleep(3e4); // ... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/UpdateTest.php | tests/UpdateTest.php | <?php
namespace Tests;
use PhpClickHouseLaravel\RawColumn;
use Tests\Models\Example;
class UpdateTest extends TestCase
{
public function testUpdate()
{
Example::truncate();
Example::insertAssoc([['f_int' => 1, 'f_int2' => 2, 'f_string' => 'a']]);
Example::where('f_int', 1)->update([
... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
}
| php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/CreatesApplication.php | tests/CreatesApplication.php | <?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/CastsTest.php | tests/CastsTest.php | <?php
namespace Tests;
use Tests\Models\Example3;
class CastsTest extends TestCase
{
protected function setUp(): void
{
parent::setUp();
Example3::truncate();
}
public function testCasts()
{
Example3::insertAssoc([['f_int' => 1, 'f_bool' => false]]);
$rows = Exam... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/BaseTest.php | tests/BaseTest.php | <?php
namespace Tests;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
use PhpClickHouseLaravel\Builder;
use Tests\Models\Example;
class BaseTest extends TestCase
{
public function testWorkWithClient()... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/BindingsTest.php | tests/BindingsTest.php | <?php
namespace Tests;
use Illuminate\Support\Facades\DB;
use PhpClickHouseLaravel\Builder;
use Tests\Models\Example;
class BindingsTest extends TestCase
{
public function testBindingsByModel()
{
$query = Example::select()
->where(function (Builder $q) {
$q->where('f_int',... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/ClusterTest.php | tests/ClusterTest.php | <?php
namespace Tests;
use Tests\Models\Example4;
use Tests\Models\Example4Problem;
class ClusterTest extends TestCase
{
protected function setUp(): void
{
parent::setUp();
Example4::truncate();
}
public function testRegularCluster()
{
Example4::truncate();
sleep... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/migrations/exampleTable.php | tests/migrations/exampleTable.php | <?php
return new class extends \PhpClickHouseLaravel\Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
static::write(
"
CREATE TABLE IF NOT EXISTS examples (
created_at DateTime64 DEFAULT now64(),
... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/migrations/example4Table.php | tests/migrations/example4Table.php | <?php
return new class extends \PhpClickHouseLaravel\Migration {
protected $connection = 'clickhouse-cluster';
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
static::write(
"
CREATE TABLE IF NOT EXISTS examples4 (
... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/migrations/example3Table.php | tests/migrations/example3Table.php | <?php
return new class extends \PhpClickHouseLaravel\Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
static::write(
"
CREATE TABLE IF NOT EXISTS examples3 (
created_at DateTime64 DEFAULT now64(),
... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/migrations/example2Table.php | tests/migrations/example2Table.php | <?php
return new class extends \PhpClickHouseLaravel\Migration {
protected $connection = 'clickhouse2';
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
static::write(
"
CREATE TABLE IF NOT EXISTS examples2 (
crea... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/migrations/example5Table.php | tests/migrations/example5Table.php | <?php
use PhpClickHouseSchemaBuilder\Expression;
use PhpClickHouseSchemaBuilder\Tables\MergeTree;
return new class extends \PhpClickHouseLaravel\Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
static::createMergeTree('examples5', fn(MergeTree $t... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/Models/Example3.php | tests/Models/Example3.php | <?php
namespace Tests\Models;
use PhpClickHouseLaravel\BaseModel;
/**
* @property bool $f_bool
* @property int $f_int
*/
class Example3 extends BaseModel
{
protected $table = 'examples3';
protected $casts = ['f_bool' => 'boolean'];
} | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/Models/Example.php | tests/Models/Example.php | <?php
namespace Tests\Models;
use PhpClickHouseLaravel\BaseModel;
class Example extends BaseModel
{
} | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/Models/Example2.php | tests/Models/Example2.php | <?php
namespace Tests\Models;
use PhpClickHouseLaravel\BaseModel;
class Example2 extends BaseModel
{
protected $connection = 'clickhouse2';
protected $table = 'examples2';
} | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/Models/Example4Problem.php | tests/Models/Example4Problem.php | <?php
namespace Tests\Models;
use PhpClickHouseLaravel\BaseModel;
/**
* @property string $f_string
* @property int $f_int
*/
class Example4Problem extends BaseModel
{
protected $connection = 'problem-clickhouse-cluster';
protected $table = 'examples4';
} | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/Models/Example4.php | tests/Models/Example4.php | <?php
namespace Tests\Models;
use PhpClickHouseLaravel\BaseModel;
/**
* @property string $f_string
* @property int $f_int
*/
class Example4 extends BaseModel
{
protected $connection = 'clickhouse-cluster';
protected $table = 'examples4';
} | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/config/app.php | tests/config/app.php | <?php
use Illuminate\Support\Facades\Facade;
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is use... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
glushkovds/phpclickhouse-laravel | https://github.com/glushkovds/phpclickhouse-laravel/blob/215416e732604c029bc5d3082212046c6bfd5366/tests/config/database.php | tests/config/database.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections b... | php | MIT | 215416e732604c029bc5d3082212046c6bfd5366 | 2026-01-05T02:42:08.408425Z | false |
MoePlayer/DPlayer-Typecho | https://github.com/MoePlayer/DPlayer-Typecho/blob/a20b420e51b45ecbfe045b105f98ccd96d990e96/Plugin.php | Plugin.php | <?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* DPlayer for typecho
*
* @package DPlayer
* @author player
* @version 1.1.1
* @link https://niconiconi.net
*/
class DPlayer_Plugin implements Typecho_Plugin_Interface
{
/**
* 激活插件方法,如果激活失败,直接抛出异常
*
* @access public
* @return void
... | php | MIT | a20b420e51b45ecbfe045b105f98ccd96d990e96 | 2026-01-05T02:42:21.556865Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/demo.php | demo.php | <?php
require 'vendor/autoload.php';
use com\nlf\calendar\util\HolidayUtil;
use com\nlf\calendar\Lunar;
use com\nlf\calendar\Solar;
$lunar = Lunar::fromYmd(1986, 4, 21);
echo $lunar->toFullString() . "\n";
echo $lunar->getSolar()->toFullString() . "\n";
// 节假日
echo HolidayUtil::getHoliday('2020-05-02') . "\n";
// 儒... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/LiuYue.php | src/LiuYue.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
/**
* 流月
* @package com\nlf\calendar
*/
class LiuYue
{
/**
* 序数,0-9
* @var int
*/
private $index;
/**
* 流年
* @var LiuNian
*/
private $liuNian;
/**
* 初始化
* @param LiuNian $liuNian
* @param int $index
*/... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/LunarYear.php | src/LunarYear.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
use com\nlf\calendar\util\ShouXingUtil;
/**
* 农历年
* @package com\nlf\calendar
*/
class LunarYear
{
/**
* 元
* @var string[]
*/
public static $YUAN = array('下', '上', '中');
/**
* 运
* @var string[]
*/
public static $YU... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/Lunar.php | src/Lunar.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
use com\nlf\calendar\util\SolarUtil;
use DateTime;
use RuntimeException;
/**
* 农历日期
* @package com\nlf\calendar
*/
class Lunar
{
/**
* 节气表,国标以冬至为首个节气
* @var string[]
*/
public static $JIE_QI = array('冬至', '小寒', '大寒', '立春', '雨水', '... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | true |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/LunarMonth.php | src/LunarMonth.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
/**
* 农历月
* @package com\nlf\calendar
*/
class LunarMonth
{
/**
* 农历年
* @var int
*/
private $year;
/**
* 农历月:1-12,闰月为负数,如闰2月为-2
* @var int
*/
private $month;
/**
* 天数,大月30天,小月29天
* @var int
*/
private ... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/Yun.php | src/Yun.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
/**
* 运
* @package com\nlf\calendar
*/
class Yun
{
/**
* 性别,1男,0女
* @var int
*/
private $gender;
/**
* 起运年数
* @var int
*/
private $startYear;
/**
* 起运月数
* @var int
*/
private $startMonth;
/**
* 起... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/TaoFestival.php | src/TaoFestival.php | <?php
namespace com\nlf\calendar;
/**
* 道历节日
* @package com\nlf\calendar
*/
class TaoFestival
{
private $name;
private $remark;
function __construct($name, $remark = null)
{
$this->name = $name;
$this->remark = null == $remark ? '' : $remark;
}
public function getName()
{
return $this... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/Holiday.php | src/Holiday.php | <?php
namespace com\nlf\calendar;
/**
* 节假日
* @package com\nlf\calendar
*/
class Holiday
{
/**
* 日期,YYYY-MM-DD格式
* @var string
*/
private $day;
/**
* 名称,如:国庆
* @var string
*/
private $name;
/**
* 是否调休,即是否要上班
* @var bool
*/
private $work = false;
/**
* 关联的节日,YYYY-MM-D... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/SolarHalfYear.php | src/SolarHalfYear.php | <?php
namespace com\nlf\calendar;
use DateTime;
/**
* 公历半年
* @package com\nlf\calendar
*/
class SolarHalfYear
{
/**
* 年
* @var int
*/
private $year;
/**
* 月
* @var int
*/
private $month;
/**
* 一个半年的月数
* @var int
*/
public static $MONTH_COUNT = 6;
function __construct($y... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/LiuNian.php | src/LiuNian.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
/**
* 流年
* @package com\nlf\calendar
*/
class LiuNian
{
/**
* 序数,0-9
* @var int
*/
private $index;
/**
* 大运
* @var DaYun
*/
private $daYun;
/**
* 年
* @var int
*/
private $year;
/**
* 年龄
* @var ... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/EightChar.php | src/EightChar.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
/**
* 八字
* @package com\nlf\calendar
*/
class EightChar
{
/**
* @var int 流派
*/
private $sect = 2;
/**
* @var Lunar 农历
*/
private $lunar;
private static $CHANG_SHENG_OFFSET = array(
'甲' => 1,
'丙' => 10,
'戊' ... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/SolarMonth.php | src/SolarMonth.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\SolarUtil;
use DateTime;
/**
* 公历月
* @package com\nlf\calendar
*/
class SolarMonth
{
/**
* 年
* @var int
*/
private $year;
/**
* 月
* @var int
*/
private $month;
function __construct($year, $month)
{
$this->year = intv... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/LunarTime.php | src/LunarTime.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\LunarUtil;
/**
* 时辰
* @package com\nlf\calendar
*/
class LunarTime
{
/**
* 天干下标,0-9
* @var int
*/
private $ganIndex;
/**
* 地支下标,0-11
* @var int
*/
private $zhiIndex;
/**
* 农历
* @var Lunar
*/
private $lunar;
pri... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/JieQi.php | src/JieQi.php | <?php
namespace com\nlf\calendar;
/**
* 节气
* @package com\nlf\calendar
*/
class JieQi
{
/**
* 名称
* @var string
*/
private $name;
/**
* 公历日期
* @var Solar
*/
private $solar;
private $jie;
private $qi;
function __construct($name, $solar)
{
$this->setName($name);
$this->sola... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/SolarSeason.php | src/SolarSeason.php | <?php
namespace com\nlf\calendar;
use DateTime;
/**
* 公历季度
* @package com\nlf\calendar
*/
class SolarSeason
{
/**
* 年
* @var int
*/
private $year;
/**
* 月
* @var int
*/
private $month;
/**
* 一个季度的月数
* @var int
*/
public static $MONTH_COUNT = 3;
function __construct($ye... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/SolarWeek.php | src/SolarWeek.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\SolarUtil;
use DateTime;
/**
* 公历周
* @package com\nlf\calendar
*/
class SolarWeek
{
/**
* 年
* @var int
*/
private $year;
/**
* 月
* @var int
*/
private $month;
/**
* 日
* @var int
*/
private $day;
/**
* 星期几作为... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
6tail/lunar-php | https://github.com/6tail/lunar-php/blob/394d9f5afc78d3364456a6bb1369dbbb6f3ba88a/src/Foto.php | src/Foto.php | <?php
namespace com\nlf\calendar;
use com\nlf\calendar\util\FotoUtil;
use com\nlf\calendar\util\LunarUtil;
/**
* 佛历
* @package com\nlf\calendar
*/
class Foto
{
public static $DEAD_YEAR = -543;
private $lunar;
function __construct(Lunar $lunar)
{
$this->lunar = $lunar;
}
public static function ... | php | MIT | 394d9f5afc78d3364456a6bb1369dbbb6f3ba88a | 2026-01-05T02:42:24.861695Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.