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 |
|---|---|---|---|---|---|---|---|---|
Bacon/BaconPdf | https://github.com/Bacon/BaconPdf/blob/5f2e6b4eea079d5311111b80a53f6e5d3d3d4630/test/Encryption/AbstractEncryptionTest.php | test/Encryption/AbstractEncryptionTest.php | <?php
/**
* BaconPdf
*
* @link http://github.com/Bacon/BaconPdf For the canonical source repository
* @copyright 2015 Ben Scholzen (DASPRiD)
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace Bacon\PdfTest\Encryption;
use Bacon\Pdf\Encryption\AbstractEncryption;
us... | php | BSD-2-Clause | 5f2e6b4eea079d5311111b80a53f6e5d3d3d4630 | 2026-01-05T04:48:03.848172Z | false |
Bacon/BaconPdf | https://github.com/Bacon/BaconPdf/blob/5f2e6b4eea079d5311111b80a53f6e5d3d3d4630/test/Encryption/Pdf16EncryptionTest.php | test/Encryption/Pdf16EncryptionTest.php | <?php
/**
* BaconPdf
*
* @link http://github.com/Bacon/BaconPdf For the canonical source repository
* @copyright 2015 Ben Scholzen (DASPRiD)
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace Bacon\PdfTest\Encryption;
use Bacon\Pdf\Encryption\Pdf16Encryption;
use B... | php | BSD-2-Clause | 5f2e6b4eea079d5311111b80a53f6e5d3d3d4630 | 2026-01-05T04:48:03.848172Z | false |
Bacon/BaconPdf | https://github.com/Bacon/BaconPdf/blob/5f2e6b4eea079d5311111b80a53f6e5d3d3d4630/test/Encryption/NullEncryptionTest.php | test/Encryption/NullEncryptionTest.php | <?php
/**
* BaconPdf
*
* @link http://github.com/Bacon/BaconPdf For the canonical source repository
* @copyright 2015 Ben Scholzen (DASPRiD)
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace Bacon\PdfTest\Encryption;
use Bacon\Pdf\Encryption\NullEncryption;
use Ba... | php | BSD-2-Clause | 5f2e6b4eea079d5311111b80a53f6e5d3d3d4630 | 2026-01-05T04:48:03.848172Z | false |
Bacon/BaconPdf | https://github.com/Bacon/BaconPdf/blob/5f2e6b4eea079d5311111b80a53f6e5d3d3d4630/test/TestHelper/MemoryObjectWriter.php | test/TestHelper/MemoryObjectWriter.php | <?php
/**
* BaconPdf
*
* @link http://github.com/Bacon/BaconPdf For the canonical source repository
* @copyright 2015 Ben Scholzen (DASPRiD)
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace Bacon\PdfTest\TestHelper;
use Bacon\Pdf\Exception\InvalidArgumentExceptio... | php | BSD-2-Clause | 5f2e6b4eea079d5311111b80a53f6e5d3d3d4630 | 2026-01-05T04:48:03.848172Z | false |
Bacon/BaconPdf | https://github.com/Bacon/BaconPdf/blob/5f2e6b4eea079d5311111b80a53f6e5d3d3d4630/test/Writer/ObjectWriterTest.php | test/Writer/ObjectWriterTest.php | <?php
/**
* BaconPdf
*
* @link http://github.com/Bacon/BaconPdf For the canonical source repository
* @copyright 2015 Ben Scholzen (DASPRiD)
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace Bacon\PdfTest\Writer;
use Bacon\Pdf\Writer\ObjectWriter;
use PHPUnit_Fram... | php | BSD-2-Clause | 5f2e6b4eea079d5311111b80a53f6e5d3d3d4630 | 2026-01-05T04:48:03.848172Z | false |
Bacon/BaconPdf | https://github.com/Bacon/BaconPdf/blob/5f2e6b4eea079d5311111b80a53f6e5d3d3d4630/example/empty-page.php | example/empty-page.php | <?php
/**
* BaconPdf
*
* @link http://github.com/Bacon/BaconPdf For the canonical source repository
* @copyright 2015 Ben Scholzen (DASPRiD)
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
use Bacon\Pdf\PdfWriter;
require_once __DIR__ . '/../vendor/autoload.php';
$writer... | php | BSD-2-Clause | 5f2e6b4eea079d5311111b80a53f6e5d3d3d4630 | 2026-01-05T04:48:03.848172Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/src/ShvetsGroup/LaravelEmailDatabaseLog/LaravelEmailDatabaseLogServiceProvider.php | src/ShvetsGroup/LaravelEmailDatabaseLog/LaravelEmailDatabaseLogServiceProvider.php | <?php
namespace ShvetsGroup\LaravelEmailDatabaseLog;
use Illuminate\Support\ServiceProvider;
class LaravelEmailDatabaseLogServiceProvider extends ServiceProvider
{
/**
* Register any other events for your application.
*
* @return void
*/
public function boot()
{
//
}
/**
* R... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/src/ShvetsGroup/LaravelEmailDatabaseLog/EmailLogger.php | src/ShvetsGroup/LaravelEmailDatabaseLog/EmailLogger.php | <?php
namespace ShvetsGroup\LaravelEmailDatabaseLog;
use Carbon\Carbon;
use Symfony\Component\Mime\Email;
use Illuminate\Support\Facades\DB;
use Symfony\Component\Mime\Part\DataPart;
use Illuminate\Mail\Events\MessageSending;
class EmailLogger
{
/**
* Handle the actual logging.
*
* @param MessageSending $even... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/src/ShvetsGroup/LaravelEmailDatabaseLog/LaravelEmailDatabaseLogEventServiceProvider.php | src/ShvetsGroup/LaravelEmailDatabaseLog/LaravelEmailDatabaseLogEventServiceProvider.php | <?php
namespace ShvetsGroup\LaravelEmailDatabaseLog;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Mail\Events\MessageSending;
class LaravelEmailDatabaseLogEventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the applicati... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/src/database/migrations/2017_11_10_001638_add_more_mail_columns_email_log.php | src/database/migrations/2017_11_10_001638_add_more_mail_columns_email_log.php | <?php
use Illuminate\Database\Migrations\Migration;
class AddMoreMailColumnsEmailLog extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('email_log', function ($table) {
if (!Schema::hasColumn('email_log', 'id')) {
... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/src/database/migrations/2018_05_11_115355_use_longtext_for_attachments.php | src/database/migrations/2018_05_11_115355_use_longtext_for_attachments.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class UseLongtextForAttachments extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::table('email_log', function (Blueprint $table) {
$table->longText('attachments'... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/src/database/migrations/2016_09_21_001638_add_bcc_column_email_log.php | src/database/migrations/2016_09_21_001638_add_bcc_column_email_log.php | <?php
use Illuminate\Database\Migrations\Migration;
class AddBccColumnEmailLog extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('email_log', function ($table) {
if (!Schema::hasColumn('email_log', 'bcc')) {
... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/src/database/migrations/2015_07_31_1_email_log.php | src/database/migrations/2015_07_31_1_email_log.php | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class EmailLog extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('email_log', function (Blueprint $table) {
$table->in... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/tests/TestCase.php | tests/TestCase.php | <?php
namespace ShvetsGroup\LaravelEmailDatabaseLog\Tests;
use ShvetsGroup\LaravelEmailDatabaseLog\LaravelEmailDatabaseLogServiceProvider;
class TestCase extends \Orchestra\Testbench\TestCase
{
public function getEnvironmentSetUp($app)
{
// import the migrations
include_once __DIR__ . '/../src/database/migrati... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/tests/Mail/TestMailWithAttachment.php | tests/Mail/TestMailWithAttachment.php | <?php
namespace ShvetsGroup\LaravelEmailDatabaseLog\Tests\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class TestMailWithAttachment extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new messa... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/tests/Mail/TestMail.php | tests/Mail/TestMail.php | <?php
namespace ShvetsGroup\LaravelEmailDatabaseLog\Tests\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class TestMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message in... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
shvetsgroup/laravel-email-database-log | https://github.com/shvetsgroup/laravel-email-database-log/blob/8ba15db6ab9c0e3824548db74f1f3f290f840cfc/tests/Feature/LaravelEmailDatabaseTest.php | tests/Feature/LaravelEmailDatabaseTest.php | <?php
namespace ShvetsGroup\LaravelEmailDatabaseLog\Tests\Feature;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Mail;
use Symfony\Component\Mime\Encoder\Base64Encoder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use ShvetsGroup\LaravelEmailDatabaseLog\Tests\TestCase;
use ShvetsGroup\Larave... | php | MIT | 8ba15db6ab9c0e3824548db74f1f3f290f840cfc | 2026-01-05T04:48:11.321673Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/src/SieveServiceProvider.php | src/SieveServiceProvider.php | <?php
declare(strict_types=1);
namespace Aldemeery\Sieve;
use Aldemeery\Sieve\Commands\FilterMakeCommand;
use Illuminate\Support\ServiceProvider;
class SieveServiceProvider extends ServiceProvider
{
public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->commands([
... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/src/Contracts/Filter.php | src/Contracts/Filter.php | <?php
declare(strict_types=1);
namespace Aldemeery\Sieve\Contracts;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
/** @template Filterable of Model */
interface Filter
{
public function map(mixed $value): mixed;
/** @param Builder<Filterable> $query */
public functio... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/src/Concerns/Filterable.php | src/Concerns/Filterable.php | <?php
declare(strict_types=1);
namespace Aldemeery\Sieve\Concerns;
use Aldemeery\Onion;
use Aldemeery\Sieve\Contracts\Filter;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\App;
use RuntimeException;
trait Filterable
{
/**
* @param Builder<M... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/src/Commands/FilterMakeCommand.php | src/Commands/FilterMakeCommand.php | <?php
declare(strict_types=1);
namespace Aldemeery\Sieve\Commands;
use Illuminate\Console\GeneratorCommand;
class FilterMakeCommand extends GeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'make:filter';
/**
* The console command descripti... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/tests/ModelWithoutFilters.php | tests/ModelWithoutFilters.php | <?php
declare(strict_types=1);
namespace Tests\Aldemeery\Sieve;
use Aldemeery\Sieve\Concerns\Filterable;
use Illuminate\Database\Eloquent\Model;
/** @method \Illuminate\Database\Eloquent\Builder filter(array $params = [], array $additional = []) */
class ModelWithoutFilters extends Model
{
use Filterable;
... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/tests/BadFilter.php | tests/BadFilter.php | <?php
declare(strict_types=1);
namespace Tests\Aldemeery\Sieve;
use Illuminate\Database\Eloquent\Builder;
class BadFilter
{
public function map(mixed $value): mixed
{
return match ($value) {
default => $value,
};
}
/** @param Builder<ModelWithoutFilters> $query */
pu... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/tests/ModelWithFilters.php | tests/ModelWithFilters.php | <?php
declare(strict_types=1);
namespace Tests\Aldemeery\Sieve;
use Aldemeery\Sieve\Concerns\Filterable;
use Illuminate\Database\Eloquent\Model;
/** @method \Illuminate\Database\Eloquent\Builder filter(array $params = [], array $additional = []) */
class ModelWithFilters extends Model
{
use Filterable;
pro... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/tests/TestFilter.php | tests/TestFilter.php | <?php
declare(strict_types=1);
namespace Tests\Aldemeery\Sieve;
use Aldemeery\Sieve\Contracts\Filter;
use Illuminate\Database\Eloquent\Builder;
/** @implements Filter<ModelWithFilters> */
class TestFilter implements Filter
{
public function map(mixed $value): mixed
{
return match ($value) {
... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
aldemeery/sieve | https://github.com/aldemeery/sieve/blob/8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f/tests/Concerns/FilterableTest.php | tests/Concerns/FilterableTest.php | <?php
declare(strict_types=1);
namespace Tests\Aldemeery\Sieve\Concerns;
use Illuminate\Database\Connection;
use Illuminate\Database\ConnectionResolver;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\App;
use PDO;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
u... | php | MIT | 8c13c8b3638b3ffa4fc56d7288e7e0b3389cb78f | 2026-01-05T04:48:20.018527Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Approach.php | src/Approach.php | <?php
namespace Laravel\Roster;
use Laravel\Roster\Enums\Approaches;
class Approach
{
public function __construct(protected Approaches $approach) {}
public function name(): string
{
return $this->approach->name;
}
public function approach(): Approaches
{
return $this->approa... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/PackageCollection.php | src/PackageCollection.php | <?php
namespace Laravel\Roster;
use Illuminate\Support\Collection;
/**
* @extends Collection<int, Package>
*/
class PackageCollection extends Collection
{
public function dev(): static
{
return $this->filter(fn (Package $package) => $package->isDev());
}
public function production(): stati... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Roster.php | src/Roster.php | <?php
namespace Laravel\Roster;
use Illuminate\Support\Collection;
use Laravel\Roster\Enums\Approaches;
use Laravel\Roster\Enums\NodePackageManager;
use Laravel\Roster\Enums\Packages;
use Laravel\Roster\Scanners\Composer;
use Laravel\Roster\Scanners\DirectoryStructure;
use Laravel\Roster\Scanners\PackageLock;
/**
*... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/RosterServiceProvider.php | src/RosterServiceProvider.php | <?php
namespace Laravel\Roster;
use Illuminate\Support\ServiceProvider;
class RosterServiceProvider extends ServiceProvider
{
/**
* Bootstrap any package services.
*/
public function boot(): void
{
$this->registerCommands();
}
/**
* Register the package's commands.
*/... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Package.php | src/Package.php | <?php
namespace Laravel\Roster;
use Laravel\Roster\Enums\Packages;
class Package
{
protected bool $direct = false;
protected string $constraint = '';
public function __construct(protected Packages $package, protected string $packageName, protected string $version, protected bool $dev = false) {}
p... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Console/ScanCommand.php | src/Console/ScanCommand.php | <?php
namespace Laravel\Roster\Console;
use Illuminate\Console\Command;
use Laravel\Roster\Roster;
class ScanCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'roster:scan {directory}';
protected $description = 'D... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Enums/Approaches.php | src/Enums/Approaches.php | <?php
namespace Laravel\Roster\Enums;
enum Approaches: string
{
case ACTION = 'action';
case DDD = 'ddd';
}
| php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Enums/Ides.php | src/Enums/Ides.php | <?php
namespace Laravel\Roster\Enums;
enum Ides: string
{
case PHPSTORM = 'phpstorm';
case CURSOR = 'cursor';
case WINDSURF = 'windsurf';
case VSCODE = 'vscode';
case CLAUDE_CODE = 'claudecode';
case CODEX = 'codex';
case OPENCODE = 'opencode';
}
| php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Enums/NodePackageManager.php | src/Enums/NodePackageManager.php | <?php
namespace Laravel\Roster\Enums;
use Laravel\Roster\Scanners\BunPackageLock;
use Laravel\Roster\Scanners\NpmPackageLock;
use Laravel\Roster\Scanners\PnpmPackageLock;
use Laravel\Roster\Scanners\YarnPackageLock;
enum NodePackageManager: string
{
case NPM = 'npm';
case PNPM = 'pnpm';
case YARN = 'yarn... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Enums/Packages.php | src/Enums/Packages.php | <?php
namespace Laravel\Roster\Enums;
enum Packages: string
{
// Compound
case INERTIA = 'inertia';
case WAYFINDER = 'wayfinder';
// BACKEND
case BREEZE = 'breeze';
case CASHIER = 'cashier';
case DUSK = 'dusk';
case ENVOY = 'envoy';
case FILAMENT = 'filament';
case FOLIO = 'fo... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/BunPackageLock.php | src/Scanners/BunPackageLock.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
class BunPackageLock extends BasePackageScanner
{
/**
* @return \Illuminate\Support\Collection<int, \Laravel\Roster\Package|\Laravel\Roster\Approach>
*/
public function scan(): Collection... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/PnpmPackageLock.php | src/Scanners/PnpmPackageLock.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
use Symfony\Component\Yaml\Yaml;
class PnpmPackageLock extends BasePackageScanner
{
/**
* @return \Illuminate\Support\Collection<int, \Laravel\Roster\Package|\Laravel\Roster\Approach>
*/
... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/YarnPackageLock.php | src/Scanners/YarnPackageLock.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
class YarnPackageLock extends BasePackageScanner
{
/**
* @return \Illuminate\Support\Collection<int, \Laravel\Roster\Package|\Laravel\Roster\Approach>
*/
public function scan(): Collection
{
$mappedItems = colle... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/PackageLock.php | src/Scanners/PackageLock.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
use Laravel\Roster\Enums\NodePackageManager;
class PackageLock
{
/**
* @param string $path - Base path to scan for lock files (package-lock.json, pnpm-lock.yaml, yarn.lock, ...)
*/
public function __construct(protected s... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/Composer.php | src/Scanners/Composer.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
use Laravel\Roster\Approach;
use Laravel\Roster\Enums\Approaches;
use Laravel\Roster\Enums\Packages;
use Laravel\Roster\Package;
class Composer
{
/**
* Map of composer package names to enums
... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/BasePackageScanner.php | src/Scanners/BasePackageScanner.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
use Laravel\Roster\Approach;
use Laravel\Roster\Enums\Approaches;
use Laravel\Roster\Enums\Packages;
use Laravel\Roster\Package;
abstract class BasePackageScanner
{
/**
* Map of package names to e... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/DirectoryStructure.php | src/Scanners/DirectoryStructure.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
use Laravel\Roster\Approach;
use Laravel\Roster\Enums\Approaches;
class DirectoryStructure
{
public function __construct(protected string $path) {}
/**
* @return \Illuminate\Support\Collection<int, \Laravel\Roster\Package|\Lara... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/src/Scanners/NpmPackageLock.php | src/Scanners/NpmPackageLock.php | <?php
namespace Laravel\Roster\Scanners;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
class NpmPackageLock extends BasePackageScanner
{
/**
* @return \Illuminate\Support\Collection<int, \Laravel\Roster\Package|\Laravel\Roster\Approach>
*/
public function scan(): Collection... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/Pest.php | tests/Pest.php | <?php
/*
|--------------------------------------------------------------------------
| Test Case
|--------------------------------------------------------------------------
|
| The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Fra... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use Laravel\Roster\RosterServiceProvider;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
abstract class TestCase extends OrchestraTestCase
{
protected function defineEnvironment($app) {}
protected function setUp(): void
{
parent::setUp();
}
protected funct... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/fixtures/fog/installed.php | tests/fixtures/fog/installed.php | <?php
return [
[
'versions' => [
'laravel/framework' => [
'pretty_version' => '11.44.2',
'dev_requirement' => false,
],
'pestphp/pest' => [
'pretty_version' => '3.8.1',
'dev_requirement' => true,
... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/Unit/CreateApproachesAndPackagesTest.php | tests/Unit/CreateApproachesAndPackagesTest.php | <?php
use Laravel\Roster\Approach;
it('can create instances of approaches', function () {
$approach = new \Laravel\Roster\Approach(\Laravel\Roster\Enums\Approaches::DDD);
expect($approach)->toBeInstanceOf(Approach::class);
});
it('can create instances of packages', function () {
$approach = new \Laravel\... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/Unit/RosterTest.php | tests/Unit/RosterTest.php | <?php
use Laravel\Roster\Approach;
use Laravel\Roster\Enums\Approaches;
use Laravel\Roster\Enums\NodePackageManager;
use Laravel\Roster\Enums\Packages;
use Laravel\Roster\Package;
use Laravel\Roster\Roster;
it('can add packages and approaches to roster', function () {
$package = new Package(Packages::PEST, 'pestp... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/Unit/CheckTest.php | tests/Unit/CheckTest.php | <?php
use Laravel\Roster\Enums\Packages;
use Laravel\Roster\Roster;
it('adds found composer packages to roster class', function () {
$path = __DIR__.'/../fixtures/fog';
$roster = Roster::scan($path);
// Overall - 12 packages from composer (dusk, socialite, folio, volt, fluxui_free, laravel, pest, pint, ... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/Unit/ScanCommandTest.php | tests/Unit/ScanCommandTest.php | <?php
use Illuminate\Support\Facades\Artisan;
use Tests\TestCase;
uses(TestCase::class);
it('outputs JSON for directory with packages', function () {
$path = __DIR__.'/../fixtures/fog';
Artisan::call('roster:scan', ['directory' => $path]);
$output = Artisan::output();
$decoded = json_decode($output... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/Unit/Scanners/PackageLockTest.php | tests/Unit/Scanners/PackageLockTest.php | <?php
use Laravel\Roster\Enums\Packages;
use Laravel\Roster\Package;
use Laravel\Roster\Scanners\PackageLock;
$packageLockPath = __DIR__.'/../../fixtures/fog/package-lock.json';
$pnpmLockPath = __DIR__.'/../../fixtures/fog/pnpm-lock.yaml';
$yarnLockPath = __DIR__.'/../../fixtures/fog/yarn.lock';
$tempPackagePath = $p... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
laravel/roster | https://github.com/laravel/roster/blob/b1bcac84218466f9d258315fb89f36261e79d385/tests/Unit/Scanners/ComposerTest.php | tests/Unit/Scanners/ComposerTest.php | <?php
use Laravel\Roster\Enums\Packages;
use Laravel\Roster\Scanners\Composer;
it('can parse installed packages', function () {
$path = __DIR__.'/../../fixtures/fog/composer.lock';
$uses = (new Composer($path))->scan();
$laravel = $uses->first(fn ($item) => $item->package() === Packages::LARAVEL);
ex... | php | MIT | b1bcac84218466f9d258315fb89f36261e79d385 | 2026-01-05T04:48:34.931826Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/export.php | export.php | <?PHP
require_once(__DIR__.'/lib/functions.inc.php');
global $db_handle;
if ($_POST["export"]!="") {
header('Content-Type: text/csv');
header('Content-Disposition: attachment;filename=tasmobackup_devices.csv');
//SQL Query for Data
$sql = "SELECT * FROM devices;";
//Prepare Query, Bind Parameter... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/listbackups.php | listbackups.php | <?php
require_once(__DIR__.'/lib/functions.inc.php');
global $db_handle;
global $settings;
if (isset($_POST["name"])) {
$name = $_POST["name"];
}
if (isset($_POST["id"])) {
$id = intval($_POST["id"]);
}
if (isset($_POST["task"])) {
switch(strtolower($_POST["task"])) {
case 'delbackup':
... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/backupall.php | backupall.php | <?PHP
require_once(__DIR__.'/lib/functions.inc.php');
$errorcount=backupAll(isset($_REQUEST['docker']));
TBHeader(false,false,false,false);
?>
<body>
<div class="container-fluid">
<?php
if(is_array($errorcount)) {
if($errorcount[0]==0 && $errorcount[1]==0) {
$output = "All b... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/scan.php | scan.php | <?php
require_once(__DIR__.'/lib/functions.inc.php');
require_once(__DIR__.'/lib/mqtt.inc.php');
global $settings;
TBHeader('Scan',true,'
$(document).ready(function() {
$(\'#status\').DataTable({
"order": [[1, "asc" ]],
"pageLength": '. (isset($settings['amount'])?$settings['amount']:100) .',
... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/upgrade.php | upgrade.php | <?php
global $settings;
global $db_upgrade;
$db_upgrade = true;
require_once(__DIR__.'/lib/functions.inc.php');
TBHeader('Upgrade',true,false,true,10);
?>
<body>
<div class="container-fluid">
Upgrade Complete
</div>
<?php
TBFooter();
?>
</body>
</html>
| php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/edit.php | edit.php | <?php
require_once(__DIR__.'/lib/functions.inc.php');
if (isset($_POST['ip'])) {
$ip = $_POST['ip'];
}
TBHeader('Edit Device',true,'
$(document).ready(function() {
$(\'#status\').DataTable({
"order": [[0, "asc" ]],
"pageLength": '. (isset($settings['amount'])?$settings['amount']:100) .',
... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/index.php | index.php | <?php
require_once(__DIR__.'/lib/functions.inc.php');
global $db_handle;
global $settings;
$task='';
$password='';
$user='admin';
if(isset($settings['tasmota_username'])) $user=$settings['tasmota_username'];
if (isset($_POST["task"])) {
$task = $_POST["task"];
}
if (isset($_POST["user"])) {
$user = $_POST["us... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/settings.php | settings.php | <?php
require_once(__DIR__.'/lib/functions.inc.php');
global $db_handle;
global $settings;
if (isset($_POST["sortoption"])) {
dbSettingsUpdate('sort',intval($_POST["sortoption"]));
}
if (isset($_POST["amountoption"])) {
dbSettingsUpdate('amount',intval($_POST["amountoption"]));
}
if (isset($_POST['mqtt_host... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/lib/functions.inc.php | lib/functions.inc.php | <?php
require_once (__DIR__.'/db.inc.php');
$strJsonFileContents = file_get_contents(__DIR__.'/../HA_addon/config.json');
$array = json_decode($strJsonFileContents, true);
$GLOBALS['VERSION']=$array['version'];
function getBetween($content, $start, $end)
{
$r = explode($start, $content);
if (isset($r[1])) {
... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/lib/db.inc.php | lib/db.inc.php | <?php
require_once(__DIR__.'/../data/config.inc.php');
global $db_handle;
global $settings;
global $db_upgrade;
if ($DBType=='mysql') {
$db_handle = new \PDO('mysql:host='.$DBServer.';dbname='.$DBName, $DBUser, $DBPassword);
$GLOBALS['DBType']='mysql';
}
if ($DBType=='sqlite') {
if (!isset($DBName)) {
... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/lib/phpMQTT2.php | lib/phpMQTT2.php | <?php
/*
phpMQTT
A simple php class to connect/publish/subscribe to an MQTT broker
*/
/*
Licence
Copyright (c) 2010 Blue Rhinos Consulting | Andrew Milsted
andrew@bluerhinos.co.uk | http://www.bluerhinos.co.uk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/lib/phpMQTT.php | lib/phpMQTT.php | <?php
/*
phpMQTT
A simple php class to connect/publish/subscribe to an MQTT broker
*/
/*
Licence
Copyright (c) 2010 Blue Rhinos Consulting | Andrew Milsted
andrew@bluerhinos.co.uk | http://www.bluerhinos.co.uk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
danmed/TasmoBackupV1 | https://github.com/danmed/TasmoBackupV1/blob/ff65d7aeade785f40b50f91351f7786592ea5d2d/lib/mqtt.inc.php | lib/mqtt.inc.php | <?php
require_once(__DIR__.'/phpMQTT2.php');
GLOBAL $mqtt_found;
$mqtt_found=[];
function setupMQTT($server, $port=1883, $user, $password)
{
$mqtt = new phpMQTT($server, $port, 'TasmoBackup');
//$mqtt = new Bluerhinos\phpMQTT($server, $port, 'TasmoBackup');
if(!$mqtt->connect(true, NULL, $user, $passwo... | php | MIT | ff65d7aeade785f40b50f91351f7786592ea5d2d | 2026-01-05T04:48:49.060847Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/BIP32.php | src/BIP32.php | <?php
namespace BitWasp\BitcoinLib;
use Mdanter\Ecc\EccFactory;
/**
* BIP32
*
* This library contains function which implement BIP32.
* More information on this implementation can be found here:
* https://github.com/sipa/bips/blob/bip32update/bip-0032.mediawiki
* The library supports Bitcoin and Dogecoin mainn... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/Jsonrpcclient.php | src/Jsonrpcclient.php | <?php
namespace BitWasp\BitcoinLib;
/*
COPYRIGHT
Copyright 2007 Sergio Vaccaro <sergio@inservibile.org>
This file is part of JSON-RPC PHP.
JSON-RPC PHP is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eit... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/Electrum.php | src/Electrum.php | <?php
namespace BitWasp\BitcoinLib;
use Mdanter\Ecc\EccFactory;
/**
* Electrum Library
*
* This class contains functions which implement the electrum standard
* functionality.
*
* - A function which stretches the seed many times into a 64bit key.
* - A function to generate a master public key from the seed.
... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/BitcoinLib.php | src/BitcoinLib.php | <?php
namespace BitWasp\BitcoinLib;
use Mdanter\Ecc\EccFactory;
use Mdanter\Ecc\Primitives\GeneratorPoint;
use Mdanter\Ecc\Primitives\PointInterface;
use Mdanter\Ecc\Crypto\Signature\Signature;
use Mdanter\Ecc\Crypto\Signature\Signer;
use Mdanter\Ecc\Crypto\Key\PublicKey;
/**
* BitcoinLib
*
* This library is larg... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | true |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/RawTransaction.php | src/RawTransaction.php | <?php
namespace BitWasp\BitcoinLib;
use Mdanter\Ecc\EccFactory;
use Mdanter\Ecc\Crypto\Key\PublicKey;
use Mdanter\Ecc\Crypto\Signature\Signature;
use Mdanter\Ecc\Crypto\Signature\Signer;
/**
* Raw Transaction Library
*
* This library contains functions used to decode hex-encoded raw transactions
* into an array ... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | true |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/BIP39/BIP39EnglishWordList.php | src/BIP39/BIP39EnglishWordList.php | <?php
namespace BitWasp\BitcoinLib\BIP39;
/**
* Class BIP39EnglishWordList
* word list as defined here: https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt
*
* @package BitWasp\BitcoinLib\BIP39
*/
class BIP39EnglishWordList extends BIP39WordList
{
protected $wordsFlipped;
public function ... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | true |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/BIP39/BIP39WordList.php | src/BIP39/BIP39WordList.php | <?php
namespace BitWasp\BitcoinLib\BIP39;
abstract class BIP39WordList
{
/**
* get a list of all the words
*
* @return array
*/
abstract public function getWords();
/**
* get a word by it's index
*
* should throw an exception if the index does not exist
*
* @... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/src/BIP39/BIP39.php | src/BIP39/BIP39.php | <?php
namespace BitWasp\BitcoinLib\BIP39;
class BIP39
{
protected static $defaultWordList;
/**
* generate random entropy using \MCRYPT_DEV_URANDOM
*
* @param int $size desired strength, must be multiple of 32, recommended 128-256
* @throws \Exception
* @return st... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/BIP32Test.php | tests/BIP32Test.php | <?php
use BitWasp\BitcoinLib\BIP32;
use BitWasp\BitcoinLib\BitcoinLib;
/**
* test vectors generated/verified using http://bip32.org/
*
* Class BIP32Test
*/
class BIP32Test extends PHPUnit_Framework_TestCase
{
public function __construct()
{
}
public function setup()
{
// ensure we're... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/AgainstRPCTest.php | tests/AgainstRPCTest.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\Jsonrpcclient;
use BitWasp\BitcoinLib\RawTransaction;
use BitWasp\BitcoinLib\Electrum;
class testAgainstRPC extends PHPUnit_Framework_TestCase
{
/**
* @var Jsonrpcclient
*/
private $client;
public function __construct()
{
... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/BIP32CoreTest.php | tests/BIP32CoreTest.php | <?php
class BIP32CoreTest extends PHPUnit_Framework_TestCase
{
public function __construct()
{
}
public function setup()
{
}
public function tearDown()
{
}
public function testGMP()
{
$math = \Mdanter\Ecc\EccFactory::getAdapter();
$I_l = "e97a4d6be13f... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/SignVerifyMessageTest.php | tests/SignVerifyMessageTest.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\Jsonrpcclient;
class SignVerifyMessageTest extends PHPUnit_Framework_TestCase
{
public function setup()
{
// ensure we're set to bitcoin and not bitcoin-testnet
BitcoinLib::setMagicByteDefaults('bitcoin');
}
public functi... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/RawTransactionTest.php | tests/RawTransactionTest.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
use Mdanter\Ecc\EccFactory;
class RawTransactionTest extends PHPUnit_Framework_TestCase
{
public function setup()
{
// ensure we're set to bitcoin and not bitcoin-testnet
BitcoinLib::setMagicByteDefaults('bitcoin'... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | true |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/BIP39Test.php | tests/BIP39Test.php | <?php
use BitWasp\BitcoinLib\BIP32;
use BitWasp\BitcoinLib\BIP39\BIP39;
use BitWasp\BitcoinLib\BitcoinLib;
class BIP39Test extends PHPUnit_Framework_TestCase
{
/**
* test vectors as defined here: https://github.com/trezor/python-mnemonic/blob/master/vectors.json
*
* @var array
*/
private ... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/BitcoinLibTest.php | tests/BitcoinLibTest.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
class BitcoinLibTest extends PHPUnit_Framework_TestCase
{
protected $testHexEncode_i;
protected $addressVersion;
protected $WIFVersion;
protected $keyConversionData = array();
public function __construct()
{
$this->addressVersion = '00';
... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/ElectrumTest.php | tests/ElectrumTest.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\Electrum;
class ElectrumTest extends PHPUnit_Framework_TestCase
{
public function __construct()
{
$this->magic_byte = '00';
}
public function setup()
{
// ensure we're set to bitcoin and not bitcoin-testnet
B... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/BitcoinLibTestNetTest.php | tests/BitcoinLibTestNetTest.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
require_once(__DIR__ . '/BitcoinLibTest.php');
class BitcoinLibTestNetTest extends BitcoinLibTest
{
public function __construct()
{
parent::__construct();
$this->addressVersion = '6f';
$this->p2shAddressVersion = 'c4';
$this->WIFVersio... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/tests/ScriptTest.php | tests/ScriptTest.php | <?php
use BitWasp\BitcoinLib\RawTransaction;
class ScriptTest extends PHPUnit_Framework_TestCase
{
public function testPushData()
{
$data = json_decode(file_get_contents(__DIR__ . "/data/pushdata.json"), true);
foreach ($data as $row) {
$script = '';
array_map(
... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/full_transaction.php | examples/full_transaction.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
// spending from transaction 6737e1355be0566c583eecd48bf8a5e1fcdf2d9f51cc7be82d4393ac9555611c 1st output (vout=0)
// value of output is 0.0002
$inputs = array(
array(
'txid' ... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/bip32_preparing_multisig.php | examples/bip32_preparing_multisig.php | <?php
use BitWasp\BitcoinLib\BIP32;
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
echo "Lets start off by generating a wallet for each of the 'users'.\n";
echo "This will be stored on their machine.\n";
$wallet[0] = BIP32::master_key('b861e093a58718e145b9791af35fb111');
$wa... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/multisig.php | examples/multisig.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__ . '/../vendor/autoload.php');
$m = 2;
$publicKeys = [
'0379ddc228d8c44a85ae30c877a6b037ec3d627e0507f223a0412790a83a46cd5f',
'024d1cf2ca917f4d679fc02df2a39c0a8110a1b6935b27ae6762a0ceeec7752801',
'0258f70f6... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/bip39.php | examples/bip39.php | <?php
use BitWasp\BitcoinLib\BIP32;
use BitWasp\BitcoinLib\BIP39\BIP39;
require_once(__DIR__. '/../vendor/autoload.php');
$password = "my-oh-so-secret-password";
$entropy = BIP39::generateEntropy(256);
$mnemonic = BIP39::entropyToMnemonic($entropy);
$seed = BIP39::mnemonicToSeedHex($mnemonic, $password);
unset($ent... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/test_bip32.php | examples/test_bip32.php | <?php
use BitWasp\BitcoinLib\BIP32;
require_once(__DIR__. '/../vendor/autoload.php');
echo "bip32 tests - https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Test_Vectors \n\n";
echo "test one\n";
$master = BIP32::master_key('000102030405060708090a0b0c0d0e0f');
echo "Chain m\n";
echo " ext priv:\n ... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/bitcoin.php | examples/bitcoin.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
require_once(__DIR__. '/../vendor/autoload.php');;
$magic_byte = '00';
$keypair = BitcoinLib::get_new_key_set($magic_byte);
echo "Key pair: \n";print_r($keypair); echo "\n";
$compress = BitcoinLib::compress_public_key($keypair['pubKey']);
echo "Compressed public key: $compr... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/electrum.php | examples/electrum.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\Electrum;
require_once(__DIR__. '/../vendor/autoload.php');
$magic_byte = '00';
$string = trim('teach start paradise collect blade chill gay childhood creek picture creator branch');
$seed = Electrum::decode_mnemonic($string);
echo "Words: $string\n";
... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/raw_transaction.php | examples/raw_transaction.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
/////////////////////////////
// Parameters for creation..
// Set up inputs here
$inputs = array(
array(
'txid' => '6737e1355be0566c583eecd48bf8a5e1fcdf2d9f51cc7be82d4393ac955... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/sign_p2sh_stepbystep.php | examples/sign_p2sh_stepbystep.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
/*
* !! TESTNET !!
*/
BitcoinLib::setMagicByteDefaults("bitcoin-testnet");
/*
* address: n3P94USXs7LzfF4BKJVyGv2uCfBQRbvMZJ
* priv: cV2BRcdtWoZMSovYCpoY9gyvjiVK5xufpAwdAFk1jdonhGZ... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/electrum_address.php | examples/electrum_address.php | <?php
use BitWasp\BitcoinLib\Electrum;
require_once __DIR__.'/vendor/autoload.php';
$mpk = 'eee6754303a65aa693a459269c8deb55e02e2d03ed427ae4ac498d7ab18f30844e53c10cd84faf2d1cac68da135279a6076c5770934e20651624db6bd72f1670';
echo "Uncompressed Keys: \n";
for($i = 0; $i < 40; $i++){
echo "- ".Electrum::address_from_m... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/electrum_sign_multisig.php | examples/electrum_sign_multisig.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
use BitWasp\BitcoinLib\Electrum;
require_once(__DIR__. '/../vendor/autoload.php');
// Prompt for the redeem script which created the address.
// Sets $decode_redeem_script, $redeem_script, $address, and $script_hash
//$redeem_script = '... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/signature_verification.php | examples/signature_verification.php | <?php
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
// Supply a raw transaction to verify
$raw_tx = '01000000010a74a5750934ce563a9f18812b73dea945e3796d08be5e2c7e817197b4b0665b000000006a47304402203e2b56c1728f6cdcd531d006f7a17e6608513432113290229762de1d1bc0e76902205a9a41c1968... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/bip32.php | examples/bip32.php | <?php
use BitWasp\BitcoinLib\BIP32;
require_once(__DIR__. '/../vendor/autoload.php');
$master = BIP32::master_key(bin2hex(mcrypt_create_iv(64, \MCRYPT_DEV_URANDOM)));
// Load a 128 bit key, and convert this to extended key format.
//$master = BIP32::master_key('41414141414141414141414141414141414141');
$def = "0'/0... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/altcoin_offline_wallet.php | examples/altcoin_offline_wallet.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
require_once(__DIR__. '/../vendor/autoload.php');
$usage = "Usage: php {$argv[0]} <magic byte>\n\n";
$usage.= "Some sample bytes are on this list, but you can chose any 2 character byte.\n";
$usage.= "Bitcoin: 00\t\tTestnet: 6f \n";
$usage.= "Litecoin: 48 \n";
$usage.= "Name... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/sign_p2sh.php | examples/sign_p2sh.php | <?php
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
// Transaction this created was spent in: 7f3bf55fdfd7c7858c6a9119ad13d2c2e10cd07186c0f6050bbb7c8b626c8642
// Private keys and redeem scripts
$pks = array(
'5KKNNaV63GB68zCJAF6CnJTx3Zp71vNDBXcjHTLr6wjd9c2ETmu',
'Kyn... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/prompt_sign_multisig.php | examples/prompt_sign_multisig.php | <?php
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
while(!isset($redeem_script)) {
echo "Enter redeem script: ";
$line = trim(fgets(STDIN));
$decode_redeem_script = RawTransaction::decode_redeem_script($line);
if($decode_redeem_script... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.