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
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/__fixtures/workspaces/two/second.blade.php
tests/__fixtures/workspaces/two/second.blade.php
@include ('one') @if ($this) @if ($this) @endif @endif {{-- Comment --}} @switch ($value) @case (1) @switch ($value) @default @break @endswitch @break @default @break @endswitch {{-- Comment --}} @verbatim @include ('one') @if ($this) ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/__fixtures/workspaces/one/two.blade.php
tests/__fixtures/workspaces/one/two.blade.php
Three @include ('something-else') Four
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/__fixtures/workspaces/one/one.blade.php
tests/__fixtures/workspaces/one/one.blade.php
One @include ('something') Two
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/config/validation.php
config/validation.php
<?php use Stillat\BladeParser\Validation\Validators\ComponentParameterNameSpacingValidator; use Stillat\BladeParser\Validation\Validators\ComponentShorthandVariableParameterValidator; use Stillat\BladeParser\Validation\Validators\DebugDirectiveValidator; use Stillat\BladeParser\Validation\Validators\DirectiveArgumentS...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
jianyan74/yii2-easy-wechat
https://github.com/jianyan74/yii2-easy-wechat/blob/8bf62653bf23e1b50939c496ef8a5d0de9e128c7/src/Wechat.php
src/Wechat.php
<?php namespace jianyan\easywechat; use Yii; use yii\base\Component; use EasyWeChat\Factory; /** * Class Wechat * * @package jianyan\easywechat * * @property \EasyWeChat\OfficialAccount\Application $app 微信SDK实例 * @property \EasyWeChat\Payment\Application $payment 微信支付SDK实例 * @property \EasyWeChat\MiniProgram\...
php
MIT
8bf62653bf23e1b50939c496ef8a5d0de9e128c7
2026-01-05T04:28:58.862246Z
false
jianyan74/yii2-easy-wechat
https://github.com/jianyan74/yii2-easy-wechat/blob/8bf62653bf23e1b50939c496ef8a5d0de9e128c7/src/WechatUser.php
src/WechatUser.php
<?php namespace jianyan\easywechat; use yii\base\Component; /** * Class WechatUser * @package jianyan74\easywechat */ class WechatUser extends Component { /** * @var string */ public $id; /** * @var string */ public $nickname; /** * @var string */ public $name...
php
MIT
8bf62653bf23e1b50939c496ef8a5d0de9e128c7
2026-01-05T04:28:58.862246Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/rector.php
rector.php
<?php declare(strict_types=1); use Rector\Config\RectorConfig; return RectorConfig::configure() ->withPaths([__DIR__ . '/src', __DIR__ . '/tests']) ->withImportNames() ->withPhpSets() ->withPreparedSets(typeDeclarations: true, privatization: true, naming: true, deadCode: true, codeQuality: true, codi...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/ecs.php
ecs.php
<?php declare(strict_types=1); use Symplify\EasyCodingStandard\Config\ECSConfig; return ECSConfig::configure() ->withPaths([__DIR__ . '/src', __DIR__ . '/tests']) ->withPreparedSets(common: true, psr12: true, cleanCode: true, symplify: true);
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/ClassReflectionParser.php
src/ClassReflectionParser.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity; use PhpParser\Node\Stmt\Class_; use PhpParser\NodeFinder; use PhpParser\Parser; use PhpParser\ParserFactory; use PHPStan\Reflection\ClassReflection; final readonly class ClassReflectionParser { private Parser $phpParser; private Nod...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/AstCognitiveComplexityAnalyzer.php
src/AstCognitiveComplexityAnalyzer.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use TomasVotruba\CognitiveComplexity\DataCollector\CognitiveComplexityDataCollector; use TomasVotruba\CognitiveComplexity\NodeTraverser\Co...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/Configuration.php
src/Configuration.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity; final readonly class Configuration { /** * @param array<string, mixed> $parameters */ public function __construct( private array $parameters ) { } public function getMaxClassCognitiveComplexity(): int ...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/NodeAnalyzer/ComplexityAffectingNodeFinder.php
src/NodeAnalyzer/ComplexityAffectingNodeFinder.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\NodeAnalyzer; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\BinaryOp\BooleanAnd; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Stmt; use PhpParser\Node\Stmt\Break_; use PhpParser\Node\Stmt\Catch_; use PhpParser\Nod...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/NodeVisitor/NestingNodeVisitor.php
src/NodeVisitor/NestingNodeVisitor.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\NodeVisitor; use PhpParser\Node; use PhpParser\Node\Expr\Closure; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Stmt\Catch_; use PhpParser\Node\Stmt\Do_; use PhpParser\Node\Stmt\For_; use PhpParser\Node\Stmt\Foreach_; use PhpParser\Node\...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/NodeVisitor/ComplexityNodeVisitor.php
src/NodeVisitor/ComplexityNodeVisitor.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\NodeVisitor; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; use TomasVotruba\CognitiveComplexity\DataCollector\CognitiveComplexityDataCollector; use TomasVotruba\CognitiveComplexity\NodeAnalyzer\ComplexityAffectingNodeFinder; final cl...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/Enum/RuleIdentifier.php
src/Enum/RuleIdentifier.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Enum; final class RuleIdentifier { public const string DEPENDENCY_TREE = 'complexity.dependencyTree'; public const string FUNCTION_COMPLEXITY = 'complexity.functionLike'; public const string CLASS_LIKE_COMPLEXITY = 'complexity.cl...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/Rules/ClassDependencyTreeRule.php
src/Rules/ClassDependencyTreeRule.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Rules; use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use PHPStan\Analyser\Scope; use PHPStan\Node\InClassNode; use PHPStan\Reflection\ClassReflection; use PHPStan\Reflection\ParameterReflection; use PHPStan\Reflection\ParametersAcceptorS...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/Rules/FunctionLikeCognitiveComplexityRule.php
src/Rules/FunctionLikeCognitiveComplexityRule.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Rules; use PhpParser\Node; use PhpParser\Node\Expr\ArrowFunction; use PhpParser\Node\Expr\Closure; use PhpParser\Node\FunctionLike; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PHPStan\Analyser\Scope; use PHPStan...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/Rules/ClassLikeCognitiveComplexityRule.php
src/Rules/ClassLikeCognitiveComplexityRule.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Rules; use PhpParser\Node; use PhpParser\Node\Stmt\Class_; use PHPStan\Analyser\Scope; use PHPStan\Node\InClassNode; use PHPStan\Rules\Rule; use PHPStan\Rules\RuleErrorBuilder; use TomasVotruba\CognitiveComplexity\AstCognitiveComplexityAnalyze...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/NodeTraverser/ComplexityNodeTraverserFactory.php
src/NodeTraverser/ComplexityNodeTraverserFactory.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\NodeTraverser; use PhpParser\NodeTraverser; use TomasVotruba\CognitiveComplexity\NodeVisitor\ComplexityNodeVisitor; use TomasVotruba\CognitiveComplexity\NodeVisitor\NestingNodeVisitor; final readonly class ComplexityNodeTraverserFactory { ...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/DataCollector/CognitiveComplexityDataCollector.php
src/DataCollector/CognitiveComplexityDataCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\DataCollector; final class CognitiveComplexityDataCollector { private int $operationComplexity = 0; private int $nestingComplexity = 0; public function increaseOperation(): void { ++$this->operationComplexity; } ...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/src/Exception/ShouldNotHappenException.php
src/Exception/ShouldNotHappenException.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Exception; use Exception; final class ShouldNotHappenException extends Exception { }
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/AstCognitiveComplexityAnalyzer/AstCognitiveComplexityAnalyzerTest.php
tests/AstCognitiveComplexityAnalyzer/AstCognitiveComplexityAnalyzerTest.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\AstCognitiveComplexityAnalyzer; use Iterator; use PhpParser\Node; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PhpParser\NodeFinder; use PhpParser\ParserFactory; use PHPStan\DependencyInjection\ContainerFac...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassLikeCognitiveComplexityRule/ClassLikeCognitiveComplexityRuleTest.php
tests/Rules/ClassLikeCognitiveComplexityRule/ClassLikeCognitiveComplexityRuleTest.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassLikeCognitiveComplexityRule; use Iterator; use Override; use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; use PHPUnit\Framework\Attributes\DataProvider; use TomasVotruba\CognitiveComplexity\Rules\ClassLikeCognitiveCom...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassLikeCognitiveComplexityRule/Fixture/SimpleCommand.php
tests/Rules/ClassLikeCognitiveComplexityRule/Fixture/SimpleCommand.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassLikeCognitiveComplexityRule\Fixture; use Symfony\Component\Console\Command\Command; final class SimpleCommand extends Command // +25 (extending another class) { public function someFunction($var) { if (true) {...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassLikeCognitiveComplexityRule/Fixture/ClassWithManyComplexMethods.php
tests/Rules/ClassLikeCognitiveComplexityRule/Fixture/ClassWithManyComplexMethods.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassLikeCognitiveComplexityRule\Fixture; final class ClassWithManyComplexMethods { public function someFunction($var) { try { if (true) { // +1 for ($i = 0; $i < 10; $i++) { // +2 (nesti...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/FunctionLikeCognitiveComplexityRule/FunctionLikeCognitiveComplexityRuleTest.php
tests/Rules/FunctionLikeCognitiveComplexityRule/FunctionLikeCognitiveComplexityRuleTest.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\FunctionLikeCognitiveComplexityRule; use Iterator; use Override; use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; use PHPUnit\Framework\Attributes\DataProvider; use TomasVotruba\CognitiveComplexity\Rules\FunctionLikeCognit...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/FunctionLikeCognitiveComplexityRule/Fixture/ClassMethodOverComplicated.php
tests/Rules/FunctionLikeCognitiveComplexityRule/Fixture/ClassMethodOverComplicated.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\FunctionLikeCognitiveComplexityRule\Fixture; final class ClassMethodOverComplicated { public function someMethod($var) { try { if (true) { // +1 for ($i = 0; $i < 10; $i++) { // +2 (nesti...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/FunctionLikeCognitiveComplexityRule/Fixture/VideoRepository.php
tests/Rules/FunctionLikeCognitiveComplexityRule/Fixture/VideoRepository.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\FunctionLikeCognitiveComplexityRule\Fixture; final class VideoRepository { /** * Total complexity: 9 */ public function findBySlug(string $slug): object { foreach ($this->livestreamVideos as $livestrea...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassDependencyTreeRule/ClassDependencyTreeRuleTest.php
tests/Rules/ClassDependencyTreeRule/ClassDependencyTreeRuleTest.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassDependencyTreeRule; use Iterator; use Override; use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; use PHPUnit\Framework\Attributes\DataProvider; use TomasVotruba\CognitiveComplexity\Rules\ClassDependencyTreeRule; fina...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassDependencyTreeRule/Source/AnotherComplexService.php
tests/Rules/ClassDependencyTreeRule/Source/AnotherComplexService.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassDependencyTreeRule\Source; class AnotherComplexService { public function someFunction($var) { try { if (true) { // +1 for ($i = 0; $i < 10; $i++) { // +2 (nesting=1) ...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassDependencyTreeRule/Source/CheckComplexity.php
tests/Rules/ClassDependencyTreeRule/Source/CheckComplexity.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassDependencyTreeRule\Source; class CheckComplexity { }
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassDependencyTreeRule/Source/ComplexService.php
tests/Rules/ClassDependencyTreeRule/Source/ComplexService.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassDependencyTreeRule\Source; class ComplexService { public function someFunction($var) { try { if (true) { // +1 for ($i = 0; $i < 10; $i++) { // +2 (nesting=1) whi...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/tests/Rules/ClassDependencyTreeRule/Fixture/ClassWithManyComplexTree.php
tests/Rules/ClassDependencyTreeRule/Fixture/ClassWithManyComplexTree.php
<?php declare(strict_types=1); namespace TomasVotruba\CognitiveComplexity\Tests\Rules\ClassDependencyTreeRule\Fixture; use TomasVotruba\CognitiveComplexity\Tests\Rules\ClassDependencyTreeRule\Source\AnotherComplexService; use TomasVotruba\CognitiveComplexity\Tests\Rules\ClassDependencyTreeRule\Source\CheckComplexity...
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
TomasVotruba/cognitive-complexity
https://github.com/TomasVotruba/cognitive-complexity/blob/9337cda7f048c69bf05fb1f939faddf57421066c/build/rector-downgrade-php-74.php
build/rector-downgrade-php-74.php
<?php declare(strict_types=1); use Rector\Config\RectorConfig; use Rector\Set\ValueObject\DowngradeLevelSetList; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_74]); };
php
MIT
9337cda7f048c69bf05fb1f939faddf57421066c
2026-01-05T04:29:17.150746Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/.php_cs.dist.php
.php_cs.dist.php
<?php $finder = Symfony\Component\Finder\Finder::create() ->in([ __DIR__ . '/src', __DIR__ . '/tests', ]) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); return (new PhpCsFixer\Config()) ->setRules([ '@PSR2' => true, 'array...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/CreateFile.php
src/CreateFile.php
<?php namespace LaravelEasyRepository; use Exception; use Illuminate\Filesystem\Filesystem; class CreateFile { /** * The path to create file at * @property string $path */ private $path; /** * The stubProperties to replace * @property array $stubProperties */ private ...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/LaravelEasyRepositoryFacade.php
src/LaravelEasyRepositoryFacade.php
<?php namespace LaravelEasyRepository; use Illuminate\Support\Facades\Facade; /** * @see \LaravelEasyRepository\LaravelEasyRepository */ class LaravelEasyRepositoryFacade extends Facade { protected static function getFacadeAccessor() { return 'laravel-easy-repository'; } }
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/LaravelEasyRepositoryServiceProvider.php
src/LaravelEasyRepositoryServiceProvider.php
<?php namespace LaravelEasyRepository; use LaravelEasyRepository\Commands\MakeRepository; use LaravelEasyRepository\Commands\MakeService; use LaravelEasyRepository\Commands\ModelMakeCommand; use Spatie\LaravelPackageTools\Exceptions\InvalidPackage; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTool...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/RepositoryServiceProvider.php
src/RepositoryServiceProvider.php
<?php namespace LaravelEasyRepository; use Carbon\Laravel\ServiceProvider; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\File; use LaravelEasyRepository\helpers\Search; use SplFileInfo; class RepositoryServiceProvider e...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/ServiceApi.php
src/ServiceApi.php
<?php namespace LaravelEasyRepository; use LaravelEasyRepository\Traits\ResultService; class ServiceApi implements BaseService { use ResultService; protected string $title = ""; protected string $create_message = "created successfully"; protected string $update_message = "updated successfully"; ...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Repository.php
src/Repository.php
<?php namespace LaravelEasyRepository; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; interface Repository { /** * Fin an item by id * @param mixed $id * @return Model|null */ public function find($id); /...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Service.php
src/Service.php
<?php namespace LaravelEasyRepository; use Exception; class Service implements BaseService { /** * Find an item by id * @param mixed $id * @return Model|null */ public function find($id) { return $this->mainRepository->find($id); } /** * Find an item by id or fa...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/BaseService.php
src/BaseService.php
<?php namespace LaravelEasyRepository; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; interface BaseService { /** * Fin an item by id * @param mixed $id * @return Model|null */ public function find($id); /** * find or fail * @param mixe...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/AssistCommand.php
src/AssistCommand.php
<?php namespace LaravelEasyRepository; use Illuminate\Filesystem\Filesystem; trait AssistCommand { /** * Get the app root path * * @return string|mixed */ public function appPath() { return app()->basePath(); } /** * Ensure a directory exists. * * @para...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/LaravelEasyRepository.php
src/LaravelEasyRepository.php
<?php namespace LaravelEasyRepository; class LaravelEasyRepository { }
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Traits/GenUid.php
src/Traits/GenUid.php
<?php namespace LaravelEasyRepository\Traits; trait GenUid { /** * Boot function from Laravel. */ protected static function boot() { parent::boot(); static::creating(function ($model) { if (empty($model->{$model->getKeyName()})) { $model->{$model->get...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Traits/Response.php
src/Traits/Response.php
<?php namespace LaravelEasyRepository\Traits; /** * Trait Response * @package App\Traits */ trait Response { /** * handel response json * @param bool $status * @param string $msg * @param array $data * @param null $code * @return \Illuminate\Http\JsonResponse */ public f...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Traits/ResultService.php
src/Traits/ResultService.php
<?php namespace LaravelEasyRepository\Traits; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\QueryException; use Exception; trait ResultService { private $data = null; private $message = null; private $code = null; private $errors = null; /** * @deprecated...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Traits/JsonValidateResponse.php
src/Traits/JsonValidateResponse.php
<?php namespace LaravelEasyRepository\Traits; use Illuminate\Contracts\Validation\Validator; use Illuminate\Http\Exceptions\HttpResponseException; use Illuminate\Http\JsonResponse; use Illuminate\Validation\ValidationException; trait JsonValidateResponse { /** * Handle a failed validation attempt. * ...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Traits/FileUpload.php
src/Traits/FileUpload.php
<?php namespace LaravelEasyRepository\Traits; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; trait FileUpload { public $settings = [ 'attributes' => ['file'], 'path' => 'files/', 'softdelete' => true ]; /** * add fileSettings method in mode...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/helpers/Search.php
src/helpers/Search.php
<?php namespace LaravelEasyRepository\helpers; use Illuminate\Filesystem\Filesystem; class Search { /** * @param $folder * @param $pattern_array * @return array [SplFileInfo] */ static function file($folder, $pattern_array) { // check directory exsist app()->make(Filesyst...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Implementations/Eloquent.php
src/Implementations/Eloquent.php
<?php namespace LaravelEasyRepository\Implementations; use Exception; use Illuminate\Database\Eloquent\Model; use LaravelEasyRepository\Repository; class Eloquent implements Repository { /** * Fin an item by id * @param mixed $id * @return Model|null */ public function find($id) { ...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Commands/MakeRepository.php
src/Commands/MakeRepository.php
<?php namespace LaravelEasyRepository\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use LaravelEasyRepository\AssistCommand; use LaravelEasyRepository\CreateFile; class MakeRepository extends Command { use AssistCommand; public $signature = 'mak...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Commands/ModelMakeCommand.php
src/Commands/ModelMakeCommand.php
<?php namespace LaravelEasyRepository\Commands; use Illuminate\Foundation\Console\ModelMakeCommand as ConsoleModelMakeCommand; use Illuminate\Support\Str; use Symfony\Component\Console\Input\InputOption; class ModelMakeCommand extends ConsoleModelMakeCommand { /** * The console command description. * ...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/src/Commands/MakeService.php
src/Commands/MakeService.php
<?php namespace LaravelEasyRepository\Commands; use Illuminate\Console\Command; use Illuminate\Support\Str; use LaravelEasyRepository\AssistCommand; use LaravelEasyRepository\CreateFile; use File; class MakeService extends Command { use AssistCommand; public $signature = 'make:service {name : The na...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/tests/TestCase.php
tests/TestCase.php
<?php namespace LaravelEasyRepository\Tests; use Illuminate\Database\Eloquent\Factories\Factory; use LaravelEasyRepository\LaravelEasyRepositoryServiceProvider; use Orchestra\Testbench\TestCase as Orchestra; class TestCase extends Orchestra { public function setUp(): void { parent::setUp(); ...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/tests/ExampleTest.php
tests/ExampleTest.php
<?php namespace LaravelEasyRepository\Tests; class ExampleTest extends TestCase { /** @test */ public function true_is_true() { $this->assertTrue(true); } }
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/tests/Unit/FolderTest.php
tests/Unit/FolderTest.php
<?php namespace LaravelEasyRepository\Tests\Unit; use LaravelEasyRepository\Tests\TestCase; class FolderTest extends TestCase { /** * @group folder_test */ public function test_folder_repository() { $folder_exist = false; if(file_exists($this->app->basePath()."/".config("easy-r...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/tests/Unit/ServiceTest.php
tests/Unit/ServiceTest.php
<?php namespace LaravelEasyRepository\Tests\Unit; use Illuminate\Support\Str; use LaravelEasyRepository\Commands\MakeService; use LaravelEasyRepository\Tests\TestCase; /** * @group unit * Class ServiceTest * @package LaravelEasyRepository\Tests\Unit */ class ServiceTest extends TestCase { private $surfix, $...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/tests/Unit/ServiceProviderTest.php
tests/Unit/ServiceProviderTest.php
<?php namespace LaravelEasyRepository\Tests\Unit; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Facades\File; use LaravelEasyRepository\Tests\TestCase; use LaravelEasyRepository\helpers\Search; use SplFileInfo; /** * @group serviceprovider * Class ServiceProviderTest * @package LaravelEasyReposit...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/tests/Unit/RepositoryTest.php
tests/Unit/RepositoryTest.php
<?php namespace LaravelEasyRepository\Tests\Unit; use LaravelEasyRepository\Commands\MakeRepository; use LaravelEasyRepository\Tests\TestCase; /** * @group unit * Class RepositoryTest * @package LaravelEasyRepository\Tests\Unit */ class RepositoryTest extends TestCase { private $surfix, $repository; p...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/tests/Integrations/CreateRepositoryTest.php
tests/Integrations/CreateRepositoryTest.php
<?php namespace LaravelEasyRepository\Tests\Integrations; use LaravelEasyRepository\Commands\MakeRepository; use LaravelEasyRepository\Tests\TestCase; use Illuminate\Console\Command; use Mockery\MockInterface; class CreateRepositoryTest extends TestCase { /** * test create repository * @group integr...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/config/easy-repository.php
config/easy-repository.php
<?php return [ /** * The directory for all the repositories */ "repository_directory" => "app/Repositories", /** * Default repository namespace */ "repository_namespace" => "App\Repositories", /** * The directory for all the services */ "service_directory" => "ap...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
yaza-putu/laravel-repository-with-service
https://github.com/yaza-putu/laravel-repository-with-service/blob/bda827a5f10955ce025e2887349ff67231b04d0e/config/easy-repository-sys.php
config/easy-repository-sys.php
<?php return [ /** * Repository interface name suffix */ "repository_interface_suffix" => "Repository", /** * Repository name suffix */ "repository_suffix" => "RepositoryImplement", /** * Service interface name suffix */ "service_interface_suffix" => "Service", ...
php
MIT
bda827a5f10955ce025e2887349ff67231b04d0e
2026-01-05T04:29:22.076372Z
false
gocanto/http-client
https://github.com/gocanto/http-client/blob/5b566c5865b28e5ca9166e1dad41ebad7d37ecf9/.php-cs-fixer.php
.php-cs-fixer.php
<?php declare(strict_types=1); use PhpCsFixer\Finder; use PhpCsFixer\Config; $finder = Finder::create() ->in(__DIR__ . '/src/'); $config = new Config(); return $config->setFinder($finder) ->setRules([ '@PSR12' => true, 'array_syntax' => ['syntax' => 'short'], 'combine_consecutive_un...
php
MIT
5b566c5865b28e5ca9166e1dad41ebad7d37ecf9
2026-01-05T04:29:25.219906Z
false
gocanto/http-client
https://github.com/gocanto/http-client/blob/5b566c5865b28e5ca9166e1dad41ebad7d37ecf9/src/HttpClient.php
src/HttpClient.php
<?php declare(strict_types=1); namespace Gocanto\HttpClient; use Closure; use GuzzleHttp\Client; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\HandlerStack; use GuzzleHttp\Middleware; use GuzzleHttp\TransferStats; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Log\...
php
MIT
5b566c5865b28e5ca9166e1dad41ebad7d37ecf9
2026-01-05T04:29:25.219906Z
false
gocanto/http-client
https://github.com/gocanto/http-client/blob/5b566c5865b28e5ca9166e1dad41ebad7d37ecf9/tests/HttpClientTest.php
tests/HttpClientTest.php
<?php declare(strict_types=1); namespace Gocanto\HttpClient\Tests; use Gocanto\HttpClient\HttpClient; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\GuzzleException; use Mockery; use PHPUnit\Framework\TestCase; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Ps...
php
MIT
5b566c5865b28e5ca9166e1dad41ebad7d37ecf9
2026-01-05T04:29:25.219906Z
false
nunomaduro/yorn
https://github.com/nunomaduro/yorn/blob/c74c1b37d0382fc5be3f67b39f41a853760ef6ea/src/Yorn.php
src/Yorn.php
<?php declare(strict_types=1); namespace NunoMaduro\Yorn; /** * @internal */ final class Yorn { /** * Holds the resolved modules. * * @var array<string, callable> */ private static $modules = []; /** * Registers the given callable as module. * * @param callable $ca...
php
MIT
c74c1b37d0382fc5be3f67b39f41a853760ef6ea
2026-01-05T04:29:34.169125Z
false
nunomaduro/yorn
https://github.com/nunomaduro/yorn/blob/c74c1b37d0382fc5be3f67b39f41a853760ef6ea/src/functions.php
src/functions.php
<?php declare(strict_types=1); use NunoMaduro\Yorn\Yorn; (function () { function import(string $module) { return Yorn::import($module); } function export(callable $callable): void { Yorn::export($callable); } })();
php
MIT
c74c1b37d0382fc5be3f67b39f41a853760ef6ea
2026-01-05T04:29:34.169125Z
false
nunomaduro/yorn
https://github.com/nunomaduro/yorn/blob/c74c1b37d0382fc5be3f67b39f41a853760ef6ea/src/ModuleResolver.php
src/ModuleResolver.php
<?php declare(strict_types=1); namespace NunoMaduro\Yorn; use ReflectionFunction; /** * @internal */ final class ModuleResolver { /** * Resolve the FileName from the given `callback` * * @param callable $callback * * @return string */ public static function resolve(callable...
php
MIT
c74c1b37d0382fc5be3f67b39f41a853760ef6ea
2026-01-05T04:29:34.169125Z
false
nunomaduro/yorn
https://github.com/nunomaduro/yorn/blob/c74c1b37d0382fc5be3f67b39f41a853760ef6ea/tests/fixtures/functionType.php
tests/fixtures/functionType.php
<?php export(function () { return 'bar'; });
php
MIT
c74c1b37d0382fc5be3f67b39f41a853760ef6ea
2026-01-05T04:29:34.169125Z
false
nunomaduro/yorn
https://github.com/nunomaduro/yorn/blob/c74c1b37d0382fc5be3f67b39f41a853760ef6ea/tests/fixtures/concerns/bob.php
tests/fixtures/concerns/bob.php
<?php export(function (string $foo) { return $foo; });
php
MIT
c74c1b37d0382fc5be3f67b39f41a853760ef6ea
2026-01-05T04:29:34.169125Z
false
nunomaduro/yorn
https://github.com/nunomaduro/yorn/blob/c74c1b37d0382fc5be3f67b39f41a853760ef6ea/tests/unit/imports.php
tests/unit/imports.php
<?php it('imports functions', function () { $foo = import('../fixtures/functionType'); assertEquals($foo(), 'bar'); }); it('uses exports file', function () { $concerns = import('../fixtures/concerns'); $bob = $concerns->bob; assertEquals($bob(1), 1); });
php
MIT
c74c1b37d0382fc5be3f67b39f41a853760ef6ea
2026-01-05T04:29:34.169125Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/bindings.php
src/bindings.php
<?php use JsLocalization\Caching\ConfigCachingService; use JsLocalization\Caching\MessageCachingService; use JsLocalization\Utils\Helper; App::singleton('JsLocalizationHelper', function() { return new Helper; }); App::singleton('JsLocalizationMessageCachingService', function() { return new MessageCachingServ...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/JsLocalizationServiceProvider.php
src/JsLocalizationServiceProvider.php
<?php namespace JsLocalization; use App; use Artisan; use Config; use View; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\File; use JsLocalization\Console\ExportCommand; use JsLocalization\Console\RefreshCommand; class JsLocalizationServiceProvider extends ServiceProvider { /** * Indicate...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Exceptions/FileNotFoundException.php
src/Exceptions/FileNotFoundException.php
<?php /** * Created by PhpStorm. * User: andy * Date: 26.03.15 * Time: 19:27 */ namespace JsLocalization\Exceptions; class FileNotFoundException extends \Exception { }
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Exceptions/ConfigException.php
src/Exceptions/ConfigException.php
<?php /** * Created by PhpStorm. * User: andy * Date: 26.03.15 * Time: 21:03 */ namespace JsLocalization\Exceptions; class ConfigException extends \Exception { }
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Http/routes.php
src/Http/routes.php
<?php Route::group([ 'namespace' => '\JsLocalization\Http\Controllers' ], function() { Route::get('/js-localization/messages', 'JsLocalizationController@createJsMessages'); Route::get('/js-localization/config', 'JsLocalizationController@createJsConfig'); Route::get('/js-localization/localization.js', 'JsL...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Http/Controllers/JsLocalizationController.php
src/Http/Controllers/JsLocalizationController.php
<?php namespace JsLocalization\Http\Controllers; use Illuminate\Routing\Controller; use JsLocalization\Facades\ConfigCachingService; use JsLocalization\Facades\MessageCachingService; use JsLocalization\Http\Responses\StaticFileResponse; class JsLocalizationController extends Controller { /** * Create the J...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Http/Responses/StaticFileResponse.php
src/Http/Responses/StaticFileResponse.php
<?php namespace JsLocalization\Http\Responses; use App; use DateTime; use Exception; use Illuminate\Http\Response; use Illuminate\Support\Facades\File; class StaticFileResponse extends Response { public function __construct($filePath) { parent::__construct(); if (!File::isFile($filePath)) { ...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Utils/Helper.php
src/Utils/Helper.php
<?php namespace JsLocalization\Utils; use App; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\File; use JsLocalization\Exceptions\FileNotFoundException; class Helper { /** * Array of message keys. A set of messages that are * supposed to be exported to the JS code in addition ...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Caching/AbstractCachingService.php
src/Caching/AbstractCachingService.php
<?php /** * Created by PhpStorm. * User: andy * Date: 02.08.15 * Time: 23:33 */ namespace JsLocalization\Caching; use Cache; use DateTime; abstract class AbstractCachingService { /** * The key used to cache the data. * * @var string */ protected $cacheKey; /** * The key us...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Caching/ConfigCachingService.php
src/Caching/ConfigCachingService.php
<?php namespace JsLocalization\Caching; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Event; /** * Class ConfigCachingService * @package JsLocalization\Caching */ class ConfigCachingService extends AbstractCachingService { /** * The key used to cache the JSON encoded messages. ...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Caching/MessageCachingService.php
src/Caching/MessageCachingService.php
<?php namespace JsLocalization\Caching; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Lang; use JsLocalization\Facades\JsLocalizationHelper; /** * Class MessageCachingService * @package JsLocalization\Caching */ cla...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Facades/ConfigCachingService.php
src/Facades/ConfigCachingService.php
<?php /** * Created by PhpStorm. * User: andy * Date: 03.08.15 * Time: 16:40 */ namespace JsLocalization\Facades; use Illuminate\Support\Facades\Facade; /** * Class ConfigCachingService * @package JsLocalization\Facades * * @method static void refreshCache() * @method static \DateTime getLastRefreshTimest...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Facades/MessageCachingService.php
src/Facades/MessageCachingService.php
<?php namespace JsLocalization\Facades; use Illuminate\Support\Facades\Facade; /** * Class MessageCachingService * @package JsLocalization\Facades * * @method static void refreshCache() * @method static \DateTime getLastRefreshTimestamp() * @method static string getMessagesJson(bool $noCache = false) * @metho...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Facades/JsLocalizationHelper.php
src/Facades/JsLocalizationHelper.php
<?php namespace JsLocalization\Facades; use Illuminate\Support\Facades\Facade; class JsLocalizationHelper extends Facade { protected static function getFacadeAccessor() { return 'JsLocalizationHelper'; } }
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Console/RefreshCommand.php
src/Console/RefreshCommand.php
<?php namespace JsLocalization\Console; use Config; use Illuminate\Console\Command; use JsLocalization\Exceptions\ConfigException; use JsLocalization\Facades\ConfigCachingService; use JsLocalization\Facades\MessageCachingService; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\Inpu...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/src/Console/ExportCommand.php
src/Console/ExportCommand.php
<?php namespace JsLocalization\Console; use Config; use Illuminate\Console\Command; use File; use JsLocalization\Exceptions\ConfigException; use JsLocalization\Facades\ConfigCachingService; use JsLocalization\Facades\MessageCachingService; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/TestCase.php
tests/TestCase.php
sh<?php use Mockery as m; class TestCase extends Orchestra\Testbench\TestCase { protected $testMessagesConfig = [ 'test_string', 'test' // this includes all messages with key 'test.*' ]; protected $testMessages = [ 'en' => [ 'test_string' => 'This is:...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/JsLocalizationServiceProviderTest.php
tests/JsLocalization/JsLocalizationServiceProviderTest.php
<?php use JsLocalization\JsLocalizationServiceProvider; use Symfony\Component\Console\Tester\CommandTester; class JsLocalizationServiceProviderTest extends Orchestra\Testbench\TestCase { protected function getPackageProviders($app) { return ['JsLocalization\JsLocalizationServiceProvider']; } ...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/Http/LocalizationScriptTest.php
tests/JsLocalization/Http/LocalizationScriptTest.php
<?php class LocalizationScriptTest extends TestCase { public function testScriptRetrieval() { $response = $this->call('GET', '/js-localization/localization.js'); $this->assertTrue($response->isOk()); $content = $response->getContent(); // Test for JS content ...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/Http/Controllers/JsLocalizationControllerTest.php
tests/JsLocalization/Http/Controllers/JsLocalizationControllerTest.php
<?php use Mockery as m; class JsLocalizationControllerTest extends TestCase { public function testCreateJsMessages() { // Prepare & Request $this->mockLang($locale = 'en'); Artisan::call('js-localization:refresh'); $response = $this->call('GET', '/js-localization/message...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/Http/Responses/StaticFileResponseTest.php
tests/JsLocalization/Http/Responses/StaticFileResponseTest.php
<?php use Illuminate\Support\Facades\File; use JsLocalization\Http\Responses\StaticFileResponse; class StaticFileResponseTest extends TestCase { protected $testFilePath; protected $testFileContent; public function setUp(): void { parent::setUp(); $this->testFilePath = "/tmp/laravel-s...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/Utils/JsLocalizationHelperTest.php
tests/JsLocalization/Utils/JsLocalizationHelperTest.php
<?php use JsLocalization\Facades\JsLocalizationHelper; class JsLocalizationHelperTest extends TestCase { private $tmpFilePath; protected $additionalMessageKeys = [ 'additional' => [ 'message1', 'message2' ] ]; protected $additionalMessageK...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/Caching/MessageCachingServiceTest.php
tests/JsLocalization/Caching/MessageCachingServiceTest.php
<?php use Mockery as m; use JsLocalization\Facades\MessageCachingService; class MessageCachingServiceTest extends TestCase { public function setUp(): void { parent::setUp(); Cache::forget(JsLocalization\Caching\MessageCachingService::CACHE_KEY); Cache::forget(JsLocalization\Caching\M...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/Caching/ConfigCachingServiceTest.php
tests/JsLocalization/Caching/ConfigCachingServiceTest.php
<?php use Mockery as m; use JsLocalization\Facades\ConfigCachingService; class ConfigCachingServiceTest extends TestCase { public function setUp(): void { parent::setUp(); Cache::forget(JsLocalization\Caching\ConfigCachingService::CACHE_KEY); Cache::forget(JsLocalization\Caching\Conf...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/tests/JsLocalization/Console/RefreshCommandTest.php
tests/JsLocalization/Console/RefreshCommandTest.php
<?php use Mockery as m; use JsLocalization\Console\RefreshCommand; class RefreshCommandTest extends TestCase { public function tearDown(): void { m::close(); parent::tearDown(); } public function testNoLocalesConfigException() { // Mock Config Illuminate\Support\F...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/config/config.php
config/config.php
<?php return [ /* |-------------------------------------------------------------------------- | Define the languages you want exported messages for |-------------------------------------------------------------------------- */ 'locales' => ['en'], /* |--------------------------------...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false
andywer/laravel-js-localization
https://github.com/andywer/laravel-js-localization/blob/33cda9e64e51443876086cdaefd8e0fe1d19678d/resources/views/head.blade.php
resources/views/head.blade.php
@section('js-localization.head') <script src="{{ url('/js-localization/localization.js') }}"></script> <script src="{{ url('/js-localization/messages') }}"></script> @if(Config::get('js-localization.config')) <script src="{{ url('/js-localization/config') }}"></script> @endif <script> ...
php
MIT
33cda9e64e51443876086cdaefd8e0fe1d19678d
2026-01-05T04:29:42.863044Z
false