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
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/dankagu/sec_dankagu.php
dankagu/sec_dankagu.php
<?php class LightWeightEncryptor { private $swizzleBytes; // byte[] 0x10 private $Coef = 1; // int 0x18 private $offset = 0; // int 0x1c function __construct($seed, $initSpin, $tableSize) { $XorShift = new XorShift(); $XorShift->Init($seed & 0x7fffffff); if ($initSpin >= 1) { do { ...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/dankagu/resource_fetch.php
dankagu/resource_fetch.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); define('ASSET_DOMAIN', 'https://assets-danmakujp.cdn-dena.com'); require_once 'UnityAsset.php'; require_once 'sec_dankagu.php'; require_once 'DankaguScore.php'; $resourceToExport = [ [ 'bundleNameMatch'=>'/^\/ios\/texture\/res_ch_card_c\/...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/dankagu/DankaguScore.php
dankagu/DankaguScore.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); require_once 'UnityBundle.php'; class TapeArchive { private $s; function __construct($stream) { $this->s = $stream; } function next() { if (!$this->s) return null; $info = [ 'name' => $this->s->readData(1...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/sbr/main.php
sbr/main.php
<?php // required: php-xxhash (https://github.com/esterTion/php-xxhash/ ) chdir(__DIR__); require_once 'UnityBundle.php'; require_once 'resource_fetch.php'; if (!file_exists('last_version')) { $last_version = []; } else { $last_version = json_decode(file_get_contents('last_version'), true); } $logFile = fopen('s...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/sbr/resource_fetch.php
sbr/resource_fetch.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); require_once 'UnityAsset.php'; define('SBR_HASH_SEED', 0x33DC7CB65408BDF); $resourceToExport = [ [ 'bundleNameMatch'=>'/^charactercard\/charactercard(\d+)$/', 'nameMatch'=>'/^charactercard(.+)$/', 'exportTo'=>'card/$1' ], [ 'bund...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/wds/main.php
wds/main.php
<?php require 'msgpack.phar'; ini_set('precision', 7); ini_set('serialize_precision', 7); ini_set('memory_limit', '256M'); // mod from https://github.com/rybakit/msgpack.php/blob/master/src/Extension/TimestampExtension.php class TimestampExtension implements \MessagePack\Extension { private const TYPE = -1; ...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
true
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/wds/exportTable.php
wds/exportTable.php
<?php if ($argc < 2) { echo "php exportTable.php <dump.cs>\n"; exit; } $dumpcs = file_get_contents($argv[1]); /*preg_match_all("((\[MemoryTable\(\"[^\)]]+\"\)\]\n)?(\[.+\]\n)*public class [^{}]*?\{[^{}]+\[Key\(\d+\)\](((?>[^{}]+)|{(?-2)})*)\})", $dumpcs, $classes);*/ preg_match_all("(// Namespace: ([^\n]*)\n(\[.+...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/bang/main.php
bang/main.php
<?php ini_set('precision', 7); ini_set('serialize_precision', 7); chdir(__DIR__); require_once 'UnityBundle.php'; require_once 'resource_fetch.php'; if (!file_exists('last_version')) { $last_version = array('data'=>'0','master'=>'0'); } else { $last_version = json_decode(file_get_contents('last_version'), true); ...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/bang/reprocess.php
bang/reprocess.php
<?php ini_set('precision', 7); ini_set('serialize_precision', 7); chdir(__DIR__); require_once 'resource_fetch.php'; if (!file_exists('last_version')) { $last_version = array('data'=>'0','master'=>'0'); } else { $last_version = json_decode(file_get_contents('last_version'), true); } function _log($s) { //fwrit...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/bang/resource_fetch.php
bang/resource_fetch.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); require_once 'UnityAsset.php'; $resourceToExport = [ [ 'bundleNameMatch'=>'/^characters\/resourceset\/res(\d+)$/', 'namePrefix'=>'$1_', 'nameMatch'=>'/^(.+)$/', 'exportTo'=>'card/$1' ], [ 'bundleNameMatch'=>'/^title\/(.+)$/', 'namePr...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/tw_redive/main.php
tw_redive/main.php
<?php chdir(__DIR__); require_once 'UnityBundle.php'; require_once 'UnityAsset.php'; require_once 'diff_parse.php'; if (!file_exists('last_version')) { $last_version = array('TruthVersion'=>-1,'hash'=>''); } else { $last_version = json_decode(file_get_contents('last_version'), true); } $logFile = fopen('redive.log'...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/tw_redive/diff_parse.php
tw_redive/diff_parse.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); /** * diff-parser from https://github.com/ptlis/diff-parser * packed with https://github.com/mpyw/comphar */ require_once '../diff_parser.phar'; use ptlis\DiffParser\Parser; use ptlis\DiffParser\File; use ptlis\DiffParser\Line; function pa...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/tw_redive/RediveStoryDeserializer.php
tw_redive/RediveStoryDeserializer.php
<?php require_once 'UnityBundle.php'; class CommandNumber { const NONE = -1; const TITLE = 0; const OUTLINE = 1; const VISIBLE = 2; const FACE = 3; const FOCUS = 4; const BACKGROUND = 5; const PRINT = 6; const TAG = 7; const GOTO = 8; const BGM = 9; const TOUCH = 10; const CHOICE = 11; cons...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/tw_redive/UnityAsset.php
tw_redive/UnityAsset.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); require_once 'UnityBundle.php'; class AssetFile { public $stream; public $filePath; public $fileName; public $fileGen; public $m_Version = '2.5.0f5'; public $platform = 0x6000000; public $platformStr = ''; public $baseDefinit...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
true
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/cgss/main.php
cgss/main.php
<?php chdir(__DIR__); require_once 'UnityBundle.php'; require_once 'resource_fetch.php'; require_once 'diff_parse.php'; if (!file_exists('last_version')) { $last_version = array('TruthVersion'=>0,'hash'=>''); } else { $last_version = json_decode(file_get_contents('last_version'), true); } $logFile = fopen('cgss.log...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/cgss/diff_parse.php
cgss/diff_parse.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); /** * diff-parser from https://github.com/ptlis/diff-parser * packed with https://github.com/mpyw/comphar */ require_once '../diff_parser.phar'; use ptlis\DiffParser\Parser; use ptlis\DiffParser\File; use ptlis\DiffParser\Line; function pa...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/cgss/resource_fetch.php
cgss/resource_fetch.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); require_once 'UnityAsset.php'; $poseData = []; $resourceToExport = [ [ 'bundleNameMatch'=>'/^card_bg_\d+.unity3d$/', 'nameMatch'=>'/^bg_(\d+)$/', 'exportTo'=>'card/$1' ], [ 'bundleNameMatch'=>'/^chara_(\d{3}_\d{2})_base.unity3d$/', 'name...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/cgss/eventrank/main.php
cgss/eventrank/main.php
<?php chdir(__DIR__); date_default_timezone_set("Asia/Shanghai"); $rijndaelKey = "s%5VNQ(H$&Bqb6#3+78h29!Ft4wSg)ex"; $salt = "r!I@nt8e5i="; /* DereGuide (blown) $userID = '775891250'; $viewerID = '910841675'; $udid = "600a5efd-cae5-41ff-a0c7-7deda751c5ed"; Self created account (blown) $userID = '807297179'; $viewer...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/llas/main.php
llas/main.php
<?php require_once 'UnityBundle.php'; chdir(__DIR__); $logFile = fopen('llas.log', 'a'); function _log($s) { global $logFile; fwrite($logFile, date('[m/d H:i] ').$s."\n"); echo date('[m/d H:i] ').$s."\n"; } $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://allstars.kirara.ca/api/v1/...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/redive/main.php
redive/main.php
<?php chdir(__DIR__); require_once 'UnityBundle.php'; require_once 'resource_fetch.php'; require_once 'diff_parse.php'; if (!file_exists('last_version')) { $last_version = array('TruthVersion'=>0,'hash'=>''); } else { $last_version = json_decode(file_get_contents('last_version'), true); } $logFile = fopen('redive.l...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/redive/db-remap.php
redive/db-remap.php
<?php /** * https://github.com/esterTion/redive_master_db_diff * at commit * 74f1ee65403d99bb913ebeaf1176a3eee5568014 */ $db = new PDO('sqlite:!redive-10052900.db'); $tableNames = $db->query('SELECT name FROM sqlite_master WHERE type="table"')->fetchAll(PDO::FETCH_COLUMN); $normalTables = array_filter($tableName...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/redive/diff_parse.php
redive/diff_parse.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); /** * diff-parser from https://github.com/ptlis/diff-parser * packed with https://github.com/mpyw/comphar */ require_once '../diff_parser.phar'; use ptlis\DiffParser\Parser; use ptlis\DiffParser\File; use ptlis\DiffParser\Line; function pa...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/redive/resource_fetch.php
redive/resource_fetch.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); require_once 'UnityAsset.php'; $resourceToExport = [ # 'all' => [ # [ 'bundleNameMatch'=>'/^a\/all_battleunitprefab_\d+\.unity3d$/', 'customAssetProcessor'=> 'exportPrefab' ], # ], 'bg'=> [ [ 'bundleNameMatch'=>'/^a\/bg_still_unit...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/redive/RediveStoryDeserializer.php
redive/RediveStoryDeserializer.php
<?php require_once 'UnityBundle.php'; class CommandNumber { const NONE = -1; const TITLE = 0; const OUTLINE = 1; const VISIBLE = 2; const FACE = 3; const FOCUS = 4; const BACKGROUND = 5; const PRINT = 6; const TAG = 7; const GOTO = 8; const BGM = 9; const TOUCH = 10; const CHOICE = 11; cons...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/haifuri/main.php
haifuri/main.php
<?php chdir(__DIR__); require_once 'UnityBundle.php'; require_once 'resource_fetch.php'; if (!file_exists('last_version')) { $last_version = array('MasterVer'=>-1,'AppBuild'=>33); } else { $last_version = json_decode(file_get_contents('last_version'), true); } $logFile = fopen('haifuri.log', 'a'); function _log($s)...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/haifuri/resource_fetch.php
haifuri/resource_fetch.php
<?php if (count(get_included_files()) == 1) define ('TEST_SUITE', __FILE__); require_once 'UnityAsset.php'; $poseData = []; $resourceToExport = [ [ 'bundleNameMatch'=>'/^cdtl\d+$/', 'nameMatch'=>'/^cas_(\d+)$/', 'exportTo'=>'card/$1' ] ]; function shouldExportFile($name, $rule) { return preg_match($rule['nameMat...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
esterTion/unity-texture-toolkit
https://github.com/esterTion/unity-texture-toolkit/blob/d5c52d9cba82dce717f0ddae75a869972bbb766a/rizline/main.php
rizline/main.php
<?php require 'UnityBundle.php'; chdir(__DIR__); $logFile = fopen('rizline.log', 'a'); function _log($s) { global $logFile; fwrite($logFile, date('[m/d H:i] ').$s."\n"); echo $s."\n"; } main('lt-zhw', 'http://rizastcdn.pigeongames.cn/default/', 'https://lvdgjosdl.ltgamesglobal.net/testasset/'); main('intl-en',...
php
MIT
d5c52d9cba82dce717f0ddae75a869972bbb766a
2026-01-05T03:45:03.797410Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Convert.php
src/Convert.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter; use Jawira\CaseConverter\Glue\AdaCase; use Jawira\CaseConverter\Glue\CamelCase; use Jawira\CaseConverter\Glue\CobolCase; use Jawira\CaseConverter\Glue\DashGluer; use Jawira\CaseConverter\Glue\DotNotation; use Jawira\CaseConverter\Glue\Gluer; use Jawira\Ca...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/CaseConverterInterface.php
src/CaseConverterInterface.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter; /** * Interface CaseConverterInterface * * @author Jawira Portugal <dev@tugal.be> */ interface CaseConverterInterface { public function convert(string $source): Convert; }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/CaseConverter.php
src/CaseConverter.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter; /** * Class CaseConverter * * Factory class which returns a Convert object. * * @author Jawira Portugal <dev@tugal.be> */ class CaseConverter implements CaseConverterInterface { /** * Returns a Convert object * * @param string $s...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/CaseConverterException.php
src/CaseConverterException.php
<?php namespace Jawira\CaseConverter; use RuntimeException; class CaseConverterException extends RuntimeException { }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/SentenceCase.php
src/Glue/SentenceCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class SentenceCase extends SpaceGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->lowerCase, $this->titleCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/AdaCase.php
src/Glue/AdaCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; /** * Class AdaCase * * Outputs string in _Ada case_ format: This_Is_Ada_Case */ class AdaCase extends UnderscoreGluer { /** * Format detected words in _Ada case_ * * @return string */ public function glue(): string ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/UpperCase.php
src/Glue/UpperCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class UpperCase extends SpaceGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->upperCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/DotNotation.php
src/Glue/DotNotation.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; /** * Class DotNotation */ class DotNotation extends Gluer { /** @internal */ public const DELIMITER = '.'; /** * Format detected words in _dot notation_ * * @return string */ public function glue(): string ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/KebabCase.php
src/Glue/KebabCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; /** * Class KebabCase * * Outputs string in _Cobol case_ format: this-is-kebab-case */ class KebabCase extends DashGluer { /** * Format detected words in _Kebab case_ * * @return string */ public function glue(): strin...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/UppercaseGluer.php
src/Glue/UppercaseGluer.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; abstract class UppercaseGluer extends Gluer { /** @internal */ public const DELIMITER = ''; }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/Gluer.php
src/Glue/Gluer.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; use function array_map; use function implode; use function mb_convert_case; use const MB_CASE_LOWER; use const MB_CASE_TITLE; use const MB_CASE_UPPER; /** * Class Gluer * * A Gluer subclass allow to export an array of words in a single string * ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/LowerCase.php
src/Glue/LowerCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class LowerCase extends SpaceGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->lowerCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/SnakeCase.php
src/Glue/SnakeCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class SnakeCase extends UnderscoreGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->lowerCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/PascalCase.php
src/Glue/PascalCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class PascalCase extends UppercaseGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->titleCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/MacroCase.php
src/Glue/MacroCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class MacroCase extends UnderscoreGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->upperCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/CobolCase.php
src/Glue/CobolCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; /** * Class CobolCase * * Outputs string in _Cobol case_ format: THIS-IS-COBOL-CASE */ class CobolCase extends DashGluer { /** * Format detected words in _Cobol case_ * * @return string */ public function glue(): strin...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/TrainCase.php
src/Glue/TrainCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class TrainCase extends DashGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->titleCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/SpaceGluer.php
src/Glue/SpaceGluer.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; abstract class SpaceGluer extends Gluer { /** @internal */ public const DELIMITER = ' '; }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/UnderscoreGluer.php
src/Glue/UnderscoreGluer.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; abstract class UnderscoreGluer extends Gluer { /** @internal */ public const DELIMITER = '_'; }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/TitleCase.php
src/Glue/TitleCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; class TitleCase extends SpaceGluer { public function glue(): string { return $this->glueUsingRules(self::DELIMITER, $this->titleCase); } }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/DashGluer.php
src/Glue/DashGluer.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; abstract class DashGluer extends Gluer { /** @internal */ public const DELIMITER = '-'; }
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Glue/CamelCase.php
src/Glue/CamelCase.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Glue; /** * Class CamelCase * * Outputs string in _Camel case_ format: thisIsCamelCase */ class CamelCase extends UppercaseGluer { /** * Format detected words in _Camel case_ * * @return string */ public function glue(): str...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Split/DashSplitter.php
src/Split/DashSplitter.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Split; use Jawira\CaseConverter\Glue\DashGluer; class DashSplitter extends Splitter { /** @internal */ public const PATTERN = '#' . DashGluer::DELIMITER . '+#u'; /** * @return string[] * @throws \Jawira\CaseConverter\CaseConverterEx...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Split/UnderscoreSplitter.php
src/Split/UnderscoreSplitter.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Split; use Jawira\CaseConverter\Glue\UnderscoreGluer; class UnderscoreSplitter extends Splitter { public const PATTERN = '#' . UnderscoreGluer::DELIMITER . '+#u'; /** * @return string[] * @throws \Jawira\CaseConverter\CaseConverterExcep...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Split/SpaceSplitter.php
src/Split/SpaceSplitter.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Split; use Jawira\CaseConverter\Glue\SpaceGluer; class SpaceSplitter extends Splitter { /** @internal */ public const PATTERN = '#' . SpaceGluer::DELIMITER . '+#u'; /** * @return string[] * @throws \Jawira\CaseConverter\CaseConverte...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Split/Splitter.php
src/Split/Splitter.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Split; use Jawira\CaseConverter\CaseConverterException; /** * Class Splitter * * A Splitter subclass allows to read the words contained in a string * * @author Jawira Portugal <dev@tugal.be> */ abstract class Splitter { /** * @var string W...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Split/DotSplitter.php
src/Split/DotSplitter.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Split; use Jawira\CaseConverter\Glue\DotNotation; class DotSplitter extends Splitter { /** @internal */ public const PATTERN = '#\\' . DotNotation::DELIMITER . '+#u'; /** * @return string[] * @throws \Jawira\CaseConverter\CaseConver...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/src/Split/UppercaseSplitter.php
src/Split/UppercaseSplitter.php
<?php declare(strict_types=1); namespace Jawira\CaseConverter\Split; class UppercaseSplitter extends Splitter { // language=PhpRegExp public const PATTERN = '#(?=\p{Lu}{1})#u'; /** * Splits $words using Uppercase letters. * * @see https://www.regular-expressions.info/unicode.html#category ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/UnderscoreSplitterTest.php
tests/phpunit/UnderscoreSplitterTest.php
<?php use Jawira\CaseConverter\Split\UnderscoreSplitter; use PHPUnit\Framework\TestCase; class UnderscoreSplitterTest extends TestCase { /** * @covers \Jawira\CaseConverter\Split\UnderscoreSplitter::split * @throws \ReflectionException * @throws \Jawira\CaseConverter\CaseConverterException */ ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/CobolCaseTest.php
tests/phpunit/CobolCaseTest.php
<?php use Jawira\CaseConverter\Glue\CobolCase; use PHPUnit\Framework\TestCase; /** * Class CobolCaseTest */ class CobolCaseTest extends TestCase { /** * Testing that `glue` method is called and `upperCase` property is used. * * @covers \Jawira\CaseConverter\Glue\CobolCase::glue * @throws \Re...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/UpperCaseTest.php
tests/phpunit/UpperCaseTest.php
<?php use Jawira\CaseConverter\Glue\UpperCase; use PHPUnit\Framework\TestCase; class UpperCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\UpperCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->getMockBuild...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/GluerTest.php
tests/phpunit/GluerTest.php
<?php use Jawira\CaseConverter\Glue\Gluer; use PHPUnit\Framework\TestCase; class GluerTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\Gluer::glueUsingRules * @dataProvider glueUsingRulesProvider * * @param array $words * @param string $glue * @param int $wo...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/ConvertTest.php
tests/phpunit/ConvertTest.php
<?php use Jawira\CaseConverter\CaseConverterException; use Jawira\CaseConverter\Convert; use Jawira\CaseConverter\Glue\AdaCase; use Jawira\CaseConverter\Glue\CamelCase; use Jawira\CaseConverter\Glue\CobolCase; use Jawira\CaseConverter\Glue\DotNotation; use Jawira\CaseConverter\Glue\Gluer; use Jawira\CaseConverter\Glue...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/SentenceCaseTest.php
tests/phpunit/SentenceCaseTest.php
<?php use Jawira\CaseConverter\Glue\SentenceCase; use PHPUnit\Framework\TestCase; class SentenceCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\SentenceCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->get...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/DotSplitterTest.php
tests/phpunit/DotSplitterTest.php
<?php use Jawira\CaseConverter\Split\DotSplitter; use PHPUnit\Framework\TestCase; class DotSplitterTest extends TestCase { /** * @covers \Jawira\CaseConverter\Split\DotSplitter::split * * @throws \Jawira\CaseConverter\CaseConverterException * @throws \ReflectionException */ publ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/SplitterTest.php
tests/phpunit/SplitterTest.php
<?php use Jawira\CaseConverter\Split\SpaceSplitter; use PHPUnit\Framework\TestCase; class SplitterTest extends TestCase { /** * @covers \Jawira\CaseConverter\Split\SpaceSplitter::splitUsingPattern * @dataProvider splitUsingPatternProvider * * @param $inputString * @param $pattern ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/KebabCaseTest.php
tests/phpunit/KebabCaseTest.php
<?php use Jawira\CaseConverter\Glue\KebabCase; use PHPUnit\Framework\TestCase; class KebabCaseTest extends TestCase { /** * Testing that `glue` method is called and `lowerCase` property is used. * * @covers \Jawira\CaseConverter\Glue\KebabCase::glue * @throws \ReflectionException */ p...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/DotNotationTest.php
tests/phpunit/DotNotationTest.php
<?php use Jawira\CaseConverter\Glue\DotNotation; use PHPUnit\Framework\TestCase; class DotNotationTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\DotNotation::glue * @throws \ReflectionException */ public function testGlue() { // Disabling constructor with one stub ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/TitleCaseTest.php
tests/phpunit/TitleCaseTest.php
<?php use Jawira\CaseConverter\Glue\TitleCase; use PHPUnit\Framework\TestCase; class TitleCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\TitleCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->getMockBuild...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/MacroCaseTest.php
tests/phpunit/MacroCaseTest.php
<?php use Jawira\CaseConverter\Glue\MacroCase; use PHPUnit\Framework\TestCase; class MacroCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\MacroCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->getMockBuild...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/SnakeCaseTest.php
tests/phpunit/SnakeCaseTest.php
<?php use Jawira\CaseConverter\Glue\SnakeCase; use PHPUnit\Framework\TestCase; class SnakeCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\SnakeCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->getMockBuild...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/DashSplitterTest.php
tests/phpunit/DashSplitterTest.php
<?php use Jawira\CaseConverter\Split\DashSplitter; use PHPUnit\Framework\TestCase; class DashSplitterTest extends TestCase { /** * @covers \Jawira\CaseConverter\Split\DashSplitter::split * @throws \ReflectionException * @throws \Jawira\CaseConverter\CaseConverterException */ public functio...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/PascalCaseTest.php
tests/phpunit/PascalCaseTest.php
<?php use Jawira\CaseConverter\Glue\PascalCase; use PHPUnit\Framework\TestCase; class PascalCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\PascalCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->getMockBu...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/LowerCaseTest.php
tests/phpunit/LowerCaseTest.php
<?php use Jawira\CaseConverter\Glue\LowerCase; use PHPUnit\Framework\TestCase; class LowerCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\LowerCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->getMockBuild...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/AdaCaseTest.php
tests/phpunit/AdaCaseTest.php
<?php use Jawira\CaseConverter\Glue\AdaCase; use PHPUnit\Framework\TestCase; /** * Class AdaCaseTest */ class AdaCaseTest extends TestCase { /** * Testing that `glue` method is called and `titleCase` property is used * * @covers \Jawira\CaseConverter\Glue\AdaCase::glue * @throws \ReflectionE...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/UppercaseSplitterTest.php
tests/phpunit/UppercaseSplitterTest.php
<?php use Jawira\CaseConverter\Split\UppercaseSplitter; use PHPUnit\Framework\TestCase; class UppercaseSplitterTest extends TestCase { /** * @covers \Jawira\CaseConverter\Split\UppercaseSplitter::split * * @throws \Jawira\CaseConverter\CaseConverterException * @throws \ReflectionExceptio...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/CaseConverterTest.php
tests/phpunit/CaseConverterTest.php
<?php use Jawira\CaseConverter\CaseConverter; use Jawira\CaseConverter\Convert; use PHPUnit\Framework\TestCase; class CaseConverterTest extends TestCase { /** * @covers \Jawira\CaseConverter\CaseConverter::convert * * @covers \Jawira\CaseConverter\Convert::__construct * @covers \Jawira\CaseCon...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/SpaceSplitterTest.php
tests/phpunit/SpaceSplitterTest.php
<?php use Jawira\CaseConverter\Split\SpaceSplitter; use PHPUnit\Framework\TestCase; class SpaceSplitterTest extends TestCase { /** * @covers \Jawira\CaseConverter\Split\SpaceSplitter::split * @throws \ReflectionException * @throws \Jawira\CaseConverter\CaseConverterException */ public func...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/TrainCaseTest.php
tests/phpunit/TrainCaseTest.php
<?php use Jawira\CaseConverter\Glue\TrainCase; use PHPUnit\Framework\TestCase; class TrainCaseTest extends TestCase { /** * @covers \Jawira\CaseConverter\Glue\TrainCase::glue */ public function testGlue() { // Disabling constructor with one stub method $mock = $this->getMockBuild...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/phpunit/CamelCaseTest.php
tests/phpunit/CamelCaseTest.php
<?php use Jawira\CaseConverter\Glue\CamelCase; use PHPUnit\Framework\TestCase; /** * Class CamelCaseTest */ class CamelCaseTest extends TestCase { /** * Testing that `glue()` method is called and `titleCase` and `lowerCase` * properties are being used. * * @covers \Jawira\CaseConverter\Glue\...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
jawira/case-converter
https://github.com/jawira/case-converter/blob/869a0780f069bc0cd63f2f568779f2e8ad306448/tests/behat/bootstrap/FeatureContext.php
tests/behat/bootstrap/FeatureContext.php
<?php use Behat\Behat\Context\Context; use Behat\Behat\Tester\Exception\PendingException; use Jawira\CaseConverter\Convert; /** * Defines application features from the specific context. */ class FeatureContext implements Context { /** * @var string|array */ protected $result; /** * @var ...
php
MIT
869a0780f069bc0cd63f2f568779f2e8ad306448
2026-01-05T03:45:22.636336Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/helpers/themes.php
helpers/themes.php
<?php if (! function_exists('theme_path')) { /** * Return the path to the given theme file. * * @param string $file * @param string $theme * @return string */ function theme_path($file = '', $theme = null) { return Theme::path($file, $theme); } }
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Theme.php
src/Theme.php
<?php namespace Caffeinated\Themes; use Illuminate\Support\Str; use Illuminate\Support\Collection; use Caffeinated\Themes\Concerns\RegistersViewLocations; class Theme extends Collection { use RegistersViewLocations; /** * @var string */ protected $current; /** * @var string|null ...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/ThemesServiceProvider.php
src/ThemesServiceProvider.php
<?php namespace Caffeinated\Themes; use View; use Caffeinated\Themes\Manifest; use Illuminate\Support\ServiceProvider; use Caffeinated\Themes\View\ThemeViewFinder; use Caffeinated\Themes\Console\GenerateTheme; class ThemesServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is defe...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Manifest.php
src/Manifest.php
<?php namespace Caffeinated\Themes; use Exception; use Illuminate\Support\Collection; class Manifest extends Collection { /** * @var string */ protected $path; /** * @var string */ protected $content; /** * Create a new Manifest. * * @param null|strin...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Support/RouteServiceProvider.php
src/Support/RouteServiceProvider.php
<?php namespace Caffeinated\Themes\Support; use Caffeinated\Themes\Concerns\GetsManifest; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as LaravelRouteServiceProvider; class RouteServiceProvider extends LaravelRouteServiceProvider { use GetsManifest; }
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Support/ServiceProvider.php
src/Support/ServiceProvider.php
<?php namespace Caffeinated\Themes\Support; use Caffeinated\Themes\Facades\Theme; use Caffeinated\Themes\Concerns\GetsManifest; use Illuminate\Support\ServiceProvider as IlluminateServiceProvider; class ServiceProvider extends IlluminateServiceProvider { use GetsManifest; public function boot() { ...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Facades/Theme.php
src/Facades/Theme.php
<?php namespace Caffeinated\Themes\Facades; use Illuminate\Support\Facades\Facade; class Theme extends Facade { /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { return 'caffeinated.themes'; } }
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Console/GenerateTheme.php
src/Console/GenerateTheme.php
<?php namespace Caffeinated\Themes\Console; use Illuminate\Support\Facades\File; use Illuminate\Console\Command; use Illuminate\Support\Str; class GenerateTheme extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'make:theme {sl...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Concerns/GetsManifest.php
src/Concerns/GetsManifest.php
<?php namespace Caffeinated\Themes\Concerns; use Illuminate\Support\Facades\File; use ReflectionClass; trait GetsManifest { /** * Get directory of inheriting class. * * @return string * @throws \ReflectionException */ protected function getDirectory() { $reflector = new R...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/Concerns/RegistersViewLocations.php
src/Concerns/RegistersViewLocations.php
<?php namespace Caffeinated\Themes\Concerns; use Illuminate\Support\Str; trait RegistersViewLocations { /** * Resolve and return the primary and parent themes. * * @param string $theme * @return array */ protected function resolveTheme($theme) { $theme = $this->where('...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/src/View/ThemeViewFinder.php
src/View/ThemeViewFinder.php
<?php namespace Caffeinated\Themes\View; use Illuminate\View\FileViewFinder; use Caffeinated\Themes\Facades\Theme; class ThemeViewFinder extends FileViewFinder { /** * Remove a location from the finder. * * @param string $location */ public function removeLocation(string $location) ...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/config/themes.php
config/themes.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Active Theme |-------------------------------------------------------------------------- | | Assign the default active theme to be used if one is not set during | runtime. This is especially useful if you're...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/resources/stubs/theme/src/Http/Controllers/Controller.php
resources/stubs/theme/src/Http/Controllers/Controller.php
<?php namespace DummyNamespace\Http\Controllers; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; class Controller extends BaseController { use Autho...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/resources/stubs/theme/src/Providers/ThemeServiceProvider.php
resources/stubs/theme/src/Providers/ThemeServiceProvider.php
<?php namespace DummyNamespace\Providers; use Caffeinated\Themes\Support\ServiceProvider; class ThemeServiceProvider extends ServiceProvider { public function boot() { parent::boot(); // } public function register() { $this->app->register(RouteServiceProvider::class); ...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/resources/stubs/theme/src/Providers/RouteServiceProvider.php
resources/stubs/theme/src/Providers/RouteServiceProvider.php
<?php namespace DummyNamespace\Providers; use Illuminate\Support\Facades\Route; use Caffeinated\Themes\Support\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * This namespace is applied to your controller routes. * * In addition, it is set as the ...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/resources/stubs/theme/routes/web.php
resources/stubs/theme/routes/web.php
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes provided by your theme. These | routes are loaded by the RouteServiceProvider within a group which ...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/resources/stubs/theme/routes/api.php
resources/stubs/theme/routes/api.php
<?php /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes provided by your theme. These | routes are loaded by the RouteServiceProvider within a group which ...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
caffeinated/themes
https://github.com/caffeinated/themes/blob/0bc1c7910d85c06a15037b262bac6f80ec742323/resources/stubs/theme/resources/views/welcome.blade.php
resources/stubs/theme/resources/views/welcome.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"> <title>DummyName</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css?family=Nunit...
php
MIT
0bc1c7910d85c06a15037b262bac6f80ec742323
2026-01-05T03:45:25.542226Z
false
nox7/async-php-8-io-http
https://github.com/nox7/async-php-8-io-http/blob/e166f26a2c09badc3dc509d3054da6515420064d/http-example.php
http-example.php
<?php require_once __DIR__ . "/src/Async.php"; require_once __DIR__ . "/src/Http/Http.php"; use Http\Http; header("content-type: text/plain"); // Top-level Fiber (equivalent to top-level async/await in JavaScript) $main = new Fiber(function(){ $requests = [ new Http("get", "https://animetavern.com"), ...
php
Unlicense
e166f26a2c09badc3dc509d3054da6515420064d
2026-01-05T03:45:38.504916Z
false
nox7/async-php-8-io-http
https://github.com/nox7/async-php-8-io-http/blob/e166f26a2c09badc3dc509d3054da6515420064d/mysql-example.php
mysql-example.php
<?php use AsyncMySQL\MySQLPool; require_once __DIR__ . "/src/Async.php"; require_once __DIR__ . "/src/AsyncMySQL/MySQLPool.php"; header("content-type: text/plain"); // Top-level Fiber (equivalent to top-level async/await in JavaScript) $main = new Fiber(function(){ $mysqlPool = new MySQLPool(10, "localhost...
php
Unlicense
e166f26a2c09badc3dc509d3054da6515420064d
2026-01-05T03:45:38.504916Z
false
nox7/async-php-8-io-http
https://github.com/nox7/async-php-8-io-http/blob/e166f26a2c09badc3dc509d3054da6515420064d/src/Async.php
src/Async.php
<?php class Async{ public static array $activeAwaits = []; /** * Awaits the child fiber to finish execution and suspends the calling * parent fiber upon the child fiber suspending/yielding. */ public static function await(Fiber $childFiber): mixed{ self::$activeAwaits[] = [Fiber::getCurrent(), $childF...
php
Unlicense
e166f26a2c09badc3dc509d3054da6515420064d
2026-01-05T03:45:38.504916Z
false
nox7/async-php-8-io-http
https://github.com/nox7/async-php-8-io-http/blob/e166f26a2c09badc3dc509d3054da6515420064d/src/Http/Http.php
src/Http/Http.php
<?php namespace Http; require_once __DIR__ . "/../Async.php"; require_once __DIR__ . "/../AsyncSocket/AsyncSocket.php"; use AsyncSocket\AsyncSocket; /** * Asynchronous Http class for async GET and POST requests */ class Http{ public AsyncSocket $socket; public string $method; public string $url; pub...
php
Unlicense
e166f26a2c09badc3dc509d3054da6515420064d
2026-01-05T03:45:38.504916Z
false