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
slimphp/Slim-Http
https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Psr7Integration/Nyholm/ServerRequestTest.php
tests/Psr7Integration/Nyholm/ServerRequestTest.php
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License) */ declare(strict_types=1); namespace Slim\Tests\Http\Psr7Integration\Nyholm; use Http\Psr7Test\ServerRequestIntegrationTest; use Nyholm\Psr7\Factory\Psr17Factory; use Sl...
php
MIT
0583b777f803038edf2aaf66e1e4522dc5bd3d9e
2026-01-05T04:01:10.821813Z
false
slimphp/Slim-Http
https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Providers/NyholmPsr17FactoryProvider.php
tests/Providers/NyholmPsr17FactoryProvider.php
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License) */ declare(strict_types=1); namespace Slim\Tests\Http\Providers; use Nyholm\Psr7\Factory\Psr17Factory; class NyholmPsr17FactoryProvider extends Psr17FactoryProvider { ...
php
MIT
0583b777f803038edf2aaf66e1e4522dc5bd3d9e
2026-01-05T04:01:10.821813Z
false
slimphp/Slim-Http
https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Providers/LaminasDiactorosPsr17FactoryProvider.php
tests/Providers/LaminasDiactorosPsr17FactoryProvider.php
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License) */ declare(strict_types=1); namespace Slim\Tests\Http\Providers; use Laminas\Diactoros\ResponseFactory; use Laminas\Diactoros\ServerRequestFactory; use Laminas\Diactoros\...
php
MIT
0583b777f803038edf2aaf66e1e4522dc5bd3d9e
2026-01-05T04:01:10.821813Z
false
slimphp/Slim-Http
https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Providers/Psr17FactoryProvider.php
tests/Providers/Psr17FactoryProvider.php
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License) */ declare(strict_types=1); namespace Slim\Tests\Http\Providers; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\ServerRequestFactoryInterface; use Ps...
php
MIT
0583b777f803038edf2aaf66e1e4522dc5bd3d9e
2026-01-05T04:01:10.821813Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/.php_cs.dist.php
.php_cs.dist.php
<?php $finder = Symfony\Component\Finder\Finder::create() ->notPath('bootstrap/*') ->notPath('storage/*') ->notPath('resources/view/mail/*') ->in([ __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/stubs', ]) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFi...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Arbitrator.php
src/Arbitrator.php
<?php namespace Orchid\Crud; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; use Illuminate\Support\Facades\View; use Orchid\Filters\Filterable; use Orchid\Platform\ItemPermission; use Orchid\Screen\Actions\Menu; use Orchid\Support\Facades\Dashboard; class Arbitrator { /** * The r...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/ResourceFinder.php
src/ResourceFinder.php
<?php namespace Orchid\Crud; use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\Iterator\PathFilterIterator; use Symfony\Component\Finder\SplFileInfo; class ResourceFinder { /** * @var Finder */ private $finder; /** * @var string */ protected $namespace; /** ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/CrudScreen.php
src/CrudScreen.php
<?php namespace Orchid\Crud; use Exception; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\RedirectResponse; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Orchid\Crud\Requests\ActionRequest; use Orchid\Crud\Requests\DeleteRequest; use Orchid\Crud\Requests\ForceDeleteRequest; use Orc...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Action.php
src/Action.php
<?php namespace Orchid\Crud; use Illuminate\Support\Collection; use Illuminate\Support\Str; use Orchid\Screen\Actions\Button; abstract class Action { /** * The button of the action. * * @return Button */ abstract public function button(): Button; /** * Perform the action on the ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/ResourceRequest.php
src/ResourceRequest.php
<?php namespace Orchid\Crud; use Illuminate\Contracts\Auth\Access\Authorizable; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Pagination\Paginator; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Str; use Orchid\Crud\Layouts\...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/CrudServiceProvider.php
src/CrudServiceProvider.php
<?php namespace Orchid\Crud; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; use Orchid\Crud\Commands\ActionCommand; use Orchid\Crud\Commands\ResourceCommand; use Orchid\Platform\Providers\FoundationServiceProvider; use Orchid\Support\Facades\Dashboard; class CrudServiceProvider extends...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Resource.php
src/Resource.php
<?php namespace Orchid\Crud; use Exception; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Str; use Orchid\Screen\Field; use Orchid\Screen\Sight; use Orchid\Screen\TD; abstract class Resource { /** * The ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Layouts/ResourceFields.php
src/Layouts/ResourceFields.php
<?php namespace Orchid\Crud\Layouts; use Orchid\Screen\Builder; use Orchid\Screen\Field; use Orchid\Screen\Layouts\Rows; use Orchid\Screen\Repository; class ResourceFields extends Rows { public const PREFIX = 'model'; /** * @var Field[] */ private $fields; /** * ResourceFields constr...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/ViewRequest.php
src/Requests/ViewRequest.php
<?php namespace Orchid\Crud\Requests; use Orchid\Crud\ResourceRequest; class ViewRequest extends ResourceRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return $this->can('view'); } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/UpdateRequest.php
src/Requests/UpdateRequest.php
<?php namespace Orchid\Crud\Requests; use Carbon\Carbon; use Orchid\Crud\Resource; class UpdateRequest extends CreateRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return $this->can('update'); } ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/IndexRequest.php
src/Requests/IndexRequest.php
<?php namespace Orchid\Crud\Requests; use Orchid\Crud\ResourceRequest; class IndexRequest extends ResourceRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return $this->can('viewAny'); } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/ForceDeleteRequest.php
src/Requests/ForceDeleteRequest.php
<?php namespace Orchid\Crud\Requests; use Orchid\Crud\ResourceRequest; class ForceDeleteRequest extends ResourceRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return $this->can('forceDelete'); } }...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/ActionRequest.php
src/Requests/ActionRequest.php
<?php namespace Orchid\Crud\Requests; use Illuminate\Support\Collection; use Orchid\Crud\ResourceRequest; class ActionRequest extends ResourceRequest { /** * @return array */ public function rules() { return [ '_action' => 'required', ]; } /** * Config...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/CreateRequest.php
src/Requests/CreateRequest.php
<?php namespace Orchid\Crud\Requests; use Orchid\Crud\Layouts\ResourceFields; use Orchid\Crud\ResourceRequest; class CreateRequest extends ResourceRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/RestoreRequest.php
src/Requests/RestoreRequest.php
<?php namespace Orchid\Crud\Requests; use Orchid\Crud\ResourceRequest; class RestoreRequest extends ResourceRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return $this->can('restore'); } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Requests/DeleteRequest.php
src/Requests/DeleteRequest.php
<?php namespace Orchid\Crud\Requests; use Orchid\Crud\ResourceRequest; class DeleteRequest extends ResourceRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return $this->can('delete'); } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Screens/EditScreen.php
src/Screens/EditScreen.php
<?php namespace Orchid\Crud\Screens; use Illuminate\Database\Eloquent\Model; use Orchid\Crud\CrudScreen; use Orchid\Crud\Layouts\ResourceFields; use Orchid\Crud\Requests\UpdateRequest; use Orchid\Screen\Action; use Orchid\Screen\Actions\Button; class EditScreen extends CrudScreen { /** * @var Model */ ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Screens/ListScreen.php
src/Screens/ListScreen.php
<?php namespace Orchid\Crud\Screens; use Illuminate\Database\Eloquent\Model; use Orchid\Crud\CrudScreen; use Orchid\Crud\Requests\IndexRequest; use Orchid\Screen\Action; use Orchid\Screen\Actions\Link; use Orchid\Screen\Fields\CheckBox; use Orchid\Screen\Fields\Group; use Orchid\Screen\TD; use Orchid\Support\Facades\...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Screens/ViewScreen.php
src/Screens/ViewScreen.php
<?php namespace Orchid\Crud\Screens; use Illuminate\Database\Eloquent\Model; use Orchid\Crud\CrudScreen; use Orchid\Crud\Layouts\ResourceFields; use Orchid\Crud\Requests\ViewRequest; use Orchid\Screen\Action; use Orchid\Screen\Actions\Button; use Orchid\Screen\Actions\Link; use Orchid\Support\Facades\Layout; class V...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Screens/CreateScreen.php
src/Screens/CreateScreen.php
<?php namespace Orchid\Crud\Screens; use Illuminate\Http\RedirectResponse; use Orchid\Crud\CrudScreen; use Orchid\Crud\Layouts\ResourceFields; use Orchid\Crud\Requests\CreateRequest; use Orchid\Screen\Action; use Orchid\Screen\Actions\Button; use Orchid\Support\Facades\Toast; class CreateScreen extends CrudScreen { ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Commands/ResourceCommand.php
src/Commands/ResourceCommand.php
<?php namespace Orchid\Crud\Commands; use Illuminate\Console\GeneratorCommand; use Illuminate\Support\Str; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputOption; #[AsCommand(name: 'orchid:resource')] class ResourceCommand extends GeneratorCommand { /** * The cons...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Commands/ActionCommand.php
src/Commands/ActionCommand.php
<?php namespace Orchid\Crud\Commands; use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Attribute\AsCommand; #[AsCommand(name: 'orchid:action')] class ActionCommand extends GeneratorCommand { /** * The console command name. * * @var string */ protected $name = 'orchid...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Filters/WithTrashed.php
src/Filters/WithTrashed.php
<?php namespace Orchid\Crud\Filters; use Illuminate\Database\Eloquent\Builder; use Orchid\Filters\Filter; use Orchid\Screen\Field; use Orchid\Screen\Fields\CheckBox; class WithTrashed extends Filter { /** * @var array */ public $parameters = [ 'withTrashed', ]; /** * @return s...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/src/Filters/DefaultSorted.php
src/Filters/DefaultSorted.php
<?php namespace Orchid\Crud\Filters; use Illuminate\Database\Eloquent\Builder; use Orchid\Filters\Filter; use Orchid\Screen\Field; class DefaultSorted extends Filter { /** * @var array */ public $parameters = []; /** * @var bool */ public $display = false; /** * @var st...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/ActionTest.php
tests/ActionTest.php
<?php namespace Orchid\Crud\Tests; use Orchid\Crud\Tests\Fixtures\CustomAction; use Orchid\Crud\Tests\Fixtures\PostActionResource; use Orchid\Crud\Tests\Fixtures\PostNoActionResource; use Orchid\Crud\Tests\Models\Post; use Orchid\Screen\Fields\CheckBox; class ActionTest extends TestCase { /** * @var Post[] ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/TrafficCopTest.php
tests/TrafficCopTest.php
<?php namespace Orchid\Crud\Tests; use Orchid\Crud\Tests\Fixtures\PostResource; use Orchid\Crud\Tests\Models\Post; class TrafficCopTest extends TestCase { public function testBaseCopResource(): void { $post = Post::factory()->create(); $post->touch(); $retrievedAt = $post->updated_at-...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/CustomMessageValidationTest.php
tests/CustomMessageValidationTest.php
<?php namespace Orchid\Crud\Tests; use Orchid\Crud\Tests\Fixtures\PostCustomErrorMessageResource; use Orchid\Crud\Tests\Models\Post; class CustomMessageValidationTest extends TestCase { public function testCustomMessageForValidationResource(): void { $post = Post::factory()->make([ 'title...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/PaginationTest.php
tests/PaginationTest.php
<?php namespace Orchid\Crud\Tests; use Orchid\Crud\Tests\Fixtures\PaginationResource; use Orchid\Crud\Tests\Models\Post; class PaginationTest extends TestCase { /** * @var Post[] */ protected $posts; /** * */ public function setUp(): void { parent::setUp(); $...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/TestCase.php
tests/TestCase.php
<?php namespace Orchid\Crud\Tests; use Illuminate\Database\Eloquent\Factories\Factory; use Orchestra\Testbench\TestCase as Orchestra; use Orchid\Crud\Arbitrator; use Orchid\Crud\CrudServiceProvider; use Orchid\Crud\ResourceFinder; use Orchid\Platform\Providers\FoundationServiceProvider; use Orchid\Platform\Providers\...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/CrudTest.php
tests/CrudTest.php
<?php namespace Orchid\Crud\Tests; use Illuminate\Support\Str; use Orchid\Crud\Tests\Fixtures\PostResource; use Orchid\Crud\Tests\Models\Post; class CrudTest extends TestCase { /** * @var Post[] */ protected $posts; /** * */ public function setUp(): void { parent::set...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/CrudPolicyTest.php
tests/CrudPolicyTest.php
<?php namespace Orchid\Crud\Tests; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Hash; use Orchid\Crud\Tests\Fixtures\PostResource; use Orchid\Crud\Tests\Models\Post; use Orchid\Crud\Tests\Policies\PostProtectedPolicy; use Orchid\Platform\Models\User; use Orchid\Support\Facades\Dashboard; class...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/ArbitratorTest.php
tests/ArbitratorTest.php
<?php namespace Orchid\Crud\Tests; use Illuminate\Support\Collection; use Illuminate\Support\Facades\View; use Illuminate\Support\Str; use Orchid\Crud\Arbitrator; use Orchid\Crud\Tests\Fixtures\PostResource; use Orchid\Crud\Tests\Fixtures\PrivateResource; use Orchid\Crud\Tests\FixturesBad\WithoutModel; use Orchid\Cru...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/NavigationTest.php
tests/NavigationTest.php
<?php namespace Orchid\Crud\Tests; use Orchid\Crud\Tests\Fixtures\NoDisplayInNavigationResource; use Orchid\Crud\Tests\Fixtures\PostResource; class NavigationTest extends TestCase { /** * */ public function testNoDisplayResourceInNavigation(): void { $this->get(route('platform.resource...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/ResourceFinderTest.php
tests/ResourceFinderTest.php
<?php namespace Orchid\Crud\Tests; use Orchid\Crud\Tests\Fixtures\ExampleAbstractResource; use Orchid\Crud\Tests\Fixtures\PostResource; class ResourceFinderTest extends TestCase { public function testFindResourceInDirectory(): void { $resources = $this ->getResourceFinder() ->...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/ProviderTest.php
tests/ProviderTest.php
<?php namespace Orchid\Crud\Tests; use Illuminate\Support\Facades\Route; use Illuminate\Support\Str; class ProviderTest extends TestCase { public function testRouteRegister(): void { $this->assertTrue(Route::has('platform.resource.create')); $this->assertTrue(Route::has('platform.resource.ed...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/DescriptionTest.php
tests/DescriptionTest.php
<?php namespace Orchid\Crud\Tests; use Orchid\Crud\Tests\Fixtures\DescriptionResource; class DescriptionTest extends TestCase { /** * */ public function testListResource(): void { $this->get(route('platform.resource.list', [ 'resource' => DescriptionResource::uriKey(), ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/PostResource.php
tests/Fixtures/PostResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; use Illuminate\Database\Eloquent\Model; use Illuminate\Validation\Rule; use Orchid\Crud\Filters\DefaultSorted; use Orchid\Crud\Resource; use Orchid\Crud\Tests\Models\Post; use Orchid\Screen\Field; use Orchid\Screen\Fields\Group; use Orchid\Screen\Fields\Input; use Orchid\Sc...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/PaginationResource.php
tests/Fixtures/PaginationResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; class PaginationResource extends PostResource { /** * Get the number of models to return per page * * @throws \Illuminate\Contracts\Container\BindingResolutionException * * @return int */ public static function perPage(): int { ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/ExampleAbstractResource.php
tests/Fixtures/ExampleAbstractResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; use Orchid\Crud\Resource; abstract class ExampleAbstractResource extends Resource { }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/PrivateResource.php
tests/Fixtures/PrivateResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; class PrivateResource extends PostResource { /** * Get the permission key for the resource. * * @return string|null */ public static function permission(): ?string { return 'private-resource'; } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/NoDisplayInNavigationResource.php
tests/Fixtures/NoDisplayInNavigationResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; class NoDisplayInNavigationResource extends PostResource { /** * Get the resource should be displayed in the navigation * * @return bool */ public static function displayInNavigation(): bool { return false; } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/PostActionResource.php
tests/Fixtures/PostActionResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; class PostActionResource extends PostResource { /** * Get the actions available for the resource. * * @return array */ public function actions(): array { return [ CustomAction::class, ]; } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/CustomAction.php
tests/Fixtures/CustomAction.php
<?php namespace Orchid\Crud\Tests\Fixtures; use Illuminate\Support\Collection; use Orchid\Crud\Action; use Orchid\Screen\Actions\Button; use Orchid\Support\Facades\Toast; class CustomAction extends Action { /** * The button of the action. * * @return Button */ public function button(): Bu...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/DescriptionResource.php
tests/Fixtures/DescriptionResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; class DescriptionResource extends PostResource { /** * @return string|null */ public static function description(): ?string { return 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'; } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/PostCustomErrorMessageResource.php
tests/Fixtures/PostCustomErrorMessageResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; class PostCustomErrorMessageResource extends PostResource { /** * @return string[] */ public function messages(): array { return [ 'title.required' => 'Поле обязательно для заполнения', ]; } /** * Get custom at...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Fixtures/PostNoActionResource.php
tests/Fixtures/PostNoActionResource.php
<?php namespace Orchid\Crud\Tests\Fixtures; class PostNoActionResource extends PostResource { /** * Get the actions available for the resource. * * @return array */ public function actions(): array { return []; } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/FixturesBad/WithoutTraits.php
tests/FixturesBad/WithoutTraits.php
<?php namespace Orchid\Crud\Tests\FixturesBad; use Orchid\Crud\Resource; use Orchid\Crud\Tests\Models\PostWithoutTraits; class WithoutTraits extends Resource { /** * The model the resource corresponds to. * * @var string */ public static $model = PostWithoutTraits::class; public func...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/FixturesBad/WithoutModel.php
tests/FixturesBad/WithoutModel.php
<?php namespace Orchid\Crud\Tests\FixturesBad; use Orchid\Crud\Resource; class WithoutModel extends Resource { public function columns(): array { return []; } public function fields(): array { return []; } public function legend(): array { return []; } }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Migrations/2020_09_13_183720_create_posts_table.php
tests/Migrations/2020_09_13_183720_create_posts_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('posts', function ...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Models/PostWithoutTraits.php
tests/Models/PostWithoutTraits.php
<?php namespace Orchid\Crud\Tests\Models; use Illuminate\Database\Eloquent\Model; class PostWithoutTraits extends Model { }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Models/Post.php
tests/Models/Post.php
<?php namespace Orchid\Crud\Tests\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Orchid\Attachment\Attachable; use Orchid\Crud\Tests\Factories\PostFactory; use Orchid\Filters\Filterable; use Orchid\Screen\AsSource; class Post extends Model { use HasFact...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Factories/PostFactory.php
tests/Factories/PostFactory.php
<?php namespace Orchid\Crud\Tests\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use Orchid\Crud\Tests\Models\Post; class PostFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Post::class; /** * D...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/tests/Policies/PostProtectedPolicy.php
tests/Policies/PostProtectedPolicy.php
<?php namespace Orchid\Crud\Tests\Policies; use Illuminate\Auth\Access\HandlesAuthorization; class PostProtectedPolicy { use HandlesAuthorization; }
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
orchidsoftware/crud
https://github.com/orchidsoftware/crud/blob/d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f/routes/crud.php
routes/crud.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\Route; use Orchid\Crud\ResourceRequest; use Orchid\Crud\Screens\CreateScreen; use Orchid\Crud\Screens\ViewScreen; use Orchid\Crud\Screens\EditScreen; use Orchid\Crud\Screens\ListScreen; use Tabuna\Breadcrumbs\Trail; Route::screen('/crud/create/{resource?}...
php
MIT
d3ce4f31a4ea9d1a0c9f0ccd8e8c0d71e1bcb17f
2026-01-05T04:01:19.936993Z
false
commerceguys/pricing
https://github.com/commerceguys/pricing/blob/55269e9603d28cf1de644f49d7af7c1d36b5864d/src/PriceInterface.php
src/PriceInterface.php
<?php namespace CommerceGuys\Pricing; use CommerceGuys\Intl\Currency\CurrencyInterface; interface PriceInterface { /** * Returns the price amount. * * @return string */ public function getAmount(); /** * Returns the price currency. * * @return \CommerceGuys\Intl\Curren...
php
MIT
55269e9603d28cf1de644f49d7af7c1d36b5864d
2026-01-05T04:01:27.645929Z
false
commerceguys/pricing
https://github.com/commerceguys/pricing/blob/55269e9603d28cf1de644f49d7af7c1d36b5864d/src/Exception.php
src/Exception.php
<?php namespace CommerceGuys\Pricing; interface Exception { }
php
MIT
55269e9603d28cf1de644f49d7af7c1d36b5864d
2026-01-05T04:01:27.645929Z
false
commerceguys/pricing
https://github.com/commerceguys/pricing/blob/55269e9603d28cf1de644f49d7af7c1d36b5864d/src/Price.php
src/Price.php
<?php namespace CommerceGuys\Pricing; use CommerceGuys\Intl\Currency\CurrencyInterface; class Price implements PriceInterface { /** * The price amount. * * @var string */ protected $amount; /** * The price currency. * * @var \CommerceGuys\Intl\Currency\CurrencyInterfac...
php
MIT
55269e9603d28cf1de644f49d7af7c1d36b5864d
2026-01-05T04:01:27.645929Z
false
commerceguys/pricing
https://github.com/commerceguys/pricing/blob/55269e9603d28cf1de644f49d7af7c1d36b5864d/src/CurrencyMismatchException.php
src/CurrencyMismatchException.php
<?php namespace CommerceGuys\Pricing; /** * This exception is thrown when attempting to perform math using two different currencies. * For example, adding a price in USD to another in EUR. */ class CurrencyMismatchException extends \RuntimeException implements Exception { }
php
MIT
55269e9603d28cf1de644f49d7af7c1d36b5864d
2026-01-05T04:01:27.645929Z
false
commerceguys/pricing
https://github.com/commerceguys/pricing/blob/55269e9603d28cf1de644f49d7af7c1d36b5864d/src/InvalidArgumentException.php
src/InvalidArgumentException.php
<?php namespace CommerceGuys\Pricing; /** * This exception is thrown when an invalid argument is passed to a method. * For example, a float amount instead of the expected string amount. */ class InvalidArgumentException extends \InvalidArgumentException implements Exception { }
php
MIT
55269e9603d28cf1de644f49d7af7c1d36b5864d
2026-01-05T04:01:27.645929Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/notelist.php
notelist.php
<?php require_once 'modules/protect.php'; Protect\with('modules/protect_form.php', 'put your password here'); ?> <!DOCTYPE html> <html> <head> <?php // configuration settings, edit settings in config.php as appropriate include('config.php'); // from https://stackoverflow.com/questions/16765158/date-it-is-...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/view.php
view.php
<?php // Disable caching. header('Cache-Control: no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); header('Expires: 0'); // configuration settings, edit settings in config.php as appropriate // settings include the base url, the notes path and the menu items displayed include('config.php'); $path =...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/setup.php
setup.php
<?php // this file should be deleted after setup // it will show your notes directory path on screen // this is very simple setup file and is not intended // to deal with all scenarios include('config.php'); // test the folder exists, if it doesn't then create it if (makeDir($data_directory)) { echo $data_directory...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/config.php
config.php
<?php // Base URL of the website, without trailing slash. // from http://stackoverflow.com/questions/15110355/how-to-safely-get-full-url-of-parent-directory-of-current-php-page // and https://stackoverflow.com/questions/6768793/get-the-full-url-in-php // This can be hardcoded to an actual URL if PHP_SELF doesn't fit y...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/index.php
index.php
<?php // based on https://github.com/pereorga/minimalist-web-notepad // configuration settings, edit settings in config.php as appropriate // settings include the base url, the notes path and the menu items displayed include('config.php'); // Disable caching. header('Cache-Control: no-cache, no-store, must-revalidat...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/simple.php
simple.php
<?php // configuration settings, edit settings in config.php as appropriate // settings include the base url, the notes path and the menu items displayed include('config.php'); // Disable caching. header('Cache-Control: no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); header('Expires: 0'); // If a...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/protect.php
modules/protect.php
<?php # https://gist.github.com/4692807 namespace Protect; # Will protect a page with a simple password. The user will only need # to input the password once. After that their session will be enough # to get them in. The optional scope allows access on one page to # grant access on another page. If not specified then i...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/menu.php
modules/menu.php
<?php // set to false to hide individual menu items $allow_copy = true; $allow_delete = true; $allow_download = true; $allow_view = true; // requires $allow_menu = true $allow_new = true; $allow_mono = true; // if the notelist files isn't there then automatically set allow_notelist to false if(!file_exists('notelist.p...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/lastsaved.php
modules/lastsaved.php
<link rel="stylesheet" href="modules/css/lastsaved.min.css"> <div class="savedStatus" id="savedStatus" datetime="<?php if (file_exists($path)) { echo gmdate("Y-m-d\TH:i:s\Z", filemtime($path)); } ?>"></div> <script src="modules/js/tinyago.min.js"></script> <script src="modules/js/lastsaved.min.js"></script>
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/create_notes_folder.php
modules/create_notes_folder.php
<?php if (!file_exists('_notes/')) { // create folder with read/write permission mkdir('_notes', 0755, false); // add .htaccess file $f = fopen("_notes/.htaccess", "a+"); fwrite($f, "Deny from all"); fclose($f); } ?>
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/common.php
modules/common.php
<?php function current_url($script_only=false) { $protocol = 'http'; $port = ':'.$_SERVER["SERVER_PORT"]; if (isset($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] == 'on') { $protocol .= 's'; } } if ($protocol == 'http' && $port == ':80') { $port = ''; } if (...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/protect_form.php
modules/protect_form.php
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> .center { position: absolute; top: 50%; left: 50%; width: 300px; height: 200px; margin: -100px 0 0 -100px; font-family: sans-serif; font-size: large; } </style> <title><?php if (isset($_GET['note'])) print...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/copy.php
modules/copy.php
<div class="modal_copy hidden" id="copy_modal"> <div class="modal-content"> <span class="close-button_copy">&times;</span> <br> <br>Copy <a onclick="copyToClipboard('copyURL');">note link/url</a> <br>Copy <a onclick="copyToClipboard('copyURLViewOnly');">read only link/url</a> <br>Copy <a onclick="copyToClipb...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/header.php
modules/header.php
<?php require_once 'modules/common.php'; function getFileContents($path, $client=null) { $content = file_get_contents($path); $firstline = strtok($content, "\n"); //get the first line which is header data, not actual text/notes that has been entered if (checkHeader($path, $firstline)) { $content =...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
domOrielton/minimal-web-notepad
https://github.com/domOrielton/minimal-web-notepad/blob/098fcd6787e20bdf9e16e795c31b778570ffdb6c/modules/password.php
modules/password.php
<link rel="stylesheet" type="text/css" href="modules/css/modal.min.css"> <div class="modal_password hidden" id="password_modal" style="hidden"> <div class="modal-content"> <span class="close-button_password">&times;</span> <br>Password for this note<br> <span id="inputboxLocation"></span><button class="submit" i...
php
MIT
098fcd6787e20bdf9e16e795c31b778570ffdb6c
2026-01-05T04:01:35.852961Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/tests/autoload.php
tests/autoload.php
<?php require __DIR__ . '/../vendor/autoload.php';
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/tests/src/Tga/SimHash/SimHashTest.php
tests/src/Tga/SimHash/SimHashTest.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash; use Tga\SimHash\Comparator\GaussianComparator; u...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/tests/src/Tga/SimHash/Extractor/HtmlExtractorTest.php
tests/src/Tga/SimHash/Extractor/HtmlExtractorTest.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Extractor; /** * HTML extractor testing * * @a...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/tests/src/Tga/SimHash/Extractor/SimpleTextExtractorTest.php
tests/src/Tga/SimHash/Extractor/SimpleTextExtractorTest.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Extractor; /** * SimpleText extractor testing *...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Fingerprint.php
lib/Tga/SimHash/Fingerprint.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash; /** * @author Titouan Galopin <http://titouanga...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/SimHash.php
lib/Tga/SimHash/SimHash.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash; use Tga\SimHash\Extractor\HtmlExtractor; use Tga...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Extractor/HtmlExtractor.php
lib/Tga/SimHash/Extractor/HtmlExtractor.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Extractor; /** * The HTML extractor extract impo...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Extractor/SimpleTextExtractor.php
lib/Tga/SimHash/Extractor/SimpleTextExtractor.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Extractor; use Cocur\Slugify\Slugify; /** * The...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Extractor/ExtractorInterface.php
lib/Tga/SimHash/Extractor/ExtractorInterface.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Extractor; /** * An extractor is an object able ...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Tokenizer/String32Tokenizer.php
lib/Tga/SimHash/Tokenizer/String32Tokenizer.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Tokenizer; /** * Tokenizer for strings that gene...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Tokenizer/TokenizerInterface.php
lib/Tga/SimHash/Tokenizer/TokenizerInterface.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Tokenizer; /** * A tokenizer is an object able t...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Tokenizer/String128Tokenizer.php
lib/Tga/SimHash/Tokenizer/String128Tokenizer.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Tokenizer; /** * Tokenizer for strings that gene...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Tokenizer/String64Tokenizer.php
lib/Tga/SimHash/Tokenizer/String64Tokenizer.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Tokenizer; /** * Tokenizer for strings that gene...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Comparator/ComparatorInterface.php
lib/Tga/SimHash/Comparator/ComparatorInterface.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Comparator; use Tga\SimHash\Fingerprint; /** * ...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Comparator/GaussianComparator.php
lib/Tga/SimHash/Comparator/GaussianComparator.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Comparator; use Tga\SimHash\Fingerprint; /** * ...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Vectorizer/VectorizerInterface.php
lib/Tga/SimHash/Vectorizer/VectorizerInterface.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Vectorizer; /** * A vectorizer is an object able...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/lib/Tga/SimHash/Vectorizer/DefaultVectorizer.php
lib/Tga/SimHash/Vectorizer/DefaultVectorizer.php
<?php /* * This file is part of the SimHashPhp package. * * (c) Titouan Galopin <http://titouangalopin.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tga\SimHash\Vectorizer; /** * The default vectorizer * * @...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/doc/examples/basic.php
doc/examples/basic.php
<?php require 'vendor/autoload.php'; $simhash = new \Tga\SimHash\SimHash(); $comparator = new \Tga\SimHash\Comparator\GaussianComparator(6); $fp1 = $simhash->hash( [ 'mary-jane', 'is', 'very', 'tall', 'she', 'is', 'in', 'the', '9th', 'grade' ], \Tga\SimHash\SimHash::SIMHASH_32 ); $fp2 = $simhash->hash( ...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/doc/examples/simple_html.php
doc/examples/simple_html.php
<?php require 'vendor/autoload.php'; $text1 = <<<EOT <html> <head><title>George Headley (1909–1983)</title></head> <body> George Headley (1909–1983) was a West Indian cricketer who played 22 Test matches, mostly before the Second World War. Considered one of the best batsmen to play for West Indies and one of the gre...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
tgalopin/simhashphp
https://github.com/tgalopin/simhashphp/blob/d51acef2e2f6c1d9ab74f992806432c859e37282/doc/examples/simple_text.php
doc/examples/simple_text.php
<?php require 'vendor/autoload.php'; $text1 = <<<EOT George Headley (1909–1983) was a West Indian cricketer who played 22 Test matches, mostly before the Second World War. Considered one of the best batsmen to play for West Indies and one of the greatest cricketers of all time, he also represented Jamaica and played ...
php
MIT
d51acef2e2f6c1d9ab74f992806432c859e37282
2026-01-05T04:01:47.518358Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = Symfony\Component\Finder\Finder::create() ->notPath('bootstrap/*') ->notPath('storage/*') ->notPath('resources/view/mail/*') ->in([ __DIR__ . '/src', __DIR__ . '/tests', ]) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(tr...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false