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
MythicalLTD/MythicalDash
https://github.com/MythicalLTD/MythicalDash/blob/7d487588714242533918f9600e177b364bc594ac/backend/app/Cli/Commands/Colors.php
backend/app/Cli/Commands/Colors.php
<?php /* * This file is part of MythicalDash. * * MIT License * * Copyright (c) 2020-2025 MythicalSystems * Copyright (c) 2020-2025 Cassian Gherman (NaysKutzu) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
php
MIT
7d487588714242533918f9600e177b364bc594ac
2026-01-05T02:54:30.341731Z
false
MythicalLTD/MythicalDash
https://github.com/MythicalLTD/MythicalDash/blob/7d487588714242533918f9600e177b364bc594ac/backend/app/Cli/Commands/FixSettings.php
backend/app/Cli/Commands/FixSettings.php
<?php /* * This file is part of MythicalDash. * * MIT License * * Copyright (c) 2020-2025 MythicalSystems * Copyright (c) 2020-2025 Cassian Gherman (NaysKutzu) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
php
MIT
7d487588714242533918f9600e177b364bc594ac
2026-01-05T02:54:30.341731Z
false
MythicalLTD/MythicalDash
https://github.com/MythicalLTD/MythicalDash/blob/7d487588714242533918f9600e177b364bc594ac/backend/app/Cli/Commands/KeyRegen.php
backend/app/Cli/Commands/KeyRegen.php
<?php /* * This file is part of MythicalDash. * * MIT License * * Copyright (c) 2020-2025 MythicalSystems * Copyright (c) 2020-2025 Cassian Gherman (NaysKutzu) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
php
MIT
7d487588714242533918f9600e177b364bc594ac
2026-01-05T02:54:30.341731Z
false
MythicalLTD/MythicalDash
https://github.com/MythicalLTD/MythicalDash/blob/7d487588714242533918f9600e177b364bc594ac/backend/app/CloudFlare/CloudFlareRealIP.php
backend/app/CloudFlare/CloudFlareRealIP.php
<?php /* * This file is part of MythicalDash. * * MIT License * * Copyright (c) 2020-2025 MythicalSystems * Copyright (c) 2020-2025 Cassian Gherman (NaysKutzu) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
php
MIT
7d487588714242533918f9600e177b364bc594ac
2026-01-05T02:54:30.341731Z
false
MythicalLTD/MythicalDash
https://github.com/MythicalLTD/MythicalDash/blob/7d487588714242533918f9600e177b364bc594ac/backend/tests/HelloWorldTest.php
backend/tests/HelloWorldTest.php
<?php /* * This file is part of MythicalDash. * * MIT License * * Copyright (c) 2020-2025 MythicalSystems * Copyright (c) 2020-2025 Cassian Gherman (NaysKutzu) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
php
MIT
7d487588714242533918f9600e177b364bc594ac
2026-01-05T02:54:30.341731Z
false
MythicalLTD/MythicalDash
https://github.com/MythicalLTD/MythicalDash/blob/7d487588714242533918f9600e177b364bc594ac/backend/public/index.php
backend/public/index.php
<?php /* * This file is part of MythicalDash. * * MIT License * * Copyright (c) 2020-2025 MythicalSystems * Copyright (c) 2020-2025 Cassian Gherman (NaysKutzu) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
php
MIT
7d487588714242533918f9600e177b364bc594ac
2026-01-05T02:54:30.341731Z
false
MythicalLTD/MythicalDash
https://github.com/MythicalLTD/MythicalDash/blob/7d487588714242533918f9600e177b364bc594ac/backend/boot/kernel.php
backend/boot/kernel.php
<?php /* * This file is part of MythicalDash. * * MIT License * * Copyright (c) 2020-2025 MythicalSystems * Copyright (c) 2020-2025 Cassian Gherman (NaysKutzu) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
php
MIT
7d487588714242533918f9600e177b364bc594ac
2026-01-05T02:54:30.341731Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Keyable.php
src/Keyable.php
<?php namespace Givebutter\LaravelKeyable; use Givebutter\LaravelKeyable\Models\ApiKey; use Illuminate\Database\Eloquent\Model; trait Keyable { public function apiKeys() { return $this->morphMany(ApiKey::class, 'keyable'); } public function createApiKey(array $attributes = []): NewApiKey ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/NewApiKey.php
src/NewApiKey.php
<?php namespace Givebutter\LaravelKeyable; use Givebutter\LaravelKeyable\Models\ApiKey; class NewApiKey { public function __construct( public ApiKey $apiKey, public string $plainTextApiKey, ) { // } }
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/KeyableServiceProvider.php
src/KeyableServiceProvider.php
<?php namespace Givebutter\LaravelKeyable; use Illuminate\Routing\Route; use Illuminate\Routing\Router; use Illuminate\Support\ServiceProvider; use Illuminate\Routing\PendingResourceRegistration; use Givebutter\LaravelKeyable\Console\Commands\DeleteApiKey; use Givebutter\LaravelKeyable\Console\Commands\GenerateApiKey...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Http/Middleware/AuthenticateApiKey.php
src/Http/Middleware/AuthenticateApiKey.php
<?php namespace Givebutter\LaravelKeyable\Http\Middleware; use Closure; use Givebutter\LaravelKeyable\Models\ApiKey; use Givebutter\LaravelKeyable\Events\KeyableAuthenticated; class AuthenticateApiKey { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param Cl...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Http/Middleware/EnforceKeyableScope.php
src/Http/Middleware/EnforceKeyableScope.php
<?php namespace Givebutter\LaravelKeyable\Http\Middleware; use Closure; use Illuminate\Support\Arr; use Illuminate\Support\Reflector; use Illuminate\Contracts\Routing\UrlRoutable; use Illuminate\Database\Eloquent\ModelNotFoundException; class EnforceKeyableScope { /** * Handle an incoming request. * ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Auth/Keyable.php
src/Auth/Keyable.php
<?php namespace Givebutter\LaravelKeyable\Auth; class Keyable { protected $policies; public function registerKeyablePolicies($policies) { return $this->policies = $policies; } public function getKeyablePolicies() { return $this->policies; } }
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Auth/AuthorizesKeyableRequests.php
src/Auth/AuthorizesKeyableRequests.php
<?php namespace Givebutter\LaravelKeyable\Auth; use Givebutter\LaravelKeyable\Facades\Keyable; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Auth\Access\Response; trait AuthorizesKeyableRequests { /** * Authorize a request. * * @return Response or throw exception */ pu...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Facades/Keyable.php
src/Facades/Keyable.php
<?php namespace Givebutter\LaravelKeyable\Facades; use Givebutter\LaravelKeyable\Auth\Keyable as KeyableAuth; use Illuminate\Support\Facades\Facade; class Keyable extends Facade { /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAcce...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Console/Commands/HashApiKeys.php
src/Console/Commands/HashApiKeys.php
<?php namespace Givebutter\LaravelKeyable\Console\Commands; use Givebutter\LaravelKeyable\Models\ApiKey; use Illuminate\Console\Command; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Facades\DB; class HashApiKeys extends Command { /** * The name and signature of the console command. ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Console/Commands/GenerateApiKey.php
src/Console/Commands/GenerateApiKey.php
<?php namespace Givebutter\LaravelKeyable\Console\Commands; use Givebutter\LaravelKeyable\Models\ApiKey; use Illuminate\Console\Command; class GenerateApiKey extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'api-key:generate ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Console/Commands/DeleteApiKey.php
src/Console/Commands/DeleteApiKey.php
<?php namespace Givebutter\LaravelKeyable\Console\Commands; use Givebutter\LaravelKeyable\Models\ApiKey; use Illuminate\Console\Command; class DeleteApiKey extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'api-key:delete {--i...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Models/ApiKey.php
src/Models/ApiKey.php
<?php namespace Givebutter\LaravelKeyable\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Str; class ApiKey extends Model { use SoftDeletes; public ?string $plainTextApiKey = null; protected $...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/src/Events/KeyableAuthenticated.php
src/Events/KeyableAuthenticated.php
<?php namespace Givebutter\LaravelKeyable\Events; use Givebutter\LaravelKeyable\Models\ApiKey; class KeyableAuthenticated { public function __construct(public ApiKey $apiKey) { } }
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/TestCase.php
tests/TestCase.php
<?php namespace Givebutter\Tests; use Illuminate\Support\Str; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Eloquent\Factories\Factory; use Givebutter\LaravelKeyable\KeyableServiceProvider; use Orchestra\Testbench\TestCase as OrchestraTestCase; class TestCase extends OrchestraTestCase { publi...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Support/Account.php
tests/Support/Account.php
<?php namespace Givebutter\Tests\Support; use Givebutter\LaravelKeyable\Keyable; use Illuminate\Database\Eloquent\Model; class Account extends Model { use Keyable; public function posts() { return $this->hasMany(Post::class); } }
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Support/PostsController.php
tests/Support/PostsController.php
<?php namespace Givebutter\Tests\Support; use Illuminate\Http\Request; use Givebutter\Tests\Support\Post; class PostsController { public function show(Request $request, Post $post) { return response('All good', 200); } }
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Support/CommentsController.php
tests/Support/CommentsController.php
<?php namespace Givebutter\Tests\Support; use Illuminate\Http\Request; use Givebutter\Tests\Support\Post; class CommentsController { public function show(Request $request, Post $post, Comment $comment) { return response('All good', 200); } }
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Support/Comment.php
tests/Support/Comment.php
<?php namespace Givebutter\Tests\Support; use Givebutter\Tests\Support\Post; use Illuminate\Database\Eloquent\Model; class Comment extends Model { public function post() { return $this->belongsTo(Post::class); } }
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Support/Post.php
tests/Support/Post.php
<?php namespace Givebutter\Tests\Support; use Givebutter\Tests\Support\Account; use Givebutter\Tests\Support\Comment; use Illuminate\Database\Eloquent\Model; class Post extends Model { public function account() { return $this->belongsTo(Account::class); } public function comments() { ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Support/Migrations/create_test_tables.php
tests/Support/Migrations/create_test_tables.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTestTables extends Migration { public function up() { Schema::create('accounts', function (Blueprint $table) { $table->increments('id'); ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Feature/AuthenticateApiKey.php
tests/Feature/AuthenticateApiKey.php
<?php namespace Givebutter\Tests\Feature; use Givebutter\LaravelKeyable\Exceptions\ForbidenRequestParamException; use Givebutter\Tests\TestCase; use Givebutter\Tests\Support\Account; use Illuminate\Support\Facades\Route; class AuthenticateApiKey extends TestCase { /** @test */ public function request_with_ap...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Feature/EnforceKeyableScope.php
tests/Feature/EnforceKeyableScope.php
<?php namespace Givebutter\Tests\Feature; use Illuminate\Http\Request; use Givebutter\Tests\TestCase; use Givebutter\Tests\Support\Post; use Givebutter\Tests\Support\Account; use Illuminate\Support\Facades\Route; use Givebutter\Tests\Support\PostsController; use Givebutter\Tests\Support\CommentsController; class Enf...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Feature/CompatibilityMode.php
tests/Feature/CompatibilityMode.php
<?php namespace Givebutter\Tests\Feature; use Givebutter\LaravelKeyable\Models\ApiKey; use Givebutter\Tests\Support\Account; use Givebutter\Tests\Support\Post; use Givebutter\Tests\TestCase; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Illuminate\Support\Facades\Config; use Illuminate\Supp...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Unit/Console/Commands/HashApiKeys.php
tests/Unit/Console/Commands/HashApiKeys.php
<?php namespace Givebutter\Tests\Unit\Console\Commands; use Givebutter\LaravelKeyable\Models\ApiKey; use Givebutter\Tests\Support\Account; use Givebutter\Tests\TestCase; use Illuminate\Database\Eloquent\Model; class HashApiKeys extends TestCase { /** @test */ public function hash_api_keys(): void { ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Unit/Console/Commands/GenerateApiKey.php
tests/Unit/Console/Commands/GenerateApiKey.php
<?php namespace Givebutter\Tests\Unit\Console\Commands; use Givebutter\Tests\Support\Account; use Givebutter\Tests\TestCase; use Illuminate\Support\Facades\Artisan; class GenerateApiKey extends TestCase { /** @test */ public function generate_api_key(): void { // Arrange $account = Accoun...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Unit/Console/Commands/DeleteApiKey.php
tests/Unit/Console/Commands/DeleteApiKey.php
<?php namespace Givebutter\Tests\Unit\Console\Commands; use Givebutter\Tests\Support\Account; use Givebutter\Tests\TestCase; class DeleteApiKey extends TestCase { /** @test */ public function delete_api_key(): void { $account = Account::create(); $apiKey = $account->apiKeys()->create(); ...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/tests/Unit/Models/ApiKeyTest.php
tests/Unit/Models/ApiKeyTest.php
<?php namespace Givebutter\Tests\Unit\Models; use Givebutter\LaravelKeyable\Models\ApiKey; use Givebutter\Tests\Support\Account; use Givebutter\Tests\TestCase; class ApiKeyTest extends TestCase { /** @test */ public function create_new_api_key(): void { $account = Account::create(); $api...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/config/keyable.php
config/keyable.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Mode |-------------------------------------------------------------------------- | | Supported modes: header, bearer, parameter | | When using header or parameter, set a key v...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
givebutter/laravel-keyable
https://github.com/givebutter/laravel-keyable/blob/a4e1d6fed5b02589877f12251b69a3c3b7ba664f/database/migrations/2019_04_09_225232_create_api_keys_table.php
database/migrations/2019_04_09_225232_create_api_keys_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateApiKeysTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('api_keys', func...
php
MIT
a4e1d6fed5b02589877f12251b69a3c3b7ba664f
2026-01-05T02:57:27.409602Z
false
spravil/PHP-Minecraft-Server-Status-Query
https://github.com/spravil/PHP-Minecraft-Server-Status-Query/blob/bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0/src/MinecraftServerStatus.php
src/MinecraftServerStatus.php
<?php namespace MinecraftServerStatus; use MinecraftServerStatus\Packets\HandshakePacket; use MinecraftServerStatus\Packets\PingPacket; class MinecraftServerStatus { /** * Queries the server and returns the servers information * * @param string $host * @param number $port ...
php
MIT
bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0
2026-01-05T02:57:40.569719Z
false
spravil/PHP-Minecraft-Server-Status-Query
https://github.com/spravil/PHP-Minecraft-Server-Status-Query/blob/bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0/src/Packets/Packet.php
src/Packets/Packet.php
<?php namespace MinecraftServerStatus\Packets; class Packet { protected $packetID; protected $data; public function __construct ($packetID) { $this->packetID = $packetID; $this->data = pack('C', $packetID); } public function addSignedChar ($data) { $this->data .= pack('c...
php
MIT
bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0
2026-01-05T02:57:40.569719Z
false
spravil/PHP-Minecraft-Server-Status-Query
https://github.com/spravil/PHP-Minecraft-Server-Status-Query/blob/bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0/src/Packets/HandshakePacket.php
src/Packets/HandshakePacket.php
<?php namespace MinecraftServerStatus\Packets; class HandshakePacket extends Packet { public function __construct ($host, $port, $protocol, $nextState) { parent::__construct(0); $this->addUnsignedChar($protocol); $this->addString($host); $this->addUnsignedShort($port); $thi...
php
MIT
bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0
2026-01-05T02:57:40.569719Z
false
spravil/PHP-Minecraft-Server-Status-Query
https://github.com/spravil/PHP-Minecraft-Server-Status-Query/blob/bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0/src/Packets/PingPacket.php
src/Packets/PingPacket.php
<?php namespace MinecraftServerStatus\Packets; class PingPacket extends Packet { public function __construct () { parent::__construct(0); } }
php
MIT
bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0
2026-01-05T02:57:40.569719Z
false
spravil/PHP-Minecraft-Server-Status-Query
https://github.com/spravil/PHP-Minecraft-Server-Status-Query/blob/bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0/example/index.php
example/index.php
<?php use MinecraftServerStatus\MinecraftServerStatus; require '../vendor/autoload.php'; $response = MinecraftServerStatus::query('lostforce.com', 25565); if (! $response) { echo "The Server is offline!"; } else { echo "<img width=\"64\" height=\"64\" src=\"" . $response['favicon'] . "\" /> <br> The Server...
php
MIT
bc6a98c6cdb32877cf67d3d9b88e05f316f1d9d0
2026-01-05T02:57:40.569719Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/generate_docs.php
generate_docs.php
<?php /** @noinspection AutoloadingIssuesInspection */ /** @noinspection PhpUnhandledExceptionInspection */ require __DIR__.'/vendor/autoload.php'; $factory = \phpDocumentor\Reflection\DocBlockFactory::createInstance(); $reflection = new ReflectionClass(\Str\Str::make('')); // ------------------------------------- $...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/score.php
benchmarks/score.php
<?php $input = ''; while (false !== ($line = fgets(STDIN))) { $input .= $line . "\r"; } if ($input === '') { die("No input given\r\n"); } $matches = []; $findStr = preg_match_all('/\|\s+bench\_.*(Str[a-z]*)\s+\|\s+([\d\.\,]+)([\S]+)\s+\|/', $input, $matches); $spendByLib = []; foreach (array_shift($matches) as $ke...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/internal/IntCastingBench.php
benchmarks/internal/IntCastingBench.php
<?php class IntCastingBench { public function bench_int() { $s = "4dfgsdgf4"; return (int)$s; } public function bench_add_plus() { $s = "4dfgsdgf4"; return $s+0; } public function bench_intval() { $s = "4dfgsdgf4"; return intval($s); ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/internal/ComparingArraySetBench.php
benchmarks/internal/ComparingArraySetBench.php
<?php class ComparingArraySetBench { public function bench_access() { $s = []; $s[] = 1; $s[] = 1; } public function bench_unshift() { $s = []; array_unshift($s, 1); array_unshift($s, 1); } public function bench_push() { $s = [];...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/internal/ComparingArrayBench.php
benchmarks/internal/ComparingArrayBench.php
<?php class ComparingArrayBench { public function bench_empty() { $s = []; return empty($s); } public function bench_literal_comparison() { $s = []; return [] !== $s; } public function bench_null_comparison() { $s = []; return null !== $...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/internal/ComparingLoopsBench.php
benchmarks/internal/ComparingLoopsBench.php
<?php class ComparingLoopsBench { private $arr = []; private $arr1 = []; private $arr2 = []; private $count = 0; public function __construct() { for ($i=0;$i<1000;$i++) { $this->arr1[] = \Ramsey\Uuid\Uuid::uuid4(); } $this->arr = $this->arr1; $this->arr2 = $this->arr1; ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/internal/ComparingStringBench.php
benchmarks/internal/ComparingStringBench.php
<?php class ComparingStringBench { public function bench_empty() { $s = ''; return empty($s); } public function bench_literal_comparison() { $s = ''; return '' !== $s; } public function bench_null_comparison() { $s = ''; return null !== ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/LinesBench.php
benchmarks/lib/LinesBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class LinesBench { public function bench_lines_Str() { (new Str('Hello world'))->lines(); } public function bench_lines_Stringy() { (new Stringy('Hello world'))->lines(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ShuffleAndReverseBench.php
benchmarks/lib/ShuffleAndReverseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ShuffleAndReverseBench { public function bench_reverse_Str() { (new Str(' hello world '))->reverse(); } public function bench_reverse_Stringy() { (new Stringy(' hello world '))->reverse(); } public function bench...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/CommonBench.php
benchmarks/lib/CommonBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class CommonBench { public function bench_common_Str() { for ($i=0;$i<100;$i++) { $str = new Str('Hello, 世界'); $str->last(2); // 世界 $str->chars(); // ['世', '界'] $str ->ensureLeft(...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/AppendAndPrependBench.php
benchmarks/lib/AppendAndPrependBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class AppendAndPrependBench { public function bench_append_Str() { (new Str('2'))->append('1'); } public function bench_append_Stringy() { (new Stringy('2'))->append('1'); } public function bench_prepend_Str() { ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IndexOfBench.php
benchmarks/lib/IndexOfBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IndexOfBench { public function bench_indexOf_Str() { (new Str('Hello world'))->indexOf('l'); } public function bench_indexOf_Stringy() { (new Stringy('Hello world'))->indexOf('l'); } public function bench_indexOf...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ToLowerCaseBench.php
benchmarks/lib/ToLowerCaseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ToLowerCaseBench { public function bench_lower_case_first_Str() { (new Str('HELLO'))->lowerCaseFirst(); } public function bench_lower_case_first_Stringy() { (new Stringy('HELLO'))->lowerCaseFirst(); } public func...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ContainsBench.php
benchmarks/lib/ContainsBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ContainsBench { public function bench_contains_Str() { (new Str(' hello world '))->contains('test'); } public function bench_contains_Stringy() { (new Stringy(' hello world '))->contains('test'); } public functio...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/StripAndCollapseWhitespaceBench.php
benchmarks/lib/StripAndCollapseWhitespaceBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class StripAndCollapseWhitespaceBench { public function bench_strip_whitespace_Str() { (new Str(' hello world '))->stripWhitespace(); } public function bench_strip_whitespace_Stringy() { (new Stringy(' hello world '))->stripWhi...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/SuffixesBooleansBench.php
benchmarks/lib/SuffixesBooleansBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class SuffixesBooleansBench { public function bench_ends_with_any_Str() { (new Str(' hello world '))->endsWithAny(['he', 'lo']); } public function bench_ends_with_any_Stringy() { (new Stringy(' hello world '))->endsWithAny(['he...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/SurroundBench.php
benchmarks/lib/SurroundBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class SurroundBench { public function bench_surround_Str() { (new Str('2'))->surround('1'); } public function bench_surround_Stringy() { (new Stringy('2'))->surround('1'); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IsOrHasUpperCaseBench.php
benchmarks/lib/IsOrHasUpperCaseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IsOrHasUpperCaseBench { public function bench_is_upper_case_Str() { (new Str(' hello world '))->isUpperCase(); } public function bench_is_upper_case_Stringy() { (new Stringy(' hello world '))->isUpperCase(); } pu...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IsOrHasLowerCaseBench.php
benchmarks/lib/IsOrHasLowerCaseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IsOrHasLowerCaseBench { public function bench_is_lower_case_Str() { (new Str(' hello world '))->isLowerCase(); } public function bench_is_lower_case_Stringy() { (new Stringy(' hello world '))->isLowerCase(); } pu...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/SplitBench.php
benchmarks/lib/SplitBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class SplitBench { public function bench_split_Str() { (new Str('Hello world'))->split(' '); } public function bench_split_Stringy() { (new Stringy('Hello world'))->split(' '); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/PadBench.php
benchmarks/lib/PadBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class PadBench { public function bench_pad_both_Str() { (new Str(' hello world '))->padBoth(3); } public function bench_pad_both_Stringy() { (new Stringy(' hello world '))->padBoth(3); } public function bench_pad_left_...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IsAlphaBench.php
benchmarks/lib/IsAlphaBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IsAlphaBench { public function bench_is_alpha_numeric_Str() { (new Str(' hello world '))->isAlphanumeric(); } public function bench_is_alpha_numeric_Stringy() { (new Stringy(' hello world '))->isAlphanumeric(); } ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/RemoveBench.php
benchmarks/lib/RemoveBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class RemoveBench { public function bench_remove_left_Str() { (new Str('12'))->removeLeft('1'); } public function bench_remove_left_Stringy() { (new Stringy('12'))->removeLeft('1'); } public function bench_remove_right...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/TruncateBench.php
benchmarks/lib/TruncateBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class TruncateBench { public function bench_truncate_Str() { (new Str(' hello world '))->truncate(2, 'duh'); } public function bench_truncate_Stringy() { (new Stringy(' hello world '))->truncate(2, 'duh'); } public fun...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/HTMLRelatedBench.php
benchmarks/lib/HTMLRelatedBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class HTMLRelatedBench { public function bench_html_decode_Str() { (new Str(' hello world '))->htmlDecode(); } public function bench_html_decode_Stringy() { (new Stringy(' hello world '))->htmlDecode(); } public functi...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/PrefixesBooleansBench.php
benchmarks/lib/PrefixesBooleansBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class PrefixesBooleansBench { public function bench_starts_with_any_Str() { (new Str(' hello world '))->startsWithAny(['he', 'lo']); } public function bench_starts_with_any_Stringy() { (new Stringy(' hello world '))->startsWith...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ToTabsAndToSpacesBench.php
benchmarks/lib/ToTabsAndToSpacesBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ToTabsAndToSpacesBench { public function bench_to_tabs_Str() { (new Str(' hello world '))->toTabs(); } public function bench_to_tabs_Stringy() { (new Stringy(' hello world '))->toTabs(); } public function bench_t...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/LongestCommonSubstrBench.php
benchmarks/lib/LongestCommonSubstrBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class LongestCommonSubstrBench { public function bench_longest_common_substring_Str() { (new Str(' hello world '))->longestCommonSubstring(' helloworld'); } public function bench_longest_common_substring_Stringy() { (new String...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/InsertBench.php
benchmarks/lib/InsertBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class InsertBench { public function bench_insert_Str() { (new Str('226198'))->insert('1', 4); } public function bench_insert_Stringy() { (new Stringy('226198'))->insert('1', 4); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/FirstAndLastBench.php
benchmarks/lib/FirstAndLastBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class FirstAndLastBench { public function bench_first_Str() { (new Str('Hello world'))->first(6); (new Str('Hello world'))->first(-6); } public function bench_first_Stringy() { (new Stringy('Hello world'))->first(6); ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/CountAndLengthBench.php
benchmarks/lib/CountAndLengthBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class CountAndLengthBench { public function bench_length_Str() { (new Str('Hello world'))->length(); } public function bench_length_Stringy() { (new Stringy('Hello world'))->length(); } public function bench_count_subs...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/AtAndBetweenBench.php
benchmarks/lib/AtAndBetweenBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class AtAndBetweenBench { public function bench_between_Str() { (new Str(' hello world '))->between(2, 4); } public function bench_between_Stringy() { (new Stringy(' hello world '))->between(2, 4); } public function be...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/TidyBench.php
benchmarks/lib/TidyBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class TidyBench { public function bench_tidy_Str() { (new Str(' hello world '))->tidy(); } public function bench_tidy_Stringy() { (new Stringy(' hello world '))->tidy(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IsHexadecimalBench.php
benchmarks/lib/IsHexadecimalBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IsHexadecimalBench { public function bench_is_hexadecimal_Str() { (new Str(' hello world '))->isHexadecimal(); } public function bench_is_hexadecimal_Stringy() { (new Stringy(' hello world '))->isHexadecimal(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ReplaceBench.php
benchmarks/lib/ReplaceBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ReplaceBench { public function bench_replace_Str() { (new Str('oink oink oink'))->replace('k', 'ky'); } public function bench_replace_Stringy() { (new Stringy('oink oink oink'))->replace('k', 'ky'); } public func...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/DelimitersBench.php
benchmarks/lib/DelimitersBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class DelimitersBench { public function bench_underscored_Str() { (new Str(' hello world '))->underscored(); } public function bench_underscored_Stringy() { (new Stringy(' hello world '))->underscored(); } public funct...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ToBooleanBench.php
benchmarks/lib/ToBooleanBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ToBooleanBench { public function bench_to_boolean_Str() { (new Str('yes'))->toBoolean(); } public function bench_to_boolean_Stringy() { (new Stringy('yes'))->toBoolean(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/RepeatBench.php
benchmarks/lib/RepeatBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class RepeatBench { public function bench_repeat_Str() { (new Str(' hello world '))->repeat(2); } public function bench_repeat_Stringy() { (new Stringy(' hello world '))->repeat(2); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/SwapCaseBench.php
benchmarks/lib/SwapCaseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class SwapCaseBench { public function bench_swap_case_Str() { (new Str('hElLo'))->swapCase(); } public function bench_swap_case_Stringy() { (new Stringy('hElLo'))->swapCase(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IsJsonBench.php
benchmarks/lib/IsJsonBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IsJsonBench { public function bench_is_json_Str() { (new Str(' hello world '))->isJson(); } public function bench_is_json_Stringy() { (new Stringy(' hello world '))->isJson(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IsSerializedOrBase64Bench.php
benchmarks/lib/IsSerializedOrBase64Bench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IsSerializedOrBase64Bench { public function bench_is_serialized_Str() { (new Str(' hello world '))->isSerialized(); } public function bench_is_serialized_Stringy() { (new Stringy(' hello world '))->isSerialized(); } ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/TrimBench.php
benchmarks/lib/TrimBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class TrimBench { public function bench_both_Str() { (new Str(' hello world '))->trim(' h'); } public function bench_both_Stringy() { (new Stringy(' hello world '))->trim(' h'); } public function bench_left_Str() { ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/HumanizeAndSlugifyBench.php
benchmarks/lib/HumanizeAndSlugifyBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class HumanizeAndSlugifyBench { public function bench_slugify_Str() { (new Str(' hello world '))->slugify(); } public function bench_slugify_Stringy() { (new Stringy(' hello world '))->slugify(); } public function benc...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/CamelCaseBench.php
benchmarks/lib/CamelCaseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class CamelCaseBench { public function bench_upper_camelize_Str() { (new Str('some string hello'))->upperCamelize(); } public function bench_upper_camelize_Stringy() { (new Stringy('some string hello'))->upperCamelize(); } ...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ToAsciiBench.php
benchmarks/lib/ToAsciiBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ToAsciiBench { public function bench_to_ascii_Str() { (new Str(' hello world '))->toAscii(); } public function bench_to_ascii_Stringy() { (new Stringy(' hello world '))->toAscii(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/TitleCaseBench.php
benchmarks/lib/TitleCaseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class TitleCaseBench { public function bench_to_title_case_Str() { (new Str('some string hello'))->toTitleCase(); } public function bench_to_title_case_Stringy() { (new Stringy('some string hello'))->toTitleCase(); } p...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/IsBlankBench.php
benchmarks/lib/IsBlankBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class IsBlankBench { public function bench_is_blank_Str() { (new Str(' hello world '))->isBlank(); } public function bench_is_blank_Stringy() { (new Stringy(' hello world '))->isBlank(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/ToUpperCaseBench.php
benchmarks/lib/ToUpperCaseBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class ToUpperCaseBench { public function bench_upper_case_first_Str() { (new Str('hello'))->upperCaseFirst(); } public function bench_upper_case_first_Stringy() { (new Stringy('hello'))->upperCaseFirst(); } public func...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/CharsBench.php
benchmarks/lib/CharsBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class CharsBench { public function bench_chars_Str() { (new Str('Hello world'))->chars(); } public function bench_chars_Stringy() { (new Stringy('Hello world'))->chars(); } }
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/SliceAndSubstrBench.php
benchmarks/lib/SliceAndSubstrBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class SliceAndSubstrBench { public function bench_slice_Str() { (new Str(' hello world '))->slice(2); } public function bench_slice_Stringy() { (new Stringy(' hello world '))->slice(2); } public function bench_substr_S...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/benchmarks/lib/EnsureBench.php
benchmarks/lib/EnsureBench.php
<?php namespace Benchmark; use Str\Str; use Stringy\Stringy; class EnsureBench { public function bench_ensure_left_Str() { (new Str('2'))->ensureLeft('1'); } public function bench_ensure_left_Stringy() { (new Stringy('2'))->ensureLeft('1'); } public function bench_ensure_right_S...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/src/Str.php
src/Str.php
<?php /** @noinspection PhpDocMissingThrowsInspection */ /** @noinspection PhpUnhandledExceptionInspection */ declare(strict_types=1); namespace Str; class Str { private $s; const CHARS_ARRAY = [ '0' => ['°', '₀', '۰', '0'], '1' => ['¹', '₁', '۱', '1'], '2' => ['²', '₂',...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
true
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/tests/StrTest.php
tests/StrTest.php
<?php declare(strict_types=1); namespace Str; use PHPUnit\Framework\TestCase; class StrTest extends TestCase { public function testGetString() { $s = new Str('Hello world'); $this->assertEquals((string)$s, 'Hello world'); $this->assertEquals((string)$s, $s); $this->assertEqua...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
false
fe3dback/str
https://github.com/fe3dback/str/blob/2e1b2d27a11b698564ac3097a7b011ff6d78c5c8/tests/FS/StrFullTest.php
tests/FS/StrFullTest.php
<?php declare(strict_types=1); namespace Str; use PHPUnit\Framework\TestCase; class StrFullTest extends TestCase { /** * @dataProvider HasPrefixProvider * @param array $inp * @param bool $result */ public function testHasPrefix(array $inp, bool $result) { $s = new Str($inp[0]...
php
MIT
2e1b2d27a11b698564ac3097a7b011ff6d78c5c8
2026-01-05T02:57:52.381328Z
true
zendframework/zend-servicemanager
https://github.com/zendframework/zend-servicemanager/blob/e56eab1c6ba4af63c51b295181db5fa186ecb6a6/benchmarks/FetchNewServiceViaConfigAbstractFactoryBench.php
benchmarks/FetchNewServiceViaConfigAbstractFactoryBench.php
<?php /** * @link http://github.com/zendframework/zend-servicemanager for the canonical source repository * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ZendBench\ServiceManager; use PhpBench...
php
BSD-3-Clause
e56eab1c6ba4af63c51b295181db5fa186ecb6a6
2026-01-05T02:58:12.998614Z
false
zendframework/zend-servicemanager
https://github.com/zendframework/zend-servicemanager/blob/e56eab1c6ba4af63c51b295181db5fa186ecb6a6/benchmarks/FetchNewServicesBench.php
benchmarks/FetchNewServicesBench.php
<?php /** * @link http://github.com/zendframework/zend-servicemanager for the canonical source repository * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ZendBench\ServiceManager; use PhpBench...
php
BSD-3-Clause
e56eab1c6ba4af63c51b295181db5fa186ecb6a6
2026-01-05T02:58:12.998614Z
false
zendframework/zend-servicemanager
https://github.com/zendframework/zend-servicemanager/blob/e56eab1c6ba4af63c51b295181db5fa186ecb6a6/benchmarks/SetNewServicesBench.php
benchmarks/SetNewServicesBench.php
<?php /** * @link http://github.com/zendframework/zend-servicemanager for the canonical source repository * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ZendBench\ServiceManager; use PhpBench...
php
BSD-3-Clause
e56eab1c6ba4af63c51b295181db5fa186ecb6a6
2026-01-05T02:58:12.998614Z
false
zendframework/zend-servicemanager
https://github.com/zendframework/zend-servicemanager/blob/e56eab1c6ba4af63c51b295181db5fa186ecb6a6/benchmarks/FetchCachedServicesBench.php
benchmarks/FetchCachedServicesBench.php
<?php /** * @link http://github.com/zendframework/zend-servicemanager for the canonical source repository * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ZendBench\ServiceManager; use PhpBench...
php
BSD-3-Clause
e56eab1c6ba4af63c51b295181db5fa186ecb6a6
2026-01-05T02:58:12.998614Z
false
zendframework/zend-servicemanager
https://github.com/zendframework/zend-servicemanager/blob/e56eab1c6ba4af63c51b295181db5fa186ecb6a6/benchmarks/FetchNewServiceUsingReflectionAbstractFactoryAsFactoryBench.php
benchmarks/FetchNewServiceUsingReflectionAbstractFactoryAsFactoryBench.php
<?php /** * @link http://github.com/zendframework/zend-servicemanager for the canonical source repository * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ZendBench\ServiceManager; use PhpBench...
php
BSD-3-Clause
e56eab1c6ba4af63c51b295181db5fa186ecb6a6
2026-01-05T02:58:12.998614Z
false