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
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/phpresolver/playdarresolver.php
contrib/phpresolver/playdarresolver.php
<?php /** * @author David Singleton (http://dsingleton.co.uk) * A base player resolver written in PHP. * Handles basic request/response, encoding. */ abstract class PlaydarResolver { protected $name; protected $targetTime; // Lower is better protected $weight; // 1-100. higher means preferable. ...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
false
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/hypemachine/hypem-resolver.php
contrib/hypemachine/hypem-resolver.php
#!/usr/bin/php <?php require_once dirname(__FILE__) . '/phpresolver/playdarresolver.php'; /** * A resolver for MP3s from blogs indexed by Hype Machine * @author David Singleton (http://dsingleton.co.uk) * @todo Get the cookie once only, cache and re-send. */ class HypeMachineResolver extends PlaydarResolver {...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
false
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/demo-script/demo-resolver.php
contrib/demo-script/demo-resolver.php
#!/usr/bin/php <?php /* This is an example resolving script. It accepts queries on stdin, and only matches one hardcoded song, and replies by writing to stdout if it finds a match. This means you can write resolvers in any language, even PHP. The song this script matches is: Artist: M...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
false
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/ampache/ampache-resolver.php
contrib/ampache/ampache-resolver.php
#!/usr/bin/env php <?php require dirname(__FILE__) . '/../phpresolver/playdarresolver.php'; class AmpacheResolver extends PlaydarResolver { protected $name = 'ampache resolver'; protected $targetTime = 50; protected $weight = 100; protected $localonly = FALSE; private $link; private $prefix...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
false
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/magnatune/magnatune-idx.php
contrib/magnatune/magnatune-idx.php
<?php return array ( 'KRNMTK' => array ( 'ARN' => array ( 0 => array ( 'artist' => 'Kara Nomadica', 'track' => 'Arainia', 'album' => 'Kara Nomadica', 'duration' => '280', 'url' => 'http://he3.magnatune.com/all/01-Arainia-Kara%20Nomadica.mp3', ), ...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
true
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/magnatune/magnatune-resolver.php
contrib/magnatune/magnatune-resolver.php
#!/usr/bin/php <?php $in = fopen("php://STDIN", "r"); // report our settings before entering the main query loop: send_reply( get_settings() ); // load index: $magnatune = @require("magnatune-idx.php"); // main loop: wait for a query, try and find match and reply. while(!feof($in)){ // get the length of the pa...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
false
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/lastfm_freedownloads/lfmdownload-resolver.php
contrib/lastfm_freedownloads/lfmdownload-resolver.php
#!/usr/bin/php <?php require_once dirname(__FILE__) . '/phpresolver/playdarresolver.php'; /** * A resolver for Last.fm tracks available as free download * @author David Singleton (http://dsingleton.co.uk) */ class LastfmDownloadResolver extends PlaydarResolver { protected $name = 'Last.fm Free Download'; ...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
false
RJ/playdar-core
https://github.com/RJ/playdar-core/blob/08c1a78c782ceec99e7b521b8dbaae76c5e6b08f/contrib/amazon/amazon-resolver.php
contrib/amazon/amazon-resolver.php
#!/usr/bin/env php <?php require dirname(__FILE__) . '/../phpresolver/playdarresolver.php'; class AmazonResolver extends PlaydarResolver { protected $name = 'Amazon MP3 Preview resolver'; protected $targetTime = 500; protected $weight = 20; protected $localonly = TRUE; private $key; private...
php
MIT
08c1a78c782ceec99e7b521b8dbaae76c5e6b08f
2026-01-05T02:45:29.258118Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/CheckSuite.php
src/QuickCheck/CheckSuite.php
<?php namespace QuickCheck; class CheckSuite { private $checks = []; private $file; function __construct(string $file) { $this->file = $file; } function register(Check $check) { $this->checks[] = $check; } function empty() { return empty($this->checks); } ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/PropertyTest.php
src/QuickCheck/PropertyTest.php
<?php namespace QuickCheck; class PropertyTest { private $result; private $predicate; private $arguments; function __construct($result, callable $predicate, array $arguments) { $this->result = $result; $this->predicate = $predicate; $this->arguments = $arguments; } ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/ShrinkResult.php
src/QuickCheck/ShrinkResult.php
<?php namespace QuickCheck; class ShrinkResult { private $visited; private $depth; private $test; function __construct(int $visited, int $depth, PropertyTest $test) { $this->visited = $visited; $this->depth = $depth; $this->test = $test; } function visited() { ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Annotation.php
src/QuickCheck/Annotation.php
<?php namespace QuickCheck; use QuickCheck\Exceptions\AmbiguousTypeAnnotationException; use QuickCheck\Exceptions\AnnotationException; use QuickCheck\Exceptions\DuplicateGeneratorException; use QuickCheck\Exceptions\MissingTypeAnnotationException; use QuickCheck\Exceptions\NoGeneratorAnnotationException; /** * This...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Random.php
src/QuickCheck/Random.php
<?php namespace QuickCheck; /** * This implementation is ripped straight from java.util.Random * Requires gmp extension and 64 bit integer precision. The constructor will throw if * PHP_INT_SIZE is less than 8. */ class Random { const ADDEND = 0xB; const MULTIPLIER = 0x5DEECE66D; private $seed; pu...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/ShrinkTreeNode.php
src/QuickCheck/ShrinkTreeNode.php
<?php namespace QuickCheck; /** * A lazy monadic multi-way tree, used for shrinking. * This implementation is based on clojure.test.check.rose-tree. * * @package QuickCheck */ class ShrinkTreeNode { private $value; private $children; public function __construct($value, callable $children) { ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Test.php
src/QuickCheck/Test.php
<?php namespace QuickCheck; use Symfony\Component\Console\Helper\ProgressBar; use Symfony\Component\Console\Output\ConsoleOutput; class Test { private static $currentSuite = null; /** @var CheckSuite[] */ private static $suites = []; static function forAll($args, $pred, $times = 100, $maxSize = 200)...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Lazy.php
src/QuickCheck/Lazy.php
<?php namespace QuickCheck; /** * Utilities for working with lazy sequences * * @package QuickCheck */ class Lazy { /** * Reduce any iterable collection using the callback. In case * of an array, array_reduce is used. * * @param callable $f * @param $xs * @param null $initial ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Failure.php
src/QuickCheck/Failure.php
<?php namespace QuickCheck; class Failure implements CheckResult { private $numTests; private $seed; private $shrunk; private $failed; function __construct(int $numTests, int $seed, PropertyTest $failed, ShrinkResult $shrunk) { $this->numTests = $numTests; $this->seed = $seed; ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Property.php
src/QuickCheck/Property.php
<?php namespace QuickCheck; class Property { private $generator; private $maxSize; private function __construct(Generator $generator, int $maxSize = 200) { $this->generator = $generator; $this->maxSize = $maxSize; } public static function forAll(array $args, callable $f, int ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/TestRunner.php
src/QuickCheck/TestRunner.php
<?php namespace QuickCheck; use Symfony\Component\Console\Helper\ProgressBar; use Symfony\Component\Console\Output\ConsoleOutput; class TestRunner { private $numTests; private $maxSize; private $out; private $testCount; function __construct(int $numTests = null, int $maxSize = null) { $t...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Check.php
src/QuickCheck/Check.php
<?php namespace QuickCheck; class Check { private $numTests = 100; private $maxSize = 200; private $name; private $suite; private $property; function __construct(CheckSuite $suite, string $name = null) { $this->name = $name; $this->suite = $suite; } function forAll(ar...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/CheckResult.php
src/QuickCheck/CheckResult.php
<?php namespace QuickCheck; interface CheckResult { function seed(): int; function numTests(): int; function isFailure(): bool; function isSuccess(): bool; function dump(callable $encode): void; }
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Success.php
src/QuickCheck/Success.php
<?php namespace QuickCheck; class Success implements CheckResult { private $numTests; private $seed; function __construct(int $numTests, int $seed) { $this->numTests = $numTests; $this->seed = $seed; } function numTests(): int { return $this->numTests; } func...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Arrays.php
src/QuickCheck/Arrays.php
<?php namespace QuickCheck; class Arrays { /** * Return a copy of the given array where the value * at index $k has been changed to $val. * * @param array $arr * @param $k * @param $val * @return array */ public static function assoc(array $arr, $k, $val) { ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Generator.php
src/QuickCheck/Generator.php
<?php namespace QuickCheck; /** * A monadic generator that produces lazy shrink trees. * Based on clojure.test.check.generators. * * @package QuickCheck */ class Generator { private $gen; private function __construct(callable $gen) { $this->gen = $gen; } /** * invokes the gener...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Exceptions/NoGeneratorAnnotationException.php
src/QuickCheck/Exceptions/NoGeneratorAnnotationException.php
<?php namespace QuickCheck\Exceptions; class NoGeneratorAnnotationException extends AnnotationException {}
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Exceptions/MissingTypeAnnotationException.php
src/QuickCheck/Exceptions/MissingTypeAnnotationException.php
<?php namespace QuickCheck\Exceptions; class MissingTypeAnnotationException extends AnnotationException {}
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Exceptions/AnnotationException.php
src/QuickCheck/Exceptions/AnnotationException.php
<?php namespace QuickCheck\Exceptions; class AnnotationException extends \Exception {}
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Exceptions/AmbiguousTypeAnnotationException.php
src/QuickCheck/Exceptions/AmbiguousTypeAnnotationException.php
<?php namespace QuickCheck\Exceptions; class AmbiguousTypeAnnotationException extends AnnotationException {}
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/Exceptions/DuplicateGeneratorException.php
src/QuickCheck/Exceptions/DuplicateGeneratorException.php
<?php namespace QuickCheck\Exceptions; class DuplicateGeneratorException extends AnnotationException {}
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/src/QuickCheck/PHPUnit/PropertyConstraint.php
src/QuickCheck/PHPUnit/PropertyConstraint.php
<?php namespace QuickCheck\PHPUnit; use PHPUnit\Framework\Constraint\Constraint; use QuickCheck\Failure; use QuickCheck\Property; class PropertyConstraint extends Constraint { /** * @var int */ private $numTests; /** * @var int */ private $seed; private $showExceptionStacktr...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/test/QuickCheck/QuicknDirtyTest.php
test/QuickCheck/QuicknDirtyTest.php
<?php namespace QuickCheck; use PHPUnit\Framework\AssertionFailedError; use PHPUnit\Framework\TestCase; use QuickCheck\Generator as Gen; use QuickCheck\PHPUnit\PropertyConstraint; class QuicknDirtyTest extends TestCase { /** * @dataProvider ints */ function testInt($int) { $this->assertTrue...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/test/QuickCheck/AnnotationTest.php
test/QuickCheck/AnnotationTest.php
<?php namespace QuickCheck; use PHPUnit\Framework\TestCase; use QuickCheck\Exceptions\AmbiguousTypeAnnotationException; use QuickCheck\Exceptions\DuplicateGeneratorException; use QuickCheck\Exceptions\MissingTypeAnnotationException; use QuickCheck\Exceptions\NoGeneratorAnnotationException; /** * @param string $a *...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/test/QuickCheck/LazyTest.php
test/QuickCheck/LazyTest.php
<?php namespace QuickCheck; use PHPUnit\Framework\TestCase; class LazyTest extends TestCase { function testTakeNth() { $this->assertEquals( [0, 2, 4], Lazy::realize(Lazy::takeNth(2, Lazy::range(0, 5))) ); $this->assertEquals( [0, 3, 6], Lazy...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/test/QuickCheck/PHPUnitIntegrationTest.php
test/QuickCheck/PHPUnitIntegrationTest.php
<?php namespace QuickCheck; use PHPUnit\Framework\TestCase; use QuickCheck\Generator as Gen; use QuickCheck\PHPUnit\PropertyConstraint; class PHPUnitIntegrationTest extends TestCase { /** * Test example from PHPUnit integration documentation */ public function testStringsAreLessThanTenChars() {...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/examples/intArrayElementsLessThan1000.php
examples/intArrayElementsLessThan1000.php
<?php declare(strict_types=1); use QuickCheck\Generator as Gen; use QuickCheck\Test; Test::forAll( [Gen::ints()->intoArrays()], function($xs): bool { $n = count(array_filter($xs, function($n): bool { return $n > 1000; })); return $n === 0; });
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/examples/integerAddition.php
examples/integerAddition.php
<?php declare(strict_types=1); use QuickCheck\Generator as Gen; use QuickCheck\Test; Test::check('is commutative') ->times(1000) ->maxSize(500) ->forAll( [Gen::ints(), Gen::ints()], function($a, $b): bool { return $a + $b === $b + $a; }); Test::check('has zero as iden...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/examples/brokenSort.php
examples/brokenSort.php
<?php declare(strict_types=1); use QuickCheck\Generator as Gen; use QuickCheck\Test; function isAscending(array $xs): bool { $last = count($xs) - 1; for ($i = 0; $i < $last; ++$i) { if ($xs[$i] > $xs[$i + 1]) { return false; } } return true; } function myBrokenSort(array ...
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/examples/strings/neverNumeric.php
examples/strings/neverNumeric.php
<?php declare(strict_types=1); use QuickCheck\Generator as Gen; use QuickCheck\Test; Test::forAll( [Gen::asciiStrings()], function($s): bool { return !is_numeric($s); }, 1000 );
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
steos/php-quickcheck
https://github.com/steos/php-quickcheck/blob/158ae369352e1ce4cfc04c39803e8b340a27cd5f/examples/strings/lengthLessThan200.php
examples/strings/lengthLessThan200.php
<?php declare(strict_types=1); use QuickCheck\Generator as Gen; use QuickCheck\Test; Test::forAll( [Gen::asciiStrings()], function($x): bool { return strlen($x) < 200; }, 1000, 400 );
php
BSD-3-Clause
158ae369352e1ce4cfc04c39803e8b340a27cd5f
2026-01-05T02:45:45.742962Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/src/LinguistServiceProvider.php
src/LinguistServiceProvider.php
<?php namespace Keevitaja\Linguist; use Illuminate\Support\ServiceProvider; class LinguistServiceProvider extends ServiceProvider { /** * @return void */ public function boot() { $this->publishes([ __DIR__.'/../config/linguist.php' => config_path('linguist.php'), ], ...
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/src/UriFixer.php
src/UriFixer.php
<?php namespace Keevitaja\Linguist; class UriFixer { /** * @var array */ protected $config; public function __construct() { $this->config = $this->getConfig(); } /** * @return boolean */ public function fixit() { if (isset($_SERVER['REQUEST_URI']))...
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/src/Linguist.php
src/Linguist.php
<?php namespace Keevitaja\Linguist; use Illuminate\Contracts\Config\Repository as Config; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Routing\UrlGenerator; use Illuminate\Http\Request; use Illuminate\Support\Str; class Linguist { /** @var array */ protected $config; /** @va...
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/src/helpers.php
src/helpers.php
<?php if (! function_exists('linguist_asset')) { /** * Generate a linguist asset path for the application. * * @param $path * @param null $secure * @return string */ function linguist_asset($path, $secure = null) { if (url()->isValidUrl($path)) { return $pa...
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/src/LocalizedKernel.php
src/LocalizedKernel.php
<?php namespace Keevitaja\Linguist; use App\Http\Kernel; use Illuminate\Contracts\Foundation\Application; use Illuminate\Routing\Router; use Keevitaja\Linguist\UriFixer; class LocalizedKernel extends Kernel { /** * @param Illuminate\Contracts\Foundation\Application $app * @param Illuminate\Routing\Rou...
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/src/Switcher.php
src/Switcher.php
<?php namespace Keevitaja\Linguist; use Illuminate\Contracts\Routing\UrlGenerator; use Illuminate\Http\Request; use Keevitaja\Linguist\Linguist; class Switcher { /** * @param Keevitaja\Linguist\Linguist $linguist * @param Illuminate\Contracts\Routing\UrlGenerator $url * @param Illuminate\Http\Requ...
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/src/LocalizeUrls.php
src/LocalizeUrls.php
<?php namespace Keevitaja\Linguist; use Closure; use Keevitaja\Linguist\Linguist; class LocalizeUrls { /** @var Keevitaja\Linguist\Linguist */ protected $linguist; public function __construct(Linguist $linguist) { $this->linguist = $linguist; } /** * @param Illuminate\Http\Requ...
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
keevitaja/linguist
https://github.com/keevitaja/linguist/blob/338a1a68cbf700b269dba31b00dd66be7acec833/config/linguist.php
config/linguist.php
<?php return [ 'default' => 'en', 'enabled' => ['et', 'en', 'fi'], 'hide_default' => true, 'deny_default' => true, 'fallback' => 'en' ];
php
MIT
338a1a68cbf700b269dba31b00dd66be7acec833
2026-01-05T02:45:48.690444Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/src/DogStatsd.php
src/DogStatsd.php
<?php namespace DataDog; use DataDog\OriginDetection; use Exception; /** * Datadog implementation of StatsD **/ class DogStatsd { // phpcs:disable const OK = 0; const WARNING = 1; const CRITICAL = 2; const UNKNOWN = 3; // phpcs:enable /** * @var string */ pri...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/src/OriginDetection.php
src/OriginDetection.php
<?php namespace DataDog; class OriginDetection { // phpcs:disable // CGROUPV1BASECONTROLLER is the controller used to identify the container-id for cgroup v1 const CGROUPV1BASECONTROLLER = "memory"; // From // https://github.com/torvalds/linux/blob/5859a2b1991101d6b978f3feb5325dad39421f29/include...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/src/BatchedDogStatsd.php
src/BatchedDogStatsd.php
<?php namespace DataDog; /** * Class BatchedDogStatsd * * Useful for sending batches of UDP messages to DataDog after reaching a * configurable max buffer size of unsent messages. * * Buffer defaults to 50 messages; * * @package DataDog */ class BatchedDogStatsd extends DogStatsd { private static $buffer...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/socket_function_stubs.php
tests/socket_function_stubs.php
<?php /** * Stubbed versions of socket functions * * Useful for testing DataDog\DogStatsd::send without actually attempting to * send data over a socket. * * @see \DataDog\UnitTests\DogStatsd\SocketsTest * @see \DataDog\TestHelpers\SocketSpy * @see \DataDog\TestHelpers\SocketSpyTestCase */ namespace DataDog;...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/mt_rand_function_stubs.php
tests/mt_rand_function_stubs.php
<?php /** * Stubbed versions of mt_rand functions * * Useful for testing DataDog\DogStatsd::send with deterministic values. * * @see \DataDog\UnitTests\DogStatsd\SocketsTest */ namespace DataDog; /** * Making this variable global to this file is necessary for interacting with * the stubbed global functions b...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/TestHelpers/SocketSpy.php
tests/TestHelpers/SocketSpy.php
<?php namespace DataDog\TestHelpers; /** * Class SocketSpy * * Useful for recording calls to stubbed global socket functions built into PHP * * @see \DataDog\SocketSpyTestCase * @package DataDog */ class SocketSpy { /** * @var array */ public $argsFromSocketCreateCalls = array(); /** ...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/TestHelpers/SocketSpyTestCase.php
tests/TestHelpers/SocketSpyTestCase.php
<?php namespace DataDog\TestHelpers; use DataDog\DogStatsd; use Yoast\PHPUnitPolyfills\TestCases\TestCase; /** * Making this variable global to this file is necessary for interacting with * the stubbed global functions below. */ $socketSpy = new SocketSpy(); /** * Class SocketSpyTestCase * * A PHPUnit TestCas...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/UnitTests/BatchedDogStatsdTest.php
tests/UnitTests/BatchedDogStatsdTest.php
<?php namespace DataDog\UnitTests; use DataDog\BatchedDogStatsd; use DataDog\TestHelpers\SocketSpy; use DataDog\TestHelpers\SocketSpyTestCase; class BatchedDogStatsdTest extends SocketSpyTestCase { protected function set_up() { parent::set_up(); // Flush the buffer to reset state for next te...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/UnitTests/DogStatsd/OriginDetectionTest.php
tests/UnitTests/DogStatsd/OriginDetectionTest.php
<?php namespace DataDog\UnitTests\DogStatsd; use DataDog\OriginDetection; use org\bovigo\vfs\vfsStream; use Yoast\PHPUnitPolyfills\TestCases\TestCase; class OriginDetectionTest extends TestCase { public function testCgroupV1() { $root = vfsStream::setup('proc'); vfsStream::newFile("self/cgroup")...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
true
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/UnitTests/DogStatsd/SocketsTest.php
tests/UnitTests/DogStatsd/SocketsTest.php
<?php namespace DataDog\UnitTests\DogStatsd; use DateTime; use ErrorException; use ReflectionProperty; use DataDog\DogStatsd; use DataDog\TestHelpers\SocketSpyTestCase; class SocketsTest extends SocketSpyTestCase { private $oldAgentHost; private $oldDogstatsdPort; private $oldDogstatsdUrl; private $o...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
true
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/tests/UnitTests/DogStatsd/TagSerializationTest.php
tests/UnitTests/DogStatsd/TagSerializationTest.php
<?php namespace DataDog\UnitTests\DogStatsd; use DataDog\DogStatsd; use Yoast\PHPUnitPolyfills\TestCases\TestCase; class TagSerializationTest extends TestCase { private $oldVar; private function callPrivate($object, $method, $params) { $reflectionMethod = new \ReflectionMethod(get_class($object), $met...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/examples/example.php
examples/example.php
<?php require_once __DIR__ . '/../vendor/autoload.php'; use DataDog\DogStatsd; use DataDog\BatchedDogStatsd; $statsd = new DogStatsd(); $statsd->increment('web.page_views'); $statsd->histogram('web.render_time', 15); $statsd->distribution('web.render_time', 15); $statsd->set('web.uniques', 3 /* a unique user id */);...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
DataDog/php-datadogstatsd
https://github.com/DataDog/php-datadogstatsd/blob/44dbecad1454a33df99d6f0e96c15181eea06033/examples/expandedExample.php
examples/expandedExample.php
<?php require '../vendor/autoload.php'; use DataDog\DogStatsd; $statsd = new DogStatsd(); $runFor = 5; // Set to five minutes. Increase or decrease to have script run longer or shorter. $scriptStartTime = time(); echo "Script starting.\n"; // Send metrics and events for 5 minutes. while (time() < $scriptStartTime...
php
BSD-3-Clause
44dbecad1454a33df99d6f0e96c15181eea06033
2026-01-05T02:46:04.112447Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = (new PhpCsFixer\Finder()) ->in(__DIR__) ->exclude('var') ; return (new PhpCsFixer\Config()) ->setRules([ '@Symfony' => true, ]) ->setFinder($finder) ;
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Kernel.php
src/Kernel.php
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Category/Application/Model/CreateCategoryCommand.php
src/Blog/Post/Category/Application/Model/CreateCategoryCommand.php
<?php declare(strict_types=1); namespace App\Blog\Post\Category\Application\Model; final class CreateCategoryCommand { private string $name; private string $slug; public function __construct(string $name, string $slug) { $this->name = $name; $this->slug = $slug; } public fun...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Category/Application/Controller/PostCategoryController.php
src/Blog/Post/Category/Application/Controller/PostCategoryController.php
<?php declare(strict_types=1); namespace App\Blog\Post\Category\Application\Controller; use App\Blog\Post\Category\Application\Model\CreateCategoryCommand; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Category/Application/Service/CreateCategoryService.php
src/Blog/Post/Category/Application/Service/CreateCategoryService.php
<?php declare(strict_types=1); namespace App\Blog\Post\Category\Application\Service; use App\Blog\Post\Category\Application\Model\CreateCategoryCommand; use App\Blog\Post\Category\Domain\Entity\Category; use App\Blog\Post\Category\Domain\Repository\CategoryRepositoryInterface; use App\Blog\Post\Shared\Domain\Entity\...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Category/Domain/Event/CategoryCreatedEvent.php
src/Blog/Post/Category/Domain/Event/CategoryCreatedEvent.php
<?php declare(strict_types=1); namespace App\Blog\Post\Category\Domain\Event; use App\Shared\Event\DomainEventInterface; use App\Blog\Post\Shared\Domain\Entity\ValueObject\CategoryId; use Symfony\Contracts\EventDispatcher\Event; final class CategoryCreatedEvent extends Event implements DomainEventInterface { pr...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Category/Domain/Entity/Category.php
src/Blog/Post/Category/Domain/Entity/Category.php
<?php declare(strict_types=1); namespace App\Blog\Post\Category\Domain\Entity; use App\Blog\Post\Category\Domain\Event\CategoryCreatedEvent; use App\Shared\Aggregate\AggregateRoot; use App\Blog\Post\Shared\Domain\Entity\ValueObject\CategoryId; class Category extends AggregateRoot { private string $id; priv...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Category/Domain/Repository/CategoryRepositoryInterface.php
src/Blog/Post/Category/Domain/Repository/CategoryRepositoryInterface.php
<?php declare(strict_types=1); namespace App\Blog\Post\Category\Domain\Repository; use App\Blog\Post\Category\Domain\Entity\Category; interface CategoryRepositoryInterface { public function findOneBy(array $criteria, array $orderBy = null); public function save(Category $comment): void; }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Category/Infrastructure/Repository/CategoryRepository.php
src/Blog/Post/Category/Infrastructure/Repository/CategoryRepository.php
<?php declare(strict_types=1); namespace App\Blog\Post\Category\Infrastructure\Repository; use App\Blog\Post\Category\Domain\Entity\Category; use App\Blog\Post\Category\Domain\Repository\CategoryRepositoryInterface; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\Manag...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Event/OnPublicationRequestedEvent.php
src/Blog/Post/Article/Application/Event/OnPublicationRequestedEvent.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Event; use Symfony\Contracts\EventDispatcher\Event; final class OnPublicationRequestedEvent extends Event { private string $title; private string $body; private string $author; private string $categorySlug; public fun...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Model/CreateCommentCommand.php
src/Blog/Post/Article/Application/Model/CreateCommentCommand.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Model; final class CreateCommentCommand { private string $articleId; private string $email; private string $message; public function getArticleId(): string { return $this->articleId; } public function s...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Model/CreateArticleCommand.php
src/Blog/Post/Article/Application/Model/CreateArticleCommand.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Model; final class CreateArticleCommand { private string $title; private string $body; private string $author; private string $category; public function getTitle(): string { return $this->title; } ...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Model/FindArticleQuery.php
src/Blog/Post/Article/Application/Model/FindArticleQuery.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Model; final class FindArticleQuery { private string $articleId; public function __construct(string $articleId) { $this->articleId = $articleId; } public function getArticleId(): string { return $this...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Controller/Api/PostArticleController.php
src/Blog/Post/Article/Application/Controller/Api/PostArticleController.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Controller\Api; use App\Blog\Post\Article\Application\Event\OnPublicationRequestedEvent; use Psr\EventDispatcher\EventDispatcherInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Controller/Api/PostCommentController.php
src/Blog/Post/Article/Application/Controller/Api/PostCommentController.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Controller\Api; use App\Blog\Post\Article\Application\Model\CreateCommentCommand; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Htt...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Controller/Api/GetArticleController.php
src/Blog/Post/Article/Application/Controller/Api/GetArticleController.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Controller\Api; use App\Blog\Post\Article\Application\Model\FindArticleQuery; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\Messenger\HandleTrait; us...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/ParamConverter/CreateCommentParamConverter.php
src/Blog/Post/Article/Application/ParamConverter/CreateCommentParamConverter.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\ParamConverter; use App\Blog\Post\Article\Application\Model\CreateCommentCommand; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; use ...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/EventSubscriber/OnUserVerifiedEventSubscriber.php
src/Blog/Post/Article/Application/EventSubscriber/OnUserVerifiedEventSubscriber.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\EventSubscriber; use App\Blog\Post\Article\Application\Model\CreateArticleCommand; use App\Blog\Post\Shared\Domain\Provider\CategoryIdProviderInterface; use App\Blog\User\Application\Event\OnUserVerifiedEvent; use Symfony\Component\EventDispa...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Service/CreateArticleHandler.php
src/Blog/Post/Article/Application/Service/CreateArticleHandler.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Service; use App\Blog\Post\Article\Application\Model\CreateArticleCommand; use App\Blog\Post\Article\Domain\Entity\Article; use App\Blog\Post\Article\Domain\Entity\ArticleId; use App\Blog\Post\Article\Domain\Entity\AuthorId; use App\Blog\Post...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Service/ArticleFinderHandler.php
src/Blog/Post/Article/Application/Service/ArticleFinderHandler.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Service; use App\Blog\Post\Article\Application\Model\FindArticleQuery; use App\Blog\Post\Article\Domain\Repository\ArticleRepositoryInterface; use App\Blog\Post\Article\Domain\Repository\CommentRepositoryInterface; use Symfony\Component\Messe...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Application/Service/CreateCommentHandler.php
src/Blog/Post/Article/Application/Service/CreateCommentHandler.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Application\Service; use App\Blog\Post\Article\Application\Model\CreateCommentCommand; use App\Blog\Post\Article\Domain\Entity\Article; use App\Blog\Post\Article\Domain\Entity\CommentId; use App\Blog\Post\Article\Domain\Entity\Email; use App\Blog\Post\Ar...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Event/CommentCreatedEvent.php
src/Blog/Post/Article/Domain/Event/CommentCreatedEvent.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Domain\Event; use App\Blog\Post\Article\Domain\Entity\CommentId; use App\Shared\Event\DomainEventInterface; use Symfony\Contracts\EventDispatcher\Event; final class CommentCreatedEvent extends Event implements DomainEventInterface { protected \DateT...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Event/ArticleCreatedEvent.php
src/Blog/Post/Article/Domain/Event/ArticleCreatedEvent.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Domain\Event; use App\Blog\Post\Article\Domain\Entity\ArticleId; use App\Shared\Event\DomainEventInterface; use Symfony\Contracts\EventDispatcher\Event; final class ArticleCreatedEvent extends Event implements DomainEventInterface { protected \DateT...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Entity/ArticleId.php
src/Blog/Post/Article/Domain/Entity/ArticleId.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Domain\Entity; use App\Shared\ValueObject\AggregateRootId; final class ArticleId extends AggregateRootId { }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Entity/Article.php
src/Blog/Post/Article/Domain/Entity/Article.php
<?php namespace App\Blog\Post\Article\Domain\Entity; use App\Blog\Post\Article\Domain\Entity\ArticleId; use App\Blog\Post\Article\Domain\Entity\AuthorId; use App\Blog\Post\Article\Domain\Entity\Comment; use App\Blog\Post\Article\Domain\Entity\CommentId; use App\Blog\Post\Article\Domain\Entity\Email; use App\Blog\Post...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Entity/Email.php
src/Blog/Post/Article/Domain/Entity/Email.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Domain\Entity; use App\Shared\ValueObject\EmailValueObject; final class Email extends EmailValueObject { }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Entity/AuthorId.php
src/Blog/Post/Article/Domain/Entity/AuthorId.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Domain\Entity; use App\Shared\ValueObject\UserValueObject; final class AuthorId extends UserValueObject { }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Entity/Comment.php
src/Blog/Post/Article/Domain/Entity/Comment.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Domain\Entity; use App\Blog\Post\Article\Domain\Entity\ArticleId; use App\Blog\Post\Article\Domain\Entity\CommentId; use App\Blog\Post\Article\Domain\Entity\Email; class Comment { private string $id; private Email $email; private string $m...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Entity/CommentId.php
src/Blog/Post/Article/Domain/Entity/CommentId.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Domain\Entity; use App\Shared\ValueObject\AggregateRootId; final class CommentId extends AggregateRootId { }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Repository/ArticleRepositoryInterface.php
src/Blog/Post/Article/Domain/Repository/ArticleRepositoryInterface.php
<?php namespace App\Blog\Post\Article\Domain\Repository; use App\Blog\Post\Article\Domain\Entity\Article; interface ArticleRepositoryInterface { public function find($id, $lockMode = null, $lockVersion = null); public function save(Article $article): void; }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Domain/Repository/CommentRepositoryInterface.php
src/Blog/Post/Article/Domain/Repository/CommentRepositoryInterface.php
<?php namespace App\Blog\Post\Article\Domain\Repository; use App\Blog\Post\Article\Domain\Entity\Comment; interface CommentRepositoryInterface { public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null); public function save(Comment $comment): void; }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Infrastructure/Repository/ArticleRepository.php
src/Blog/Post/Article/Infrastructure/Repository/ArticleRepository.php
<?php namespace App\Blog\Post\Article\Infrastructure\Repository; use App\Blog\Post\Article\Domain\Entity\Article; use App\Blog\Post\Article\Domain\Repository\ArticleRepositoryInterface; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Art...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Article/Infrastructure/Repository/CommentRepository.php
src/Blog/Post/Article/Infrastructure/Repository/CommentRepository.php
<?php declare(strict_types=1); namespace App\Blog\Post\Article\Infrastructure\Repository; use App\Blog\Post\Article\Domain\Entity\Comment; use App\Blog\Post\Article\Domain\Repository\CommentRepositoryInterface; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerReg...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Shared/Domain/Entity/ValueObject/CategoryId.php
src/Blog/Post/Shared/Domain/Entity/ValueObject/CategoryId.php
<?php declare(strict_types=1); namespace App\Blog\Post\Shared\Domain\Entity\ValueObject; use App\Shared\ValueObject\AggregateRootId; final class CategoryId extends AggregateRootId { }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Shared/Domain/Provider/CategoryIdProvider.php
src/Blog/Post/Shared/Domain/Provider/CategoryIdProvider.php
<?php declare(strict_types=1); namespace App\Blog\Post\Shared\Domain\Provider; use App\Blog\Post\Category\Domain\Entity\Category; use App\Blog\Post\Category\Domain\Repository\CategoryRepositoryInterface; final class CategoryIdProvider implements CategoryIdProviderInterface { private CategoryRepositoryInterface ...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/Post/Shared/Domain/Provider/CategoryIdProviderInterface.php
src/Blog/Post/Shared/Domain/Provider/CategoryIdProviderInterface.php
<?php namespace App\Blog\Post\Shared\Domain\Provider; interface CategoryIdProviderInterface { public function bySlug(string $slug): string; }
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/User/Application/Event/OnUserVerifiedEvent.php
src/Blog/User/Application/Event/OnUserVerifiedEvent.php
<?php declare(strict_types=1); namespace App\Blog\User\Application\Event; use Symfony\Contracts\EventDispatcher\Event; final class OnUserVerifiedEvent extends Event { private string $title; private string $body; private string $author; private string $categorySlug; public function __construct(s...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/User/Application/EventSubscriber/PublicationRequestedEventSubscriber.php
src/Blog/User/Application/EventSubscriber/PublicationRequestedEventSubscriber.php
<?php declare(strict_types=1); namespace App\Blog\User\Application\EventSubscriber; use App\Blog\Post\Article\Application\Event\OnPublicationRequestedEvent; use App\Blog\User\Domain\Entity\User; use App\Blog\User\Application\Event\OnUserVerifiedEvent; use App\Blog\User\Domain\Repository\UserRepositoryInterface; use ...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/User/Application/Service/CreateUserService.php
src/Blog/User/Application/Service/CreateUserService.php
<?php declare(strict_types=1); namespace App\Blog\User\Application\Service; use App\Blog\User\Domain\Entity\Email; use App\Blog\User\Domain\Entity\User; use App\Blog\User\Domain\Repository\UserRepositoryInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Serializer\Serial...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false
salletti/symfony-ddd-example
https://github.com/salletti/symfony-ddd-example/blob/13d7ec57034acebe05e7dbb868b1adeeb19ff0f1/src/Blog/User/Application/Command/CreateUserCommand.php
src/Blog/User/Application/Command/CreateUserCommand.php
<?php declare(strict_types=1); namespace App\Blog\User\Application\Command; use App\Blog\User\Application\Service\CreateUserService; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input...
php
MIT
13d7ec57034acebe05e7dbb868b1adeeb19ff0f1
2026-01-05T02:46:05.655052Z
false