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 |
|---|---|---|---|---|---|---|---|---|
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/basics/app/BasicsController.php | modules/basics/app/BasicsController.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace basics\app;
use framework\common\BasicController;
use Yii;
/**
* 后台用户管理器
*/
class BasicsController extends BasicController
{
/**
* 处理接口白名单
* @var array
*/
public $whitelists = [];
/*... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/basics/models/Basics.php | modules/basics/models/Basics.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace basics\models;
use framework\common\CommonModels;
class Basics extends CommonModels
{
const id = ['bigkey' => 10, 'unique', 'comment' => 'ID'];
const keyword = ['varchar' => 50, 'notNull', ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/basics/api/BasicsController.php | modules/basics/api/BasicsController.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace basics\api;
use framework\common\BasicController;
use Yii;
/**
* 后台用户管理器
*/
class BasicsController extends BasicController
{
/**
* 处理接口白名单
* @var array
*/
public $whitelists = [];
/*... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/basics/common/BasicsController.php | modules/basics/common/BasicsController.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace basics\common;
use framework\common\BasicController;
use Yii;
/**
* 后台用户管理器
*/
class BasicsController extends BasicController
{
// const __APITYPE__ = "";
/**
* 处理接口白名单
* @var array
*/
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/sms/app/IndexController.php | modules/sms/app/IndexController.php | <?php
/**
* 设置管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace sms\app;
use framework\common\BasicController;
use Overtrue\EasySms\Message;
use Yii;
class IndexController extends BasicController
{
public function actions()
{
$actions = parent::action... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/sms/models/SmsLog.php | modules/sms/models/SmsLog.php | <?php
/**
* 购物车
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace sms\models;
use framework\common\CommonModels;
class SmsLog extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const code = ['int' => 10, 'notNull', ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/sms/api/IndexController.php | modules/sms/api/IndexController.php | <?php
namespace sms\api;
use framework\common\BasicController;
use setting\models\Setting;
class IndexController extends BasicController
{
/**
* 重写父类
* @return [type] [description]
*/
public function actions()
{
$actions = parent::actions();
unset($actions['create']);
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/demo/app/DemoController.php | modules/demo/app/DemoController.php | <?php
/**
* @copyright ©2020 浙江禾成云计算有限公司
* Created by PhpStorm.
* User: Andy - 阿德
* Date: 2021/1/25
* Time: 14:09
*/
namespace demo\app;
use app\components\PaymentOrder;
use framework\common\BasicController;
class DemoController extends BasicController
{
public function actionPay()
{
$res = \Yi... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/demo/models/Demo.php | modules/demo/models/Demo.php | <?php
/**
* 设置管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace demo\models;
use framework\common\CommonModels;
class Demo extends CommonModels
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%demo}}';
}
}
| php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/demo/api/IndexController.php | modules/demo/api/IndexController.php | <?php
/**
* 设置管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace demo\api;
use framework\common\BasicController;
class IndexController extends BasicController
{
public function actionIndex()
{
return 111333;
// $class = new TestController($this... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/demo/api/TestController.php | modules/demo/api/TestController.php | <?php
/**
* 设置管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace demo\api;
use framework\common\BasicController;
class TestController extends BasicController
{
}
| php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/setting/app/IndexController.php | modules/setting/app/IndexController.php | <?php
/**
* 设置管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace setting\app;
use framework\common\BasicController;
use Yii;
class IndexController extends BasicController
{
/**
* 重写父类
* @return [type] [description]
*/
public function actions()
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/setting/models/Address.php | modules/setting/models/Address.php | <?php
/**
* 退货地址
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace setting\models;
use framework\common\CommonModels;
class Address extends CommonModels
{
const id = ['bigkey' => 10, 'unique', 'comment' => 'ID'];
const name = ['varchar' => 50, '... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/setting/models/Waybill.php | modules/setting/models/Waybill.php | <?php
namespace setting\models;
use framework\common\CommonModels;
/**
* This is the model class for table "{{%waybill}}".
*
* @property int $id ID
* @property string $code 物流公司编号
* @property string $name 名称
* @property string $mobile 联系方式
* @property string $province 省
* @property string $city 市
* @propert... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/setting/models/Setting.php | modules/setting/models/Setting.php | <?php
/**
* 设置管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace setting\models;
use framework\common\CommonModels;
class Setting extends CommonModels
{
const id = ['bigkey' => 10, 'unique', 'comment' => 'ID'];
const keyword = ['varchar' => 50, '... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/setting/api/IndexController.php | modules/setting/api/IndexController.php | <?php
/**
* 设置管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace setting\api;
use framework\common\BasicController;
use setting\models\Waybill;
use Yii;
class IndexController extends BasicController
{
/**
* 重写父类
* @return [type] [description]
*/
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/setting/api/AddressController.php | modules/setting/api/AddressController.php | <?php
/**
* 退货地址管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace setting\api;
use framework\common\BasicController;
use Yii;
use yii\data\ActiveDataProvider;
class AddressController extends BasicController
{
public $modelClass = 'setting\models\Address';
/*... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/setting/api/WaybillController.php | modules/setting/api/WaybillController.php | <?php
namespace setting\api;
use framework\common\BasicController;
use setting\models\Waybill;
use Yii;
use yii\data\ActiveDataProvider;
class WaybillController extends BasicController
{
public $modelClass = 'setting\models\Waybill';
/**
* 重写父类
* @return [type] [description]
*/
public fun... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/app/IndexController.php | modules/goods/app/IndexController.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\app;
use app\forms\video\Video;
use framework\common\BasicController;
use goods\models\Goods;
use Yii;
use yii\data\ActiveDataProvider;
/**
* 小程序商品
*/
class IndexController extends BasicController
{
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/app/GroupController.php | modules/goods/app/GroupController.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\app;
use framework\common\BasicController;
use Yii;
/**
* 小程序商品分组
*/
class GroupController extends BasicController
{
public $modelClass = 'goods\models\GoodsGroup';
/**
* 重写父类
* @retur... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsGroup.php | modules/goods/models/GoodsGroup.php | <?php
/**
* 商品分类模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsGroup extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const name = ['varchar' => 5... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsData.php | modules/goods/models/GoodsData.php | <?php
/**
* 商品分类模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsData extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const goods_id = ['bigint' => 20,... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/Test.php | modules/goods/models/Test.php | <?php
/**
* 商品分类模型
* @link http://www.heshop.com/
* @copyright Copyright (c) 2020 HeShop Software LLC
* @license http://www.heshop.com/license/
*/
namespace goods\models;
use framework\common\CommonModels;
class Test extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsBody.php | modules/goods/models/GoodsBody.php | <?php
/**
* 商品详情模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsBody extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const goods_id = ['bigint' ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsService.php | modules/goods/models/GoodsService.php | <?php
/**
* 素材模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsService extends CommonModels
{
const id = ['bigkey' => 10, 'unique', 'comment' => 'ID'];
const title = ['varchar' => 5... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsArgs.php | modules/goods/models/GoodsArgs.php | <?php
/**
* 商品详情模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsArgs extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const title = ['varchar' => 50... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsParamTemplate.php | modules/goods/models/GoodsParamTemplate.php | <?php
namespace goods\models;
use framework\common\CommonModels;
/**
* This is the model class for table "{{goods_param_template}}".
*
* @property int $id ID
* @property string $param_name 规格名
* @property string $param_data 规格值
* @property string $AppID 应用ID
* @property int $merchant_id 商户ID
* @property int ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsParam.php | modules/goods/models/GoodsParam.php | <?php
/**
* 商品分类模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsParam extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const goods_id = ['bigint' => 20... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsExport.php | modules/goods/models/GoodsExport.php | <?php
/**
* 订单导出模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsExport extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const conditions = ['text' => 0, ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/Goods.php | modules/goods/models/Goods.php | <?php
/**
* 商品模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
use order\models\OrderEvaluate;
/**
* This is the model class for table "{{%goods}}".
*
* @property int $id
* @property string $name 商品标题
* @property... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/models/GoodsCoupon.php | modules/goods/models/GoodsCoupon.php | <?php
/**
* 商品详情模型
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\models;
use framework\common\CommonModels;
class GoodsCoupon extends CommonModels
{
const id = ['bigkey' => 20, 'unique', 'comment' => 'ID'];
const goods_id = ['bigint' => 2... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/api/IndexController.php | modules/goods/api/IndexController.php | <?php
/**
* 商品管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\api;
use framework\common\BasicController;
use goods\models\Goods;
use Yii;
use yii\data\ActiveDataProvider;
class IndexController extends BasicController
{
public $goodsModel = 'goods\models\G... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/api/ArgsController.php | modules/goods/api/ArgsController.php | <?php
namespace goods\api;
use framework\common\BasicController;
use goods\models\GoodsArgs;
use Yii;
use yii\data\ActiveDataProvider;
class ArgsController extends BasicController
{
public function actions()
{
$actions = parent::actions();
unset($actions['create']);
unset($actions['up... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/api/ServiceController.php | modules/goods/api/ServiceController.php | <?php
/**
* 商品服务管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\api;
use framework\common\BasicController;
use Yii;
use yii\data\ActiveDataProvider;
class ServiceController extends BasicController
{
public $modelClass = 'goods\models\GoodsService';
/... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/api/ExportController.php | modules/goods/api/ExportController.php | <?php
/**
* 售后订单控制器
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\api;
use framework\common\BasicController;
use Yii;
use yii\data\ActiveDataProvider;
class ExportController extends BasicController
{
public $modelClass = 'goods\models\GoodsExport';
pub... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/api/TemplateController.php | modules/goods/api/TemplateController.php | <?php
namespace goods\api;
use framework\common\BasicController;
use goods\models\GoodsParamTemplate;
use yii\data\ActiveDataProvider;
class TemplateController extends BasicController
{
public $modelClass = 'goods\models\GoodsParamTemplate';
/**
* 重写父类
* @return [type] [description]
*/
pu... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/api/TestController.php | modules/goods/api/TestController.php | <?php
namespace goods\api;
use framework\common\BasicController;
use app\components\DownloadJob;
use Yii;
class TestController extends BasicController
{
public $modelClass = 'goods\models\Test';
public function actionTest()
{
$res = Yii::$app->queue->push(new DownloadJob([
'url' => ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/goods/api/GroupController.php | modules/goods/api/GroupController.php | <?php
/**
* 商品分组管理
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace goods\api;
use framework\common\BasicController;
use Yii;
class GroupController extends BasicController
{
public $modelClass = 'goods\models\GoodsGroup';
/**
* 重写父类
* @return [type] ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/CollectLog.php | modules/collect/models/CollectLog.php | <?php
namespace collect\models;
use framework\common\CommonModels;
use goods\models\Goods;
/**
* This is the model class for table "{{%collect_log}}".
*
* @property int $id ID
* @property int $type 采集类型 1阿里巴巴、2淘宝、3京东、4拼多多、5天猫
* @property string $cover 商品封面
* @property string $name 商品标题
* @property string $lin... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/TmallCollect.php | modules/collect/models/collect/TmallCollect.php | <?php
namespace collect\models\collect;
class TmallCollect extends AliCollect
{
private $url = 'https://api03.6bqb.com/tmall/detail';
public function getName()
{
return '天猫';
}
public function getUrl()
{
return $this->url;
}
public function getType()
{
re... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/CollectFactory.php | modules/collect/models/collect/CollectFactory.php | <?php
namespace collect\models\collect;
class CollectFactory
{
public static function create($links, $param)
{
$successNum = 0;
set_time_limit(0);
if (is_string($links)) {
$links = [$links];
}
foreach ($links as $link) {
// 获取链接的域名
$h... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/AliCollect.php | modules/collect/models/collect/AliCollect.php | <?php
namespace collect\models\collect;
abstract class AliCollect extends BaseCollect
{
public function getItemId($link)
{
$id = $this->pregSubstr('/(\?id=|&id=)/', '/&/', $link);
if (empty($id)) {
throw new \Exception($link . '链接错误,没有包含商品id');
}
$itemId = $id[0];
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/NoresultException.php | modules/collect/models/collect/NoresultException.php | <?php
namespace collect\models\collect;
class NoresultException extends CollectException
{
}
| php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/TaobaoCollect.php | modules/collect/models/collect/TaobaoCollect.php | <?php
namespace collect\models\collect;
class TaobaoCollect extends AliCollect
{
private $url = 'https://api03.6bqb.com/taobao/detail';
public function getName()
{
return '淘宝';
}
public function getUrl()
{
return $this->url;
}
public function getType()
{
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/JdCollect.php | modules/collect/models/collect/JdCollect.php | <?php
namespace collect\models\collect;
class JdCollect extends BaseCollect
{
private $url = 'https://api03.6bqb.com/jd/detail';
public function getName()
{
return '京东';
}
public function getUrl()
{
return $this->url;
}
public function getType()
{
return ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/AlibabaData.php | modules/collect/models/collect/AlibabaData.php | <?php
namespace collect\models\collect;
use yii\helpers\Json;
/**
* Class AlibabaData
* @package app\forms\common\collect\collect_data
*/
class AlibabaData extends BaseCollect
{
private $url = 'https://api03.6bqb.com/alibaba/detail';
public function getName()
{
return '阿里巴巴';
}
publi... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/CollectException.php | modules/collect/models/collect/CollectException.php | <?php
namespace collect\models\collect;
use yii\web\HttpException;
abstract class CollectException extends \Exception
{
} | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/LimitException.php | modules/collect/models/collect/LimitException.php | <?php
namespace collect\models\collect;
class LimitException extends CollectException
{
} | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/AuthException.php | modules/collect/models/collect/AuthException.php | <?php
namespace collect\models\collect;
class AuthException extends CollectException
{
} | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/CommonException.php | modules/collect/models/collect/CommonException.php | <?php
namespace collect\models\collect;
class CommonException extends CollectException
{
} | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/BaseCollect.php | modules/collect/models/collect/BaseCollect.php | <?php
namespace collect\models\collect;
use app\components\core\HttpRequest;
use app\components\Upload;
use collect\models\CollectLog;
use gallery\models\Gallery;
use phpDocumentor\Reflection\Types\Boolean;
use setting\models\Setting;
use yii\base\BaseObject;
abstract class BaseCollect extends BaseObject
{
use H... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/PddCollect.php | modules/collect/models/collect/PddCollect.php | <?php
namespace collect\models\collect;
/**
* Class AlibabaData
* @package app\forms\common\collect\collect_data
*/
class PddCollect extends BaseCollect
{
private $url = 'https://api03.6bqb.com/pdd/detail';
public function getName()
{
return '拼多多';
}
public function getUrl()
{
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/models/collect/Goods.php | modules/collect/models/collect/Goods.php | <?php
namespace collect\models\collect;
use yii\base\Model;
class Goods extends Model
{
public $name;
public $price;
public $linePrice;
public $slideshow;
public $is_video = 0;
public $cats;
public $stocks = 0;
public $desc;
public $attr;
public $param_type = 2;
public $un... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/modules/collect/api/IndexController.php | modules/collect/api/IndexController.php | <?php
namespace collect\api;
use collect\models\CollectLog;
use framework\common\BasicController;
use goods\models\GoodsGroup;
use yii\data\ActiveDataProvider;
class IndexController extends BasicController
{
public $modelClass = 'collect\models\CollectLog';
/**
* 重写父类
* @return [type] [description... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/config/web.php | config/web.php | <?php
$db = file_exists(__DIR__ . '/db.php') ? require(__DIR__ . '/db.php') : [
'class' => 'yii\db\Connection',
'dsn' => '',
'username' => '',
'password' => '',
'charset' => '',
'tablePrefix' => '',
'attributes' => [
PDO::ATTR_STRINGIFY_FETCHES => false,
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/config/params.php | config/params.php | <?php
$json_string = file_get_contents(__DIR__ . '/config.json');
// 用参数true把JSON字符串强制转成PHP数组
return json_decode($json_string, true);
| php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/config/aliases.php | config/aliases.php | <?php
/**
* @Author: qinuoyun
* @Date: 2021-01-05 10:39:18
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-06-28 13:30:49
*/
return [
'@demo/api' => '@leadmall/modules/demo/api',
'@basics/api' => '@leadmall/modules/basics/api',
'@goods/api' => '@leadmall/module... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/config/console.php | config/console.php | <?php
$db = require __DIR__ . '/db.php';
$params = require __DIR__ . '/params.php';
$config = [
'id' => 'basic-console',
'basePath' => dirname(__DIR__),
'timeZone' => 'PRC',
'components' => [
'db' => $db,
'redis' => [
'class' => \yii\redis\Connection::c... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/web/a.php | web/a.php | <?php
/**
* @Author: qinuoyun
* @Date: 2021-06-01 11:50:38
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-06-01 14:03:46
*/
$file = __DIR__ . "/leadshop.php";
$new_file = file_get_contents($file);
echo md5($new_file);
| php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/web/leadshop.php | web/leadshop.php | <?php
/**
* 核心文件
* @link http://www.Leadshop.com/
* @copyright Copyright (c) 2020 Leadshop Software LLC
* @license http://www.Leadshop.com/license/
*/
ini_set("display_errors", "Off");
error_reporting(E_ALL);
//开启Session
session_start();
//当前文件名称
define('LE_SCRIPT_NAME', basename(__FILE__));
//站点根目录路径
define('LE_P... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | true |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/web/pay.php | web/pay.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
defined('URL_STRING') or define('URL_STRING', 'HESHOP_URL_STRING');
defined('SHOP_ENVIRONMENT') or define('SHOP_ENVIRONMENT', 'leadshop');
defined('WE7_URL') or define('WE7_URL', '');
defined('WE7_API') or define('... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/web/index.php | web/index.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
defined('URL_STRING') or define('URL_STRING', 'HESHOP_URL_STRING');
defined('SHOP_ENVIRONMENT') or define('SHOP_ENVIRONMENT', 'leadshop');
defined('WE7_URL') or define('WE7_URL', '');
defined('WE7_API') or define(... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/app/autoload.php | app/autoload.php | <?php
use Symfony\Component\ClassLoader\UniversalClassLoader;
use Doctrine\Common\Annotations\AnnotationRegistry;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
'Sensio' ... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/app/AppKernel.php | app/AppKernel.php | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/app/AppCache.php | app/AppCache.php | <?php
require_once __DIR__.'/AppKernel.php';
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
class AppCache extends HttpCache
{
}
| php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/app/check.php | app/check.php | <?php
if (!$iniPath = get_cfg_var('cfg_file_path')) {
$iniPath = 'WARNING: not using a php.ini file';
}
echo "********************************\n";
echo "* *\n";
echo "* Symfony requirements check *\n";
echo "* *\n";
echo "********************************... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/BloggerBlogBundle.php | src/Blogger/BlogBundle/BloggerBlogBundle.php | <?php
namespace Blogger\BlogBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class BloggerBlogBundle extends Bundle
{
}
| php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Entity/Blog.php | src/Blogger/BlogBundle/Entity/Blog.php | <?php
namespace Blogger\BlogBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity(repositoryClass="Blogger\BlogBundle\Repository\BlogRepository")
* @ORM\Table(name="blog")
* @ORM\HasLifecycleCallbacks()
*/
class Blog
{
/**
* @ORM\Id
* @OR... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Entity/Comment.php | src/Blogger/BlogBundle/Entity/Comment.php | <?php
// src/Blogger/BlogBundle/Entity/Comment.php
namespace Blogger\BlogBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Constraints\NotBlank;
/**
* @ORM\Entity(repositoryClass="Blogger\BlogBundle\Repository\CommentRepository")
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Entity/Enquiry.php | src/Blogger/BlogBundle/Entity/Enquiry.php | <?php
namespace Blogger\BlogBundle\Entity;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Email;
use Symfony\Component\Validator\Constraints\Length;
class Enquiry
{
protected $name;
protected $email;
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Controller/BlogController.php | src/Blogger/BlogBundle/Controller/BlogController.php | <?php
namespace Blogger\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
/**
* Blog controller.
*/
class BlogController extends Controller
{
/**
* Show a blog entry
*/
public function showAction($id, $slug)
{
$em = $this->getDoctrine()->getManager();
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Controller/CommentController.php | src/Blogger/BlogBundle/Controller/CommentController.php | <?php
namespace Blogger\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Blogger\BlogBundle\Entity\Comment;
use Blogger\BlogBundle\Form\CommentType;
/**
* Comment controller.
*/
class CommentController extends Controller
{
public function newAction($blog_id)
{
$b... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Controller/PageController.php | src/Blogger/BlogBundle/Controller/PageController.php | <?php
namespace Blogger\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Blogger\BlogBundle\Entity\Enquiry;
use Blogger\BlogBundle\Form\EnquiryType;
class PageController extends Controller
{
public function indexAction()
{
$em = $this->getDoctrine()
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Twig/Extensions/BloggerBlogExtension.php | src/Blogger/BlogBundle/Twig/Extensions/BloggerBlogExtension.php | <?php
namespace Blogger\BlogBundle\Twig\Extensions;
class BloggerBlogExtension extends \Twig_Extension
{
public function getFilters()
{
return array(
'created_ago' => new \Twig_Filter_Method($this, 'createdAgo'),
);
}
public function createdAgo(\DateTime $dateTime)
{
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Form/CommentType.php | src/Blogger/BlogBundle/Form/CommentType.php | <?php
namespace Blogger\BlogBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class CommentType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('user')
->add('comment')
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Form/EnquiryType.php | src/Blogger/BlogBundle/Form/EnquiryType.php | <?php
namespace Blogger\BlogBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class EnquiryType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder->add('name');
$builder->add('email', 'email');
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/DependencyInjection/BloggerBlogExtension.php | src/Blogger/BlogBundle/DependencyInjection/BloggerBlogExtension.php | <?php
namespace Blogger\BlogBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class that loads and manag... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/DependencyInjection/Configuration.php | src/Blogger/BlogBundle/DependencyInjection/Configuration.php | <?php
namespace Blogger\BlogBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfon... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Tests/Entity/BlogTest.php | src/Blogger/BlogBundle/Tests/Entity/BlogTest.php | <?php
namespace Blogger\BlogBundle\Tests\Entity;
use Blogger\BlogBundle\Entity\Blog;
class BlogTest extends \PHPUnit_Framework_TestCase
{
public function testSlugify()
{
$blog = new Blog();
$this->assertEquals('hello-world', $blog->slugify('Hello World'));
$this->assertEquals('a-day-... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php | src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php | <?php
namespace Blogger\BlogBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PageControllerTest extends WebTestCase
{
public function testAbout()
{
$client = static::createClient();
$crawler = $client->request('GET', '/about');
$this->assertEquals(... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Tests/Controller/BlogControllerTest.php | src/Blogger/BlogBundle/Tests/Controller/BlogControllerTest.php | <?php
namespace Blogger\BlogBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class BlogControllerTest extends WebTestCase
{
public function testAddBlogComment()
{
$client = static::createClient();
$crawler = $client->request('GET', '/1/a-day-with-symfony');
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Tests/Twig/Extensions/BloggerBlogExtensionTest.php | src/Blogger/BlogBundle/Tests/Twig/Extensions/BloggerBlogExtensionTest.php | <?php
namespace Blogger\BlogBundle\Tests\Twig\Extensions;
use Blogger\BlogBundle\Twig\Extensions\BloggerBlogExtension;
class BloggerBlogExtensionTest extends \PHPUnit_Framework_TestCase
{
public function testCreatedAgo()
{
$blog = new BloggerBlogExtension();
$this->assertEquals("0 seconds ag... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Tests/Repository/BlogRepositoryTest.php | src/Blogger/BlogBundle/Tests/Repository/BlogRepositoryTest.php | <?php
namespace Blogger\BlogBundle\Tests\Repository;
use Blogger\BlogBundle\Repository\BlogRepository;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class BlogRepositoryTest extends WebTestCase
{
/**
* @var \Blogger\BlogBundle\Repository\BlogRepository
*/
private $blogRepository;
public... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/DataFixtures/ORM/CommentFixtures.php | src/Blogger/BlogBundle/DataFixtures/ORM/CommentFixtures.php | <?php
namespace Blogger\BlogBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Blogger\BlogBundle\Entity\Comment;
use Blogger\BlogBundle\Entity\Blog;
class CommentFixtures extends AbstractFixture implements OrderedFixtureInterface
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/DataFixtures/ORM/BlogFixtures.php | src/Blogger/BlogBundle/DataFixtures/ORM/BlogFixtures.php | <?php
namespace Blogger\BlogBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Blogger\BlogBundle\Entity\Blog;
class BlogFixtures extends AbstractFixture implements OrderedFixtureInterface
{
public function load(\Doctrine\Commo... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Repository/CommentRepository.php | src/Blogger/BlogBundle/Repository/CommentRepository.php | <?php
namespace Blogger\BlogBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* CommentRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class CommentRepository extends EntityRepository
{
public function getCommentsForBlog($blogId, $appro... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/src/Blogger/BlogBundle/Repository/BlogRepository.php | src/Blogger/BlogBundle/Repository/BlogRepository.php | <?php
namespace Blogger\BlogBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* BlogRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class BlogRepository extends EntityRepository
{
public function getLatestBlogs($limit = null)
{
... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/web/app.php | web/app.php | <?php
require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
use Symfony\Component\HttpFoundation\Request;
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);
$kernel->handle(Re... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/web/config.php | web/config.php | <?php
if (!isset($_SERVER['HTTP_HOST'])) {
die('This script cannot be run from the CLI. Run it from a browser.');
}
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))) {
header('HTTP/1.0 403 Forbidden');
die('This script is only accessible from localhost.');
}
$majorProblems = ... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
dsyph3r/symblog | https://github.com/dsyph3r/symblog/blob/d94f592c3a37adb5da037cb629ce5fa5efa5a0eb/web/app_dev.php | web/app_dev.php | <?php
// this check prevents access to debug front controllers that are deployed by accident to production servers.
// feel free to remove this, extend it, or make something more sophisticated.
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))) {
header('HTTP/1.0 403 Forbidden');
di... | php | MIT | d94f592c3a37adb5da037cb629ce5fa5efa5a0eb | 2026-01-05T02:21:10.242812Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/.php_cs.dist.php | .php_cs.dist.php | <?php
$finder = Symfony\Component\Finder\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'arra... | php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/SendsServiceProvider.php | src/SendsServiceProvider.php | <?php
declare(strict_types=1);
namespace Wnx\Sends;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
class SendsServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
/*
* This class is a Pack... | php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/Header.php | src/Header.php | <?php
declare(strict_types=1);
namespace Wnx\Sends;
use Symfony\Component\Mime\Header\UnstructuredHeader;
class Header extends UnstructuredHeader
{
public function toArray(): array
{
return [
$this->getName() => $this->getValue(),
];
}
}
| php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/Listeners/StoreOutgoingMailListener.php | src/Listeners/StoreOutgoingMailListener.php | <?php
declare(strict_types=1);
namespace Wnx\Sends\Listeners;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Mail\Events\MessageSent;
use Illuminate\Support\Collection;
use ReflectionClass;
use Symfony\Component\Mime\Address;
use Wnx\Sends\Contracts\HasSends;
use Wnx\Sends\Models\Send;
class StoreOutgoingMa... | php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/Listeners/AttachSendUuidListener.php | src/Listeners/AttachSendUuidListener.php | <?php
declare(strict_types=1);
namespace Wnx\Sends\Listeners;
use Illuminate\Mail\Events\MessageSending;
use Illuminate\Support\Str;
class AttachSendUuidListener
{
public function handle(MessageSending $event): void
{
/** @var string $sendUuidHeader */
$sendUuidHeader = config('sends.headers... | php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/Support/StoreMailables.php | src/Support/StoreMailables.php | <?php
declare(strict_types=1);
namespace Wnx\Sends\Support;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use ReflectionClass;
use ReflectionProperty;
use Symfony\Component\Mime\Email;
use Wnx\Sends\Contracts\HasSends;
use Wnx\Sends\Header;
trait StoreMailables
{
public function sto... | php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/Support/HasSendsTrait.php | src/Support/HasSendsTrait.php | <?php
declare(strict_types=1);
namespace Wnx\Sends\Support;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
trait HasSendsTrait
{
public function sends(): MorphToMany
{
return $this
->morphToMany(config('sends.send_model'), 'sendable', 'sendables', 'sendable_id', 'send_id');
... | php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/Contracts/HasSends.php | src/Contracts/HasSends.php | <?php
declare(strict_types=1);
namespace Wnx\Sends\Contracts;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
interface HasSends
{
public function sends(): MorphToMany;
}
| php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/src/Models/Send.php | src/Models/Send.php | <?php
declare(strict_types=1);
namespace Wnx\Sends\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Wnx\Sends\Database\Factories\SendFactory;
/**
* @property-read string $uuid
* @property-read st... | php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
stefanzweifel/laravel-sends | https://github.com/stefanzweifel/laravel-sends/blob/ec056df71e8cd9cb8218d43c79340bb0e9464a51/tests/Pest.php | tests/Pest.php | <?php
declare(strict_types=1);
use Wnx\Sends\Tests\TestCase;
uses(TestCase::class)->in(__DIR__);
| php | MIT | ec056df71e8cd9cb8218d43c79340bb0e9464a51 | 2026-01-05T02:21:26.758052Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.