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
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Logger/Stderr.php
src/nsqphp/Logger/Stderr.php
<?php namespace nsqphp\Logger; class Stderr implements LoggerInterface { /** * Log error * * @param string|\Exception $msg */ public function error($msg) { $this->log('error', $msg); } /** * Log warn * * @param string|\Exception $msg */ pu...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Lookup/Nsqlookupd.php
src/nsqphp/Lookup/Nsqlookupd.php
<?php namespace nsqphp\Lookup; use nsqphp\Exception\LookupException; /** * Represents nsqlookupd and allows us to find machines we need to talk to * for a given topic */ class Nsqlookupd implements LookupInterface { /** * Hosts to connect to, incl. :port * * @var array */ private $hos...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Lookup/LookupInterface.php
src/nsqphp/Lookup/LookupInterface.php
<?php namespace nsqphp\Lookup; use nsqphp\Exception\LookupException; interface LookupInterface { /** * Lookup hosts for a given topic * * @param string $topic * * @throws LookupException If we cannot talk to / get back invalid response * from nsqlookupd * * @return...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Lookup/FixedHosts.php
src/nsqphp/Lookup/FixedHosts.php
<?php namespace nsqphp\Lookup; use nsqphp\Exception\LookupException; /** * Lookup implementation that just returns a fixed set of hosts */ class FixedHosts implements LookupInterface { /** * NSQD hosts to connect to, incl. :port * * @var array */ private $hosts; /** * Con...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Message/MessageInterface.php
src/nsqphp/Message/MessageInterface.php
<?php namespace nsqphp\Message; interface MessageInterface { /** * Get message payload * * @return string */ public function getPayload(); /** * Get message ID * * @return string|NULL */ public function getId(); /** * Get attempts * ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Message/Message.php
src/nsqphp/Message/Message.php
<?php namespace nsqphp\Message; class Message implements MessageInterface { /** * Construct from frame * * @param array $frame */ public static function fromFrame(array $frame) { return new Message( $frame['payload'], $frame['id'], ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Exception/ConnectionException.php
src/nsqphp/Exception/ConnectionException.php
<?php namespace nsqphp\Exception; class ConnectionException extends \RuntimeException { }
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Exception/UnknownFrameException.php
src/nsqphp/Exception/UnknownFrameException.php
<?php namespace nsqphp\Exception; class UnknownFrameException extends \RuntimeException { }
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Exception/PublishException.php
src/nsqphp/Exception/PublishException.php
<?php namespace nsqphp\Exception; class PublishException extends \RuntimeException { }
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Exception/ReadException.php
src/nsqphp/Exception/ReadException.php
<?php namespace nsqphp\Exception; class ReadException extends \RuntimeException { }
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Exception/ProtocolException.php
src/nsqphp/Exception/ProtocolException.php
<?php namespace nsqphp\Exception; class ProtocolException extends \RuntimeException { }
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Exception/SocketException.php
src/nsqphp/Exception/SocketException.php
<?php namespace nsqphp\Exception; class SocketException extends \RuntimeException { }
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Exception/LookupException.php
src/nsqphp/Exception/LookupException.php
<?php namespace nsqphp\Exception; class LookupException extends \RuntimeException { }
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Connection/Connection.php
src/nsqphp/Connection/Connection.php
<?php namespace nsqphp\Connection; use nsqphp\Exception\ConnectionException; use nsqphp\Exception\SocketException; /** * Represents a single connection to a single NSQD server */ class Connection implements ConnectionInterface { /** * Hostname * * @var string */ private $hostname; ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Connection/ConnectionInterface.php
src/nsqphp/Connection/ConnectionInterface.php
<?php namespace nsqphp\Connection; interface ConnectionInterface { /** * Wait for readable * * Waits for the socket to become readable (eg: have some data waiting) * * @return boolean */ public function isReadable(); /** * Read from the socket exactly $len bytes ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Connection/ConnectionPool.php
src/nsqphp/Connection/ConnectionPool.php
<?php namespace nsqphp\Connection; use nsqphp\Exception\ConnectionException; use nsqphp\Exception\SocketException; /** * Represents a pool of connections to one or more NSQD servers */ class ConnectionPool implements \Iterator, \Countable { /** * Connections * * @var array [] = ConnectionInterf...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Wire/Reader.php
src/nsqphp/Wire/Reader.php
<?php namespace nsqphp\Wire; use nsqphp\Connection\ConnectionInterface; use nsqphp\Message\Message; use nsqphp\Exception\SocketException; use nsqphp\Exception\ReadException; use nsqphp\Exception\ErrorFrameException; use nsqphp\Exception\ResponseFrameException; use nsqphp\Exception\UnknownFrameException; class Reader...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/Wire/Writer.php
src/nsqphp/Wire/Writer.php
<?php namespace nsqphp\Wire; class Writer { /** * "Magic" identifier - for version we support */ const MAGIC_V2 = " V2"; /** * Magic hello * * @return string */ public function magic() { return self::MAGIC_V2; } /** * Subscribe [SUB] ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/RequeueStrategy/FixedDelay.php
src/nsqphp/RequeueStrategy/FixedDelay.php
<?php namespace nsqphp\RequeueStrategy; use nsqphp\Message\MessageInterface; /** * Fixed delay requeue strategy * * Retry all failed messages N times with X delay. */ class FixedDelay implements RequeueStrategyInterface { /** * Number of attempts to make * * @var integer */ private ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/RequeueStrategy/RequeueStrategyInterface.php
src/nsqphp/RequeueStrategy/RequeueStrategyInterface.php
<?php namespace nsqphp\RequeueStrategy; use nsqphp\Message\MessageInterface; interface RequeueStrategyInterface { /** * Test if should requeue and with what delay * * The message will contain how many attempts had been made _before_ we * made our attempt (which must have failed). * ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/RequeueStrategy/GrowingDelay.php
src/nsqphp/RequeueStrategy/GrowingDelay.php
<?php namespace nsqphp\RequeueStrategy; /** * Fixed delay requeue strategy * * Retry all failed messages N times with "start * (growFactor^N)" delay. */ class GrowingDelay extends DelaysList { /** * Constructor * * @param int $maxAttempts * @param int $start * @param float $growFactor...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/src/nsqphp/RequeueStrategy/DelaysList.php
src/nsqphp/RequeueStrategy/DelaysList.php
<?php namespace nsqphp\RequeueStrategy; use nsqphp\Message\MessageInterface; /** * List of delays requeue strategy * * Retry all failed messages N times with delay picked from a list. */ class DelaysList implements RequeueStrategyInterface { /** * Number of attempts to make * * @var integer ...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/cruft/test-pub.php
cruft/test-pub.php
<?php /** * Test pub * * Pubs N message to "mytopic" topic, where N defaults to 10 but can be * supplied as argv1. Connects to nsqd on localhost, or argv2 (which can * be a , separated list of hosts). We can also specify how many replicas * must respond to consider operation a success. * * php test-pub.php 10...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/cruft/stream-dupe.php
cruft/stream-dupe.php
<?php $delay = isset($argv[1]) ? $argv[1] : 10000; $buffer = array(); while ($s = fgets(STDIN)) { $s = trim($s); echo "$s\n"; array_push($buffer, $s); if (count($buffer) > $delay) { $b = array_shift($buffer); echo "$b\n"; } } // finish off any buffered foreach ($buffer as $b)...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/cruft/test-dedupe.php
cruft/test-dedupe.php
<?php /** * Test dedupe filter * * Reads from STDIN and dedupes lines. Can use with stream-dupe.php which will * introduce duplicates. * * Pefect probability of hash collision = 1/N where N is number of cells. * Therefore chance of losing knowledge of some thing we've seen after 1 * additional entry is 1/N. A...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/cruft/simple-sub.php
cruft/simple-sub.php
<?php /** * Test subscription * * Subscribes to "mytopic" topic using channel "foo" (or one provided as argv1). * * php test-sub.php bar */ include __DIR__ . '/../bootstrap.php'; $logger = new nsqphp\Logger\Stderr; $dedupe = new nsqphp\Dedupe\OppositeOfBloomFilterMemcached; $lookup = new nsqphp\Lookup\FixedHo...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
davegardnerisme/nsqphp
https://github.com/davegardnerisme/nsqphp/blob/5f0cd9d4308e15e7146c985a4f39ae33b7a6c288/cruft/test-sub.php
cruft/test-sub.php
<?php /** * Test subscription * * Subscribes to "mytopic" topic using channel "foo" (or one provided as argv1). * Talks to nsqlookupd on localhost (by default), or one(s) provided as argv2. * * php test-io.php bar nsq1,nsq2 */ include __DIR__ . '/../bootstrap.php'; $hosts = isset($argv[2]) ? $argv[2] : 'loca...
php
MIT
5f0cd9d4308e15e7146c985a4f39ae33b7a6c288
2026-01-05T03:35:46.776490Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/workbench/database/migrations/0001_01_01_000000_create_test_models_table.php
workbench/database/migrations/0001_01_01_000000_create_test_models_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class () extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('test_models', f...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/workbench/database/migrations/0001_01_01_000000_create_testing_table.php
workbench/database/migrations/0001_01_01_000000_create_testing_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class () extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('testing', funct...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Collection.php
src/Bag/Collection.php
<?php declare(strict_types=1); namespace Bag; use Bag\Enums\OutputType; use Bag\Exceptions\ImmutableCollectionException; use Bag\Pipelines\OutputCollectionPipeline; use Bag\Pipelines\Values\CollectionOutput; use Illuminate\Support\Collection as LaravelCollection; use InvalidArgumentException; use Override; /** * @...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Bag.php
src/Bag/Bag.php
<?php declare(strict_types=1); namespace Bag; use Bag\Concerns\WithArrayable; use Bag\Concerns\WithCollections; use Bag\Concerns\WithEloquentCasting; use Bag\Concerns\WithJson; use Bag\Concerns\WithOptionals; use Bag\Concerns\WithOutput; use Bag\Concerns\WithValidation; use Bag\Pipelines\InputPipeline; use Bag\Pipel...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/BagServiceProvider.php
src/Bag/BagServiceProvider.php
<?php declare(strict_types=1); namespace Bag; use Bag\Attributes\StripExtraParameters; use Bag\Attributes\WithoutValidation; use Bag\Console\Commands\MakeBagCommand; use Bag\DebugBar\Collectors\BagCollector; use Bag\Internal\Reflection; use Barryvdh\Debugbar\LaravelDebugbar; use Closure; use Illuminate\Foundation\Ap...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Factory.php
src/Bag/Factory.php
<?php declare(strict_types=1); namespace Bag; use Faker\Generator; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Eloquent\Factories\Sequence; use Illuminate\Support\Collection as LaravelCollection; /** * @template T of Bag */ abstract class Factory { protected int $count = 1; /** ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/ImmutableCollectionException.php
src/Bag/Exceptions/ImmutableCollectionException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Exception; class ImmutableCollectionException extends Exception { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/MissingFactoryException.php
src/Bag/Exceptions/MissingFactoryException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Exception; class MissingFactoryException extends Exception { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/InvalidBag.php
src/Bag/Exceptions/InvalidBag.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use RuntimeException; class InvalidBag extends RuntimeException { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/BagAttributeNotFoundException.php
src/Bag/Exceptions/BagAttributeNotFoundException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Exception; class BagAttributeNotFoundException extends Exception { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/InvalidPropertyType.php
src/Bag/Exceptions/InvalidPropertyType.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use RuntimeException; class InvalidPropertyType extends RuntimeException { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/InvalidRouteParameterException.php
src/Bag/Exceptions/InvalidRouteParameterException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Exception; class InvalidRouteParameterException extends Exception { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/ComputedPropertyUninitializedException.php
src/Bag/Exceptions/ComputedPropertyUninitializedException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Exception; class ComputedPropertyUninitializedException extends Exception { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/ValidatorNotFoundException.php
src/Bag/Exceptions/ValidatorNotFoundException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Exception; class ValidatorNotFoundException extends Exception { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/AdditionalPropertiesException.php
src/Bag/Exceptions/AdditionalPropertiesException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use ArgumentCountError; use Bag\Bag; use Bag\Internal\Reflection; use Exception; use Illuminate\Support\Collection; class AdditionalPropertiesException extends Exception { /** * @param class-string<Bag> $bagClass * @param Collection<array-key, a...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/BagNotFoundException.php
src/Bag/Exceptions/BagNotFoundException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Exception; class BagNotFoundException extends Exception { public function __construct(string $bagClass) { parent::__construct(sprintf('The Bag class "%s" does not exist', $bagClass)); } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/MissingPropertiesException.php
src/Bag/Exceptions/MissingPropertiesException.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use Bag\Property\ValueCollection; use Exception; class MissingPropertiesException extends Exception { public function __construct(string $bagClassname, ValueCollection $missingParameters) { parent::__construct(sprintf( 'Missing req...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Exceptions/InvalidCollection.php
src/Bag/Exceptions/InvalidCollection.php
<?php declare(strict_types=1); namespace Bag\Exceptions; use RuntimeException; class InvalidCollection extends RuntimeException { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/DebugBar/Collectors/BagCollector.php
src/Bag/DebugBar/Collectors/BagCollector.php
<?php declare(strict_types=1); namespace Bag\DebugBar\Collectors; use Bag\Bag; use DebugBar\DataCollector\DataCollectorInterface; use DebugBar\DataCollector\MessagesCollector; if (!class_exists(MessagesCollector::class)) { class BagCollector { public static function add(Bag $bag): void { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Values/Optional.php
src/Bag/Values/Optional.php
<?php declare(strict_types=1); namespace Bag\Values; class Optional { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Mappers/MapperInterface.php
src/Bag/Mappers/MapperInterface.php
<?php declare(strict_types=1); namespace Bag\Mappers; interface MapperInterface { public function __invoke(string $inputName): string; }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Mappers/Alias.php
src/Bag/Mappers/Alias.php
<?php declare(strict_types=1); namespace Bag\Mappers; class Alias implements MapperInterface { public function __construct(protected string $alias) { } public function __invoke(string $inputName): string { return $this->alias; } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Mappers/SnakeCase.php
src/Bag/Mappers/SnakeCase.php
<?php declare(strict_types=1); namespace Bag\Mappers; class SnakeCase extends Stringable { public function __construct() { parent::__construct('snake'); } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Mappers/Stringable.php
src/Bag/Mappers/Stringable.php
<?php declare(strict_types=1); namespace Bag\Mappers; use Illuminate\Support\Str; class Stringable implements MapperInterface { /** * @var string[] */ protected array $stringOperations; /** * @param string ...$stringOperation The string operations to perform on the value, use operatio...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Mappers/CamelCase.php
src/Bag/Mappers/CamelCase.php
<?php declare(strict_types=1); namespace Bag\Mappers; class CamelCase extends Stringable { public function __construct() { parent::__construct('camel'); } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/TypeScript/BagTransformer.php
src/Bag/TypeScript/BagTransformer.php
<?php declare(strict_types=1); namespace Bag\TypeScript; use Bag\Bag; use Bag\Pipelines\Pipes\ProcessParameters; use Bag\Pipelines\Values\BagInput; use Bag\TypeScript\Reflection\BagReflectionProperty; use Exception; use Illuminate\Support\Collection; use ReflectionClass; use ReflectionProperty; use Spatie\TypeScript...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/TypeScript/Reflection/BagReflectionProperty.php
src/Bag/TypeScript/Reflection/BagReflectionProperty.php
<?php declare(strict_types=1); namespace Bag\TypeScript\Reflection; use ReflectionAttribute; use ReflectionNamedType; use ReflectionObject; use ReflectionProperty; use ReflectionType; use ReflectionUnionType; use Spatie\TypeScriptTransformer\Attributes\Optional; class BagReflectionProperty extends ReflectionPropert...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/TypeScript/Reflection/BagReflectionUnionType.php
src/Bag/TypeScript/Reflection/BagReflectionUnionType.php
<?php declare(strict_types=1); namespace Bag\TypeScript\Reflection; use Bag\Values\Optional; use Illuminate\Support\Traits\ForwardsCalls; use ReflectionNamedType; use ReflectionUnionType; class BagReflectionUnionType extends ReflectionUnionType { use ForwardsCalls; public function __construct(protected Ref...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Casts/CollectionOf.php
src/Bag/Casts/CollectionOf.php
<?php declare(strict_types=1); namespace Bag\Casts; use Bag\Bag; use Bag\Collection; use Bag\Exceptions\BagNotFoundException; use Bag\Exceptions\InvalidBag; use Bag\Exceptions\InvalidCollection; use Bag\Values\Optional; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Collection as LaravelCollectio...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Casts/MagicCast.php
src/Bag/Casts/MagicCast.php
<?php declare(strict_types=1); namespace Bag\Casts; use BackedEnum; use Bag\Bag; use Bag\Collection; use Bag\Values\Optional; use Carbon\Carbon; use Carbon\CarbonImmutable; use DateTimeImmutable; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection as LaravelCollection; use function is_subclass_...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Casts/MoneyFromMinor.php
src/Bag/Casts/MoneyFromMinor.php
<?php declare(strict_types=1); namespace Bag\Casts; use BackedEnum; use Bag\Collection; use Bag\Values\Optional; use Brick\Math\BigNumber; use Brick\Money\Exception\UnknownCurrencyException; use Brick\Money\Money as BrickMoney; use Illuminate\Support\Collection as LaravelCollection; use Override; use PrinsFrank\Stan...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Casts/CastsPropertyGet.php
src/Bag/Casts/CastsPropertyGet.php
<?php declare(strict_types=1); namespace Bag\Casts; use Illuminate\Support\Collection; interface CastsPropertyGet { /** * @param Collection<array-key,mixed> $properties */ public function get(string $propertyName, Collection $properties): mixed; }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Casts/MoneyFromMajor.php
src/Bag/Casts/MoneyFromMajor.php
<?php declare(strict_types=1); namespace Bag\Casts; use Brick\Math\BigNumber; use Brick\Money\Money as BrickMoney; class MoneyFromMajor extends MoneyFromMinor { /** * @param BigNumber|float|int|string $amount */ protected function makeMoney(mixed $amount, int|string $currency): BrickMoney { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Casts/DateTime.php
src/Bag/Casts/DateTime.php
<?php declare(strict_types=1); namespace Bag\Casts; use Bag\Collection; use Bag\Values\Optional; use Carbon\Exceptions\InvalidFormatException; use DateMalformedStringException; use DateTimeImmutable; use DateTimeInterface; use Illuminate\Support\Collection as LaravelCollection; use Override; use ReflectionNamedType;...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Casts/CastsPropertySet.php
src/Bag/Casts/CastsPropertySet.php
<?php declare(strict_types=1); namespace Bag\Casts; use Bag\Collection; use Illuminate\Support\Collection as LaravelCollection; interface CastsPropertySet { /** * @param LaravelCollection<array-key,mixed> $properties */ public function set(Collection $propertyTypes, string $propertyName, LaravelCo...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Traits/HasBag.php
src/Bag/Traits/HasBag.php
<?php declare(strict_types=1); namespace Bag\Traits; use Bag\Attributes\Bag as BagAttribute; use Bag\Bag; use Bag\Collection; use Bag\Exceptions\BagAttributeNotFoundException; use Bag\Exceptions\BagNotFoundException; use Bag\Internal\Reflection; use function get_object_vars; // @phpstan-ignore trait.unused trait Ha...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Traits/HasFactory.php
src/Bag/Traits/HasFactory.php
<?php declare(strict_types=1); namespace Bag\Traits; use Bag\Attributes\Factory as FactoryAttribute; use Bag\Collection; use Bag\Exceptions\MissingFactoryException; use Bag\Factory; use Bag\Internal\Cache; use Bag\Internal\Reflection; /** * @template TFactory of Factory */ // @phpstan-ignore trait.unused trait Ha...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Validation/Rules/OptionalOr.php
src/Bag/Validation/Rules/OptionalOr.php
<?php declare(strict_types=1); namespace Bag\Validation\Rules; use Bag\Internal\Validator; use Bag\Values\Optional as OptionalValue; use Closure; use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Validation\ValidationException; class Op...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Console/Commands/MakeBagCommand.php
src/Bag/Console/Commands/MakeBagCommand.php
<?php declare(strict_types=1); namespace Bag\Console\Commands; use Bag\Attributes\Cast; use Bag\Attributes\Collection as CollectionAttribute; use Bag\Attributes\Factory as FactoryAttribute; use Bag\Bag; use Bag\Casts\CollectionOf; use Bag\Collection; use Bag\Factory; use Bag\Internal\Reflection; use Bag\Internal\Uti...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Enums/OutputType.php
src/Bag/Enums/OutputType.php
<?php declare(strict_types=1); namespace Bag\Enums; enum OutputType { case ARRAY; case JSON; case UNWRAPPED; case RAW; }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Concerns/WithOutput.php
src/Bag/Concerns/WithOutput.php
<?php declare(strict_types=1); namespace Bag\Concerns; use Bag\Collection; use Bag\Enums\OutputType; use Bag\Pipelines\OutputPipeline; use Bag\Pipelines\Values\BagOutput; use Bag\Values\Optional; trait WithOutput { public function get(?string $key = null): mixed { $output = new BagOutput(bag: $this,...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Concerns/WithCollections.php
src/Bag/Concerns/WithCollections.php
<?php declare(strict_types=1); namespace Bag\Concerns; use Bag\Attributes\Collection as CollectionAttribute; use Bag\Bag; use Bag\Collection; use Bag\Internal\Cache; use Bag\Internal\Reflection; trait WithCollections { /** * @param iterable<int, mixed> $values * @return Collection<array-key,static> ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Concerns/WithJson.php
src/Bag/Concerns/WithJson.php
<?php declare(strict_types=1); namespace Bag\Concerns; use Bag\Attributes\Transforms; use Bag\Bag; use Bag\Enums\OutputType; use Bag\Pipelines\OutputPipeline; use Bag\Pipelines\Values\BagOutput; trait WithJson { public function toJson($options = 0): string|false { return json_encode($this->jsonSeria...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Concerns/WithValidation.php
src/Bag/Concerns/WithValidation.php
<?php declare(strict_types=1); namespace Bag\Concerns; use Bag\Pipelines\InputPipeline; use Bag\Pipelines\ValidationPipeline; use Bag\Pipelines\Values\BagInput; use Bag\Pipelines\WithoutValidationPipeline; use Illuminate\Support\Collection as LaravelCollection; use Illuminate\Validation\ValidationException; trait W...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Concerns/WithEloquentCasting.php
src/Bag/Concerns/WithEloquentCasting.php
<?php declare(strict_types=1); namespace Bag\Concerns; use Bag\Bag; use Bag\Collection; use Bag\Eloquent\Casts\AsBag; use Bag\Eloquent\Casts\AsBagCollection; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; trait WithEloquentCasting { /** * @param array<string|int> $arguments * @return Cast...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Concerns/WithArrayable.php
src/Bag/Concerns/WithArrayable.php
<?php declare(strict_types=1); namespace Bag\Concerns; use Bag\Enums\OutputType; use Bag\Pipelines\OutputPipeline; use Bag\Pipelines\Values\BagOutput; trait WithArrayable { public function toArray(): array { $output = new BagOutput(bag: $this, outputType: OutputType::ARRAY); return OutputPi...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Concerns/WithOptionals.php
src/Bag/Concerns/WithOptionals.php
<?php declare(strict_types=1); namespace Bag\Concerns; use Bag\Values\Optional; trait WithOptionals { public function has(string $key): bool { return (isset($this->{$key}) || $this->{$key} === null) && !($this->{$key} instanceof Optional); } public function hasAny(string ...$keys): bool ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Internal/Util.php
src/Bag/Internal/Util.php
<?php declare(strict_types=1); namespace Bag\Internal; use Bag\Collection; use Bag\Exceptions\InvalidPropertyType; use Illuminate\Foundation\Application; use Illuminate\Pipeline\Pipeline; use Laravel\SerializableClosure\Support\ReflectionClosure; use ReflectionIntersectionType; use ReflectionNamedType; use Reflectio...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Internal/Validator.php
src/Bag/Internal/Validator.php
<?php declare(strict_types=1); namespace Bag\Internal; use Bag\Exceptions\ValidatorNotFoundException; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Application; use Illuminate\Support\...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Internal/Cache.php
src/Bag/Internal/Cache.php
<?php declare(strict_types=1); namespace Bag\Internal; use Mockery; use Mockery\MockInterface; use WeakMap; /** * @internal This class is not meant to be used or overwritten outside of the library. */ class Cache { /** */ public static self|MockInterface|null $instance = null; /** * @var ar...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Internal/Reflection.php
src/Bag/Internal/Reflection.php
<?php declare(strict_types=1); namespace Bag\Internal; use Bag\Attributes\Attribute; use Bag\Bag; use Bag\Collection; use Illuminate\Support\Collection as LaravelCollection; use Laravel\SerializableClosure\Support\ReflectionClosure; use ReflectionAttribute; use ReflectionClass; use ReflectionMethod; use ReflectionPa...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/WrapJson.php
src/Bag/Attributes/WrapJson.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_CLASS)] class WrapJson implements AttributeInterface { public function __construct( public string $wrapKey, ) { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Collection.php
src/Bag/Attributes/Collection.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_CLASS)] class Collection implements AttributeInterface { /** * @param class-string<\Illuminate\Support\Collection<array-key,mixed>> $collectionClass ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/StripExtraParameters.php
src/Bag/Attributes/StripExtraParameters.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PARAMETER)] class StripExtraParameters implements AttributeInterface { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Wrap.php
src/Bag/Attributes/Wrap.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_CLASS)] class Wrap implements AttributeInterface { public function __construct( public string $wrapKey, ) { } }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/WithoutValidation.php
src/Bag/Attributes/WithoutValidation.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PARAMETER)] class WithoutValidation implements AttributeInterface { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/CastOutput.php
src/Bag/Attributes/CastOutput.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Bag\Casts\CastsPropertyGet; use Illuminate\Support\Collection; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class CastOutput implements AttributeInterface { /...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Transforms.php
src/Bag/Attributes/Transforms.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Illuminate\Support\Collection; #[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] class Transforms implements AttributeInterface { /** * @var Collection<array-key, ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Computed.php
src/Bag/Attributes/Computed.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY)] class Computed implements AttributeInterface { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Attribute.php
src/Bag/Attributes/Attribute.php
<?php declare(strict_types=1); namespace Bag\Attributes; interface Attribute { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Hidden.php
src/Bag/Attributes/Hidden.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Hidden implements AttributeInterface { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Bag.php
src/Bag/Attributes/Bag.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_CLASS)] class Bag implements AttributeInterface { public const PUBLIC = 1; public const PROTECTED = 2; public const PRIVATE = 4; public const ALL ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/MapInputName.php
src/Bag/Attributes/MapInputName.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Bag\Mappers\MapperInterface; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER | Attribute::IS_REPEATABLE)] class MapInputName extends MapName ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/CastInput.php
src/Bag/Attributes/CastInput.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Bag\Casts\CastsPropertySet; use Bag\Collection; use Illuminate\Support\Collection as LaravelCollection; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class CastInp...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/MapOutputName.php
src/Bag/Attributes/MapOutputName.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Bag\Mappers\MapperInterface; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class MapOutputName extends MapName implements AttributeInterf...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Cast.php
src/Bag/Attributes/Cast.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Bag\Casts\CastsPropertyGet; use Bag\Casts\CastsPropertySet; use Bag\Collection; use Illuminate\Support\Collection as LaravelCollection; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/HiddenFromJson.php
src/Bag/Attributes/HiddenFromJson.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class HiddenFromJson implements AttributeInterface { }
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Factory.php
src/Bag/Attributes/Factory.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Bag\Bag; use Bag\Factory as BagFactory; #[Attribute(Attribute::TARGET_CLASS)] class Factory implements AttributeInterface { /** * @template T of Bag * @param class-string<Bag...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/MapName.php
src/Bag/Attributes/MapName.php
<?php declare(strict_types=1); namespace Bag\Attributes; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; use Bag\Mappers\MapperInterface; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class MapName implements AttributeInterface { /** * @...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/RequiredWithAll.php
src/Bag/Attributes/Validation/RequiredWithAll.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class RequiredWithAll extends Rule implements AttributeInterface { public function __construct(string ...$...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Decimal.php
src/Bag/Attributes/Validation/Decimal.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Decimal extends Rule implements AttributeInterface { public function __construct(int $minPlaces, ?in...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Regex.php
src/Bag/Attributes/Validation/Regex.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Regex extends Rule implements AttributeInterface { public function __construct(string $regex) { ...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false
beacon-hq/bag
https://github.com/beacon-hq/bag/blob/0737331b1c0f0511101b0b73b3316620277a5ec1/src/Bag/Attributes/Validation/Enum.php
src/Bag/Attributes/Validation/Enum.php
<?php declare(strict_types=1); namespace Bag\Attributes\Validation; use Attribute; use BackedEnum; use Bag\Attributes\Attribute as AttributeInterface; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class Enum extends Rule implements AttributeInterface { /** * @type class-string<Back...
php
MIT
0737331b1c0f0511101b0b73b3316620277a5ec1
2026-01-05T03:36:05.543212Z
false