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
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/JacocoLoaderTest.php
tests/Loaders/JacocoLoaderTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\Jacoco; class JacocoLoaderTest extends TestCase { public function testLoadXML() { $xmlReport = new Jacoco(__DIR__ . '/../fixtures/jacoco.xml'); $coveredLines = $xmlRe...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/CheckstyleTest.php
tests/Loaders/CheckstyleTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use exussum12\CoverageChecker\Loaders\Checkstyle; use PHPUnit\Framework\Attributes\Before; class CheckstyleTest extends PhanTextTest { /** @var Checkstyle */ protected $phan; protected $prefix = ''; #[Before] protected function setUpTest()...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/LoadPhpMdReportTest.php
tests/Loaders/LoadPhpMdReportTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\PhpMd; class LoadPhpMdReportTest extends TestCase { public function testClassCanLoad() { $phpmd = new PhpMd(__DIR__ . '/../fixtures/phpmd.xml'); $lines = $phpmd->parse...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/CodeClimateTest.php
tests/Loaders/CodeClimateTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use exussum12\CoverageChecker\Loaders\CodeClimate; use PHPUnit\Framework\Attributes\Before; class CodeClimateTest extends PhanTextTest { /** @var CodeClimate */ protected $phan; protected $prefix = ''; #[Before] protected function setUpTes...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/LoadPhpcsReportTest.php
tests/Loaders/LoadPhpcsReportTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use InvalidArgumentException; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\PhpCs; use exussum12\CoverageChecker\Loaders\PhpCsStrict; class LoadPhpcsReportTest extends TestCase { public function testCanMakeClass() { $phpc...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/LoadPhpMdReportStrictTest.php
tests/Loaders/LoadPhpMdReportStrictTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\PhpMdStrict; class LoadPhpMdReportStrictTest extends TestCase { public function testClassCanLoad() { $phpmd = new PhpMdStrict(__DIR__ . '/../fixtures/phpmd.xml'); $lin...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/PhpcpdTest.php
tests/Loaders/PhpcpdTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use PHPUnit\Framework\Attributes\Before; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\Phpcpd; class PhpcpdTest extends TestCase { /** @var Phpcpd */ protected $cpd; #[Before] protected function setUpTest(): void { ...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/PhpStanTest.php
tests/Loaders/PhpStanTest.php
<?php namespace exussum12\CoverageChecker\tests; use PHPUnit\Framework\Attributes\Before; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\PhpStan; class PhpStanTest extends TestCase { /** @var PhpStan */ protected $stan; #[Before] public function setUpTest() { $file...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/LoadCloverReportTest.php
tests/Loaders/LoadCloverReportTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\Clover; class LoadCloverReportTest extends TestCase { public function testLoadXML() { $xmlReport = new Clover(__DIR__ . '/../fixtures/coverage.xml'); $coveredLines = $...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
exussum12/coverageChecker
https://github.com/exussum12/coverageChecker/blob/0a0350772ca3077d18e87118ffb1d9338b10c63c/tests/Loaders/HumbugLoaderTest.php
tests/Loaders/HumbugLoaderTest.php
<?php namespace exussum12\CoverageChecker\tests\Loaders; use InvalidArgumentException; use PHPUnit\Framework\TestCase; use exussum12\CoverageChecker\Loaders\Humbug; use exussum12\CoverageChecker\tests\TestShim; class HumbugLoaderTest extends TestCase { use TestShim; public function testCanMakeClass() { ...
php
MIT
0a0350772ca3077d18e87118ffb1d9338b10c63c
2026-01-05T03:29:08.523307Z
false
39ff/docker-rotating-proxy
https://github.com/39ff/docker-rotating-proxy/blob/a5b7d228db75252b07aedfb5861f518b155738dd/setup/generate.php
setup/generate.php
#!/usr/bin/env php <?php require __DIR__.'/vendor/autoload.php'; use Symfony\Component\Yaml\Yaml; copy(__DIR__.'/../template/squid.conf',__DIR__.'/squid.conf'); $to = Yaml::parseFile(__DIR__.'/../template/docker-compose.yml'); $proxies = fopen(__DIR__.'/../proxyList.txt','r'); $i = 1; $port = 30000; $port_shadow_sock...
php
Unlicense
a5b7d228db75252b07aedfb5861f518b155738dd
2026-01-05T03:29:20.557024Z
false
jessfraz/hashtag-pull
https://github.com/jessfraz/hashtag-pull/blob/25bb8153bb29638c08fa341d5c54b0f5fd2eea56/ajax-feed.php
ajax-feed.php
<?php include('config.php'); require_once('lib/twitteroauth.php'); function stripEmojis($text){ $clean_text = ""; // Match Emoticons $regexEmoticons = '/[\x{1F600}-\x{1F64F}]/u'; $clean_text = preg_replace($regexEmoticons, '', $text); // Match Miscellaneous Symbols and Pictographs $regexSymb...
php
MIT
25bb8153bb29638c08fa341d5c54b0f5fd2eea56
2026-01-05T03:29:34.568691Z
false
jessfraz/hashtag-pull
https://github.com/jessfraz/hashtag-pull/blob/25bb8153bb29638c08fa341d5c54b0f5fd2eea56/config.php
config.php
<?php date_default_timezone_set('America/New_York'); $twitter = array( 'consumer_key' => 'YOUR_CONSUMER_KEY', 'consumer_secret' => 'YOUR_CONSUMER_SECRET', 'access_token' => 'YOUR_ACCESS_TOKEN', 'access_token_secret' => 'YOUR_TOKEN_SECRET' ); $instagram = array( 'clien...
php
MIT
25bb8153bb29638c08fa341d5c54b0f5fd2eea56
2026-01-05T03:29:34.568691Z
false
jessfraz/hashtag-pull
https://github.com/jessfraz/hashtag-pull/blob/25bb8153bb29638c08fa341d5c54b0f5fd2eea56/lib/twitteroauth.php
lib/twitteroauth.php
<?php /* * Abraham Williams (abraham@abrah.am) http://abrah.am * * The first PHP Library to support OAuth for Twitter's REST API. */ /* Load OAuth lib. You can find it at http://oauth.net */ require_once('oauth.php'); /** * Twitter OAuth class */ class TwitterOAuth { /* Contains the last HTTP status code ret...
php
MIT
25bb8153bb29638c08fa341d5c54b0f5fd2eea56
2026-01-05T03:29:34.568691Z
false
jessfraz/hashtag-pull
https://github.com/jessfraz/hashtag-pull/blob/25bb8153bb29638c08fa341d5c54b0f5fd2eea56/lib/oauth.php
lib/oauth.php
<?php // vim: foldmethod=marker /* Generic exception class */ if (!class_exists('OAuthException')) { class OAuthException extends Exception { // pass } } class OAuthConsumer { public $key; public $secret; function __construct($key, $secret, $callback_url=NULL) { $this->key = $key; $this->secre...
php
MIT
25bb8153bb29638c08fa341d5c54b0f5fd2eea56
2026-01-05T03:29:34.568691Z
false
jessfraz/hashtag-pull
https://github.com/jessfraz/hashtag-pull/blob/25bb8153bb29638c08fa341d5c54b0f5fd2eea56/instagram/index.php
instagram/index.php
<?php include('../config.php'); if (isset($_REQUEST['token'])){ // get access token $checkin_url = "https://api.instagram.com/oauth/access_token"; $parameters = array( 'client_id' => $instagram['client_id'], 'client_secret' => $instagram['client_secret'], 'grant_type' => 'authoriz...
php
MIT
25bb8153bb29638c08fa341d5c54b0f5fd2eea56
2026-01-05T03:29:34.568691Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/lang/en/messages.php
lang/en/messages.php
<?php return [ 'day' => 'Day', 'week' => 'Week', 'month' => 'Month', 'year' => 'Year', 'interval_description' => [ 'day' => 'Daily|Every :count Days', 'week' => 'Weekly|Every :count Weeks', 'month' => 'Monthly|Every :count Months', 'year' => 'Annual|Every :count Yea...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/lang/es/messages.php
lang/es/messages.php
<?php return [ 'day' => 'Día', 'week' => 'Semana', 'month' => 'Mes', 'year' => 'Año', 'interval_description' => [ 'day' => 'Diario|Cada :count Días', 'week' => 'Semanal|Cada :count Semanas', 'month' => 'Mensual|Cada :count Meses', 'year' => 'Anual|Cada :count Años',...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/workbench/app/Models/User.php
workbench/app/Models/User.php
<?php namespace App\Models; use Database\Factories\UserFactory; use Gerardojbaez\Laraplans\Contracts\PlanSubscriberInterface; use Gerardojbaez\Laraplans\Traits\PlanSubscriber; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticat...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/workbench/database/factories/UserFactory.php
workbench/database/factories/UserFactory.php
<?php namespace Database\Factories; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; class UserFactory extends Factory { protected $model = User::class; public function definition(): array { return [ 'name' => $this->faker->name(), ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/workbench/database/migrations/2014_10_12_000000_create_users_table.php
workbench/database/migrations/2014_10_12_000000_create_users_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/SubscriptionBuilder.php
src/SubscriptionBuilder.php
<?php namespace Gerardojbaez\Laraplans; use Carbon\Carbon; use Gerardojbaez\Laraplans\Contracts\SubscriptionBuilderInterface; use Illuminate\Database\Eloquent\Model; class SubscriptionBuilder implements SubscriptionBuilderInterface { /** * The user model that is subscribing. * * @var \Illuminate\D...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/SubscriptionAbility.php
src/SubscriptionAbility.php
<?php namespace Gerardojbaez\Laraplans; class SubscriptionAbility { /** * Subscription model instance. * * @var \Illuminate\Database\Eloquent\Model */ protected $subscription; /** * Create a new Subscription instance. * * @return void */ public function __const...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/SubscriptionUsageManager.php
src/SubscriptionUsageManager.php
<?php namespace Gerardojbaez\Laraplans; class SubscriptionUsageManager { /** * Subscription model instance. * * @var \Illuminate\Database\Eloquent\Model */ protected $subscription; /** * Create new Subscription Usage Manager instance. * * @param \Illuminate\Database\El...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/SubscriptionResolver.php
src/SubscriptionResolver.php
<?php namespace Gerardojbaez\Laraplans; use Gerardojbaez\Laraplans\Contracts\SubscriptionResolverInterface; use Illuminate\Database\Eloquent\Model; class SubscriptionResolver implements SubscriptionResolverInterface { /** * @inherit */ public function resolve(Model $subscribable, $name) { ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/LaraplansServiceProvider.php
src/LaraplansServiceProvider.php
<?php namespace Gerardojbaez\Laraplans; use Gerardojbaez\Laraplans\Contracts\PlanFeatureInterface; use Gerardojbaez\Laraplans\Contracts\PlanInterface; use Gerardojbaez\Laraplans\Contracts\PlanSubscriptionInterface; use Gerardojbaez\Laraplans\Contracts\PlanSubscriptionUsageInterface; use Gerardojbaez\Laraplans\Contrac...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Feature.php
src/Feature.php
<?php namespace Gerardojbaez\Laraplans; use Carbon\Carbon; use Gerardojbaez\Laraplans\Exceptions\InvalidPlanFeatureException; class Feature { /** * Feature code. * * @var string */ protected $feature_code; /** * Feature resettable interval. * * @var string */ ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Period.php
src/Period.php
<?php namespace Gerardojbaez\Laraplans; use Carbon\Carbon; use Gerardojbaez\Laraplans\Exceptions\InvalidIntervalException; class Period { /** * The interval constants. */ const DAY = 'day'; const WEEK = 'week'; const MONTH = 'month'; const YEAR = 'year'; /** * Map Interval ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Exceptions/InvalidIntervalException.php
src/Exceptions/InvalidIntervalException.php
<?php namespace Gerardojbaez\Laraplans\Exceptions; class InvalidIntervalException extends \Exception { /** * Create a new InvalidPlanFeatureException instance. * * @param $feature * @return void */ public function __construct($interval) { $this->message = "Invalid interval...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Exceptions/FeatureValueFormatIncompatibleException.php
src/Exceptions/FeatureValueFormatIncompatibleException.php
<?php namespace Gerardojbaez\Laraplans\Exceptions; class FeatureValueFormatIncompatibleException extends \Exception { /** * Create a new FeatureValueFormatIncompatibleException instance. * * @param $feature * @return void */ public function __construct($value) { $this->mes...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Exceptions/InvalidPlanFeatureException.php
src/Exceptions/InvalidPlanFeatureException.php
<?php namespace Gerardojbaez\Laraplans\Exceptions; class InvalidPlanFeatureException extends \Exception { /** * Create a new InvalidPlanFeatureException instance. * * @return void */ public function __construct($feature) { $this->message = "Invalid plan feature: {$feature}"; ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Traits/BelongsToPlan.php
src/Traits/BelongsToPlan.php
<?php namespace Gerardojbaez\Laraplans\Traits; trait BelongsToPlan { /** * Get plan. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function plan() { return $this->belongsTo(config('laraplans.models.plan')); } /** * Scope by plan id. ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Traits/PlanSubscriber.php
src/Traits/PlanSubscriber.php
<?php namespace Gerardojbaez\Laraplans\Traits; use Gerardojbaez\Laraplans\Contracts\SubscriptionBuilderInterface; use Gerardojbaez\Laraplans\Contracts\SubscriptionResolverInterface; use Gerardojbaez\Laraplans\SubscriptionUsageManager; use Illuminate\Container\Container; use Illuminate\Support\Facades\App; trait Plan...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Listeners/PlanSubscription/SetPeriodWhenEmpty.php
src/Listeners/PlanSubscription/SetPeriodWhenEmpty.php
<?php namespace Gerardojbaez\Laraplans\Listeners\PlanSubscription; use Gerardojbaez\Laraplans\Events\SubscriptionSaving; class SetPeriodWhenEmpty { /** * Handle event. * * @return void */ public function handle(SubscriptionSaving $event) { // Set period if it wasn't set ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Listeners/PlanSubscription/DispatchEventWhenPlanChanges.php
src/Listeners/PlanSubscription/DispatchEventWhenPlanChanges.php
<?php namespace Gerardojbaez\Laraplans\Listeners\PlanSubscription; use Gerardojbaez\Laraplans\Events\SubscriptionPlanChanged; use Gerardojbaez\Laraplans\Events\SubscriptionSaving; class DispatchEventWhenPlanChanges { /** * Handle event. * * @return void */ public function handle(Subscript...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Contracts/PlanInterface.php
src/Contracts/PlanInterface.php
<?php namespace Gerardojbaez\Laraplans\Contracts; interface PlanInterface { public function features(); public function subscriptions(); public function isFree(); public function hasTrial(); }
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Contracts/PlanSubscriptionInterface.php
src/Contracts/PlanSubscriptionInterface.php
<?php namespace Gerardojbaez\Laraplans\Contracts; interface PlanSubscriptionInterface { public function subscribable(); public function plan(); public function usage(); public function getStatusAttribute(); public function isActive(); public function onTrial(); public function isCanc...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Contracts/SubscriptionBuilderInterface.php
src/Contracts/SubscriptionBuilderInterface.php
<?php namespace Gerardojbaez\Laraplans\Contracts; interface SubscriptionBuilderInterface { /** * Specify the trial duration period in days. * * @param int $trialDays * @return $this */ public function trialDays($trialDays); /** * Do not apply trial to the subscription. ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Contracts/SubscriptionResolverInterface.php
src/Contracts/SubscriptionResolverInterface.php
<?php namespace Gerardojbaez\Laraplans\Contracts; use Illuminate\Database\Eloquent\Model; interface SubscriptionResolverInterface { /** * Resolve the subscribable subscription. * * @param string $name The subscription name if your site supports multiple subscriptions. * @return Model *...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Contracts/PlanFeatureInterface.php
src/Contracts/PlanFeatureInterface.php
<?php namespace Gerardojbaez\Laraplans\Contracts; interface PlanFeatureInterface { public function plan(); public function usage(); }
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Contracts/PlanSubscriptionUsageInterface.php
src/Contracts/PlanSubscriptionUsageInterface.php
<?php namespace Gerardojbaez\Laraplans\Contracts; use Illuminate\Database\Eloquent\Builder; interface PlanSubscriptionUsageInterface { public function feature(); public function subscription(); public function scopeByFeatureCode(Builder $query, string $feature_code); public function isExpired(); }...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Contracts/PlanSubscriberInterface.php
src/Contracts/PlanSubscriberInterface.php
<?php namespace Gerardojbaez\Laraplans\Contracts; interface PlanSubscriberInterface { public function subscription($name = 'default'); public function subscriptions(); public function subscribed($subscription = 'default'); public function newSubscription($name, $plan); public function subscrip...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Models/Plan.php
src/Models/Plan.php
<?php namespace Gerardojbaez\Laraplans\Models; use Gerardojbaez\Laraplans\Contracts\PlanInterface; use Gerardojbaez\Laraplans\Database\Factories\PlanFactory; use Gerardojbaez\Laraplans\Exceptions\InvalidPlanFeatureException; use Gerardojbaez\Laraplans\Period; use Illuminate\Database\Eloquent\Factories\HasFactory; use...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Models/PlanSubscriptionUsage.php
src/Models/PlanSubscriptionUsage.php
<?php namespace Gerardojbaez\Laraplans\Models; use Carbon\Carbon; use Gerardojbaez\Laraplans\Contracts\PlanSubscriptionUsageInterface; use Gerardojbaez\Laraplans\Database\Factories\PlanSubscriptionUsageFactory; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illumi...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Models/PlanFeature.php
src/Models/PlanFeature.php
<?php namespace Gerardojbaez\Laraplans\Models; use Gerardojbaez\Laraplans\Contracts\PlanFeatureInterface; use Gerardojbaez\Laraplans\Database\Factories\PlanFeatureFactory; use Gerardojbaez\Laraplans\Traits\BelongsToPlan; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; us...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Models/PlanSubscription.php
src/Models/PlanSubscription.php
<?php namespace Gerardojbaez\Laraplans\Models; use Carbon\Carbon; use Gerardojbaez\Laraplans\Contracts\PlanInterface; use Gerardojbaez\Laraplans\Contracts\PlanSubscriptionInterface; use Gerardojbaez\Laraplans\Database\Factories\PlanSubscriptionFactory; use Gerardojbaez\Laraplans\Events\SubscriptionCanceled; use Gerar...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Events/SubscriptionCreated.php
src/Events/SubscriptionCreated.php
<?php namespace Gerardojbaez\Laraplans\Events; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Illuminate\Queue\SerializesModels; class SubscriptionCreated { use SerializesModels; /** * @var \Laraplans\Models\PlanSubscription */ public $subscription; /** * Create a new event ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Events/SubscriptionSaving.php
src/Events/SubscriptionSaving.php
<?php namespace Gerardojbaez\Laraplans\Events; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Illuminate\Queue\SerializesModels; class SubscriptionSaving { use SerializesModels; /** * @var \Gerardojbaez\Laraplans\Models\PlanSubscription */ public $subscription; /** * Create ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Events/SubscriptionRenewed.php
src/Events/SubscriptionRenewed.php
<?php namespace Gerardojbaez\Laraplans\Events; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Illuminate\Queue\SerializesModels; class SubscriptionRenewed { use SerializesModels; /** * @var \Laraplans\Models\PlanSubscription */ public $subscription; /** * Create a new event ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Events/SubscriptionCanceled.php
src/Events/SubscriptionCanceled.php
<?php namespace Gerardojbaez\Laraplans\Events; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Illuminate\Queue\SerializesModels; class SubscriptionCanceled { use SerializesModels; /** * @var \Laraplans\Models\PlanSubscription */ public $subscription; /** * Create a new event...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Events/SubscriptionSaved.php
src/Events/SubscriptionSaved.php
<?php namespace Gerardojbaez\Laraplans\Events; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Illuminate\Queue\SerializesModels; class SubscriptionSaved { use SerializesModels; /** * @var \Gerardojbaez\Laraplans\Models\PlanSubscription */ public $subscription; /** * Create a...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/src/Events/SubscriptionPlanChanged.php
src/Events/SubscriptionPlanChanged.php
<?php namespace Gerardojbaez\Laraplans\Events; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Illuminate\Queue\SerializesModels; class SubscriptionPlanChanged { use SerializesModels; /** * @var \Laraplans\Models\PlanSubscription */ public $subscription; /** * Create a new ev...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/TestCase.php
tests/TestCase.php
<?php namespace Gerardojbaez\Laraplans\Tests; use Illuminate\Foundation\Application; use Orchestra\Testbench\TestCase as TestBenchCase; class TestCase extends TestBenchCase { /** * Set up the test environment. * * @return void */ protected function setUp(): void { parent::setU...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Integration/SubscriptionBuilderTest.php
tests/Integration/SubscriptionBuilderTest.php
<?php namespace Gerardojbaez\Laraplans\Tests\Integration; use App\Models\User; use Gerardojbaez\Laraplans\Models\Plan; use Gerardojbaez\Laraplans\Tests\TestCase; class SubscriptionBuilderTest extends TestCase { /** * Can create new user subscription. * * @test * * @return void */ ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Integration/SubscriptionAbilityTest.php
tests/Integration/SubscriptionAbilityTest.php
<?php namespace Gerardojbaez\Laraplans\Tests\Integration; use App\Models\User; use Gerardojbaez\Laraplans\Models\Plan; use Gerardojbaez\Laraplans\Models\PlanFeature; use Gerardojbaez\Laraplans\Tests\TestCase; class SubscriptionAbilityTest extends TestCase { /** * Can check subscription feature usage. *...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Integration/SubscriptionUsageManagerTest.php
tests/Integration/SubscriptionUsageManagerTest.php
<?php namespace Gerardojbaez\Laraplans\Tests\Integration; use App\Models\User; use Gerardojbaez\Laraplans\Models\Plan; use Gerardojbaez\Laraplans\Models\PlanFeature; use Gerardojbaez\Laraplans\Models\PlanSubscriptionUsage; use Gerardojbaez\Laraplans\Tests\TestCase; class SubscriptionUsageManagerTest extends TestCase...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Integration/Models/PlanSubscriptionTest.php
tests/Integration/Models/PlanSubscriptionTest.php
<?php // @codingStandardsIgnoreFile namespace Gerardojbaez\Laraplans\Tests\Integration\Models; use App\Models\User; use Carbon\Carbon; use Gerardojbaez\Laraplans\Events\SubscriptionCanceled; use Gerardojbaez\Laraplans\Events\SubscriptionCreated; use Gerardojbaez\Laraplans\Events\SubscriptionPlanChanged; use Gerardoj...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Integration/Models/PlanSubscriptionUsageTest.php
tests/Integration/Models/PlanSubscriptionUsageTest.php
<?php namespace Gerardojbaez\Laraplans\Tests\Integration\Models; use App\Models\User; use Carbon\Carbon; use Gerardojbaez\Laraplans\Models\Plan; use Gerardojbaez\Laraplans\Models\PlanFeature; use Gerardojbaez\Laraplans\Tests\TestCase; use Illuminate\Support\Facades\Config; class PlanSubscriptionUsageTest extends Tes...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Integration/Models/PlanTest.php
tests/Integration/Models/PlanTest.php
<?php namespace Gerardojbaez\Laraplans\Tests\Integration\Models; use Gerardojbaez\Laraplans\Models\Plan; use Gerardojbaez\Laraplans\Models\PlanFeature; use Gerardojbaez\Laraplans\Period; use Gerardojbaez\Laraplans\Tests\TestCase; use Illuminate\Support\Facades\App; class PlanTest extends TestCase { /** * Ca...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Unit/PeriodTest.php
tests/Unit/PeriodTest.php
<?php namespace Gerardojbaez\Laraplans\Tests\Unit; use Gerardojbaez\Laraplans\Exceptions\InvalidIntervalException; use Gerardojbaez\Laraplans\Period; use Gerardojbaez\Laraplans\Tests\TestCase; use Illuminate\Support\Facades\App; class PeriodTest extends TestCase { /** * Start date for the tests. * ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/tests/Unit/FeatureTest.php
tests/Unit/FeatureTest.php
<?php namespace Gerardojbaez\Laraplans\Tests\Unit; use Gerardojbaez\Laraplans\Exceptions\InvalidPlanFeatureException; use Gerardojbaez\Laraplans\Feature; use Gerardojbaez\Laraplans\Tests\TestCase; class FeatureTest extends TestCase { /** * Can return all configured feature codes. * * @test * ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/config/laraplans.php
config/laraplans.php
<?php return [ /* |-------------------------------------------------------------------------- | Positive Words |-------------------------------------------------------------------------- | | These words indicates "true" and are used to check if a particular plan | feature is enabled. |...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/factories/PlanFeatureFactory.php
database/factories/PlanFeatureFactory.php
<?php namespace Gerardojbaez\Laraplans\Database\Factories; use Gerardojbaez\Laraplans\Models\Plan; use Gerardojbaez\Laraplans\Models\PlanFeature; use Illuminate\Database\Eloquent\Factories\Factory; class PlanFeatureFactory extends Factory { protected $model = PlanFeature::class; public function definition()...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/factories/PlanSubscriptionFactory.php
database/factories/PlanSubscriptionFactory.php
<?php namespace Gerardojbaez\Laraplans\Database\Factories; use App\Models\User; use Gerardojbaez\Laraplans\Models\Plan; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Illuminate\Database\Eloquent\Factories\Factory; class PlanSubscriptionFactory extends Factory { protected $model = PlanSubscription::clas...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/factories/PlanFactory.php
database/factories/PlanFactory.php
<?php namespace Gerardojbaez\Laraplans\Database\Factories; use Gerardojbaez\Laraplans\Models\Plan; use Illuminate\Database\Eloquent\Factories\Factory; class PlanFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Plan::class...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/factories/PlanSubscriptionUsageFactory.php
database/factories/PlanSubscriptionUsageFactory.php
<?php namespace Gerardojbaez\Laraplans\Database\Factories; use Gerardojbaez\Laraplans\Models\PlanSubscription; use Gerardojbaez\Laraplans\Models\PlanSubscriptionUsage; use Illuminate\Database\Eloquent\Factories\Factory; class PlanSubscriptionUsageFactory extends Factory { protected $model = PlanSubscriptionUsage...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/migrations/2016_08_15_190045_create_plan_subscription_usages_table.php
database/migrations/2016_08_15_190045_create_plan_subscription_usages_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePlanSubscriptionUsagesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('plan_subscription_usages', function (Bl...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/migrations/2016_08_15_185912_create_plans_table.php
database/migrations/2016_08_15_185912_create_plans_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePlansTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('plans', function (Blueprint $table) { $table...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/migrations/2016_08_15_190000_create_plan_features_table.php
database/migrations/2016_08_15_190000_create_plan_features_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePlanFeaturesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('plan_features', function (Blueprint $table) { ...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
gerardojbaez/laraplans
https://github.com/gerardojbaez/laraplans/blob/c8ae772601ff78e802f15d3b01fe57051f6d1b40/database/migrations/2016_08_15_190033_create_plan_subscriptions_table.php
database/migrations/2016_08_15_190033_create_plan_subscriptions_table.php
<?php // @codingStandardsIgnoreFile use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePlanSubscriptionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('plan_subscrip...
php
MIT
c8ae772601ff78e802f15d3b01fe57051f6d1b40
2026-01-05T03:29:46.370267Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Webp.php
src/Webp.php
<?php namespace Buglinjo\LaravelWebp; use Buglinjo\LaravelWebp\Exceptions\DriverIsNotSupportedException; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Config; class Webp { /** * @param UploadedFile $image * @return Cwebp|PhpGD|Traits\WebpTrait|null * @throws DriverIsNotSupported...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Cwebp.php
src/Cwebp.php
<?php namespace Buglinjo\LaravelWebp; use Buglinjo\LaravelWebp\Exceptions\CwebpShellExecutionFailed; use Buglinjo\LaravelWebp\Interfaces\WebpInterface; use Buglinjo\LaravelWebp\Traits\WebpTrait; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Process; class ...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/PhpGD.php
src/PhpGD.php
<?php namespace Buglinjo\LaravelWebp; use Buglinjo\LaravelWebp\Exceptions\ImageMimeNotSupportedException; use Buglinjo\LaravelWebp\Interfaces\WebpInterface; use Buglinjo\LaravelWebp\Traits\WebpTrait; use Illuminate\Support\Facades\File; class PhpGD implements WebpInterface { use WebpTrait; /** * @param...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/WebpServiceProvider.php
src/WebpServiceProvider.php
<?php namespace Buglinjo\LaravelWebp; use Illuminate\Support\ServiceProvider; class WebpServiceProvider extends ServiceProvider { /** * Perform post-registration booting of services. * * @return void */ public function boot() { $this->publishes([ __DIR__ . '/../con...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Exceptions/CwebpShellExecutionFailed.php
src/Exceptions/CwebpShellExecutionFailed.php
<?php namespace Buglinjo\LaravelWebp\Exceptions; use Exception; use Throwable; class CwebpShellExecutionFailed extends Exception { public function __construct(string $cmd, string $output, $code = 0, Throwable $previous = null) { parent::__construct($this->makeMessage($cmd, $code, $output), $code, $pr...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Exceptions/ImageMimeNotSupportedException.php
src/Exceptions/ImageMimeNotSupportedException.php
<?php namespace Buglinjo\LaravelWebp\Exceptions; use Exception; class ImageMimeNotSupportedException extends Exception { }
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Exceptions/DriverIsNotSupportedException.php
src/Exceptions/DriverIsNotSupportedException.php
<?php namespace Buglinjo\LaravelWebp\Exceptions; use Exception; use Throwable; class DriverIsNotSupportedException extends Exception { public function __construct($driverName = "", $code = 0, Throwable $previous = null) { $message = "Driver [$driverName] is not supported."; parent::_...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Interfaces/WebpInterface.php
src/Interfaces/WebpInterface.php
<?php namespace Buglinjo\LaravelWebp\Interfaces; use Exception; use Illuminate\Http\UploadedFile; interface WebpInterface { /** * @param UploadedFile $image * @return mixed */ public function make(UploadedFile $image); /** * @param int|null $quality * @return mixed */ ...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Traits/WebpTrait.php
src/Traits/WebpTrait.php
<?php namespace Buglinjo\LaravelWebp\Traits; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Config; trait WebpTrait { /** * @var UploadedFile */ protected $image; /** * @var int */ protected $quality; /** * @param UploadedFile $image * @return $th...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/src/Facades/Webp.php
src/Facades/Webp.php
<?php namespace Buglinjo\LaravelWebp\Facades; use Illuminate\Support\Facades\Facade; class Webp extends Facade { /** * Return facade accessor * * @return string */ protected static function getFacadeAccessor() { return 'webp'; } }
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
buglinjo/laravel-webp
https://github.com/buglinjo/laravel-webp/blob/9ea1892b13e9725ed87154de65e2334c41d36a9a/config/laravel-webp.php
config/laravel-webp.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Quality |-------------------------------------------------------------------------- | | This is a default quality unless you provide while generation of the WebP | */ 'default_qua...
php
MIT
9ea1892b13e9725ed87154de65e2334c41d36a9a
2026-01-05T03:29:47.686139Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/.phpstorm.meta.php
.phpstorm.meta.php
<?php namespace PHPSTORM_META { registerArgumentsSet( 'phoenix_table_primary_key', true, false, 'column_name', null, ['column1_name', 'column2_name'], new \Phoenix\Database\Element\Column('column_name', 'column_type'), [new \Phoenix\Database\Element\C...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/composer_autoloader.php
src/composer_autoloader.php
<?php declare(strict_types=1); return function () { $files = [ __DIR__ . '/../../../autoload.php', // composer dependency __DIR__ . '/../vendor/autoload.php', // stand-alone package ]; foreach ($files as $file) { if (is_file($file)) { require_once $file; re...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Templates/TemplateManager.php
src/Templates/TemplateManager.php
<?php declare(strict_types=1); namespace Phoenix\Templates; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Migration\MigrationNameCreator; final class TemplateManager { private MigrationNameCreator $migrationNameCreator; private string $indent; private string $templatePath; publ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Migration/MigrationCreator.php
src/Migration/MigrationCreator.php
<?php declare(strict_types=1); namespace Phoenix\Migration; use Phoenix\Templates\TemplateManager; final class MigrationCreator { private MigrationNameCreator $migrationNameCreator; private TemplateManager $templateManager; public function __construct(string $migration, string $indent, ?string $templa...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Migration/MigrationNameCreator.php
src/Migration/MigrationNameCreator.php
<?php declare(strict_types=1); namespace Phoenix\Migration; final class MigrationNameCreator { private string $namespace; private string $className; private string $fileName; public function __construct(string $fullClassName) { if (substr($fullClassName, 0, 1) === '\\') { $...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Migration/AbstractMigration.php
src/Migration/AbstractMigration.php
<?php declare(strict_types=1); namespace Phoenix\Migration; use PDOStatement; use Phoenix\Database\Adapter\AdapterInterface; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\MigrationView; use Phoenix\Database\Element\Structure; use Phoenix\Databa...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Migration/FilesFinder.php
src/Migration/FilesFinder.php
<?php declare(strict_types=1); namespace Phoenix\Migration; use InvalidArgumentException; use Symfony\Component\Finder\Finder; final class FilesFinder { /** @var string[] */ private array $directories = []; public function addDirectory(string $path): FilesFinder { if (!file_exists($path)) {...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Migration/Manager.php
src/Migration/Manager.php
<?php declare(strict_types=1); namespace Phoenix\Migration; use DateTime; use InvalidArgumentException; use Phoenix\Behavior\ParamsCheckerBehavior; use Phoenix\Config\Config; use Phoenix\Database\Adapter\AdapterInterface; use Phoenix\Exception\InvalidArgumentValueException; use ReflectionClass; use ReflectionParamet...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Migration/ClassNameCreator.php
src/Migration/ClassNameCreator.php
<?php declare(strict_types=1); namespace Phoenix\Migration; final class ClassNameCreator { private string $datetime = ''; private string $className = ''; public function __construct(string $filepath) { $filename = pathinfo($filepath, PATHINFO_FILENAME); if (strpos($filename, '_')) {...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Migration/Init/0_init.php
src/Migration/Init/0_init.php
<?php declare(strict_types=1); namespace Phoenix\Migration\Init; use Phoenix\Database\Adapter\AdapterInterface; use Phoenix\Database\Element\Column; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Migration\AbstractMigration; final class Init extends AbstractMigration { private string $logTable...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Behavior/ParamsCheckerBehavior.php
src/Behavior/ParamsCheckerBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Behavior; use Phoenix\Exception\InvalidArgumentValueException; trait ParamsCheckerBehavior { /** * @param string $valueToCheck * @param string[] $availableValues * @param string $message * @throws InvalidArgumentValueException */ prot...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/ColumnSettings.php
src/Database/Element/ColumnSettings.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; use Phoenix\Exception\InvalidArgumentValueException; use ReflectionClass; final class ColumnSettings { public const SETTING_NULL = 'null'; public const SETTING_DEFAULT = 'default'; public const SETTING_LENGTH = 'length'; public const...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Table.php
src/Database/Element/Table.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; use Phoenix\Database\Element\Behavior\AutoIncrementBehavior; final class Table { use AutoIncrementBehavior; private string $name; private ?string $charset = null; private ?string $collation = null; private ?string $comment = ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/ForeignKey.php
src/Database/Element/ForeignKey.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; use Phoenix\Behavior\ParamsCheckerBehavior; use Phoenix\Exception\InvalidArgumentValueException; final class ForeignKey { use ParamsCheckerBehavior; public const DEFAULT_ACTION = ''; public const RESTRICT = 'RESTRICT'; public const ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/IndexColumnSettings.php
src/Database/Element/IndexColumnSettings.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; final class IndexColumnSettings { public const SETTING_ORDER = 'order'; public const SETTING_LENGTH = 'length'; public const SETTING_ORDER_ASC = 'ASC'; public const SETTING_ORDER_DESC = 'DESC'; public const DEFAULT_SETTINGS = [ ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/MigrationTable.php
src/Database/Element/MigrationTable.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; use Phoenix\Database\Element\Behavior\AutoIncrementBehavior; use Phoenix\Database\Element\Behavior\CharsetAndCollationBehavior; use Phoenix\Database\Element\Behavior\ColumnsToChangeBehavior; use Phoenix\Database\Element\Behavior\ColumnsToDropBehavior...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/MigrationView.php
src/Database/Element/MigrationView.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; final class MigrationView { public const ACTION_CREATE = 'create'; public const ACTION_REPLACE = 'replace'; public const ACTION_DROP = 'drop'; private string $name; /** @var string[] */ private array $columns = []; pr...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/IndexColumn.php
src/Database/Element/IndexColumn.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; final class IndexColumn { private string $name; private IndexColumnSettings $columnSettings; /** * @param array<string, int|string> $columnSettings */ public function __construct(string $name, array $columnSettings = []) ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Column.php
src/Database/Element/Column.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; use Phoenix\Exception\InvalidArgumentValueException; use ReflectionClass; final class Column { public const TYPE_STRING = 'string'; public const TYPE_BIT = 'bit'; public const TYPE_TINY_INTEGER = 'tinyinteger'; public const TYPE_SMAL...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false