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 |
|---|---|---|---|---|---|---|---|---|
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/tests/Feature/CommandsTest.php | tests/Feature/CommandsTest.php | <?php
namespace Neo\EarlyAccess\Tests\Feature;
use Neo\EarlyAccess\Tests\TestCase;
use Neo\EarlyAccess\Traits\InteractsWithEarlyAccess;
use Illuminate\Foundation\Testing\Concerns\InteractsWithConsole;
class CommandsTest extends TestCase
{
use InteractsWithConsole, InteractsWithEarlyAccess;
/** @test */
... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/tests/Unit/SubscribeTest.php | tests/Unit/SubscribeTest.php | <?php
namespace Neo\EarlyAccess\Tests\Unit;
use Mockery;
use Neo\EarlyAccess\Subscriber;
use Neo\EarlyAccess\Tests\TestCase;
use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider;
class SubscribeTest extends TestCase
{
/**
* Setup the test environment.
*
* @return void
*/
public... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/tests/Unit/EarlyAccessTest.php | tests/Unit/EarlyAccessTest.php | <?php
namespace Neo\EarlyAccess\Tests\Unit;
use Neo\EarlyAccess\Tests\TestCase;
use Illuminate\Support\Facades\Storage;
use Neo\EarlyAccess\Traits\InteractsWithEarlyAccess;
class EarlyAccessTest extends TestCase
{
use InteractsWithEarlyAccess;
/** @test */
public function shows_if_early_access_is_enable... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/tests/Unit/SubscriberTest.php | tests/Unit/SubscriberTest.php | <?php
namespace Neo\EarlyAccess\Tests\Unit;
use Neo\EarlyAccess\Subscriber;
use Neo\EarlyAccess\Tests\TestCase;
use Illuminate\Support\Facades\Event;
use Neo\EarlyAccess\Events\UserSubscribed;
use Illuminate\Support\Facades\Notification;
use Neo\EarlyAccess\Events\UserUnsubscribed;
use Neo\EarlyAccess\Contracts\Subsc... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/routes/web.php | routes/web.php | <?php
if (Neo\EarlyAccess\Facades\EarlyAccess::isEnabled()) {
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your applicatio... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/config/early-access.php | config/early-access.php | <?php
return [
/**
* Is early access active? When active, the package will display the early access page request for all routes.
*/
'enabled' => env('EARLY_ACCESS_ENABLED', false),
/**
* The URL to use as the early access page
*/
'url' => env('EARLY_ACCESS_URL', '/early-access'),
... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/database/migrations/2019_01_03_114743_create_early_access_table.php | database/migrations/2019_01_03_114743_create_early_access_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEarlyAccessTable extends Migration
{
/**
* @var string
*/
private $table;
/**
* CreateEarlyAccessTable constructor.
*/
public function _... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/resources/lang/en/messages.php | resources/lang/en/messages.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Messages Language Lines
|--------------------------------------------------------------------------
*/
'alerts' => [
'error' => 'An error occurred. Please try again.',
'success' => '... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/resources/lang/en/common.php | resources/lang/en/common.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Common Language Lines
|--------------------------------------------------------------------------
*/
'copyright' => '© :year :name. All rights reserved.',
'early_access' => 'Early access',... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/resources/lang/en/mail.php | resources/lang/en/mail.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Mail Language Lines
|--------------------------------------------------------------------------
*/
'subscribed' => [
'subject' => 'Early access to :name',
'message' => [
... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/resources/views/unsubscribe.blade.php | resources/views/unsubscribe.blade.php | @extends('early-access::layouts.main')
@section('content')
<div class="container flex flex-col md:flex-row items-center justify-between">
<div class="md:pr-5 lg:pr-10 md:w-2/5">
<div class="text-center md:text-left">
<h1 class="text-3xl lg:text-5xl text-indigo-darker font-logo f... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/resources/views/index.blade.php | resources/views/index.blade.php | @extends('early-access::layouts.main')
@section('content')
<div class="container flex flex-col md:flex-row items-center justify-between">
<div class="md:pr-5 lg:pr-10 md:w-2/5">
<div class="text-center md:text-left">
<h1 class="text-3xl lg:text-5xl text-indigo-darker font-logo f... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
neoighodaro/laravel-early-access | https://github.com/neoighodaro/laravel-early-access/blob/c28e2f5ed9bf3683f7ce384be5bda2bb32710901/resources/views/layouts/main.blade.php | resources/views/layouts/main.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ $page_title ?? trans('early-access::common.early_access') }} | ... | php | MIT | c28e2f5ed9bf3683f7ce384be5bda2bb32710901 | 2026-01-05T03:21:04.873225Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/Geo.php | src/Geo.php | <?php
namespace Igaster\LaravelCities;
use Igaster\LaravelCities\dbTree\EloquentTreeItem;
class Geo extends EloquentTreeItem
{
protected $table = 'geo';
protected $guarded = [];
public $timestamps = false;
const LEVEL_COUNTRY = 'PCLI';
const LEVEL_CAPITAL = 'PPLC';
const LEVEL_PPL = 'PPL';
... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/routes.php | src/routes.php | <?php
use Illuminate\Support\Facades\Route;
Route::group(['prefix' => 'geo'], function() {
Route::get('search/{name}/{parent_id?}', '\Igaster\LaravelCities\GeoController@search');
Route::get('item/{id}', '\Igaster\LaravelCities\GeoController@item');
Route::get('children/{id}', '\Igaster\LaravelCiti... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/GeoController.php | src/GeoController.php | <?php
namespace Igaster\LaravelCities;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Response;
class GeoController extends Controller
{
// [Geo] Get an item by $id
public function item($id)
{
$geo = Geo::find($id);
$this->ap... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/GeoServiceProvider.php | src/GeoServiceProvider.php | <?php
namespace Igaster\LaravelCities;
use Illuminate\Support\ServiceProvider;
class GeoServiceProvider extends ServiceProvider
{
public function boot()
{
// Load Routes
// $this->loadRoutesFrom(__DIR__.'/routes.php');
$this->publishes([
__DIR__ . '/vue' => resource_path(... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/commands/seedGeoFile.php | src/commands/seedGeoFile.php | <?php
namespace Igaster\LaravelCities\commands;
use Exception;
use Igaster\LaravelCities\commands\helpers\geoCollection;
use Igaster\LaravelCities\commands\helpers\geoItem;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use PDO;
use Symfony\Component\Console\... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/commands/truncTable.php | src/commands/truncTable.php | <?php
namespace Igaster\LaravelCities\commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class truncTable extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'geo:cleardb';
/**
* The console c... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/commands/seedJsonFile.php | src/commands/seedJsonFile.php | <?php
namespace Igaster\LaravelCities\commands;
use Igaster\LaravelCities\commands\helpers\geoCollection;
use Igaster\LaravelCities\Geo;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use PDO;
use Symfony\Component\Console\Helper\ProgressBar;
class seedJsonF... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/commands/Download.php | src/commands/Download.php | <?php
namespace Igaster\LaravelCities\commands;
use Illuminate\Console\Command;
class Download extends Command
{
public const ALL_COUNTRIES = 'all';
protected $signature = 'geo:download {--countries='.self::ALL_COUNTRIES.'}';
protected $description = 'Download a *.txt files from geonames.org By default ... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/commands/BuildPplTree.php | src/commands/BuildPplTree.php | <?php
namespace Igaster\LaravelCities\commands;
use Illuminate\Console\Command;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
class BuildPplTree extends Command
{
protected $signature = 'geo:build-ppl-tree {--countries=}';
protected $description = 'Build a PPL* hierarchy-ppl-*.txt from admin... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/commands/helpers/geoItem.php | src/commands/helpers/geoItem.php | <?php
namespace Igaster\LaravelCities\commands\helpers;
class geoItem
{
public $data;
public $parentId = null;
public $childrenGeoId = [];
public $depth = 0;
public $left = null;
public $right = null;
private $geoItems;
public function __construct($rawData, $geoItems)
{
... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/commands/helpers/geoCollection.php | src/commands/helpers/geoCollection.php | <?php
namespace Igaster\LaravelCities\commands\helpers;
class geoCollection
{
public $items = [];
public function add($item)
{
$this->items[$item->getId()] = $item;
}
public function findGeoId($geoId)
{
return isset($this->items[$geoId]) ? $this->items[$geoId] : null;
}
... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/dbTree/EloquentTreeItem.php | src/dbTree/EloquentTreeItem.php | <?php
namespace Igaster\LaravelCities\dbTree;
use Igaster\LaravelCities\Geo;
use Illuminate\Database\Eloquent\Model as Eloquent;
class EloquentTreeItem extends Eloquent
{
// Properties:
// id, parent_id, depth, left, right
private static $items = [];
protected $parent = null;
protected $childre... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/src/migrations/2017_02_13_090952_geo.php | src/migrations/2017_02_13_090952_geo.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Geo extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('geo', function (Blueprint $tab... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/tests/seedTest.php | tests/seedTest.php | <?php
namespace Igaster\LaravelCities\Tests;
class seedTest extends abstractTest
{
// You cam execute this test with: phpunit --filter testSeedCommand tests/seedTest
public function testSeedCommand()
{
$this->markTestSkipped('Takes too long to complete'); // Comment this line to enable the test
... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/tests/geoTest.php | tests/geoTest.php | <?php
namespace Igaster\LaravelCities\Tests;
use Igaster\LaravelCities\Geo;
class geoTest extends abstractTest
{
//-- Test: testDummy
public function testDummy()
{
// $results = Geo::findName('Ionian Islands')->getChildren();
// dd($results->map(function($item){return $item->name;}));
... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/tests/dbTest.php | tests/dbTest.php | <?php
namespace Igaster\LaravelCities\Tests;
class dbTest extends abstractTest
{
public function testNomoi()
{
$result = $this->sql('SELECT COUNT(*) as counter FROM geo WHERE Country="GR" AND level="ADM2"');
$this->assertEquals($result['counter'], 55);
}
public function testCapital()... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/tests/apiTest.php | tests/apiTest.php | <?php
namespace Igaster\LaravelCities\Tests;
use Igaster\LaravelCities\Geo;
class apiTest extends abstractTest
{
// -----------------------------------------------
// add Service Providers & Facades
// -----------------------------------------------
protected function getPackageProviders($app)
... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/tests/abstractTest.php | tests/abstractTest.php | <?php
namespace Igaster\LaravelCities\Tests;
use Dotenv\Dotenv;
use Igaster\LaravelCities\GeoServiceProvider;
abstract class abstractTest extends \Orchestra\Testbench\TestCase {
// -----------------------------------------------
// Global Setup (Run once)
// -------------------------------------------... | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
igaster/laravel_cities | https://github.com/igaster/laravel_cities/blob/778f81b60b42361f2377404de9c87baf954b4474/tests/App/TestModel.php | tests/App/TestModel.php | <?php
namespace Igaster\LaravelCities\Tests\App;
use Illuminate\Database\Eloquent\Model as Eloquent;
class TestModel extends Eloquent
{
protected $table = 'test_table';
protected $guarded = [];
public $timestamps = false;
} | php | MIT | 778f81b60b42361f2377404de9c87baf954b4474 | 2026-01-05T03:21:21.000982Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/AutoTranslate.php | src/AutoTranslate.php | <?php
namespace Ben182\AutoTranslate;
use Illuminate\Support\Arr;
use Themsaid\Langman\Manager as Langman;
use Ben182\AutoTranslate\Translators\TranslatorInterface;
class AutoTranslate
{
protected $manager;
public $translator;
public function __construct(Langman $manager, TranslatorInterface $translator... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/AutoTranslateFacade.php | src/AutoTranslateFacade.php | <?php
namespace Ben182\AutoTranslate;
use Illuminate\Support\Facades\Facade;
/**
* @see \Ben182\AutoTranslate\Skeleton\SkeletonClass
*/
class AutoTranslateFacade extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAcc... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/AutoTranslateServiceProvider.php | src/AutoTranslateServiceProvider.php | <?php
namespace Ben182\AutoTranslate;
use Themsaid\Langman\Manager;
use Illuminate\Support\ServiceProvider;
use Ben182\AutoTranslate\Commands\AllCommand;
use Ben182\AutoTranslate\Commands\MissingCommand;
use Ben182\AutoTranslate\Translators\TranslatorInterface;
class AutoTranslateServiceProvider extends ServiceProvi... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/Translators/TranslatorInterface.php | src/Translators/TranslatorInterface.php | <?php
namespace Ben182\AutoTranslate\Translators;
interface TranslatorInterface
{
public function setSource(string $source);
public function setTarget(string $target);
public function translate(string $string) : string;
}
| php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/Translators/GoogleCloudTranslator.php | src/Translators/GoogleCloudTranslator.php | <?php
namespace Ben182\AutoTranslate\Translators;
use Google\Cloud\Translate\TranslateClient;
class GoogleCloudTranslator implements TranslatorInterface
{
protected $translator;
protected $source;
protected $target;
public function __construct()
{
$this->translator = new TranslateClient(... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/Translators/DeeplTranslator.php | src/Translators/DeeplTranslator.php | <?php
namespace Ben182\AutoTranslate\Translators;
use Scn\DeeplApiConnector\DeeplClient;
use Scn\DeeplApiConnector\Model\TranslationConfig;
use Scn\DeeplApiConnector\Exception\RequestException;
use Ben182\AutoTranslate\Exceptions\LanguageCodeNotExist;
class DeeplTranslator implements TranslatorInterface
{
protec... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/Translators/SimpleGoogleTranslator.php | src/Translators/SimpleGoogleTranslator.php | <?php
namespace Ben182\AutoTranslate\Translators;
use Stichoza\GoogleTranslate\GoogleTranslate;
use Ben182\AutoTranslate\Exceptions\LanguageCodeNotExist;
class SimpleGoogleTranslator implements TranslatorInterface
{
protected $translator;
protected $source;
protected $target;
public function __const... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/Exceptions/LanguageCodeNotExist.php | src/Exceptions/LanguageCodeNotExist.php | <?php
namespace Ben182\AutoTranslate\Exceptions;
use Exception;
class LanguageCodeNotExist extends Exception
{
public static function throw(string $source, string $target): self
{
return new static('The language code "'.$source.'" or "'.$target.'" does not exist.');
}
}
| php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/Commands/MissingCommand.php | src/Commands/MissingCommand.php | <?php
namespace Ben182\AutoTranslate\Commands;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Console\Command;
use Ben182\AutoTranslate\AutoTranslate;
class MissingCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
pro... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/src/Commands/AllCommand.php | src/Commands/AllCommand.php | <?php
namespace Ben182\AutoTranslate\Commands;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Console\Command;
use Ben182\AutoTranslate\AutoTranslate;
class AllCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protect... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/tests/TestCase.php | tests/TestCase.php | <?php
namespace Ben182\AutoTranslate\Tests;
use Themsaid\Langman\LangmanServiceProvider;
use Ben182\AutoTranslate\AutoTranslateServiceProvider;
class TestCase extends \Orchestra\Testbench\TestCase
{
public function setUp(): void
{
parent::setUp();
exec('rm -rf '.__DIR__.'/temp/*');
}
... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/tests/AutoTranslateTest.php | tests/AutoTranslateTest.php | <?php
namespace Ben182\AutoTranslate\Tests;
use Mockery;
use Illuminate\Support\Arr;
use Ben182\AutoTranslate\AutoTranslateFacade;
use Ben182\AutoTranslate\Translators\TranslatorInterface;
class AutoTranslateTest extends TestCase
{
public function test_getTranslations()
{
$this->createTempFiles([
... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
ben182/laravel-auto-translate | https://github.com/ben182/laravel-auto-translate/blob/6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb/config/config.php | config/config.php | <?php
return [
/*
* Here you can specify the source language code.
*/
'source_language' => 'en',
/*
* Here you can specify the target language code(s). This can be a string or an array.
*/
'target_language' => ['de'],
/*
* Specify the path to the translation files.
*... | php | MIT | 6c7f7093d6e1a24289d8d14c9a2a48462b1e7beb | 2026-01-05T03:21:33.619093Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/src/Resolvers/SocialUserResolverInterface.php | src/Resolvers/SocialUserResolverInterface.php | <?php
namespace Coderello\SocialGrant\Resolvers;
use Illuminate\Contracts\Auth\Authenticatable;
interface SocialUserResolverInterface
{
/**
* Resolve user by provider credentials.
*/
public function resolveUserByProviderCredentials(string $provider, string $accessToken): ?Authenticatable;
}
| php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/src/Grants/SocialGrant.php | src/Grants/SocialGrant.php | <?php
namespace Coderello\SocialGrant\Grants;
use DateInterval;
use League\OAuth2\Server\RequestEvent;
use Psr\Http\Message\ServerRequestInterface;
use League\OAuth2\Server\Grant\AbstractGrant;
use Laravel\Passport\Bridge\User as UserEntity;
use League\OAuth2\Server\Exception\OAuthServerException;
use League\OAuth2\S... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/src/Providers/SocialGrantServiceProvider.php | src/Providers/SocialGrantServiceProvider.php | <?php
namespace Coderello\SocialGrant\Providers;
use Laravel\Passport\Passport;
use Illuminate\Support\ServiceProvider;
use League\OAuth2\Server\AuthorizationServer;
use Laravel\Passport\Bridge\RefreshTokenRepository;
use Coderello\SocialGrant\Grants\SocialGrant;
use Coderello\SocialGrant\Resolvers\SocialUserResolver... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/SocialGrantTest.php | tests/SocialGrantTest.php | <?php
namespace Coderello\SocialGrant\Tests;
use League\OAuth2\Server\CryptKey;
use Laminas\Diactoros\ServerRequest;
use Coderello\SocialGrant\Tests\Stubs\User;
use League\OAuth2\Server\Exception\OAuthServerException;
use Coderello\SocialGrant\Grants\SocialGrant;
use League\OAuth2\Server\Entities\AccessTokenEntityInt... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/AbstractTestCase.php | tests/AbstractTestCase.php | <?php
namespace Coderello\SocialGrant\Tests;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
use Coderello\SocialGrant\Providers\SocialGrantServiceProvider;
abstract class AbstractTestCase extends OrchestraTestCase
{
/**
* Get package providers.
*
* @param \Illuminate\Foundation\Application... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/Stubs/AccessTokenEntity.php | tests/Stubs/AccessTokenEntity.php | <?php
namespace Coderello\SocialGrant\Tests\Stubs;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\AccessTokenTrait;
use League\OAuth2\Server\Entities\Traits\TokenEntityTrait;
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
class AccessTokenEntity implemen... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/Stubs/RefreshTokenEntity.php | tests/Stubs/RefreshTokenEntity.php | <?php
namespace Coderello\SocialGrant\Tests\Stubs;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\RefreshTokenTrait;
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
class RefreshTokenEntity implements RefreshTokenEntityInterface
{
use RefreshTokenTra... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/Stubs/ClientEntity.php | tests/Stubs/ClientEntity.php | <?php
namespace Coderello\SocialGrant\Tests\Stubs;
use League\OAuth2\Server\Entities\Traits\ClientTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\ClientEntityInterface;
class ClientEntity implements ClientEntityInterface
{
use EntityTrait, ClientTrait;
public f... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/Stubs/User.php | tests/Stubs/User.php | <?php
namespace Coderello\SocialGrant\Tests\Stubs;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Auth\Authenticatable as AuthenticatableTrait;
class User implements Authenticatable
{
use AuthenticatableTrait;
protected $rememberToken = 'remember_token';
protected $password = 'password';... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/Stubs/ResponseType.php | tests/Stubs/ResponseType.php | <?php
namespace Coderello\SocialGrant\Tests\Stubs;
use Laminas\Diactoros\Response;
use Psr\Http\Message\ResponseInterface;
use League\OAuth2\Server\ResponseTypes\AbstractResponseType;
class ResponseType extends AbstractResponseType
{
public function getAccessToken()
{
return $this->accessToken;
}... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
coderello/laravel-passport-social-grant | https://github.com/coderello/laravel-passport-social-grant/blob/a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc/tests/Stubs/ScopeEntity.php | tests/Stubs/ScopeEntity.php | <?php
namespace Coderello\SocialGrant\Tests\Stubs;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
class ScopeEntity implements ScopeEntityInterface
{
use EntityTrait;
public function jsonSerialize()
{
return $this->getIdentifier();
... | php | MIT | a6e3cc6f0f899b23a9f85a4d39be292e6de6b7cc | 2026-01-05T03:21:49.449830Z | false |
mtownsend5512/remove-bg | https://github.com/mtownsend5512/remove-bg/blob/ed3adad276d9262e3869dcdfee716919791a9e25/src/helpers.php | src/helpers.php | <?php
if (!function_exists('removebg')) {
/**
* Create a new instance of the Mtownsend\RemoveBg\RemoveBg class
*
* @return Mtownsend\RemoveBg\RemoveBg
*/
function removebg($data = [])
{
if (!isset($data['api_key'])) {
$data['api_key'] = config('removebg.api_key');
... | php | MIT | ed3adad276d9262e3869dcdfee716919791a9e25 | 2026-01-05T03:22:02.648084Z | false |
mtownsend5512/remove-bg | https://github.com/mtownsend5512/remove-bg/blob/ed3adad276d9262e3869dcdfee716919791a9e25/src/RemoveBg.php | src/RemoveBg.php | <?php
namespace Mtownsend\RemoveBg;
use Exception;
use GuzzleHttp\Client as Guzzle;
/**
* @author Mark Townsend
*
*/
class RemoveBg
{
/**
* Your remove.bg api key
*
* @var string
*/
public $apiKey;
/**
* Additional request parameters to be included in the body of the api call... | php | MIT | ed3adad276d9262e3869dcdfee716919791a9e25 | 2026-01-05T03:22:02.648084Z | false |
mtownsend5512/remove-bg | https://github.com/mtownsend5512/remove-bg/blob/ed3adad276d9262e3869dcdfee716919791a9e25/src/Facades/RemoveBg.php | src/Facades/RemoveBg.php | <?php
namespace Mtownsend\RemoveBg\Facades;
use Illuminate\Support\Facades\Facade;
class RemoveBg extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'removebg';
}
}
| php | MIT | ed3adad276d9262e3869dcdfee716919791a9e25 | 2026-01-05T03:22:02.648084Z | false |
mtownsend5512/remove-bg | https://github.com/mtownsend5512/remove-bg/blob/ed3adad276d9262e3869dcdfee716919791a9e25/src/config/removebg.php | src/config/removebg.php | <?php
return [
/*
* Your Remove.bg api key
*/
'api_key' => '',
]; | php | MIT | ed3adad276d9262e3869dcdfee716919791a9e25 | 2026-01-05T03:22:02.648084Z | false |
mtownsend5512/remove-bg | https://github.com/mtownsend5512/remove-bg/blob/ed3adad276d9262e3869dcdfee716919791a9e25/src/Providers/RemoveBgServiceProvider.php | src/Providers/RemoveBgServiceProvider.php | <?php
namespace Mtownsend\RemoveBg\Providers;
use Illuminate\Support\ServiceProvider;
use Mtownsend\RemoveBg\RemoveBg;
class RemoveBgServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->publishe... | php | MIT | ed3adad276d9262e3869dcdfee716919791a9e25 | 2026-01-05T03:22:02.648084Z | false |
mtownsend5512/remove-bg | https://github.com/mtownsend5512/remove-bg/blob/ed3adad276d9262e3869dcdfee716919791a9e25/tests/RemoveBgTest.php | tests/RemoveBgTest.php | <?php
use PHPUnit\Framework\TestCase;
class RemoveBgTest extends TestCase
{
//
}
| php | MIT | ed3adad276d9262e3869dcdfee716919791a9e25 | 2026-01-05T03:22:02.648084Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/header.inc.php | header.inc.php | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>CS4G Network Simulator</title>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('[type="button"]').button();
$('[type="submit"]').b... | php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/solns.ajax.php | solns.ajax.php | <?php
require_once 'login.inc.php';
if (!LOGGEDIN || !isset($_GET['method']) || !isset($_GET['level'])) exit('[]');
$l = (int)$_GET['level'];
if ($l < 0) exit('lol oops');
if ($_GET['method'] == "load") {
$q = $db->query("SELECT * FROM solns WHERE level_id = $l AND user_id = ".$_SESSION['cs4g_user_id']);
$row = $q... | php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/sample.config.inc.php | sample.config.inc.php | <?php
// database file for user accounts and level info. should be writable by the webserver.
define('DB_FILE', '/var/www-data/netsim.sqlite3');
?>
| php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/footer.inc.php | footer.inc.php |
</div>
</body>
</html>
| php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/register.php | register.php | <?php
require_once 'login.inc.php';
if (isset($_POST['reg_username']) && isset($_POST['reg_password'])) {
$userq->bindValue(':name', $_POST['reg_username']);
$res = $userq->execute();
if ($res === false || $res->fetchArray() === false) {
$q = $db->prepare("INSERT INTO user (name, password) VALUES (:name, :passw... | php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/phaser.inc.php | phaser.inc.php | var DEFAULT_GAMESPEED = 3;
var levelid = <?=$leveldata['id']?>;
var level = <?php include 'levels/'.$leveldata['filename'].'.json'; ?>;
var devices = {};
var playerPackets = [];
var packetFields = [
{layer:"network", fields:[
"srcip", "dstip"
]},
{layer:"transport", fields:[
"proto", "ttl"
]},
{layer:... | php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/login.inc.php | login.inc.php | <?php
require_once 'config.inc.php';
if (!file_exists(DB_FILE)) {
include "header.inc.php";
echo "<h2>Netsim installation</h3>\n";
echo "<p>No database file was found at ".DB_FILE.", so attempting to create it now...</p>\n";
try {
$db = new SQLite3(DB_FILE);
$db->exec("CREATE TABLE user (id integer PRIMARY K... | php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/listing.inc.php | listing.inc.php | <?php include 'header.inc.php'; ?>
<div style="float:right;"><input type="button" value="Log out" onclick="location.href='./?logout'"></div>
<p>Welcome to Netsim! If this is your first time playing, we recommend you start from the first level below, and work your way forward.<p>
<p>Please note that this project is ... | php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
errorinn/netsim | https://github.com/errorinn/netsim/blob/65bd2415622f60d083e00d4e6fd562edd102ab88/index.php | index.php | <?php
require_once 'login.inc.php';
if (LOGGEDIN && !isset($_GET['level'])) {
include 'listing.inc.php';
exit();
} else if (LOGGEDIN) {
$l = (int)$_GET['level'];
$q = $db->query("SELECT * FROM level WHERE id = ".$l);
$leveldata = $q->fetchArray();
if (!$leveldata) {
include 'header.inc.php';
?>
<div style... | php | MIT | 65bd2415622f60d083e00d4e6fd562edd102ab88 | 2026-01-05T03:22:17.404810Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/CSRFCheckerMiddleware.php | src/PSR7Csrf/CSRFCheckerMiddleware.php | <?php
declare(strict_types=1);
namespace PSR7Csrf;
use BadMethodCallException;
use InvalidArgumentException;
use Lcobucci\JWT\Parser;
use Lcobucci\JWT\Signer;
use Lcobucci\JWT\ValidationData;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterf... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/Factory.php | src/PSR7Csrf/Factory.php | <?php
declare(strict_types=1);
namespace PSR7Csrf;
use Lcobucci\JWT\Parser;
use Lcobucci\JWT\Signer\Hmac\Sha256;
use Psr\Http\Message\ResponseInterface;
use PSR7Csrf\HttpMethod\IsSafeHttpRequest;
use PSR7Csrf\RequestParameter\ExtractCSRFParameter;
use PSR7Csrf\Session\ExtractUniqueKeyFromSession;
use PSR7Sessions\St... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/TokenGeneratorInterface.php | src/PSR7Csrf/TokenGeneratorInterface.php | <?php
declare(strict_types=1);
namespace PSR7Csrf;
use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Token;
use Psr\Http\Message\ServerRequestInterface;
interface TokenGeneratorInterface
{
public function __invoke(ServerRequestInterface $request) : Token;
}
| php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/TokenGenerator.php | src/PSR7Csrf/TokenGenerator.php | <?php
declare(strict_types=1);
namespace PSR7Csrf;
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Token;
use Psr\Http\Message\ServerRequestInterface;
use PSR7Csrf\Exception\InvalidExpirationTimeException;
use PSR7Csrf\Exception\SessionAttributeNotFoundException;
use PSR7Csrf\Session\ExtractUniqu... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/RequestParameter/ExtractCSRFParameter.php | src/PSR7Csrf/RequestParameter/ExtractCSRFParameter.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\RequestParameter;
use Psr\Http\Message\ServerRequestInterface;
use PSR7Csrf\Exception\InvalidRequestParameterNameException;
final class ExtractCSRFParameter implements ExtractCSRFParameterInterface
{
/**
* @var string
*/
private $csrfDataKey;
... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/RequestParameter/ExtractCSRFParameterInterface.php | src/PSR7Csrf/RequestParameter/ExtractCSRFParameterInterface.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\RequestParameter;
use Psr\Http\Message\ServerRequestInterface;
interface ExtractCSRFParameterInterface
{
public function __invoke(ServerRequestInterface $request) : string;
}
| php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/Exception/SessionAttributeNotFoundException.php | src/PSR7Csrf/Exception/SessionAttributeNotFoundException.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\Exception;
use Psr\Http\Message\ServerRequestInterface;
use UnexpectedValueException;
class SessionAttributeNotFoundException extends UnexpectedValueException implements ExceptionInterface
{
public static function fromAttributeNameAndRequest(string $attributeNam... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/Exception/InvalidExpirationTimeException.php | src/PSR7Csrf/Exception/InvalidExpirationTimeException.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\Exception;
use InvalidArgumentException;
class InvalidExpirationTimeException extends InvalidArgumentException implements ExceptionInterface
{
public static function fromInvalidExpirationTime(int $expirationTime) : self
{
return new self(sprintf('The... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/Exception/ExceptionInterface.php | src/PSR7Csrf/Exception/ExceptionInterface.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\Exception;
use Throwable;
interface ExceptionInterface extends Throwable
{
}
| php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/Exception/InvalidRequestParameterNameException.php | src/PSR7Csrf/Exception/InvalidRequestParameterNameException.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\Exception;
use InvalidArgumentException;
class InvalidRequestParameterNameException extends InvalidArgumentException implements ExceptionInterface
{
public static function fromEmptyRequestParameterName() : self
{
return new self('The given request pa... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/HttpMethod/IsSafeHttpRequest.php | src/PSR7Csrf/HttpMethod/IsSafeHttpRequest.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\HttpMethod;
use Lcobucci\JWT\Signer;
use Psr\Http\Message\RequestInterface;
final class IsSafeHttpRequest implements IsSafeHttpRequestInterface
{
const STRICT_CHECKING = true;
/**
* @var \string[]
*/
private $safeMethods;
public function ... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/HttpMethod/IsSafeHttpRequestInterface.php | src/PSR7Csrf/HttpMethod/IsSafeHttpRequestInterface.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\HttpMethod;
use Lcobucci\JWT\Signer;
use Psr\Http\Message\RequestInterface;
interface IsSafeHttpRequestInterface
{
public function __invoke(RequestInterface $request) : bool;
}
| php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/Session/ExtractUniqueKeyFromSession.php | src/PSR7Csrf/Session/ExtractUniqueKeyFromSession.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\Session;
use PSR7Sessions\Storageless\Session\SessionInterface;
final class ExtractUniqueKeyFromSession implements ExtractUniqueKeyFromSessionInterface
{
const ENTROPY = 32;
/**
* @var string
*/
private $uniqueIdKey;
public function __con... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/src/PSR7Csrf/Session/ExtractUniqueKeyFromSessionInterface.php | src/PSR7Csrf/Session/ExtractUniqueKeyFromSessionInterface.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\Session;
use PSR7Sessions\Storageless\Session\SessionInterface;
interface ExtractUniqueKeyFromSessionInterface
{
public function __invoke(SessionInterface $session) : string;
}
| php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/FactoryTest.php | test/PSR7CsrfTest/FactoryTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use PSR7Csrf\CSRFCheckerMiddleware;
use PSR7Csrf\Factory;
use PSR7Csrf\TokenGeneratorInterface;
/**... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/CSRFCheckerMiddlewareTest.php | test/PSR7CsrfTest/CSRFCheckerMiddlewareTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest;
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Parser;
use Lcobucci\JWT\Signer;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use PSR7Csrf\CSRFChecker... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/TokenGeneratorTest.php | test/PSR7CsrfTest/TokenGeneratorTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest;
use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Signer\Hmac\Sha256;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface;
use PSR7Csrf\Exception\InvalidExpirationTimeException;
use PSR7Csrf\Exception\SessionAttributeNotFoundException;
use PSR7Cs... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/RequestParameter/ExtractCSRFParameterTest.php | test/PSR7CsrfTest/RequestParameter/ExtractCSRFParameterTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest\RequestParameter;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface;
use PSR7Csrf\Exception\InvalidRequestParameterNameException;
use PSR7Csrf\RequestParameter\ExtractCSRFParameter;
/**
* @covers \PSR7Csrf\RequestParameter\ExtractCSRFP... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/Exception/InvalidExpirationTimeExceptionTest.php | test/PSR7CsrfTest/Exception/InvalidExpirationTimeExceptionTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest\Exception;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use PSR7Csrf\Exception\ExceptionInterface;
use PSR7Csrf\Exception\InvalidExpirationTimeException;
/**
* @covers \PSR7Csrf\Exception\InvalidExpirationTimeException
*/
final class InvalidEx... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/Exception/InvalidRequestParameterNameExceptionTest.php | test/PSR7CsrfTest/Exception/InvalidRequestParameterNameExceptionTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest\Exception;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use PSR7Csrf\Exception\ExceptionInterface;
use PSR7Csrf\Exception\InvalidRequestParameterNameException;
/**
* @covers \PSR7Csrf\Exception\InvalidRequestParameterNameException
*/
final cla... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/Exception/SessionAttributeNotFoundExceptionTest.php | test/PSR7CsrfTest/Exception/SessionAttributeNotFoundExceptionTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest\Exception;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface;
use PSR7Csrf\Exception\ExceptionInterface;
use PSR7Csrf\Exception\SessionAttributeNotFoundException;
use UnexpectedValueException;
/**
* @covers \PSR7Csrf\Exception\SessionA... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/HttpMethod/IsSafeHttpRequestTest.php | test/PSR7CsrfTest/HttpMethod/IsSafeHttpRequestTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest\HttpMethod;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\RequestInterface;
use PSR7Csrf\HttpMethod\IsSafeHttpRequest;
/**
* @covers \PSR7Csrf\HttpMethod\IsSafeHttpRequest
*/
final class IsSafeHttpRequestTest extends TestCase
{
/**
* @dataProvi... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/test/PSR7CsrfTest/Session/ExtractUniqueKeyFromSessionTest.php | test/PSR7CsrfTest/Session/ExtractUniqueKeyFromSessionTest.php | <?php
declare(strict_types=1);
namespace PSR7CsrfTest\HttpMethod;
use PHPUnit\Framework\TestCase;
use PSR7Csrf\Session\ExtractUniqueKeyFromSession;
use PSR7Sessions\Storageless\Session\SessionInterface;
/**
* @covers \PSR7Csrf\Session\ExtractUniqueKeyFromSession
*/
final class ExtractUniqueKeyFromSessionTest exte... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
Ocramius/PSR7Csrf | https://github.com/Ocramius/PSR7Csrf/blob/130e2aeb73509996037d15d6d829f653acab7ec3/examples/index.php | examples/index.php | <?php
declare(strict_types=1);
namespace PSR7Csrf\Example;
use Dflydev\FigCookies\SetCookie;
use Lcobucci\Clock\SystemClock;
use Lcobucci\JWT\Parser;
use Lcobucci\JWT\Signer\Hmac\Sha256;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use ... | php | MIT | 130e2aeb73509996037d15d6d829f653acab7ec3 | 2026-01-05T03:22:29.235405Z | false |
orobogenius/sansdaemon | https://github.com/orobogenius/sansdaemon/blob/8aaa2f525025a6fb384bce7b00de8ce41a5641e5/src/SansDaemonServiceProvider.php | src/SansDaemonServiceProvider.php | <?php
namespace Queueworker\SansDaemon;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Queue\Console\WorkCommand as BaseWorkCommand;
use Illuminate\Queue\QueueServiceProvider;
use Queueworker\SansDaemon\Console\WorkCommand;
class SansDaemonServiceProv... | php | MIT | 8aaa2f525025a6fb384bce7b00de8ce41a5641e5 | 2026-01-05T03:22:40.710690Z | false |
orobogenius/sansdaemon | https://github.com/orobogenius/sansdaemon/blob/8aaa2f525025a6fb384bce7b00de8ce41a5641e5/src/SansDaemonWorker.php | src/SansDaemonWorker.php | <?php
namespace Queueworker\SansDaemon;
use Illuminate\Queue\Worker;
use Illuminate\Queue\WorkerOptions;
class SansDaemonWorker extends Worker
{
/**
* Get the next job from the queue connection.
*
* @param \Illuminate\Contracts\Queue\Queue $connection
* @param string $queue
* @return... | php | MIT | 8aaa2f525025a6fb384bce7b00de8ce41a5641e5 | 2026-01-05T03:22:40.710690Z | false |
orobogenius/sansdaemon | https://github.com/orobogenius/sansdaemon/blob/8aaa2f525025a6fb384bce7b00de8ce41a5641e5/src/Traits/SansDaemonWorkerTrait.php | src/Traits/SansDaemonWorkerTrait.php | <?php
namespace Queueworker\SansDaemon\Traits;
trait SansDaemonWorkerTrait
{
/**
* Number of jobs processed.
*
* @var int
*/
protected $jobsProcessed = 0;
/**
* Process the queue sans-daemon mode.
*
* @param string $connection
* @param string $queue
* @ret... | php | MIT | 8aaa2f525025a6fb384bce7b00de8ce41a5641e5 | 2026-01-05T03:22:40.710690Z | false |
orobogenius/sansdaemon | https://github.com/orobogenius/sansdaemon/blob/8aaa2f525025a6fb384bce7b00de8ce41a5641e5/src/Console/WorkCommand.php | src/Console/WorkCommand.php | <?php
namespace Queueworker\SansDaemon\Console;
use Illuminate\Contracts\Cache\Repository as Cache;
use Illuminate\Queue\Console\WorkCommand as BaseWorkCommand;
use Illuminate\Queue\Worker;
use Queueworker\SansDaemon\Traits\SansDaemonWorkerTrait;
class WorkCommand extends BaseWorkCommand
{
use SansDaemonWorkerTr... | php | MIT | 8aaa2f525025a6fb384bce7b00de8ce41a5641e5 | 2026-01-05T03:22:40.710690Z | false |
orobogenius/sansdaemon | https://github.com/orobogenius/sansdaemon/blob/8aaa2f525025a6fb384bce7b00de8ce41a5641e5/tests/SansDaemonTest.php | tests/SansDaemonTest.php | <?php
use Illuminate\Queue\WorkerOptions;
use Orchestra\Testbench\TestCase;
class SansDaemonTest extends TestCase
{
protected $artisan;
protected $worker;
public function setUp(): void
{
parent::setUp();
$this->artisan = $this->app->make('Illuminate\Contracts\Console\Kernel');
... | php | MIT | 8aaa2f525025a6fb384bce7b00de8ce41a5641e5 | 2026-01-05T03:22:40.710690Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.