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
leon-mbs/zstore
https://github.com/leon-mbs/zstore/blob/fc905b9b4b8feedb838c44e5a5de5a82efc500e1/www/app/modules/shop/entity/productattribute.php
www/app/modules/shop/entity/productattribute.php
<?php namespace App\Modules\Shop\Entity; /** * класс-сущность атрибута продукта * @table=shop_attributes * @keyfield=attribute_id * @view=shop_attributes_view */ class ProductAttribute extends \ZCL\DB\Entity { public $searchvalue; protected function init() { $this->attribute_id = 0; $t...
php
MIT
fc905b9b4b8feedb838c44e5a5de5a82efc500e1
2026-01-05T02:16:59.825558Z
false
leon-mbs/zstore
https://github.com/leon-mbs/zstore/blob/fc905b9b4b8feedb838c44e5a5de5a82efc500e1/www/app/modules/shop/entity/varitem.php
www/app/modules/shop/entity/varitem.php
<?php namespace App\Modules\Shop\Entity; //класс-сущность вариация товара /** * @keyfield=varitem_id * @table=shop_varitems * @view=shop_varitems_view */ class VarItem extends \ZCL\DB\Entity { protected function init() { $this->varitem_id = 0; } //доступные товары public static functio...
php
MIT
fc905b9b4b8feedb838c44e5a5de5a82efc500e1
2026-01-05T02:16:59.825558Z
false
leon-mbs/zstore
https://github.com/leon-mbs/zstore/blob/fc905b9b4b8feedb838c44e5a5de5a82efc500e1/www/app/modules/shop/entity/productcomment.php
www/app/modules/shop/entity/productcomment.php
<?php namespace App\Modules\Shop\Entity; //класс-сущность коментария к товару /** * @keyfield=comment_id * @table=shop_prod_comments */ class ProductComment extends \ZCL\DB\Entity { protected function init() { $this->comment_id = 0; } public static function findByProduct($item_id) { ...
php
MIT
fc905b9b4b8feedb838c44e5a5de5a82efc500e1
2026-01-05T02:16:59.825558Z
false
leon-mbs/zstore
https://github.com/leon-mbs/zstore/blob/fc905b9b4b8feedb838c44e5a5de5a82efc500e1/www/config/config.php
www/config/config.php
<?php $_config = array('common'=>[],'db'=>[],'smtp'=>[]) ; $_config['common']['loglevel'] = 100 ;//DEBUG = 100,INFO = 200,WARNING = 300,ERROR = 400; $_config['common']['timezone'] = 'Europe/Kiev' ; //соединение с сервером БД $_config['db']['host'] = 'localhost:3306' ; $_config['db']['name'] = 'zstore' ; $_con...
php
MIT
fc905b9b4b8feedb838c44e5a5de5a82efc500e1
2026-01-05T02:16:59.825558Z
false
pterodactyl/whmcs
https://github.com/pterodactyl/whmcs/blob/e3f9143af5c53d1313eabf3513383eba2b7f551f/pterodactyl/pterodactyl.php
pterodactyl/pterodactyl.php
<?php /** MIT License Copyright (c) 2018-2019 Stepan Fedotov <stepan@crident.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
php
MIT
e3f9143af5c53d1313eabf3513383eba2b7f551f
2026-01-05T02:17:39.389349Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/workbench/app/Providers/WorkbenchServiceProvider.php
workbench/app/Providers/WorkbenchServiceProvider.php
<?php namespace Workbench\App\Providers; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; class WorkbenchServiceProvider extends ServiceProvider { /** * Register services. */ public function register(): void { // } /** * Bootstrap services. ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/WorkflowServiceProvider.php
src/WorkflowServiceProvider.php
<?php namespace Safemood\Workflow; use Safemood\Workflow\Commands\MakeAction; use Safemood\Workflow\Commands\MakeJob; use Safemood\Workflow\Commands\MakeWorkflow; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; class WorkflowServiceProvider extends PackageServiceProvide...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Action.php
src/Action.php
<?php namespace Safemood\Workflow; use Safemood\Workflow\Contracts\DTOInterface; use Safemood\Workflow\Enums\ActionState; abstract class Action { private $state; private $exception; /** * Handle the action. * * @param DTOInterface $context The context data passed through the workflow....
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/WorkflowManager.php
src/WorkflowManager.php
<?php namespace Safemood\Workflow; use Safemood\Workflow\Contracts\WorkflowInterface; use Safemood\Workflow\Traits\WorkflowTraits; abstract class WorkflowManager implements WorkflowInterface { use WorkflowTraits; protected function when(bool $condition, callable $callback) { if ($condition) { ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/ManagesExecution.php
src/Traits/ManagesExecution.php
<?php namespace Safemood\Workflow\Traits; use Illuminate\Foundation\Bus\Dispatchable as DispatchableJob; use Illuminate\Foundation\Events\Dispatchable as DispatchableEvent; use Safemood\Workflow\Contracts\DTOInterface; use Safemood\Workflow\Enums\ActionState; trait ManagesExecution { protected $autoBootObservers...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/TracksActionStates.php
src/Traits/TracksActionStates.php
<?php namespace Safemood\Workflow\Traits; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\Events\JobFailed; use Safemood\Workflow\Action; use Safemood\Workflow\Enums\ActionState; trait TracksActionStates { /** * Initialize the state for the given action. * * @return void */ ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/Dumpable.php
src/Traits/Dumpable.php
<?php namespace Safemood\Workflow\Traits; trait Dumpable { /** * Dump the given arguments and terminate execution. * * @param mixed ...$args * @return never */ public function dd(...$args) { $this->dump(...$args); dd(); } /** * Dump the given argum...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/WorkflowTraits.php
src/Traits/WorkflowTraits.php
<?php namespace Safemood\Workflow\Traits; trait WorkflowTraits { use ActionsTrait; use Dumpable; use HasResponses; use ManagesExecution; use RegistersObservers; use TracksActionStates; use TracksEvents; }
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/RegistersObservers.php
src/Traits/RegistersObservers.php
<?php namespace Safemood\Workflow\Traits; use Illuminate\Support\Facades\Event; trait RegistersObservers { protected $observers = []; /** * Register observers for the given models. * * @param array $observers * Example: ['App\Models\User' => 'App\Observers\Us...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/ActionsTrait.php
src/Traits/ActionsTrait.php
<?php namespace Safemood\Workflow\Traits; use Safemood\Workflow\Action; trait ActionsTrait { protected $beforeActions = []; protected $mainActions = []; protected $afterActions = []; public function addBeforeAction(Action $action) { $this->beforeActions[] = $action; return $th...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/TracksEvents.php
src/Traits/TracksEvents.php
<?php namespace Safemood\Workflow\Traits; use Illuminate\Support\Facades\Event; trait TracksEvents { protected $trackedEvents = []; /** * Register event listeners to track all events. * * @return void */ protected function trackAllEvents() { Event::listen('*', function ($...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Traits/HasResponses.php
src/Traits/HasResponses.php
<?php namespace Safemood\Workflow\Traits; trait HasResponses { public function successResponse() { return response([ 'status' => 'success', 'message' => 'The operation completed successfully', ], 200); } public function failureResponse() { return re...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Contracts/WorkflowInterface.php
src/Contracts/WorkflowInterface.php
<?php namespace Safemood\Workflow\Contracts; interface WorkflowInterface { /** * Handle the workflow with the given context. * * * @return mixed */ public function handle(DTOInterface $context); }
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Contracts/DTOInterface.php
src/Contracts/DTOInterface.php
<?php namespace Safemood\Workflow\Contracts; use Illuminate\Contracts\Support\Arrayable; interface DTOInterface extends Arrayable {}
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Enums/ActionState.php
src/Enums/ActionState.php
<?php namespace Safemood\Workflow\Enums; enum ActionState: string { case PENDING = 'pending'; case RUNNING = 'running'; case SUCCESS = 'success'; case FAILED = 'failed'; }
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Commands/MakeWorkflow.php
src/Commands/MakeWorkflow.php
<?php namespace Safemood\Workflow\Commands; use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Input\InputArgument; class MakeWorkflow extends GeneratorCommand { protected $name = 'make:workflow'; protected $description = 'Create a new workflow class'; protected $type = 'Workflow'; ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Commands/MakeJob.php
src/Commands/MakeJob.php
<?php namespace Safemood\Workflow\Commands; use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Input\InputArgument; class MakeJob extends GeneratorCommand { protected $name = 'workflow-job'; protected $description = 'Create a new job class for workflow'; protected $type = 'Job'; ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/Commands/MakeAction.php
src/Commands/MakeAction.php
<?php namespace Safemood\Workflow\Commands; use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Input\InputArgument; class MakeAction extends GeneratorCommand { protected $name = 'make:workflow-action'; protected $description = 'Create a new action class'; protected $type = 'Action';...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/src/DTO/BaseDTO.php
src/DTO/BaseDTO.php
<?php namespace Safemood\Workflow\DTO; use Safemood\Workflow\Contracts\DTOInterface; abstract class BaseDTO implements DTOInterface { public function toArray(): array { $properties = []; $reflectionClass = new \ReflectionClass($this); $classProperties = $reflectionClass->getPropertie...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Pest.php
tests/Pest.php
<?php use Safemood\Workflow\Tests\TestCase; uses(TestCase::class)->in(__DIR__);
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/TestCase.php
tests/TestCase.php
<?php namespace Safemood\Workflow\Tests; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Database\Eloquent\Factories\Factory; use Orchestra\Testbench\TestCase as Orchestra; use ReflectionFunction; use Safemood\Workflow\WorkflowServiceProvider; class TestCase extends Orchestra { protected function setU...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/ArchTest.php
tests/ArchTest.php
<?php use Safemood\Workflow\Traits\Dumpable; arch('it will not use debugging functions') ->expect(['dd', 'dump', 'ray']) ->not->toBeUsed() ->ignoring(Dumpable::class);
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyModel.php
tests/Helpers/DummyModel.php
<?php namespace Tests\Helpers; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class DummyModel extends Model { use HasFactory; protected $guarded = []; }
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyAction.php
tests/Helpers/DummyAction.php
<?php namespace Tests\Helpers; use Illuminate\Support\Arr; use Safemood\Workflow\Action; use Safemood\Workflow\Contracts\DTOInterface; class DummyAction extends Action { public function handle(DTOInterface &$context) { if (Arr::has($context->exception, 'throw_expection')) { throw new \Exc...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyActionWithEvents.php
tests/Helpers/DummyActionWithEvents.php
<?php namespace Tests\Helpers; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Log; use Safemood\Workflow\Action; use Safemood\Workflow\Contracts\DTOInterface; class DummyActionWithEvents extends Action { public function handle(DTOInterface &$context) { ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyWorkflow.php
tests/Helpers/DummyWorkflow.php
<?php namespace App\Workflows; use Safemood\Workflow\Contracts\DTOInterface; use Safemood\Workflow\WorkflowManager; use Tests\Helpers\DummyAction; use Tests\Helpers\DummyActionWithEvents; use Tests\Helpers\DummyJob; use Tests\Helpers\DummyModel; use Tests\Helpers\DummyModelObserver; class DummyWorkflow extends Workf...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyModelObserver.php
tests/Helpers/DummyModelObserver.php
<?php namespace Tests\Helpers; use Illuminate\Support\Facades\Log; class DummyModelObserver { /** * Handle the DummyModel "created" event. */ public function created(DummyModel $DummyModel): void { Log::info('DummyModel Created'); } /** * Handle the DummyModel "updated" ev...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyDTO.php
tests/Helpers/DummyDTO.php
<?php namespace Tests\Helpers; use Safemood\Workflow\DTO\BaseDTO; class DummyDTO extends BaseDTO { public bool $handled = false; public function __construct( public array $user, public array $cart, public array $exception = [], ) {} }
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyJob.php
tests/Helpers/DummyJob.php
<?php namespace Tests\Helpers; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Safemood\Workflow\Action; use Safemood\Workflow\Contracts\DTOInterface; class DummyJ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Helpers/DummyProductDTO.php
tests/Helpers/DummyProductDTO.php
<?php namespace Tests\Helpers; use Safemood\Workflow\DTO\BaseDTO; class DummyProductDTO extends BaseDTO { public bool $inStock; public function __construct( public string $name, public float $price, public int $quantity, ) { $this->inStock = $this->quantity > 0; } }
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/feature/WorkflowTest.php
tests/feature/WorkflowTest.php
<?php use App\Workflows\DummyWorkflow; use Illuminate\Support\Facades\Queue; use Tests\Helpers\DummyDTO; use Tests\Helpers\DummyJob; use Tests\Helpers\DummyModel; use Tests\Helpers\DummyModelObserver; it('executes the DummyWorkflow correctly with events tracking and observers registrations', function () { $conte...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/ActionTest.php
tests/Unit/ActionTest.php
<?php use Safemood\Workflow\Action; use Safemood\Workflow\Contracts\DTOInterface; use Safemood\Workflow\Enums\ActionState; use Tests\Helpers\DummyDTO; it('can set and get the state using ActionState', function () { $action = new class extends Action { public function handle(DTOInterface &$context) {} ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/RegistersObserversTest.php
tests/Unit/RegistersObserversTest.php
<?php use Illuminate\Support\Facades\Event; use Safemood\Workflow\Traits\RegistersObservers; use Tests\Helpers\DummyModel; use Tests\Helpers\DummyModelObserver; beforeEach(function () { $this->dummyClass = new class { use RegistersObservers; public function callBootObserversIfNeeded() ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/ActionsTraitTest.php
tests/Unit/ActionsTraitTest.php
<?php use Safemood\Workflow\Action; use Safemood\Workflow\Traits\ActionsTrait; beforeEach(function () { $this->dummyClass = new class { use ActionsTrait; }; }); it('can add and get before actions', function () { $beforeAction = Mockery::mock(Action::class); $this->dummyClass->addBeforeAct...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/ManagesExecutionTest.php
tests/Unit/ManagesExecutionTest.php
<?php use Illuminate\Support\Facades\Queue; use Safemood\Workflow\Contracts\DTOInterface; use Safemood\Workflow\Enums\ActionState; use Safemood\Workflow\Traits\ActionsTrait; use Safemood\Workflow\Traits\ManagesExecution; use Safemood\Workflow\Traits\TracksActionStates; use Tests\Helpers\DummyAction; use Tests\Helpers\...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/TracksActionStatesTest.php
tests/Unit/TracksActionStatesTest.php
<?php use Safemood\Workflow\Action; use Safemood\Workflow\Contracts\DTOInterface; use Safemood\Workflow\Enums\ActionState; use Safemood\Workflow\Traits\TracksActionStates; beforeEach(function () { $this->dummyClass = new class { use TracksActionStates; public $beforeActions = []; pub...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/DTOTest.php
tests/Unit/DTOTest.php
<?php use Tests\Helpers\DummyProductDTO; beforeEach(function () { $this->productDTO = new DummyProductDTO('Laptop', 999.99, 5); }); it('can create a DTO and access its properties', function () { expect($this->productDTO->getName())->toBe('Laptop'); expect($this->productDTO->getPrice())->toBe(999.99); ...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/TracksEventsTest.php
tests/Unit/TracksEventsTest.php
<?php use Illuminate\Support\Facades\Event; use Safemood\Workflow\Traits\TracksEvents; beforeEach(function () { $this->dummyClass = new class { use TracksEvents; public function startTrackingAllEvents() { $this->trackAllEvents(); } public function startTr...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/tests/Unit/HasResponsesTest.php
tests/Unit/HasResponsesTest.php
<?php use Safemood\Workflow\Traits\HasResponses; beforeEach(function () { $this->dummyClass = new class { use HasResponses; }; }); it('returns a success response', function () { $response = $this->dummyClass->successResponse(); expect($response->status())->toBe(200); expect(json_dec...
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
Safemood/laravel-workflow
https://github.com/Safemood/laravel-workflow/blob/cc8acdd605d6cc0fea386bf6b21cafa3a77980bb/config/workflow.php
config/workflow.php
<?php return [ /* |-------------------------------------------------------------------------- | Workflow Config |-------------------------------------------------------------------------- | | Configuration options for the laravel-workflow package. | */ ];
php
MIT
cc8acdd605d6cc0fea386bf6b21cafa3a77980bb
2026-01-05T02:17:51.680363Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/MethodTest.php
tests/MethodTest.php
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/DbTest.php
tests/DbTest.php
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/EnvironmentTest.php
tests/EnvironmentTest.php
<?php namespace Pomander; class EnvironmentTest extends TestCase { public function testConstructor() { $env = new Environment("test"); $this->assertSame($env->name, "test"); $this->assertTrue($env->remote_cache); } public function testSetSettingsMagic() { $env = new Environment("test"); ...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/bootstrap.php
tests/bootstrap.php
<?php namespace Pomander; require dirname(__DIR__) . '/vendor/autoload.php'; require_once dirname(__DIR__) . '/lib/Pomander.php'; abstract class TestCase extends \PHPUnit_Framework_TestCase { protected function getFixture($name) { return __DIR__ . '/fixtures/' . $name; } }
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/DeployTest.php
tests/DeployTest.php
<?php namespace Pomander; class DeployTest extends TestCase { public function testSetup() { ob_start(); // releases $this->clean(); $app = $this->app(array("test", "deploy:setup")); $app->invoke("test"); $app->invoke("deploy:setup"); $this->assertFileExists($app->env->releases_dir); ...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/BuilderTest.php
tests/BuilderTest.php
<?php namespace Pomander; class BuilderTest extends TestCase { public function testDetectEnvironments() { $builder = $this->builder(); $builder->config(); $app = builder()->get_application(); $task_names = array_keys($app->get_tasks()); $this->assertSame(array('development', 'multirole', 'test...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/deploy/development.php
tests/deploy/development.php
<?php $env->test = "hello"; desc('just a test'); task('testing', function ($app) { echo $app->env->test; });
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/tests/deploy/multirole.php
tests/deploy/multirole.php
<?php $env->app(array( "host1", "host2", "host3" )); $env->role_count = 0; desc('test multirole support'); task('check', 'app', function ($app) { info("CHECK", $app->env->role_count); $app->env->role_count++; });
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/spyc.php
lib/spyc.php
<?php /** * Spyc -- A Simple PHP YAML Class * @version 0.5 * @author Vlad Andersen <vlad.andersen@gmail.com> * @author Chris Wanstrath <chris@ozmm.org> * @link http://code.google.com/p/spyc/ * @copyright Copyright 2005-2006 Chris Wanstrath, 2006-2011 Vlad Andersen * @license http://www.opensource.o...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander.php
lib/Pomander.php
<?php use \phake\Builder; require dirname(__FILE__).'/spyc.php'; // set default date if(function_exists('date_default_timezone_set')) date_default_timezone_set('UTC'); class Pomander { public static function version() { return array(0,4,4); } } // phake helpers function builder() { if(!isse...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/tasks/default.php
lib/tasks/default.php
<?php //local desc("Create development environment configuration"); task('config', function ($app) { if ( file_exists("./deploy/development.php")) { warn("development.php","Already exists, skipping"); return; } if( copy($app->dir."/generators/config.php","./deploy/development.php") ) ...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/tasks/deploy.php
lib/tasks/deploy.php
<?php group('deploy', function () { desc("Setup application in environment."); task('setup','app', function ($app) { info("deploy","setting up environment"); $cmd = array( "umask {$app->env->umask}", "mkdir -p {$app->env->deploy_to}" ); if ($app->env->r...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/tasks/composer.php
lib/tasks/composer.php
<?php group('composer', function () { desc("Install dependencies with Composer"); task('install', function ($app) { if($app->env->composer === false) return; info("composer", "install"); run(array( "cd {$app->env->release_dir}", "([ -e 'composer.json' ] && which...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/tasks/db.php
lib/tasks/db.php
<?php group('db', function () { desc("Create database."); task('create','db', function ($app) { info("create","database {$app->env->database["name"]}"); run($app->env->adapter->create()); }); desc("Wipe database."); task('destroy','db', function ($app) { warn("destroy","da...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Db.php
lib/Pomander/Db.php
<?php namespace Pomander; abstract class Db { public $config; public function __construct($config) { $this->config = $config; } public function create() { return ""; } public function destroy() { return ""; } public function dump($file, $args="") ...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/RemoteShell.php
lib/Pomander/RemoteShell.php
<?php namespace Pomander; use phpseclib\Crypt\RSA; use phpseclib\Net\SSH2; class RemoteShell { /** * SSH * * @var SSH2 */ protected $shell; protected $host, $port, $user, $auth, $key_pass; public function __construct($host, $port, $user, $auth, $key_pass) { $this->hos...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Builder.php
lib/Pomander/Builder.php
<?php namespace Pomander; use Pomander\group; use Pomander\task; class Builder { public $runfile; public function config() { foreach (glob("deploy/*{.php,.yml,.yaml}", GLOB_BRACE) as $config) { $name = basename($config, ".".pathinfo($config, PATHINFO_EXTENSION)); $config =...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/OptionParser.php
lib/Pomander/OptionParser.php
<?php namespace Pomander; class OptionParser { private $args; private $index = 0; private $options; private $non_options; public function __construct($args) { $this->args = $args; $this->parse(); } public function get_options() { return $this->options; ...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Environment.php
lib/Pomander/Environment.php
<?php namespace Pomander; class Environment { public $name, $target, $scm, $adapter; private $config, $shell, $mysql; private $roles; public function __construct($env_name) { $this->name = $env_name; $this->config = $this->defaults(); $this->roles = array("app"=>null,"db"=>...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Cli.php
lib/Pomander/Cli.php
<?php namespace Pomander; use \phake\Application; class Cli { public $action = "invoke"; public $trace = false; public $app; public function exec($args) { try { if (function_exists('pcntl_signal')) { declare(ticks=1); pcntl_signal(SIGINT, array(...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Role.php
lib/Pomander/Role.php
<?php namespace Pomander; class Role { public $targets,$current; public function __construct($targets) { $this->targets = $targets; $this->current = 0; } public function target() { if($this->has_target($this->current)) return $this->targets[$this->current]; re...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Scm.php
lib/Pomander/Scm.php
<?php namespace Pomander; abstract class Scm { public $repository,$app; public function __construct($repository) { $this->repository = $repository; $this->app = builder()->get_application(); } public function create($location) { return ""; } public function up...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Db/Mysql.php
lib/Pomander/Db/Mysql.php
<?php namespace Pomander\Db; class Mysql extends \Pomander\Db { public function create() { return "mysql {$this->connect()} -e 'create database if not exists `{$this->config["name"]}`'"; } public function destroy() { return "mysql {$this->connect()} -e 'drop database `{$this->confi...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Scm/Svn.php
lib/Pomander/Scm/Svn.php
<?php namespace Pomander\Scm; class Svn extends \Pomander\Scm { public function create($location) { return "svn co {$this->repository} {$location} --quiet"; } public function update() { return "svn update"; } public function revision() { return "svn info | grep...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/Pomander/Scm/Git.php
lib/Pomander/Scm/Git.php
<?php namespace Pomander\Scm; use Pomander\Scm; /** * Class Git * @package Pomander\Scm */ class Git extends Scm { /** * @param $location * @return string */ public function create($location) { return "git clone -q {$this->repository} {$location}"; } /** * @return ...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tamagokun/pomander
https://github.com/tamagokun/pomander/blob/1240911c38750c13cb54e590e9a63caec246c491/lib/generators/config.php
lib/generators/config.php
<?php $env->repository('set your repository location here') ->url('set your application url here') ->releases(true) ->keep_releases(5) //->user('set your ssh user') //->scm('set your scm. defaults to git') //->revision('') // //->backup(true) ; // // If you are deploying your applicati...
php
MIT
1240911c38750c13cb54e590e9a63caec246c491
2026-01-05T02:18:17.626849Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/rector.php
rector.php
<?php declare(strict_types=1); use Rector\Config\RectorConfig; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\PHPUnit\Set\PHPUnitSetList; return static function (RectorConfig $rectorConfig): void { $rectorConfig->paths([ __DIR__ . "/src", __DIR__ . "/tests...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/ecs.php
ecs.php
<?php declare(strict_types=1); use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer; use Symplify\EasyCodingStandard\Config\ECSConfig; use Symplify\EasyCodingStandard\ValueObject\Set\SetList; return static function (ECSConfig $ecsConfig): void { $ecsConfig->paths([__DIR__ . '/src', __DIR__ . '/tests']); $ecs...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/src/ServerTimingMiddleware.php
src/ServerTimingMiddleware.php
<?php /* Copyright (c) 2017-2022 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/src/ServerTiming/Stopwatch.php
src/ServerTiming/Stopwatch.php
<?php /* Copyright (c) 2017-2022 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/src/ServerTiming/QueryTimer.php
src/ServerTiming/QueryTimer.php
<?php /* Copyright (c) 2017-2022 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/src/ServerTiming/StopwatchInterface.php
src/ServerTiming/StopwatchInterface.php
<?php /* Copyright (c) 2017-2022 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/tests/QueryTimerTest.php
tests/QueryTimerTest.php
<?php /* Copyright (c) 2017-2022 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/tests/ServerTimingTest.php
tests/ServerTimingTest.php
<?php /* Copyright (c) 2017-2022 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/tests/StopwatchTest.php
tests/StopwatchTest.php
<?php /* Copyright (c) 2017-2022 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
tuupola/server-timing-middleware
https://github.com/tuupola/server-timing-middleware/blob/411b5a606b95cc95fec222cb2ae22d2ae4690885/demo/index.php
demo/index.php
<?php /* To test: $ php -S 0.0.0:8081 index.php $ curl http://localhost:8081/test --include */ require __DIR__ . "/vendor/autoload.php"; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Tuupola\Middleware\ServerTiming\Stopwatch; use Tuupola\Middleware\S...
php
MIT
411b5a606b95cc95fec222cb2ae22d2ae4690885
2026-01-05T02:18:27.503427Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Collection.php
src/Collection.php
<?php /** * This file is part of the Mongodm package. * * (c) Michael Gan <gc1108960@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @category Mongodm * @package Mongodm * @author Michael Gan <gc1108960@gmail.com...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/ConnectionManager.php
src/ConnectionManager.php
<?php /** * This file is part of the Mongodm package. * * (c) Michael Gan <gc1108960@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @category Mongodm * @package Mongodm * @author Michael Gan <gc1108960@gmail.com...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Hydrator.php
src/Hydrator.php
<?php /** * This file is part of the Mongodm package. * * (c) Michael Gan <gc1108960@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @category Mongodm * @package Mongodm * @author Michael Gan <gc1108960@gmail.com...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Model.php
src/Model.php
<?php /** * This file is part of the Mongodm package. * * (c) Michael Gan <gc1108960@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @category Mongodm * @package Mongodm * @author Michael Gan <gc1108960@gmail.com...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
true
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Exception/InvalidDataTypeException.php
src/Exception/InvalidDataTypeException.php
<?php /** * This file is part of the Mongodm package. * * (c) Michael Gan <gc1108960@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @category Mongodm * @package Mongodm * @author Michael Gan <gc1108960@gmail.com...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/InheritanceTest.php
tests/InheritanceTest.php
<?php namespace Purekid\Mongodm\Test; use Purekid\Mongodm\Test\TestCase\PhactoryTestCase; use Purekid\Mongodm\Test\Model\Pupil; use Purekid\Mongodm\Test\Model\Book; use Purekid\Mongodm\Test\Model\Student; class InheritanceTest extends PhactoryTestCase { public function testCreate() { $student = new ...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/CollectionTest.php
tests/CollectionTest.php
<?php namespace Purekid\Mongodm\Test; use Purekid\Mongodm\Test\TestCase\PhactoryTestCase; use Purekid\Mongodm\Collection; use Purekid\Mongodm\Test\Model\Book; use Purekid\Mongodm\Test\Model\User; class CollectionTest extends PhactoryTestCase { protected $ordered_books; public function testCollectionFunction...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/GridFsTest.php
tests/GridFsTest.php
<?php namespace Purekid\Mongodm\Test; use Purekid\Mongodm\Test\TestCase\PhactoryTestCase; class GridFsTest extends PhactoryTestCase { public function getGridFSPrefixes() { return array( array(null), array('files-') ); } /** * @dataProvider getGridFSPrefixe...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/ParseValueTest.php
tests/ParseValueTest.php
<?php namespace Purekid\Mongodm\Test; class ParseValueTest extends \Purekid\Mongodm\Test\TestCase\PhactoryTestCase { public $model; public function __construct() { $this->model = new \Purekid\Mongodm\Test\Model\DataType(); } public function testArray() { $data = array(1,2,3); $actual = $this...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/ConnectionTest.php
tests/ConnectionTest.php
<?php namespace Purekid\Mongodm\Test; use Purekid\Mongodm\ConnectionManager; use Purekid\Mongodm\MongoDB; class ConnectionTest extends \PHPUnit_Framework_TestCase { public function testOptions() { $env = 'myenv'; $options = array( 'connection' => array( 'options' ...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/MutatorTest.php
tests/MutatorTest.php
<?php use Purekid\Mongodm\Test\TestCase\PhactoryTestCase; use Purekid\Mongodm\Test\Model\User; class MutatorTest extends PhactoryTestCase { public function testMutate() { $john = new User(); $john->age = 18; $john->save(); $user = User::one(); $id = $user->getId(); $age = $user->age; ...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/MongoDBTest.php
tests/MongoDBTest.php
<?php namespace Purekid\Mongodm\Test; use Purekid\Mongodm\Test\TestCase\PhactoryTestCase; use Purekid\Mongodm\Test\Model\User; class MongoDBTest extends PhactoryTestCase { public function testAggregate() { $time = microtime(); $user = new User(array("time" => $time,"name"=>"John", "money" =>...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/ModelTest.php
tests/ModelTest.php
<?php namespace Purekid\Mongodm\Test; use Purekid\Mongodm\ConnectionManager; use Purekid\Mongodm\Test\Model\Pet; use Purekid\Mongodm\Test\TestCase\PhactoryTestCase; use Purekid\Mongodm\Test\Model\Book; use Purekid\Mongodm\Test\Model\CustomId; use Purekid\Mongodm\Test\Model\User; use Purekid\Mongodm\Collection; class...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/HooksTest.php
tests/HooksTest.php
<?php namespace Purekid\Mongodm\Test; use Purekid\Mongodm\Test\TestCase\PhactoryTestCase; use Purekid\Mongodm\Test\Model\Pupil; class HooksTest extends PhactoryTestCase { public function testInit() { $user = new Pupil(); $user->name = "michael"; $user->save(); $this->assertE...
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/bootstrap.php
tests/bootstrap.php
<?php if ( ! file_exists($file = __DIR__.'/../vendor/autoload.php')) { echo "You must install the dev dependencies using:\n"; echo " composer install --dev\n"; exit(1); } date_default_timezone_set('UTC'); $loader = require_once $file; $map = array( 'Purekid\Mongodm\Test\Model\Base'=> __DIR__....
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/Model/Base.php
tests/Model/Base.php
<?php namespace Purekid\Mongodm\Test\Model; class Base extends \Purekid\Mongodm\Model { public static $config = "testing"; }
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/Model/DataTypeEmbed.php
tests/Model/DataTypeEmbed.php
<?php namespace Purekid\Mongodm\Test\Model; class DataTypeEmbed extends Base { public static $collection = "DataTypeEmbed"; }
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/Model/CustomId.php
tests/Model/CustomId.php
<?php namespace Purekid\Mongodm\Test\Model; class CustomId extends Base { public static $collection = "CustomId"; public static $customIdType = true; protected static $attrs = array( ); }
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false
purekid/mongodm
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/tests/Model/Pupil.php
tests/Model/Pupil.php
<?php namespace Purekid\Mongodm\Test\Model; class Pupil extends Student { public static $collection = "pupil"; protected static $attrs = array( 'class' => array('default'=>"A",'type'=>'string'), ); }
php
MIT
108f2e4de5e14eb07c1e2b097a2233b62b33f672
2026-01-05T02:18:16.089067Z
false