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 |
|---|---|---|---|---|---|---|---|---|
brick/varexporter | https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/SerializeMagicMethods.php | tests/Classes/SerializeMagicMethods.php | <?php
declare(strict_types=1);
namespace Brick\VarExporter\Tests\Classes;
/**
* A class with __serialize() and __unserialize() magic methods.
*/
class SerializeMagicMethods
{
public $foo;
public $bar;
public function __serialize(): array
{
return [
'foo' => $this->foo,
... | php | MIT | c84d0b5c773936c5f646b060e8b178d0d015fbc5 | 2026-01-05T02:40:13.413890Z | false |
brick/varexporter | https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/PublicAndPrivateProperties.php | tests/Classes/PublicAndPrivateProperties.php | <?php
declare(strict_types=1);
namespace Brick\VarExporter\Tests\Classes;
class PublicAndPrivateProperties extends PublicPropertiesOnly
{
private string $baz = 'defaultValue';
protected function setBaz($baz): void
{
$this->baz = $baz;
}
protected function unsetBaz(): void
{
... | php | MIT | c84d0b5c773936c5f646b060e8b178d0d015fbc5 | 2026-01-05T02:40:13.413890Z | false |
brick/varexporter | https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/PublicReadonlyPropertiesWithoutConstructor.php | tests/Classes/PublicReadonlyPropertiesWithoutConstructor.php | <?php
declare(strict_types=1);
namespace Brick\VarExporter\Tests\Classes;
class PublicReadonlyPropertiesWithoutConstructor
{
public readonly string $foo;
private readonly string $bar;
public string $baz;
}
| php | MIT | c84d0b5c773936c5f646b060e8b178d0d015fbc5 | 2026-01-05T02:40:13.413890Z | false |
brick/varexporter | https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/PublicPropertiesWithConstructor.php | tests/Classes/PublicPropertiesWithConstructor.php | <?php
declare(strict_types=1);
namespace Brick\VarExporter\Tests\Classes;
class PublicPropertiesWithConstructor extends PublicPropertiesOnly
{
public function __construct(string $foo = 'DefaultFoo', int $bar = 0)
{
$this->foo = $foo;
$this->bar = $bar;
}
}
| php | MIT | c84d0b5c773936c5f646b060e8b178d0d015fbc5 | 2026-01-05T02:40:13.413890Z | false |
brick/varexporter | https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/Hierarchy/C.php | tests/Classes/Hierarchy/C.php | <?php
declare(strict_types=1);
namespace Brick\VarExporter\Tests\Classes\Hierarchy;
class C extends B
{
private $privateInC = 'private in C';
protected $protectedInC = 'protected in C';
public $publicInC = 'public in C';
// parent has a property with same name
private $privateOverridden = 'in ... | php | MIT | c84d0b5c773936c5f646b060e8b178d0d015fbc5 | 2026-01-05T02:40:13.413890Z | false |
brick/varexporter | https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/Hierarchy/A.php | tests/Classes/Hierarchy/A.php | <?php
declare(strict_types=1);
namespace Brick\VarExporter\Tests\Classes\Hierarchy;
abstract class A
{
private $privateInA = 'private in A';
protected $protectedInA = 'protected in A';
public $publicInA = 'public in A';
private $privateOverridden = 'in A';
private function __construct()
{... | php | MIT | c84d0b5c773936c5f646b060e8b178d0d015fbc5 | 2026-01-05T02:40:13.413890Z | false |
brick/varexporter | https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/Hierarchy/B.php | tests/Classes/Hierarchy/B.php | <?php
declare(strict_types=1);
namespace Brick\VarExporter\Tests\Classes\Hierarchy;
class B extends A
{
private $privateInB = 'private in B';
protected $protectedInB = 'protected in B';
public $publicInB = 'public in B';
// parent has a property with same name
private $privateOverridden = 'in ... | php | MIT | c84d0b5c773936c5f646b060e8b178d0d015fbc5 | 2026-01-05T02:40:13.413890Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cloud/App.php | app/Cloud/App.php | <?php
declare(strict_types=1);
namespace App\Cloud;
use Dux\App\AppExtend;
use Dux\Bootstrap;
/**
* Application Registration
*/
class App extends AppExtend
{
public function register(Bootstrap $app): void
{
}
}
| php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cloud/Admin/Apps.php | app/Cloud/Admin/Apps.php | <?php
declare(strict_types=1);
namespace App\Cloud\Admin;
use App\System\Models\SystemUser;
use App\System\Service\Config;
use Dux\Handlers\ExceptionBusiness;
use Dux\Package\ComposerCommand;
use Dux\Package\Install;
use Dux\Package\InstallCommand;
use Dux\Package\Package;
use Dux\Package\Uninstall;
use Dux\Package\... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cms/App.php | app/Cms/App.php | <?php
declare(strict_types=1);
namespace App\Cms;
use App\Content\Models\ArticleReplace;
use Dux\App\AppExtend;
use Dux\Bootstrap;
use Parsedown;
/**
* Application Registration
*/
class App extends AppExtend
{
public function init(Bootstrap $app): void
{
}
public function register(Bootstrap $ap... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cms/Admin/Stats.php | app/Cms/Admin/Stats.php | <?php
namespace App\Cms\Admin;
use App\Content\Models\Article;
use App\System\Models\LogVisit;
use App\System\Models\LogVisitData;
use App\System\Models\LogVisitSpider;
use App\System\Models\LogVisitUv;
use Dux\App;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Psr\Http\Message\Respons... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cms/Admin/Template.php | app/Cms/Admin/Template.php | <?php
declare(strict_types=1);
namespace App\Cms\Admin;
use App\System\Service\Config;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Mimey\MimeTypes;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Routing\RouteContext;
#[Resource(app: 'a... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cms/Admin/Setting.php | app/Cms/Admin/Setting.php | <?php
declare(strict_types=1);
namespace App\Cms\Admin;
use App\System\Models\SystemUser;
use App\System\Service\Config;
use Dux\Handlers\ExceptionBusiness;
use Dux\Package\Install;
use Dux\Package\Package;
use Dux\Package\Uninstall;
use Dux\Package\Update;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attri... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cms/Web/Index.php | app/Cms/Web/Index.php | <?php
namespace App\Cms\Web;
use App\Cms\Service\Translator;
use App\System\Service\Config;
use Carbon\Carbon;
use Dux\App;
use Dux\Handlers\ExceptionNotFound;
use Dux\Route\Attribute\Route;
use Dux\Route\Attribute\RouteGroup;
use Latte\Essential\TranslatorExtension;
use Latte\Loaders\FileLoader;
use Psr\Http\Message... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Cms/Service/Translator.php | app/Cms/Service/Translator.php | <?php
namespace App\Cms\Service;
class Translator
{
public function __construct()
{
}
public function translate(string $original, ...$params): string
{
return __($original, 'theme', $params);
}
} | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Install/App.php | app/Install/App.php | <?php
declare(strict_types=1);
namespace App\Install;
use App\Tools\Config\Menu;
use App\Tools\Config\Route;
use App\Tools\Scheduler\Test;
use Dux\App\AppExtend;
use Dux\Bootstrap;
/**
* Application Registration
*/
class App extends AppExtend
{
public function register(Bootstrap $app): void
{
}
}
| php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Install/Web/Install.php | app/Install/Web/Install.php | <?php
namespace App\Install\Web;
use Dux\App;
use Dux\Route\Attribute\Route;
use Dux\Route\Attribute\RouteGroup;
use PDO;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Symfony\Component\Console\Output\BufferedOutput;
set_time_limit(120);
#[RouteGroup(app: 'web', pattern: '... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Poster/App.php | app/Poster/App.php | <?php
declare(strict_types=1);
namespace App\Poster;
use Dux\App\AppExtend;
use Dux\Bootstrap;
/**
* Application Registration
*/
class App extends AppExtend
{
}
| php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Poster/Admin/Poster.php | app/Poster/Admin/Poster.php | <?php
declare(strict_types=1);
namespace App\Poster\Admin;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/poster/design', name: 'poster.design')]
class Poster extends Resources
{
prote... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Poster/Models/Poster.php | app/Poster/Models/Poster.php | <?php
declare(strict_types=1);
namespace App\Poster\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class Poster extends \Dux\Database\Model
{
public $table = 'poster';
public function migration(Blueprint $table)
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Poster/Service/Poster.php | app/Poster/Service/Poster.php | <?php
namespace App\Poster\Service;
use Dux\Handlers\ExceptionBusiness;
use Intervention\Image\Drivers\Imagick\Driver;
use Intervention\Image\Geometry\Factories\CircleFactory;
use Intervention\Image\Geometry\Factories\RectangleFactory;
use Intervention\Image\ImageManager;
use Intervention\Image\Typography\FontFactory... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/App.php | app/Tools/App.php | <?php
declare(strict_types=1);
namespace App\Tools;
use Dux\App\AppExtend;
use Dux\Bootstrap;
/**
* Application Registration
*/
class App extends AppExtend
{
public function register(Bootstrap $app): void
{
\App\Tools\Config\Menu::Admin($app->getMenu()->get("admin"), $app);
\App\Tools\Conf... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Event/SourceEvent.php | app/Tools/Event/SourceEvent.php | <?php
namespace App\Tools\Event;
use Symfony\Contracts\EventDispatcher\Event;
class SourceEvent extends Event
{
public array $data = [];
public function __construct()
{
}
public function set(string $name, string $label, string $route, callable $data, callable $format = null): void
{
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Event/BackupEvent.php | app/Tools/Event/BackupEvent.php | <?php
namespace App\Tools\Event;
use Symfony\Contracts\EventDispatcher\Event;
class BackupEvent extends Event
{
public array $data = [];
public function __construct()
{
}
public function set(string $name, string $model): void
{
$this->data[$name] = [
'name' => $name,
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Func/Common.php | app/Tools/Func/Common.php | <?php
/**
* 求两个日期之间相差的天数
* (针对1970年1月1日之后,求之前可以采用泰勒公式)
* @param string $date1
* @param string $date2
* @return number
*/
function diff_date(string $date1, string $date2): int
{
if ($date1 > $date2) {
$startTime = strtotime($date1);
$endTime = strtotime($date2);
} else {
$startTime... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/MagicPage.php | app/Tools/Admin/MagicPage.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Tools\Models\ToolsMagic;
use App\Tools\Models\ToolsMagicData;
use Dux\Handlers\ExceptionBusiness;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Dux\Validator\V... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/MagicData.php | app/Tools/Admin/MagicData.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\System\Models\SystemUser;
use App\Tools\Models\ToolsMagic;
use App\Tools\Models\ToolsMagicData;
use App\Tools\Service\Source;
use Dux\Handlers\ExceptionBusiness;
use Dux\Permission\Can;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\R... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/FileDir.php | app/Tools/Admin/FileDir.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Tools\Models\ToolsFileDir;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/too... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/Backup.php | app/Tools/Admin/Backup.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Content\Models\Article;
use App\Tools\Event\BackupEvent;
use App\Tools\Models\ToolsBackup;
use Carbon\Carbon;
use DateTime;
use Dux\App;
use Dux\Handlers\Exception;
use Dux\Handlers\ExceptionBusiness;
use Dux\Resources\Action\Resources;
use Dux\Resour... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/Magic.php | app/Tools/Admin/Magic.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Tools\Models\ToolsMagic;
use App\Tools\Models\ToolsMagicSource;
use App\Tools\Service\Source;
use Dux\App;
use Dux\Handlers\ExceptionBusiness;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Resources\Attribute\Action... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/File.php | app/Tools/Admin/File.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Tools\Models\ToolsFile;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
#... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/Area.php | app/Tools/Admin/Area.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Tools\Models\ToolsArea;
use Dux\App;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Dux\Utils\Excel;
use Exception;
use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\Respo... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/MagicGroup.php | app/Tools/Admin/MagicGroup.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Tools\Models\ToolsMagicGroup;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/tools/magicGroup', name: 'tools.magicGrou... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Admin/MagicSource.php | app/Tools/Admin/MagicSource.php | <?php
declare(strict_types=1);
namespace App\Tools\Admin;
use App\Tools\Models\ToolsMagicSource;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Config/Menu.php | app/Tools/Config/Menu.php | <?php
declare(strict_types=1);
namespace App\Tools\Config;
use App\Tools\Service\Magic;
use Dux\Bootstrap;
use Dux\Menu\MenuApp;
use Dux\Menu\MenuGroup;
class Menu
{
static function Admin(\Dux\Menu\Menu $menu, Bootstrap $bootstrap): void
{
$data = Magic::getMenu($bootstrap);
self::magicMenu... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Config/Permission.php | app/Tools/Config/Permission.php | <?php
declare(strict_types=1);
namespace App\Tools\Config;
use App\Tools\Service\Magic;
use Dux\Bootstrap;
use Dux\Menu\MenuApp;
use Dux\Menu\MenuGroup;
use Dux\Permission\PermissionGroup;
class Permission
{
static function Admin(\Dux\Permission\Permission $permission, Bootstrap $bootstrap): void
{
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Scheduler/Test.php | app/Tools/Scheduler/Test.php | <?php
namespace App\Tools\Scheduler;
class Test
{
public static function hello(): void
{
\Dux\App::log('debug')->info('test');
}
} | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Api/Magic.php | app/Tools/Api/Magic.php | <?php
namespace App\Tools\Api;
use App\Tools\Models\ToolsMagic;
use App\Tools\Models\ToolsMagicData;
use App\Tools\Service\Source;
use Dux\Handlers\ExceptionNotFound;
use Dux\Resources\Attribute\Action;
use Dux\Route\Attribute\Route;
use Dux\Route\Attribute\RouteGroup;
use Dux\Validator\Validator;
use Illuminate\Data... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsMagicGroup.php | app/Tools/Models/ToolsMagicGroup.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use App\System\Models\SystemUser;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Neste... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsFile.php | app/Tools/Models/ToolsFile.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use App\Content\Models\ArticleClass;
use Dux\Database\Attribute\AutoMigrate;
#[AutoMigrate]
class ToolsFile extends \Dux\Database\Model
{
public $table = 'tools_file';
public function migration(\Illuminate\Database\Schema\Blueprint $table)
{
$table->... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsDownload.php | app/Tools/Models/ToolsDownload.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ToolsDownload extends \Dux\Database\Model
{
public $table = 'tools_download';
public function migration(Blue... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsMagicSource.php | app/Tools/Models/ToolsMagicSource.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ToolsMagicSource extends \Dux\Database\Model
{
public $table = 'magic_source';
public function migration(Blu... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsBackup.php | app/Tools/Models/ToolsBackup.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ToolsBackup extends \Dux\Database\Model
{
public $table = 'tools_backup';
public function migration(Blueprin... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsFileDir.php | app/Tools/Models/ToolsFileDir.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use Dux\Database\Attribute\AutoMigrate;
#[AutoMigrate]
class ToolsFileDir extends \Dux\Database\Model
{
public $table = 'tools_file_dir';
public $timestamps = false;
public function migration(\Illuminate\Database\Schema\Blueprint $table)
{
$table... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsMagicData.php | app/Tools/Models/ToolsMagicData.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Nestedset\NodeTrait;
#[AutoMigrate]
class ToolsMagicData extends \Dux\Database\Model
{
use N... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsMagic.php | app/Tools/Models/ToolsMagic.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use App\System\Models\SystemRole;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ToolsMagic extends \Dux\Da... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Models/ToolsArea.php | app/Tools/Models/ToolsArea.php | <?php
declare(strict_types=1);
namespace App\Tools\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ToolsArea extends Model
{
public $table = 'tools_area';
public $timestamps = false;
public function migration(Bluepr... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Listener/SourceListener.php | app/Tools/Listener/SourceListener.php | <?php
namespace App\Tools\Listener;
use App\Tools\Event\SourceEvent;
use App\Tools\Models\ToolsMagic;
use App\Tools\Models\ToolsMagicData;
use Dux\App;
use Dux\Event\Attribute\Listener;
class SourceListener
{
#[Listener(name: 'tools.magic.source')]
public function data(SourceEvent $event): void
{
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Handlers/Upload.php | app/Tools/Handlers/Upload.php | <?php
namespace App\Tools\Handlers;
ini_set('max_execution_time', 600);
use App\Tools\Models\ToolsFile;
use App\Tools\Models\ToolsFileDir;
use Dux\App;
use Dux\Handlers\ExceptionBusiness;
use Dux\Utils\Content;
use Mimey\MimeTypes;
use Overtrue\Flysystem\Qiniu\QiniuAdapter;
use Psr\Http\Message\ResponseInterface;
us... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Handlers/Download.php | app/Tools/Handlers/Download.php | <?php
namespace App\Tools\Handlers;
use App\Tools\Models\ToolsDownload;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
class Download
{
public function list(ServerRequestInterface $request, ResponseInterface $response, array $args): ResponseInterface
{
$app = $r... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Service/Qrcode.php | app/Tools/Service/Qrcode.php | <?php
namespace App\Tools\Service;
use App\System\Enum\PlatformEnum;
use App\Wechat\Service\Wechat;
use Dux\App;
use Dux\Handlers\ExceptionBusiness;
class Qrcode
{
public static function generate(PlatformEnum $platform, string $url, string $path, array $params = [], array $config = []): string
{
$cac... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Service/Data.php | app/Tools/Service/Data.php | <?php
namespace App\Tools\Service;
use App\Tools\Models\ToolsMagicData;
use Dux\Handlers\ExceptionNotFound;
use Illuminate\Support\Collection;
class Data
{
public static function query(string $name = '', array $where = []): \Illuminate\Database\Eloquent\Builder
{
$query = ToolsMagicData::query()->whe... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Service/Source.php | app/Tools/Service/Source.php | <?php
namespace App\Tools\Service;
use App\Tools\Event\SourceEvent;
use App\Tools\Models\ToolsMagic;
use App\Tools\Models\ToolsMagicGroup;
use App\Tools\Models\ToolsMagicData;
use App\Tools\Models\ToolsMagicSource;
use Dux\App;
use Dux\Bootstrap;
use Dux\Handlers\ExceptionBusiness;
use Dux\Validator\Validator;
use Gu... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Service/Magic.php | app/Tools/Service/Magic.php | <?php
namespace App\Tools\Service;
use App\Tools\Event\SourceEvent;
use App\Tools\Models\ToolsMagic;
use App\Tools\Models\ToolsMagicGroup;
use App\Tools\Models\ToolsMagicData;
use App\Tools\Models\ToolsMagicSource;
use DI\DependencyException;
use DI\NotFoundException;
use Dux\App;
use Dux\Bootstrap;
use Dux\Handlers\... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Service/Download.php | app/Tools/Service/Download.php | <?php
namespace App\Tools\Service;
use App\Tools\Models\ToolsDownload;
class Download
{
/**
* 添加文件到下载
* @param string $userType
* @param string $userId
* @param string $title
* @param string $url
* @return void
*/
public function add(string $userType, string $userId, strin... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Tools/Service/Content.php | app/Tools/Service/Content.php | <?php
namespace App\Tools\Service;
use Pelago\Emogrifier\CssInliner;
class Content
{
public static function fromHtml(?string $content = null): string
{
$css = file_get_contents(__DIR__ . '/../Static/content.css');
return CssInliner::fromHtml('<div class="typo">'.$content.'</div>')->inlineCss(... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/ContentExtend/App.php | app/ContentExtend/App.php | <?php
declare(strict_types=1);
namespace App\ContentExtend;
/**
* Application Registration
*/
class App extends \Dux\App\AppExtend
{
}
| php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/ContentExtend/Admin/Spider.php | app/ContentExtend/Admin/Spider.php | <?php
declare(strict_types=1);
namespace App\ContentExtend\Admin;
use App\Content\Models\ArticleClass;
use App\System\Service\Config;
use App\Tools\Models\ToolsMagic;
use Dux\Handlers\ExceptionBusiness;
use Dux\Package\Package;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Action;
use Dux\Resources... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/App.php | app/Content/App.php | <?php
declare(strict_types=1);
namespace App\Content;
use Dux\App\AppExtend;
use Dux\Bootstrap;
/**
* Application Registration
*/
class App extends AppExtend
{
public function register(Bootstrap $app): void
{
}
}
| php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Event/QrcodeEvent.php | app/Content/Event/QrcodeEvent.php | <?php
namespace App\Content\Event;
use Symfony\Contracts\EventDispatcher\Event;
/**
* 文章事件
*/
class QrcodeEvent extends Event
{
public array $params = [
'type' => 'article'
];
public function __construct(public mixed $info, public int $userId)
{
}
public function getParams(): arr... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Page.php | app/Content/Admin/Page.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Utils\Content;
use Dux\Validator\Data;
use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/page'... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Attr.php | app/Content/Admin/Attr.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use App\Content\Models\ArticleAttr;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/attr', name: 'content.attr')]
clas... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Recommend.php | app/Content/Admin/Recommend.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/recommend', name: 'content.recommend')]
class Recommend extends Resourc... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Tags.php | app/Content/Admin/Tags.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/tags', name: 'content.tags', actions: ['list', 'show', 'delete'])]
cla... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Article.php | app/Content/Admin/Article.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use App\Content\Models\ArticleClass;
use App\Tools\Models\ToolsMagic;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Utils\Content;
use Dux\Validator\Data;
use Dux\Validator\Validator;
use Illuminate\Database\Eloquent\Buil... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Menu.php | app/Content/Admin/Menu.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/menu', name: 'content.menu')]
class Menu extends Resources
{
protecte... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Replace.php | app/Content/Admin/Replace.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use App\Content\Models\ArticleReplace;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/replace', name: 'content.replac... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Category.php | app/Content/Admin/Category.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use App\Content\Models\ArticleClass;
use App\Tools\Models\ToolsMagic;
use Dux\Handlers\ExceptionBusiness;
use Dux\Handlers\ExceptionNotFound;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use D... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/MenuData.php | app/Content/Admin/MenuData.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Source.php | app/Content/Admin/Source.php | <?php
declare(strict_types=1);
namespace App\Content\Admin;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/source', name: 'content.source')]
class Source extends Resources
{
pr... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Admin/Setting.php | app/Content/Admin/Setting.php | <?php
namespace App\Content\Admin;
use App\System\Service\Config;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/content/setting', name: 'mall.setting', actions: false)]
c... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Api/Article.php | app/Content/Api/Article.php | <?php
namespace App\Content\Api;
use App\Tools\Service\Content;
use Dux\App;
use Dux\Auth\AuthService;
use Dux\Handlers\ExceptionNotFound;
use Dux\Route\Attribute\Route;
use Dux\Route\Attribute\RouteGroup;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
#[RouteGroup(app: 'api', ... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Api/Category.php | app/Content/Api/Category.php | <?php
namespace App\Content\Api;
use Dux\Handlers\ExceptionNotFound;
use Dux\Route\Attribute\Route;
use Dux\Route\Attribute\RouteGroup;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
#[RouteGroup(app: 'api', pattern: '/content/category')]
class Category
{
#[Route(methods: ... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/Page.php | app/Content/Models/Page.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class Page extends \Dux\Database\Model
{
public $table = 'page';
public function migration(Blueprint $table)
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleRecommendHas.php | app/Content/Models/ArticleRecommendHas.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Nestedset\NodeTrait;
#[AutoMigrate]
class ArticleRecommendHas extends \Dux\Database\Model
{
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleAttr.php | app/Content/Models/ArticleAttr.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ArticleAttr extends Model {
public $table = 'article_attr';
public function migrat... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleTags.php | app/Content/Models/ArticleTags.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use App\System\Models\SystemUser;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ArticleTags extends \Dux... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/Article.php | app/Content/Models/Article.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class Article extends \Dux\Database\Model
{
public $table = ... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/Menu.php | app/Content/Models/Menu.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Nestedset\NodeTrait;
#[AutoMigrate]
class Menu extends \Dux\Database\Model
{
public $table = ... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleReplace.php | app/Content/Models/ArticleReplace.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ArticleReplace extends \Dux\Database\Model
{
public $t... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleTagsTrait.php | app/Content/Models/ArticleTagsTrait.php | <?php
namespace App\Content\Models;
trait ArticleTagsTrait
{
/**
* 同步标签
* @param string|array|null $tags
*/
public function retag(string|array|null $tags): void
{
$tags = $this->formatTags($tags);
// 获取已关联标签
$infoTags = $this->tags->pluck('name')->toArray();
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/MenuData.php | app/Content/Models/MenuData.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Nestedset\NodeTrait;
#[AutoMigrate]
class MenuData extends \Dux\Database\Model
{
public $tabl... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleClass.php | app/Content/Models/ArticleClass.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Nestedset\NodeTrait;
#[AutoMigrate]
class ArticleClass extends \Dux\Database\Model
{
public $... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleRecommend.php | app/Content/Models/ArticleRecommend.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ArticleRecommend extends \Dux\Database\Model
{
public ... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleSource.php | app/Content/Models/ArticleSource.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Nestedset\NodeTrait;
#[AutoMigrate]
class ArticleSource extends \Dux\Database\Model
{
publ... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleAttrHas.php | app/Content/Models/ArticleAttrHas.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class ArticleAttrHas extends Model {
public $table = 'article_attr_has';
public $timesta... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Models/ArticleTagsHas.php | app/Content/Models/ArticleTagsHas.php | <?php
declare(strict_types=1);
namespace App\Content\Models;
use Dux\Database\Attribute\AutoMigrate;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use Kalnoy\Nestedset\NestedSet;
use Kalnoy\Nestedset\NodeTrait;
#[AutoMigrate]
class ArticleTagsHas extends \Dux\Database\Model
{
pub... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Listener/MemberListener.php | app/Content/Listener/MemberListener.php | <?php
namespace App\Content\Listener;
use App\Content\Models\Article;
use App\Member\Event\CollectEvent;
use App\Member\Event\CommentEvent;
use App\Member\Event\PraiseEvent;
use Dux\Event\Attribute\Listener;
class MemberListener
{
#[Listener(name: 'member.collect')]
public function collect(CollectEvent $ev... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Listener/BackupListener.php | app/Content/Listener/BackupListener.php | <?php
namespace App\Content\Listener;
use App\Content\Models\Article;
use App\Content\Models\ArticleAttr;
use App\Content\Models\ArticleAttrHas;
use App\Content\Models\ArticleClass;
use App\Content\Models\ArticleRecommend;
use App\Content\Models\ArticleRecommendHas;
use App\Content\Models\ArticleReplace;
use App\Con... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Service/Page.php | app/Content/Service/Page.php | <?php
namespace App\Content\Service;
use App\Tools\Models\ToolsMagicData;
use Dux\Handlers\ExceptionNotFound;
use Illuminate\Support\Collection;
class Page
{
public static function query(array $where = []): \Illuminate\Database\Eloquent\Builder
{
return \App\Content\Models\Page::query()->where($where... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Service/Tags.php | app/Content/Service/Tags.php | <?php
namespace App\Content\Service;
use App\Tools\Models\ToolsMagicData;
use Dux\Handlers\ExceptionNotFound;
use Illuminate\Support\Collection;
class Tags
{
// 查询
public static function query(array $where = []): \Illuminate\Database\Eloquent\Builder
{
return \App\Content\Models\ArticleTags::quer... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Service/Article.php | app/Content/Service/Article.php | <?php
namespace App\Content\Service;
use App\Content\Models\ArticleClass;
use App\System\Enum\PlatformEnum;
use App\System\Service\Config;
use App\Tools\Service\Qrcode;
use Dux\App;
use Dux\Handlers\ExceptionBusiness;
use Dux\Handlers\ExceptionNotFound;
use Psr\Http\Message\ServerRequestInterface;
class Article
{
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Service/Menu.php | app/Content/Service/Menu.php | <?php
namespace App\Content\Service;
use App\Tools\Models\ToolsMagicData;
use Dux\Handlers\ExceptionNotFound;
use Illuminate\Support\Collection;
class Menu
{
public static function query(string $name = '', array $where = []): \Illuminate\Database\Eloquent\Builder
{
$query = \App\Content\Models\MenuDa... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Service/Category.php | app/Content/Service/Category.php | <?php
namespace App\Content\Service;
use App\Tools\Models\ToolsMagicData;
use Dux\Handlers\ExceptionNotFound;
use Illuminate\Support\Collection;
class Category
{
public static function query(array $where = []): \Illuminate\Database\Eloquent\Builder
{
return \App\Content\Models\ArticleClass::query()->... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/Content/Service/Source.php | app/Content/Service/Source.php | <?php
namespace App\Content\Service;
use App\Content\Models\ArticleSource;
use App\Tools\Models\ToolsMagicData;
use Dux\Handlers\ExceptionNotFound;
use Illuminate\Support\Collection;
class Source
{
public static function autoSave(?string $name = ''): void
{
$name = trim($name);
if (!$name) {
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/App.php | app/System/App.php | <?php
declare(strict_types=1);
namespace App\System;
use App\System\Middleware\OperateMiddleware;
use App\System\Middleware\VisitorMiddleware;
use App\System\Models\SystemApi;
use App\System\Models\SystemUser;
use App\Tools\Handlers\Upload;
use Dux\Api\ApiMiddleware;
use Dux\App\AppExtend;
use Dux\Auth\AuthMiddleware... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Traits/Visitor.php | app/System/Traits/Visitor.php | <?php
namespace App\System\Traits;
use App\System\Models\LogVisit;
use App\System\Models\LogVisitData;
use Psr\Http\Message\ServerRequestInterface;
trait Visitor
{
/**
* 增加访客
* @param string $driver
* @param ServerRequestInterface $request
* @return bool
*/
public function viewsInc(\... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Enum/PlatformEnum.php | app/System/Enum/PlatformEnum.php | <?php
namespace App\System\Enum;
use Dux\App;
enum PlatformEnum: string
{
// web
case WEB = 'web';
// wap
case WAP = 'wap';
// APP
case APP = 'app';
// 微信公众号
case WECHAT = 'wechat';
// 微信小程序
case WEAPP = 'weapp';
public function name(): string
{
return match (... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Admin/Operate.php | app/System/Admin/Operate.php | <?php
namespace App\System\Admin;
use App\System\Models\LogOperate;
use App\System\Models\SystemUser;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/system/operate', na... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Admin/Api.php | app/System/Admin/Api.php | <?php
declare(strict_types=1);
namespace App\System\Admin;
use App\System\Models\SystemApi;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', route: '/system/api', name: 'system.api')]
class Api ex... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.