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
vemcogroup/laravel-translation
https://github.com/vemcogroup/laravel-translation/blob/6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa/src/Commands/AddTerms.php
src/Commands/AddTerms.php
<?php namespace Vemcogroup\Translation\Commands; use Exception; use Illuminate\Console\Command; use Vemcogroup\Translation\Translation; class AddTerms extends Command { protected $signature = 'translation:add-terms {--scan : Whether the job should scan before uploading} ...
php
MIT
6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa
2026-01-05T05:03:46.176465Z
false
vemcogroup/laravel-translation
https://github.com/vemcogroup/laravel-translation/blob/6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa/src/Commands/Scan.php
src/Commands/Scan.php
<?php namespace Vemcogroup\Translation\Commands; use Exception; use Illuminate\Console\Command; use Vemcogroup\Translation\Translation; class Scan extends Command { protected $signature = 'translation:scan {--merge : Whether the job should overwrite or new translations keys}'; pro...
php
MIT
6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa
2026-01-05T05:03:46.176465Z
false
vemcogroup/laravel-translation
https://github.com/vemcogroup/laravel-translation/blob/6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa/src/Commands/Upload.php
src/Commands/Upload.php
<?php namespace Vemcogroup\Translation\Commands; use Exception; use Illuminate\Console\Command; use Vemcogroup\Translation\Translation; class Upload extends Command { protected $signature = 'translation:upload {--scan : Whether the job should scan before uploading} ...
php
MIT
6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa
2026-01-05T05:03:46.176465Z
false
vemcogroup/laravel-translation
https://github.com/vemcogroup/laravel-translation/blob/6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa/src/Commands/Download.php
src/Commands/Download.php
<?php namespace Vemcogroup\Translation\Commands; use Exception; use Illuminate\Console\Command; use Vemcogroup\Translation\Translation; class Download extends Command { protected $signature = 'translation:download {--skip-trimming : Whether translation trimming should be skipped}'; ...
php
MIT
6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa
2026-01-05T05:03:46.176465Z
false
vemcogroup/laravel-translation
https://github.com/vemcogroup/laravel-translation/blob/6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa/src/Commands/CreateJs.php
src/Commands/CreateJs.php
<?php namespace Vemcogroup\Translation\Commands; use Exception; use Illuminate\Console\Command; use Vemcogroup\Translation\Translation; class CreateJs extends Command { protected $signature = 'translation:create-js {--download : Download language files before creating js}'; protec...
php
MIT
6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa
2026-01-05T05:03:46.176465Z
false
vemcogroup/laravel-translation
https://github.com/vemcogroup/laravel-translation/blob/6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa/config/translation.php
config/translation.php
<?php return [ /* |-------------------------------------------------------------------------- | Base Language |-------------------------------------------------------------------------- | | Here you may specify which of language is your base language. | The base language select will be cre...
php
MIT
6bec99ffd1a5da6c1e53e3732203dd2c701b4aaa
2026-01-05T05:03:46.176465Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/src/HejServiceProvider.php
src/HejServiceProvider.php
<?php namespace RenokiCo\Hej; use Illuminate\Support\ServiceProvider; class HejServiceProvider extends ServiceProvider { /** * Boot the service provider. * * @return void */ public function boot() { $this->publishes([ __DIR__.'/../database/migrations/2020_07_24_000...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/src/Social.php
src/Social.php
<?php namespace RenokiCo\Hej; use Illuminate\Database\Eloquent\Model; class Social extends Model { /** * {@inheritdoc} */ protected $guarded = []; /** * Get the model that uses this Social instance. * * @return mixed */ public function model() { return $this...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/src/Http/Controllers/SocialController.php
src/Http/Controllers/SocialController.php
<?php namespace RenokiCo\Hej\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Session; use Illuminate\Support\Str; use Laravel\Socialite\Co...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/src/Contracts/Sociable.php
src/Contracts/Sociable.php
<?php namespace RenokiCo\Hej\Contracts; interface Sociable { // }
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/src/Concerns/HasSocialAccounts.php
src/Concerns/HasSocialAccounts.php
<?php namespace RenokiCo\Hej\Concerns; trait HasSocialAccounts { /** * Get the social accounts for this model. * * @return mixed */ public function socials() { return $this->morphMany(config('hej.models.social'), 'model'); } /** * Check if the authenticatable inst...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/src/Concerns/HandlesSocialRequests.php
src/Concerns/HandlesSocialRequests.php
<?php namespace RenokiCo\Hej\Concerns; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; use RenokiCo\Hej\Social; trait HandlesSocialRequests { /** * Whitelist social providers to be used. * * @var array */ protected static $allowedSocialiteProviders = [ // ...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/TestCase.php
tests/TestCase.php
<?php namespace RenokiCo\Hej\Test; use Laravel\Socialite\Contracts\Factory as Socialite; use Orchestra\Testbench\BrowserKit\TestCase as Orchestra; abstract class TestCase extends Orchestra { /** * {@inheritdoc} */ protected function setUp(): void { parent::setUp(); $this->reset...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/TestServiceProvider.php
tests/TestServiceProvider.php
<?php namespace RenokiCo\Hej\Test; use Illuminate\Support\ServiceProvider; class TestServiceProvider extends ServiceProvider { /** * Boot the service provider. * * @return void */ public function boot() { $this->loadRoutesFrom(__DIR__.'/routes/web.php'); } /** * ...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/ProviderTest.php
tests/ProviderTest.php
<?php namespace RenokiCo\Hej\Test; use RenokiCo\Hej\Test\Models\User; class ProviderTest extends TestCase { public function test_redirect_should_redirect_to_provider_website() { $this->call('GET', route('redirect', ['provider' => 'github'])) ->assertStatus(302); } public function...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/Controllers/SocialController.php
tests/Controllers/SocialController.php
<?php namespace RenokiCo\Hej\Test\Controllers; use Illuminate\Http\Request; use RenokiCo\Hej\Http\Controllers\SocialController as BaseSocialController; class SocialController extends BaseSocialController { /** * Whitelist social providers to be used. * * @var array */ protected static $al...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/routes/web.php
tests/routes/web.php
<?php use Illuminate\Support\Facades\Route; Route::get('/home', function () { return 'Home'; })->name('home'); Route::get('/register', function () { return 'Register'; })->name('register'); Route::group(['middleware' => [\Illuminate\Session\Middleware\StartSession::class]], function () { Route::group(['...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/Middleware/Authenticate.php
tests/Middleware/Authenticate.php
<?php namespace RenokiCo\Hej\Test\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. * * @param \Illuminate\Http\Request $request * @return string...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/Models/User.php
tests/Models/User.php
<?php namespace RenokiCo\Hej\Test\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use RenokiCo\Hej\Concerns\HasSocialAccounts; use RenokiCo\Hej\Contracts\Sociable; class User extends Authenticatable implements Sociable { use HasSocialAccounts; protected $fillable = [ 'name', 'email',...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/tests/database/factories/UserFactory.php
tests/database/factories/UserFactory.php
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your application. Factories provide a convenient way to generat...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/config/hej.php
config/hej.php
<?php return [ /* |-------------------------------------------------------------------------- | Models |-------------------------------------------------------------------------- | | Here you can configure the model classes to be used by the package. | If you wish to extend certain functio...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
renoki-co/hej
https://github.com/renoki-co/hej/blob/6b5e2784ccdbf81be6f42d68d296136a98d73430/database/migrations/2020_07_24_000000_create_socials_table.php
database/migrations/2020_07_24_000000_create_socials_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSocialsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('socials', funct...
php
Apache-2.0
6b5e2784ccdbf81be6f42d68d296136a98d73430
2026-01-05T05:03:58.089582Z
false
skoerfgen/ACMECert
https://github.com/skoerfgen/ACMECert/blob/1fd77938de821d6113f65b6621d7de77c5bba2ed/ACMECert.php
ACMECert.php
<?php require __DIR__.'/src/ACME_Exception.php'; require __DIR__.'/src/ACMEv2.php'; require __DIR__.'/src/ACMECert.php';
php
MIT
1fd77938de821d6113f65b6621d7de77c5bba2ed
2026-01-05T05:04:08.403775Z
false
skoerfgen/ACMECert
https://github.com/skoerfgen/ACMECert/blob/1fd77938de821d6113f65b6621d7de77c5bba2ed/src/ACMEv2.php
src/ACMEv2.php
<?php /* MIT License Copyright (c) 2018 Stefan Körfgen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
php
MIT
1fd77938de821d6113f65b6621d7de77c5bba2ed
2026-01-05T05:04:08.403775Z
false
skoerfgen/ACMECert
https://github.com/skoerfgen/ACMECert/blob/1fd77938de821d6113f65b6621d7de77c5bba2ed/src/ACMECert.php
src/ACMECert.php
<?php /* MIT License Copyright (c) 2018 Stefan Körfgen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
php
MIT
1fd77938de821d6113f65b6621d7de77c5bba2ed
2026-01-05T05:04:08.403775Z
false
skoerfgen/ACMECert
https://github.com/skoerfgen/ACMECert/blob/1fd77938de821d6113f65b6621d7de77c5bba2ed/src/ACME_Exception.php
src/ACME_Exception.php
<?php /* MIT License Copyright (c) 2018 Stefan Körfgen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
php
MIT
1fd77938de821d6113f65b6621d7de77c5bba2ed
2026-01-05T05:04:08.403775Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/DoucheWeb/app.php
src/DoucheWeb/app.php
<?php namespace DoucheWeb; use Douche\Interactor\AuctionListResponse; use Douche\Interactor\AuctionViewRequest; use Douche\Interactor\UserLoginRequest; use Douche\Interactor\UserLoginResponse; use Douche\Interactor\AuctionViewResponse; use Douche\Interactor\BidRequest; use Douche\Exception\Exception as DoucheExceptio...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/DoucheWeb/ServiceProvider.php
src/DoucheWeb/ServiceProvider.php
<?php namespace DoucheWeb; use Douche\Storage\Sql\AuctionRepository; use Douche\Storage\File\UserRepository; use Douche\Interactor\AuctionList; use Douche\Interactor\AuctionView; use Douche\Interactor\UserLogin; use Douche\Interactor\Bid; use Douche\Service\PairCurrencyConverter; use Douche\Service\UppercasePasswordE...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/DoucheWeb/console.php
src/DoucheWeb/console.php
<?php namespace DoucheWeb; use Douche\Storage\Sql\Util; use Douche\Entity\User; use Igorw\Silex\ConfigServiceProvider; use Symfony\Component\Console\Application; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; us...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/DoucheWeb/ControllerResolver.php
src/DoucheWeb/ControllerResolver.php
<?php namespace DoucheWeb; use Pimple; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface; class ControllerResolver implements ControllerResolverInterface { protected $resolver; protected $container; public function __construct(Controlle...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Entity/User.php
src/Douche/Entity/User.php
<?php namespace Douche\Entity; class User { private $id; private $name; private $email; private $passwordHash; public function __construct($id, $name, $email, $passwordHash) { $this->id = $id; $this->name = $name; $this->email = $email; $this->passwordHash = $p...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Entity/Auction.php
src/Douche/Entity/Auction.php
<?php namespace Douche\Entity; use Douche\Value\Bid; use Douche\Exception\BidTooLowException; use Douche\Exception\AuctionClosedException; use DateTime; use Money\Currency; class Auction { private $id; private $name; private $endingAt; private $currency; protected $bids = []; public function...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Entity/UserRepository.php
src/Douche/Entity/UserRepository.php
<?php namespace Douche\Entity; interface UserRepository { function find($id); function findOneByEmail($email); function add(User $user); }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Entity/AuctionRepository.php
src/Douche/Entity/AuctionRepository.php
<?php namespace Douche\Entity; interface AuctionRepository { function findAll(); function find($id); }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Storage/File/UserRepository.php
src/Douche/Storage/File/UserRepository.php
<?php namespace Douche\Storage\File; use Douche\Entity\User; use Douche\Entity\UserRepository as UserRepositoryInterface; use Douche\Exception\UserNotFoundException; class UserRepository implements UserRepositoryInterface { private $file; private $users = []; public function __construct($file) { ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Storage/Sql/Util.php
src/Douche/Storage/Sql/Util.php
<?php namespace Douche\Storage\Sql; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Schema\Schema; class Util { public static function createAuctionSchema(Connection $conn) { $sm = $conn->getSchemaManager(); $schema = static::getAuctionSchema(); foreach ($schema->getTables() as $tabl...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Storage/Sql/AuctionRepository.php
src/Douche/Storage/Sql/AuctionRepository.php
<?php namespace Douche\Storage\Sql; use Doctrine\Dbal\Connection; use Douche\Entity\UserRepository; use Douche\Entity\AuctionRepository as AuctionRepositoryInterface; use Douche\Value\Bid; use Money\Money; use Money\Currency; class AuctionRepository implements AuctionRepositoryInterface { const SELECT_SQL = " ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Storage/Sql/Entity/Auction.php
src/Douche/Storage/Sql/Entity/Auction.php
<?php namespace Douche\Storage\Sql\Entity; use Douche\Value\Bid; use Douche\Entity\User; use Douche\Entity\Auction as BaseAuction; class Auction extends BaseAuction { public function addBid(User $bidder, Bid $bid) { $this->bids[] = [$bidder, $bid]; } public function getBids() { r...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/UserLoginResponse.php
src/Douche/Interactor/UserLoginResponse.php
<?php namespace Douche\Interactor; use Douche\View\UserView; class UserLoginResponse { public $user; public function __construct(UserView $user) { $this->user = $user; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/BidResponse.php
src/Douche/Interactor/BidResponse.php
<?php namespace Douche\Interactor; use Douche\Value\Bid as BidValue; use Douche\Exception\Exception; class BidResponse { public $bid; public function __construct(BidValue $bid) { $this->bid = $bid; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/BidRequest.php
src/Douche/Interactor/BidRequest.php
<?php namespace Douche\Interactor; use Money\Money; class BidRequest { public $auctionId; public $userId; public $amount; public function __construct($auctionId, $userId, Money $amount) { $this->auctionId = $auctionId; $this->userId = $userId; $this->amount = $amount; ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/AuctionViewRequest.php
src/Douche/Interactor/AuctionViewRequest.php
<?php namespace Douche\Interactor; class AuctionViewRequest { public $id; public function __construct($id) { $this->id = $id; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/PasswordEncoder.php
src/Douche/Interactor/PasswordEncoder.php
<?php namespace Douche\Interactor; interface PasswordEncoder { function encodePassword($password); function isPasswordValid($encoded, $raw); }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/RegisterUserResponse.php
src/Douche/Interactor/RegisterUserResponse.php
<?php namespace Douche\Interactor; class RegisterUserResponse { public $id; public function __construct($id) { $this->id = $id; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/AuctionList.php
src/Douche/Interactor/AuctionList.php
<?php namespace Douche\Interactor; use Douche\Entity\Auction; use Douche\Entity\AuctionRepository; use Douche\View\AuctionView; class AuctionList { private $repo; public function __construct(AuctionRepository $repo) { $this->repo = $repo; } public function __invoke() { $auct...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/CurrencyConverter.php
src/Douche/Interactor/CurrencyConverter.php
<?php namespace Douche\Interactor; use Money\Currency; use Money\Money; interface CurrencyConverter { /** @return Money */ public function convert(Money $money, Currency $currency); }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/AuctionViewResponse.php
src/Douche/Interactor/AuctionViewResponse.php
<?php namespace Douche\Interactor; use Douche\View\AuctionView as AuctionViewDto; class AuctionViewResponse { public $auction; public function __construct(AuctionViewDto $auction) { $this->auction = $auction; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/RegisterUserRequest.php
src/Douche/Interactor/RegisterUserRequest.php
<?php namespace Douche\Interactor; class RegisterUserRequest { public $id; public $name; public $email; public $password; public function __construct(array $properties) { foreach ($properties as $name => $value) { $this->$name = $value; } } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/AuctionListResponse.php
src/Douche/Interactor/AuctionListResponse.php
<?php namespace Douche\Interactor; class AuctionListResponse { public $auctions; public function __construct(array $auctions) { $this->auctions = $auctions; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/UserLogin.php
src/Douche/Interactor/UserLogin.php
<?php namespace Douche\Interactor; use Douche\View\UserView; use Douche\Entity\UserRepository; use Douche\Exception\IncorrectPasswordException; use Douche\Exception\UserNotFoundException; class UserLogin { private $userRepo; private $passwordEncoder; public function __construct(UserRepository $userRepo,...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/Bid.php
src/Douche/Interactor/Bid.php
<?php namespace Douche\Interactor; use Douche\Entity\AuctionRepository; use Douche\Entity\UserRepository; use Douche\Value\Bid as BidValue; use Douche\View\AuctionView as AuctionViewDto; use Douche\Exception\AuctionClosedException; class Bid { private $auctionRepo; private $userRepo; private $converter; ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/UserLoginRequest.php
src/Douche/Interactor/UserLoginRequest.php
<?php namespace Douche\Interactor; class UserLoginRequest { public $email; public $password; public function __construct(array $data) { foreach ($data as $key => $value) { $this->$key = $value; } } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/RegisterUser.php
src/Douche/Interactor/RegisterUser.php
<?php namespace Douche\Interactor; use Douche\Entity\User; use Douche\Entity\UserRepository; class RegisterUser { private $userRepo; public function __construct(UserRepository $userRepo, PasswordEncoder $passwordEncoder) { $this->userRepo = $userRepo; $this->passwordEncoder = $passwordEn...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Interactor/AuctionView.php
src/Douche/Interactor/AuctionView.php
<?php namespace Douche\Interactor; use Douche\Entity\AuctionRepository; use Douche\View\AuctionView as AuctionViewDto; class AuctionView { private $repo; public function __construct(AuctionRepository $repo) { $this->repo = $repo; } public function __invoke(AuctionViewRequest $request) ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Value/Bid.php
src/Douche/Value/Bid.php
<?php namespace Douche\Value; use Money\Money; class Bid { private $amount; private $originalAmount; public function __construct(Money $amount, Money $originalAmount) { $this->amount = $amount; $this->originalAmount = $originalAmount; } public function getAmount() { ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Exception/AuctionClosedException.php
src/Douche/Exception/AuctionClosedException.php
<?php namespace Douche\Exception; class AuctionClosedException extends BidRejectedException { }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Exception/BidTooLowException.php
src/Douche/Exception/BidTooLowException.php
<?php namespace Douche\Exception; class BidTooLowException extends BidRejectedException { }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Exception/UserNotFoundException.php
src/Douche/Exception/UserNotFoundException.php
<?php namespace Douche\Exception; class UserNotFoundException extends Exception { public $email; public function __construct($email) { parent::__construct(); $this->email = $email; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Exception/IncorrectPasswordException.php
src/Douche/Exception/IncorrectPasswordException.php
<?php namespace Douche\Exception; class IncorrectPasswordException extends Exception { public $email; public function __construct($email) { parent::__construct(); $this->email = $email; } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Exception/Exception.php
src/Douche/Exception/Exception.php
<?php namespace Douche\Exception; use Exception as BaseException; class Exception extends BaseException { }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Exception/BidRejectedException.php
src/Douche/Exception/BidRejectedException.php
<?php namespace Douche\Exception; class BidRejectedException extends Exception { }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Repository/AuctionArrayRepository.php
src/Douche/Repository/AuctionArrayRepository.php
<?php namespace Douche\Repository; use Douche\Entity\AuctionRepository; class AuctionArrayRepository implements AuctionRepository { private $auctions; public function __construct(array $auctions) { $this->auctions = $auctions; } public function findAll() { return $this->auct...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Repository/UserArrayRepository.php
src/Douche/Repository/UserArrayRepository.php
<?php namespace Douche\Repository; use Douche\Entity\User; use Douche\Entity\UserRepository; class UserArrayRepository implements UserRepository { private $users; public function __construct(array $users) { $this->users = $users; } public function find($id) { foreach ($this-...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Service/UppercasePasswordEncoder.php
src/Douche/Service/UppercasePasswordEncoder.php
<?php namespace Douche\Service; use Douche\Interactor\PasswordEncoder; class UppercasePasswordEncoder implements PasswordEncoder { public function encodePassword($password) { return strtoupper($password); } public function isPasswordValid($encoded, $raw) { return $encoded === $th...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Service/PairCurrencyConverter.php
src/Douche/Service/PairCurrencyConverter.php
<?php namespace Douche\Service; use Douche\Interactor\CurrencyConverter; use Money\Money; use Money\Currency; use Money\CurrencyPair; class PairCurrencyConverter implements CurrencyConverter { private $pairs; public function __construct(array $pairs) { $this->pairs = $pairs; } public fu...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/Service/DumbCurrencyConverter.php
src/Douche/Service/DumbCurrencyConverter.php
<?php namespace Douche\Service; use Douche\Interactor\CurrencyConverter; use Money\Money; use Money\Currency; class DumbCurrencyConverter implements CurrencyConverter { public function convert(Money $money, Currency $currency) { return new Money($money->getAmount(), $currency); } }
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/View/UserView.php
src/Douche/View/UserView.php
<?php namespace Douche\View; use Douche\Entity\User; class UserView { public $id; public $name; public $email; public function __construct(array $attributes = array()) { foreach ($attributes as $name => $value) { $this->$name = $value; } } public static funct...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/src/Douche/View/AuctionView.php
src/Douche/View/AuctionView.php
<?php namespace Douche\View; use Douche\Entity\Auction; class AuctionView { public $id; public $name; public $highestBid; public $highestBidder; public $isRunning; public $endingAt; public function __construct(array $attributes = array()) { foreach ($attributes as $name => $v...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/integration/Douche/Storage/Sql/SqlTestCase.php
tests/integration/Douche/Storage/Sql/SqlTestCase.php
<?php namespace tests\integration\Douche\Storage\Sql; use Doctrine\DBAL\Schema\Table; use Douche\Storage\Sql\Util; class SqlTestCase extends \PHPUnit_Framework_TestCase { protected $conn; public function setup() { $params = [ 'driver' => 'pdo_sqlite', 'memory' => true, ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/integration/Douche/Storage/Sql/AuctionRepositoryTest.php
tests/integration/Douche/Storage/Sql/AuctionRepositoryTest.php
<?php namespace tests\integration\Douche\Storage\Sql; use Douche\Storage\Sql\AuctionRepository; use Douche\Repository\UserArrayRepository; use Douche\Entity\User; use Douche\Value\Bid; use Money\Money; use Money\Currency; class AuctionRepositoryTest extends SqlTestCase { public function setUp() { par...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/unit/DoucheWeb/ControllerResolverTest.php
tests/unit/DoucheWeb/ControllerResolverTest.php
<?php namespace tests\unit\DoucheWeb; use Phake; use DoucheWeb\ControllerResolver; use Pimple; use Symfony\Component\HttpFoundation\Request; class ControllerResolverTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->decoratedResolver = Phake::mock("Symfony\Component\HttpKerne...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/unit/Douche/Entity/AuctionTest.php
tests/unit/Douche/Entity/AuctionTest.php
<?php namespace Douche\Entity; use Money\Money; use Money\Currency; use Douche\Value\Bid; class AuctionTest extends \PHPUnit_Framework_TestCase { private $now; public function setUp() { $this->now = new \DateTime('2012-03-02'); } /** @test */ public function bidShouldAddBidToAuction...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/unit/Douche/Storage/File/UserRepositoryTest.php
tests/unit/Douche/Storage/File/UserRepositoryTest.php
<?php namespace Douche\Storage\File; use Douche\Entity\User; class UserRepositoryTest extends \PHPUnit_Framework_TestCase { /** @test */ public function findOnEmptyRepoShouldReturnNull() { $repo = new UserRepository(__DIR__.'/Fixtures/non_existent.json'); $user = $repo->find('missing'); ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/unit/Douche/Interactor/UserLoginTest.php
tests/unit/Douche/Interactor/UserLoginTest.php
<?php namespace Douche\Interactor; use Douche\Interactor\UserLogin; use Douche\Interactor\UserLoginRequest; use Douche\Interactor\UserLoginResponse; use Douche\Entity\User; use Phake; class UserLoginTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->userRepo = Phake::mock('Do...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/unit/Douche/Service/UppercasePasswordEncoderTest.php
tests/unit/Douche/Service/UppercasePasswordEncoderTest.php
<?php namespace Douche\Service; class UppercasePasswordEncoderTest extends \PHPUnit_Framework_TestCase { /** @test */ public function shouldValidateRawPasswordAgainstEncodedPassword() { $encoder = new UppercasePasswordEncoder(); $this->assertTrue($encoder->isPasswordValid('DAVE', 'dave'));...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/unit/Douche/Service/DumbCurrencyConverterTest.php
tests/unit/Douche/Service/DumbCurrencyConverterTest.php
<?php namespace Douche\Service; use Money\Money; use Money\Currency; class DumbCurrencyConverterTest extends \PHPUnit_Framework_TestCase { /** @test */ public function convertShouldLeaveAmountUntouched() { $converter = new DumbCurrencyConverter(); $chf = Money::CHF(100); $gbp = $...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/tests/unit/Douche/Service/PairCurrencyConverterTest.php
tests/unit/Douche/Service/PairCurrencyConverterTest.php
<?php namespace Douche\Service; use Money\Money; use Money\Currency; use Money\CurrencyPair; class PairCurrencyConverterTest extends \PHPUnit_Framework_TestCase { /** * @test * @expectedException RuntimeException */ public function convertWithoutCurrenciesShouldFail() { $converter ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/features/bootstrap/AuctionHelper.php
features/bootstrap/AuctionHelper.php
<?php use Douche\Entity\Auction; use Douche\Entity\User; use Douche\Entity\UserRepository; use Douche\Interactor\AuctionList; use Douche\Interactor\AuctionView as AuctionViewInteractor; use Douche\Interactor\AuctionViewRequest; use Douche\Interactor\Bid as BidInteractor; use Douche\Interactor\BidRequest; use Douche\Re...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/features/bootstrap/EndToEndUserHelper.php
features/bootstrap/EndToEndUserHelper.php
<?php use Behat\Mink\Mink; use Douche\Entity\UserRepository; require_once __DIR__.'/UserHelper.php'; class EndToEndUserHelper extends UserHelper { public function __construct(UserRepository $userRepo, Mink $mink) { parent::__construct($userRepo); $this->mink = $mink; } public functi...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/features/bootstrap/UserHelper.php
features/bootstrap/UserHelper.php
<?php use Douche\Entity\UserRepository; use Douche\Entity\User; use Douche\Interactor\RegisterUser; use Douche\Interactor\RegisterUserRequest; use Douche\Interactor\UserLogin; use Douche\Interactor\UserLoginRequest; use Douche\Service\UppercasePasswordEncoder; require_once 'vendor/phpunit/phpunit/PHPUnit/Framework/As...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/features/bootstrap/EndToEndAuctionHelper.php
features/bootstrap/EndToEndAuctionHelper.php
<?php use Doctrine\DBAL\Connection; use Behat\Mink\Mink; require_once 'vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php'; class EndToEndAuctionHelper { protected $userHelper; protected $conn; protected $mink; protected $auctionId; public function __construct(UserHelper $userHelper, ...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/features/bootstrap/FeatureContext.php
features/bootstrap/FeatureContext.php
<?php use Behat\Behat\Context\ClosuredContextInterface, Behat\Behat\Context\TranslatedContextInterface, Behat\Behat\Context\BehatContext, Behat\Behat\Exception\PendingException; use Behat\Gherkin\Node\PyStringNode, Behat\Gherkin\Node\TableNode; use Symfony\Component\HttpKernel\Client; use Behat\Mink\M...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/web/prod.php
web/prod.php
<?php $env = 'prod'; return require __DIR__.'/front.php';
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/web/dev.php
web/dev.php
<?php $env = 'dev'; return require __DIR__.'/front.php';
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
igorw/doucheswag
https://github.com/igorw/doucheswag/blob/cd4f07034569bf5e70f316dfdc22e604db3eef63/web/front.php
web/front.php
<?php $filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']); if (php_sapi_name() === 'cli-server' && is_file($filename)) { return false; } if (!isset($env)) { http_response_code(503); echo 'Front controller must have environment configured.'; exit; } require __DIR__.'/../vendor/a...
php
MIT
cd4f07034569bf5e70f316dfdc22e604db3eef63
2026-01-05T05:04:15.010015Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/index.php
index.php
<?php define('VER', '1.7.2'); if (!file_exists('config.nogit.php')) { session_start(); session_destroy(); die(header('Location: installation/?v=' . VER)); } require_once('resources/server/libraries.php'); if ($config['version'] != VER) { require_once('installation/installation.php'); confupdater($co...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/installation/installation.php
installation/installation.php
<?php if (file_exists(__DIR__ . '/../config.nogit.php')) { die(header('Location: ../')); } require_once '../resources/server/i18n.class.php'; $i18n = new i18n(); $i18n->setCachePath('../resources/lang/cache'); $i18n->setFilePath('../resources/lang/{LANGUAGE}.ini'); // language file path $i18n->setFallbackLang('en')...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/installation/index.php
installation/index.php
<?php if (file_exists(__DIR__ . '/../config.nogit.php')) { header('Location: ../'); die(); } require_once '../resources/server/i18n.class.php'; $i18n = new i18n(); $i18n->setCachePath('../resources/lang/cache'); $i18n->setFilePath('../resources/lang/{LANGUAGE}.ini'); // language file path $i18n->setFallbackLang...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/resources/cache/index.php
resources/cache/index.php
<?php header("Location: https://vk.cc/7iPiB9"); die(); ?>
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/resources/themes/index.php
resources/themes/index.php
<?php header('Content-Type: application/json'); echo json_encode(glob('*.css')); ?>
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/resources/server/authenCore.php
resources/server/authenCore.php
<?php require_once(__DIR__ . '/libraries.php'); if ($config['am']['enabled'] == false) { printErrorAndDie(L::amcr_unusb); } session_start(); // https://github.com/AuthMe/AuthMeReloaded/tree/master/samples/website_integration function isValidPassword($password, $hash) { global $config; $method = strtolower($...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/resources/server/skinRender.php
resources/server/skinRender.php
<?php require_once('libraries.php'); /****** MINECRAFT 3D Skin Generator ***** * The contents of this project were first developed by Pierre Gros on 17th April 2012. * It has once been modified by Carlos Ferreira (http://www.carlosferreira.me) on 31st May 2014. * Translations done by Carlos Ferreira. * Later adapte...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
true
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/resources/server/i18n.class.php
resources/server/i18n.class.php
<?php /* * Fork this project on GitHub! * https://github.com/Philipp15b/php-i18n * * License: MIT */ class i18n { /** * Language file path * This is the path for the language files. You must use the '{LANGUAGE}' placeholder for the language or the script wont find any language files. * *...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/resources/server/libraries.php
resources/server/libraries.php
<?php require_once __DIR__ . '/i18n.class.php'; $i18n = new i18n(); $i18n->setCachePath(__DIR__ . '/../lang/cache'); $i18n->setFilePath(__DIR__ . '/../lang/{LANGUAGE}.ini'); // language file path $i18n->setFallbackLang('en'); $i18n->setMergeFallback(true); // make keys available from the fallback language $i18n->init()...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
SkinsRestorer/SkinSystem
https://github.com/SkinsRestorer/SkinSystem/blob/68101b9efdcad6213a4468be289b59c4910828ff/resources/server/skinCore.php
resources/server/skinCore.php
<?php require_once(__DIR__ . '/libraries.php'); session_start(); /* Initialize playername */ if ($config['am']['enabled'] == true && !empty($_SESSION['username'])) { $playername = $_SESSION['username']; } else if ($config['am']['enabled'] != true && !empty($_POST['username'])) { $playername = $_POST['username'...
php
MIT
68101b9efdcad6213a4468be289b59c4910828ff
2026-01-05T05:04:25.960579Z
false
HurryBy/CloudDiskAnalysis
https://github.com/HurryBy/CloudDiskAnalysis/blob/28f7f8334fc5f49f446ae54b0e37fc26670da9cf/网页版/public/api/lanzou.php
网页版/public/api/lanzou.php
<?php error_reporting(0); $downloadLink = ""; $docname = ""; function rand_IP() { $ip2id = round(rand(600000, 2550000) / 10000); $ip3id = round(rand(600000, 2550000) / 10000); $ip4id = round(rand(600000, 2550000) / 10000); $arr_1 = array("218", "218", "66", "66", "218", "218", "60", "60", "202", "204", ...
php
Apache-2.0
28f7f8334fc5f49f446ae54b0e37fc26670da9cf
2026-01-05T05:04:21.446543Z
false
HurryBy/CloudDiskAnalysis
https://github.com/HurryBy/CloudDiskAnalysis/blob/28f7f8334fc5f49f446ae54b0e37fc26670da9cf/网页版/public/api/yidong.php
网页版/public/api/yidong.php
<?php function curlPost($url, $post_data = array(), $timeout = 5, $header = "", $data_type = "") { $header = empty($header) ? '' : $header; //支持json数据数据提交 if ($data_type == 'json') { $post_string = json_encode($post_data); } elseif ($data_type == 'array') { $post_string = $post_data; ...
php
Apache-2.0
28f7f8334fc5f49f446ae54b0e37fc26670da9cf
2026-01-05T05:04:21.446543Z
false
HurryBy/CloudDiskAnalysis
https://github.com/HurryBy/CloudDiskAnalysis/blob/28f7f8334fc5f49f446ae54b0e37fc26670da9cf/网页版/public/api/123.php
网页版/public/api/123.php
<?php function post($link, $post_data) { $postdata = http_build_query($post_data); $options = array('http' => array( 'method' => 'POST', 'content' => $postdata, )); $context = stream_context_create($options); $data = file_get_contents($link, false, $context); return $data; } func...
php
Apache-2.0
28f7f8334fc5f49f446ae54b0e37fc26670da9cf
2026-01-05T05:04:21.446543Z
false
mschwarzmueller/laravel-basics-youtube
https://github.com/mschwarzmueller/laravel-basics-youtube/blob/1295312ab4e0b26f839fb161e9aedf9044559422/server.php
server.php
<?php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @author Taylor Otwell <taylorotwell@gmail.com> */ $uri = urldecode( parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ); // This file allows us to emulate Apache's "mod_rewrite" functionality from the // built-in PHP web server....
php
MIT
1295312ab4e0b26f839fb161e9aedf9044559422
2026-01-05T05:04:32.355687Z
false
mschwarzmueller/laravel-basics-youtube
https://github.com/mschwarzmueller/laravel-basics-youtube/blob/1295312ab4e0b26f839fb161e9aedf9044559422/app/User.php
app/User.php
<?php namespace App; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; class User extends Model implements Authenticatable { use \Illuminate\Auth\Authenticatable; public function posts() { return $this->hasMany('App\Post'); } public function likes() ...
php
MIT
1295312ab4e0b26f839fb161e9aedf9044559422
2026-01-05T05:04:32.355687Z
false