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 |
|---|---|---|---|---|---|---|---|---|
swisnl/laravel-fulltext | https://github.com/swisnl/laravel-fulltext/blob/a25aaf379a00a9532ddba2a0da33e4ebd16d8d30/tests/Fixtures/IndexableTestModel.php | tests/Fixtures/IndexableTestModel.php | <?php
namespace Swis\Laravel\Fulltext\Tests\Fixtures;
use Swis\Laravel\Fulltext\Indexable;
class IndexableTestModel extends TestModel
{
use Indexable;
public $indexRecord;
}
| php | MIT | a25aaf379a00a9532ddba2a0da33e4ebd16d8d30 | 2026-01-05T03:05:44.349335Z | false |
swisnl/laravel-fulltext | https://github.com/swisnl/laravel-fulltext/blob/a25aaf379a00a9532ddba2a0da33e4ebd16d8d30/config/laravel-fulltext.php | config/laravel-fulltext.php | <?php
return [
/*
* The database connection to be used
* Defaults to the default database connection
*/
'db_connection' => null,
'weight' => [
'title' => 1.5,
'content' => 1,
],
'limit-results' => 100,
/*
* Enable wildcard after words
*/
'enable_... | php | MIT | a25aaf379a00a9532ddba2a0da33e4ebd16d8d30 | 2026-01-05T03:05:44.349335Z | false |
swisnl/laravel-fulltext | https://github.com/swisnl/laravel-fulltext/blob/a25aaf379a00a9532ddba2a0da33e4ebd16d8d30/database/migrations/2016_11_04_152913_create_laravel_fulltext_table.php | database/migrations/2016_11_04_152913_create_laravel_fulltext_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class CreateLaravelFulltextTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
... | php | MIT | a25aaf379a00a9532ddba2a0da33e4ebd16d8d30 | 2026-01-05T03:05:44.349335Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/PackageDiff.php | src/PackageDiff.php | <?php
namespace IonBazan\ComposerDiff;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\DependencyResolver\Operation\UpdateOperation;
use Composer\Package\AliasPackage;
use Composer\Package\CompletePackage;
use Composer\Package\Load... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/MarkdownListFormatter.php | src/Formatter/MarkdownListFormatter.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
use IonBazan\ComposerDiff\Diff\DiffEntries;
use IonBazan\ComposerDiff\Diff\DiffEntry;
class MarkdownListFormatter extends MarkdownFormatter
{
/**
* {@inheritdoc}
*/
public function render(DiffEntries $prodEntries, DiffEntries $devEntries, $withUrls, ... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/MarkdownFormatter.php | src/Formatter/MarkdownFormatter.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
abstract class MarkdownFormatter extends AbstractFormatter
{
/**
* @param string|null $url
* @param string $title
*
* @return string
*/
protected function formatUrl($url, $title)
{
return null !== $url ? sprintf('[%s](%... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/MarkdownTableFormatter.php | src/Formatter/MarkdownTableFormatter.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
use IonBazan\ComposerDiff\Diff\DiffEntries;
use IonBazan\ComposerDiff\Diff\DiffEntry;
use IonBazan\ComposerDiff\Formatter\Helper\Table;
class MarkdownTableFormatter extends MarkdownFormatter
{
/**
* {@inheritdoc}
*/
public function render(DiffEntries... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/Formatter.php | src/Formatter/Formatter.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
use IonBazan\ComposerDiff\Diff\DiffEntries;
interface Formatter
{
/**
* @param bool $withUrls
* @param bool $withLicenses
*
* @return void
*/
public function render(DiffEntries $prodEntries, DiffEntries $devEntries, $withUrls, $withLic... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/JsonFormatter.php | src/Formatter/JsonFormatter.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
use IonBazan\ComposerDiff\Diff\DiffEntries;
use IonBazan\ComposerDiff\Diff\DiffEntry;
class JsonFormatter extends AbstractFormatter
{
/**
* {@inheritdoc}
*/
public function render(DiffEntries $prodEntries, DiffEntries $devEntries, $withUrls, $withLic... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/FormatterContainer.php | src/Formatter/FormatterContainer.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
use Symfony\Component\Console\Output\OutputInterface;
class FormatterContainer
{
const DEFAULT_FORMATTER = 'mdtable';
/**
* @var array<string, Formatter>
*/
private $formatters;
public function __construct(OutputInterface $output)
{
... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/GitHubFormatter.php | src/Formatter/GitHubFormatter.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
use IonBazan\ComposerDiff\Diff\DiffEntries;
use IonBazan\ComposerDiff\Diff\DiffEntry;
class GitHubFormatter extends AbstractFormatter
{
/**
* {@inheritdoc}
*/
public function render(DiffEntries $prodEntries, DiffEntries $devEntries, $withUrls, $withL... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/AbstractFormatter.php | src/Formatter/AbstractFormatter.php | <?php
namespace IonBazan\ComposerDiff\Formatter;
use IonBazan\ComposerDiff\Diff\DiffEntry;
use Symfony\Component\Console\Output\OutputInterface;
abstract class AbstractFormatter implements Formatter
{
/**
* @var OutputInterface
*/
protected $output;
public function __construct(OutputInterface ... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/Helper/Table.php | src/Formatter/Helper/Table.php | <?php
namespace IonBazan\ComposerDiff\Formatter\Helper;
use Symfony\Component\Console\Output\OutputInterface;
class Table
{
/**
* @var OutputInterface
*/
protected $output;
/**
* @var string[]
*/
protected $headers = array();
/**
* @var string[][]
*/
protected ... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Formatter/Helper/OutputHelper.php | src/Formatter/Helper/OutputHelper.php | <?php
namespace IonBazan\ComposerDiff\Formatter\Helper;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
class OutputHelper
{
/**
* @param string $string
*
* @return int
*/
public static function strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
{
... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Url/UrlGenerator.php | src/Url/UrlGenerator.php | <?php
namespace IonBazan\ComposerDiff\Url;
use Composer\Package\PackageInterface;
interface UrlGenerator
{
/**
* Determines if the generator supports the given package.
*
* @return bool
*/
public function supportsPackage(PackageInterface $package);
/**
* Generates a compare URL ... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Url/BitBucketGenerator.php | src/Url/BitBucketGenerator.php | <?php
namespace IonBazan\ComposerDiff\Url;
use Composer\Package\PackageInterface;
class BitBucketGenerator extends GitGenerator
{
/**
* {@inheritdoc}
*/
protected function getDomain()
{
return 'bitbucket.org';
}
/**
* {@inheritdoc}
*/
public function getCompareUrl... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Url/DrupalGenerator.php | src/Url/DrupalGenerator.php | <?php
namespace IonBazan\ComposerDiff\Url;
use Composer\Package\PackageInterface;
class DrupalGenerator extends GitlabGenerator
{
const DRUPAL_CORE = 'drupal/core';
/**
* {@inheritdoc}
*/
public function supportsPackage(PackageInterface $package)
{
return self::DRUPAL_CORE === $pac... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Url/GitGenerator.php | src/Url/GitGenerator.php | <?php
namespace IonBazan\ComposerDiff\Url;
use Composer\Package\PackageInterface;
abstract class GitGenerator implements UrlGenerator
{
const REFERENCE_LENGTH = 40;
const SHORT_REFERENCE_LENGTH = 7;
/**
* {@inheritdoc}
*/
public function supportsPackage(PackageInterface $package)
{
... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Url/GithubGenerator.php | src/Url/GithubGenerator.php | <?php
namespace IonBazan\ComposerDiff\Url;
use Composer\Package\PackageInterface;
class GithubGenerator extends GitGenerator
{
/**
* {@inheritdoc}
*/
public function getCompareUrl(PackageInterface $initialPackage, PackageInterface $targetPackage)
{
if (!$this->supportsPackage($initialPa... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Url/GitlabGenerator.php | src/Url/GitlabGenerator.php | <?php
namespace IonBazan\ComposerDiff\Url;
use Composer\Package\PackageInterface;
class GitlabGenerator extends GitGenerator
{
/**
* @var string
*/
private $domain;
/**
* @param string $domain
*/
public function __construct($domain = 'gitlab.org')
{
$this->domain = $d... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Url/GeneratorContainer.php | src/Url/GeneratorContainer.php | <?php
namespace IonBazan\ComposerDiff\Url;
use Composer\Package\CompletePackage;
use Composer\Package\PackageInterface;
class GeneratorContainer implements UrlGenerator
{
/**
* @var UrlGenerator[]
*/
protected $generators = array();
/**
* @param string[] $gitlabDomains
*/
public ... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Diff/DiffEntry.php | src/Diff/DiffEntry.php | <?php
namespace IonBazan\ComposerDiff\Diff;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\OperationInterface;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\DependencyResolver\Operation\UpdateOperation;
use Composer\Package\CompletePa... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Diff/VersionComparator.php | src/Diff/VersionComparator.php | <?php
namespace IonBazan\ComposerDiff\Diff;
use Composer\DependencyResolver\Operation\UpdateOperation;
use Composer\Semver\Semver;
use Composer\Semver\VersionParser;
use UnexpectedValueException;
class VersionComparator
{
/**
* @return bool|null true if it's upgrade, false if it's downgrade, null if it is a... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Diff/DiffEntries.php | src/Diff/DiffEntries.php | <?php
namespace IonBazan\ComposerDiff\Diff;
use ArrayIterator;
/**
* @extends ArrayIterator<int, DiffEntry>
*/
class DiffEntries extends ArrayIterator
{
}
| php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Composer/Plugin.php | src/Composer/Plugin.php | <?php
namespace IonBazan\ComposerDiff\Composer;
use Composer\Composer;
use Composer\IO\IOInterface;
use Composer\Plugin\Capable;
use Composer\Plugin\PluginInterface;
class Plugin implements PluginInterface, Capable
{
/**
* @var Composer
*/
protected $composer;
/**
* @return void
*/
... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Command/BaseNotTypedCommand.php | src/Command/BaseNotTypedCommand.php | <?php
namespace IonBazan\ComposerDiff\Command;
use Composer\Command\BaseCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* @codeCoverageIgnore
*
* This class contains a non-typed version of execute() method (for PHP 5).
*/
abstract class BaseN... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Command/CommandProvider.php | src/Command/CommandProvider.php | <?php
namespace IonBazan\ComposerDiff\Command;
use Composer\Composer;
use Composer\Plugin\Capability\CommandProvider as BaseCommandProvider;
use IonBazan\ComposerDiff\PackageDiff;
class CommandProvider implements BaseCommandProvider
{
/**
* @var Composer
*/
private $composer;
/**
* @param... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Command/DiffCommand.php | src/Command/DiffCommand.php | <?php
namespace IonBazan\ComposerDiff\Command;
use IonBazan\ComposerDiff\Diff\DiffEntries;
use IonBazan\ComposerDiff\Diff\DiffEntry;
use IonBazan\ComposerDiff\Formatter\FormatterContainer;
use IonBazan\ComposerDiff\PackageDiff;
use IonBazan\ComposerDiff\Url\GeneratorContainer;
use Symfony\Component\Console\Input\Inpu... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Command/TypedConfigureTrait.php | src/Command/TypedConfigureTrait.php | <?php
namespace IonBazan\ComposerDiff\Command;
/**
* @codeCoverageIgnore
*/
trait TypedConfigureTrait
{
protected function configure(): void
{
$this->doConfigure();
}
}
| php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Command/BaseTypedCommand.php | src/Command/BaseTypedCommand.php | <?php
namespace IonBazan\ComposerDiff\Command;
use Composer\Command\BaseCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class_alias(
PHP_VERSION_ID >= 70200
? 'IonBazan\ComposerDiff\Command\TypedConfigureTrait'
: 'IonBazan\Compose... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/src/Command/NotTypedConfigureTrait.php | src/Command/NotTypedConfigureTrait.php | <?php
namespace IonBazan\ComposerDiff\Command;
/**
* @codeCoverageIgnore
*/
trait NotTypedConfigureTrait
{
/**
* @return void
*/
protected function configure()
{
$this->doConfigure();
}
}
| php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/PackageDiffTest.php | tests/PackageDiffTest.php | <?php
namespace IonBazan\ComposerDiff\Tests;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\DependencyResolver\Operation\UpdateOperation;
use Composer\Package\AliasPackage;
use Composer\Package\Package;
use Composer\Repository\Arr... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/TestCase.php | tests/TestCase.php | <?php
namespace IonBazan\ComposerDiff\Tests;
use Composer\DependencyResolver\Operation\OperationInterface;
use Composer\Package\CompletePackageInterface;
use Composer\Package\PackageInterface;
use IonBazan\ComposerDiff\Diff\DiffEntries;
use IonBazan\ComposerDiff\Diff\DiffEntry;
use IonBazan\ComposerDiff\Tests\Util\Co... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Formatter/JsonFormatterTest.php | tests/Formatter/JsonFormatterTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Formatter;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\DependencyResolver\Operation\UpdateOperation;
use IonBazan\ComposerDiff\Formatter\JsonFormatter;
use Symfony\Component\Console\O... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Formatter/GitHubFormatterTest.php | tests/Formatter/GitHubFormatterTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Formatter;
use IonBazan\ComposerDiff\Formatter\GitHubFormatter;
use Symfony\Component\Console\Output\OutputInterface;
class GitHubFormatterTest extends FormatterTest
{
protected function getSampleOutput($withUrls, $withLicenses, $decorated)
{
if ($withLicen... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Formatter/FormatterTest.php | tests/Formatter/FormatterTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Formatter;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\OperationInterface;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\DependencyResolver\Operation\UpdateOperation;
use IonBazan\Compose... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Formatter/FormatterContainerTest.php | tests/Formatter/FormatterContainerTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Formatter;
use IonBazan\ComposerDiff\Formatter\FormatterContainer;
use IonBazan\ComposerDiff\Tests\TestCase;
class FormatterContainerTest extends TestCase
{
/**
* @dataProvider formatterProvider
*/
public function testGetFormatter($expectedFormatter, $cod... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Formatter/MarkdownTableFormatterTest.php | tests/Formatter/MarkdownTableFormatterTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Formatter;
use IonBazan\ComposerDiff\Formatter\MarkdownTableFormatter;
use Symfony\Component\Console\Output\OutputInterface;
class MarkdownTableFormatterTest extends FormatterTest
{
protected function getSampleOutput($withUrls, $withLicenses, $decorated)
{
... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Formatter/MarkdownListFormatterTest.php | tests/Formatter/MarkdownListFormatterTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Formatter;
use IonBazan\ComposerDiff\Formatter\MarkdownListFormatter;
use Symfony\Component\Console\Output\OutputInterface;
class MarkdownListFormatterTest extends FormatterTest
{
protected function getSampleOutput($withUrls, $withLicenses, $decorated)
{
if... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Formatter/Helper/OutputHelperTest.php | tests/Formatter/Helper/OutputHelperTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Formatter\Helper;
use IonBazan\ComposerDiff\Formatter\Helper\OutputHelper;
use IonBazan\ComposerDiff\Tests\TestCase;
class OutputHelperTest extends TestCase
{
/**
* @param string $expected
* @param string $decorated
*
* @dataProvider decoratedTextPr... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Integration/DiffCommandTest.php | tests/Integration/DiffCommandTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Integration;
use Composer\Factory;
use Composer\IO\NullIO;
use Composer\Package\Package;
use Composer\Plugin\PluginManager;
use IonBazan\ComposerDiff\Command\DiffCommand;
use IonBazan\ComposerDiff\PackageDiff;
use IonBazan\ComposerDiff\Tests\TestCase;
use Symfony\Component\... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Url/GithubGeneratorTest.php | tests/Url/GithubGeneratorTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Url;
use IonBazan\ComposerDiff\Url\GithubGenerator;
class GithubGeneratorTest extends GeneratorTest
{
public function testDomainQuotingWillNotHandleInvalidDomain()
{
$package = $this->getPackageWithSource('acme/package', '3.12.1', 'git@githubacom:acme/packa... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Url/GitlabGeneratorTest.php | tests/Url/GitlabGeneratorTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Url;
use IonBazan\ComposerDiff\Url\GitlabGenerator;
class GitlabGeneratorTest extends GeneratorTest
{
public function releaseUrlProvider()
{
return array(
'with .git' => array(
$this->getPackageWithSource('acme/package', '3.12.1'... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Url/DrupalGeneratorTest.php | tests/Url/DrupalGeneratorTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Url;
use Composer\Package\PackageInterface;
use IonBazan\ComposerDiff\Url\DrupalGenerator;
class DrupalGeneratorTest extends GeneratorTest
{
public function releaseUrlProvider()
{
return array(
'contrib-legacy-version' => array(
... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Url/GeneratorTest.php | tests/Url/GeneratorTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Url;
use Composer\Package\PackageInterface;
use IonBazan\ComposerDiff\Tests\TestCase;
use IonBazan\ComposerDiff\Url\UrlGenerator;
abstract class GeneratorTest extends TestCase
{
/**
* @param string $expectedUrl
*
* @dataProvider compareUrlProvider
*... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Url/BitBucketGeneratorTest.php | tests/Url/BitBucketGeneratorTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Url;
use IonBazan\ComposerDiff\Url\BitBucketGenerator;
class BitBucketGeneratorTest extends GeneratorTest
{
public function releaseUrlProvider()
{
return array(
'with .git' => array(
$this->getPackageWithSource('acme/package', '3... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Url/GeneratorContainerTest.php | tests/Url/GeneratorContainerTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Url;
use Composer\Package\CompletePackage;
use IonBazan\ComposerDiff\Tests\TestCase;
use IonBazan\ComposerDiff\Url\GeneratorContainer;
class GeneratorContainerTest extends TestCase
{
public function testGetsProperGenerator()
{
$container = new GeneratorCont... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Diff/DiffEntryTest.php | tests/Diff/DiffEntryTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Diff;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\OperationInterface;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\DependencyResolver\Operation\UpdateOperation;
use IonBazan\ComposerDiff... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Util/ComposerApplication.php | tests/Util/ComposerApplication.php | <?php
namespace IonBazan\ComposerDiff\Tests\Util;
use Composer\Composer;
use Composer\Console\Application;
use Composer\IO\IOInterface;
class ComposerApplication extends Application
{
public function setIO(IOInterface $io)
{
$this->io = $io;
}
public function setComposer(Composer $composer)
... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Util/TypedComposerApplication.php | tests/Util/TypedComposerApplication.php | <?php
namespace IonBazan\ComposerDiff\Tests\Util;
use Composer\Composer;
use Composer\Console\Application;
use Composer\IO\IOInterface;
class TypedComposerApplication extends Application
{
public function setIO(IOInterface $io)
{
$this->io = $io;
}
public function setComposer(Composer $compo... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Composer/PluginTest.php | tests/Composer/PluginTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Composer;
use IonBazan\ComposerDiff\Composer\Plugin;
use IonBazan\ComposerDiff\Tests\TestCase;
class PluginTest extends TestCase
{
public function testPlugin()
{
$composer = $this->getMockBuilder('Composer\Composer')->getMock();
$io = $this->getMock... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Command/DiffCommandTest.php | tests/Command/DiffCommandTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Command;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\OperationInterface;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\DependencyResolver\Operation\UpdateOperation;
use IonBazan\ComposerD... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
IonBazan/composer-diff | https://github.com/IonBazan/composer-diff/blob/8907711f0bf74677041f7b356da2367afea44a53/tests/Command/CommandProviderTest.php | tests/Command/CommandProviderTest.php | <?php
namespace IonBazan\ComposerDiff\Tests\Command;
use IonBazan\ComposerDiff\Command\CommandProvider;
use IonBazan\ComposerDiff\Command\DiffCommand;
use IonBazan\ComposerDiff\PackageDiff;
use IonBazan\ComposerDiff\Tests\TestCase;
class CommandProviderTest extends TestCase
{
public function testProvider()
{... | php | MIT | 8907711f0bf74677041f7b356da2367afea44a53 | 2026-01-05T03:05:56.323127Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Controller.php | Cola/Controller.php | <?php
/**
*
*/
abstract class Cola_Controller
{
/**
* Constructor
*
*/
public function __construct()
{
$this->get = $_GET;
$this->post = $_POST;
}
/**
* Magic method
*
* @param string $methodName
* @param array $args
*/
public function _... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Request.php | Cola/Request.php | <?php
/**
*
*/
class Cola_Request
{
/**
* Retrieve a member of the $_GET superglobal
*
* If no $key is passed, returns the entire $_GET array.
*
* @param string $key
* @param mixed $default Default value to use if key not found
* @return mixed Returns null if key does not exist
... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Response.php | Cola/Response.php | <?php
/**
*
*/
class Cola_Response
{
static protected $status = array(
'100' => 'Continue',
'101' => 'Switching Protocols',
'200' => 'OK',
'201' => 'Created',
'202' => 'Accepted',
'203' => 'Non-Authoritative Information',
'204' => 'No Content',
'205'... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Exception.php | Cola/Exception.php | <?php
class Cola_Exception extends Exception
{
} | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Config.php | Cola/Config.php | <?php
class Cola_Config implements ArrayAccess
{
/**
* Contains array of configuration data
*
* @var array
*/
protected $_data = array();
public $delimiter = '.';
/**
* Cola_Config provides a property based interface to
* an array. The data are read-only unless $allowModi... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Router.php | Cola/Router.php | <?php
/**
*
*/
class Cola_Router
{
public $default = array(
'module' => 'home',
'controller' => 'IndexController',
'action' => 'indexAction',
'args' => array()
);
/**
* Router rules
*
* @var array
*/
public $rules = array();
/**
... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Model.php | Cola/Model.php | <?php
/**
*
*/
abstract class Cola_Model
{
protected $_invalidErrorCode = -400;
/**
* Db name
*
* @var string
*/
protected $_db = '_db';
/**
* Table name, with prefix and main name
*
* @var string
*/
protected $_table;
/**
* Primary key
*
... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/View.php | Cola/View.php | <?php
/**
*
*/
class Cola_View
{
/**
* view file
*
* @var string
*/
public $file;
/**
* Constructor
*
*/
public function __construct($file)
{
$this->file = $file;
}
/**
* Fetch
*
* @param string $tpl
* @param string $dir
... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Cola.php | Cola/Cola.php | <?php
/**
* Define
*/
defined('COLA_DIR') || define('COLA_DIR', dirname(__FILE__));
require COLA_DIR . '/Config.php';
class Cola
{
/**
* Singleton instance
*
* Marked only as protected to allow extension of the class. To extend,
* simply override {@link getInstance()}.
*
* @var Co... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Http.php | Cola/Ext/Http.php | <?php
/**
*
*/
class Cola_Ext_Http
{
public $url;
/**
* Default Options
*
* @var array
*/
public $opts = array(
CURLOPT_TIMEOUT => 15,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
);
protected $_maps = array(
'timeou... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Encrypt.php | Cola/Ext/Encrypt.php | <?php
/**
*
*/
class Cola_Ext_Encrypt
{
public $key;
public $method = 'aes-256-cbc';
public $options = 0;
public $iv = "";
public function __construct($key, $iv = "")
{
$this->key = $key;
$this->iv = $iv;
}
public function encode($data)
{
return openssl_e... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Pdo.php | Cola/Ext/Pdo.php | <?php
class Cola_Ext_Pdo
{
public $pdo = null;
public $stmt = null;
public $log = array();
public $dsn;
public $user;
public $password;
public $options;
public function __construct($dsn, $user = '', $password = '', $options = array())
{
$options += array(PDO::ATTR_ERRMOD... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Pagination.php | Cola/Ext/Pagination.php | <?php
/**
*
*/
class Cola_Ext_Pagination
{
public $config = array(
'prevNums' => 2,
'nextNums' => 7,
'showSinglePage' => false,
'prefix' => '<div class="pagination">',
'first' => '<a href="%link%">%page%...</a>',
'last' ... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Captcha.php | Cola/Ext/Captcha.php | <?php
/**
*
*/
class Cola_Ext_Captcha
{
/**
* Captch config
*
* @var array
*/
public $config = array(
'type' => 'png',
'seed' => '3478ABCDEFGHJKLMNPQRTUVWXYacdefhjkmnpwxy',
'fonts' => array(),
'size' => array(16, 24... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Image.php | Cola/Ext/Image.php | <?php
class Cola_Ext_Image
{
public static $convert = '/usr/bin/convert';
public static $identify = '/usr/bin/identify';
/**
* 优化图片大小
*
* @param string $src
* @param string $des
* @return boolean
*/
public static function minimize($src, $des = null, $opts = '')
{
... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Upload.php | Cola/Ext/Upload.php | <?php
/**
*
*/
class Cola_Ext_Upload
{
/**
* Upload config
*
* @var array
*/
public $config = array(
'dir' => '/tmp',
'minSize' => -1,
'maxSize' => -1,
'minWidth' => -1,
'maxWidth' => -1,
'minHeight' => -1,
'... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/GoogleAuthenticator.php | Cola/Ext/GoogleAuthenticator.php | <?php
class Cola_Ext_GoogleAuthenticator
{
public static $ttl = 30;
public static $limit = 6;
// Lookup needed for Base32 encoding
private static $map = array(
"A" => 0, "B" => 1, "C" => 2, "D" => 3,
"E" => 4, "F" => 5, "G" => 6, "H" => 7,
"I" => 8, "J" => 9, "K" => 10... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Validator.php | Cola/Ext/Validator.php | <?php
/**
* usage
$data = array(
'id' => 8,
'sex' => 'F',
'tags' => array('foo' => 3, 'bar' => 7),
'age' => 8,
'email' => 'foo@bar.com',
'date' => '2012-12-10',
'body' => 'foobarbarfoo',
);
$rules = array(
'id' => array('required' => true, 'type' => 'int'),
'se... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Cache/Redis.php | Cola/Ext/Cache/Redis.php | <?php
/**
* use https://github.com/nicolasff/phpredis
*
*/
class Cola_Ext_Cache_Redis extends Cola_Ext_Cache_Abstract
{
public $config = array(
'persistent' => true,
'host' => '127.0.0.1',
'port' => 6379,
'timeout' => 3,
'ttl' => 0,
'options' ... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Cache/Null.php | Cola/Ext/Cache/Null.php | <?php
/**
*
*/
class Cola_Ext_Cache_Null extends Cola_Ext_Cache_Abstract
{
/**
* Set cache
*
* @param string $key
* @param mixed $value
* @param int $ttl
* @return boolean
*/
public function set($key, $value, $ttl = null)
{
return true;
}
/**
* Get ... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Cache/SSDB.php | Cola/Ext/Cache/SSDB.php | <?php
require_once COLA_DIR . '/Ext/Cache/drivers/SSDB.php';
class Cola_Ext_Cache_SSDB extends Cola_Ext_Cache_Abstract
{
public $config = array(
'host' => '127.0.0.1',
'port' => 8888,
'timeout' => 3000,
'ttl' => 0,
);
protected $_actionMaps = array(
... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Cache/Abstract.php | Cola/Ext/Cache/Abstract.php | <?php
/**
*
*/
abstract class Cola_Ext_Cache_Abstract
{
public $conn;
public $config = array(
'ttl' => 86400
);
/**
* Constructor
*
* @param array $config
*/
public function __construct($config = array())
{
$this->config = $config + $this->config;
}
... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Cache/Memcached.php | Cola/Ext/Cache/Memcached.php | <?php
class Cola_Ext_Cache_Memcached extends Cola_Ext_Cache_Abstract
{
/**
* Constructor
*
* @param array $config
*/
public function __construct($config = array())
{
parent::__construct($config);
if (isset($this->config['persistent'])) {
$this->conn = new Me... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Cache/drivers/SSDB.php | Cola/Ext/Cache/drivers/SSDB.php | <?php
/**
* Copyright (c) 2012, ideawu
* All rights reserved.
* @author: ideawu
* @link: http://www.ideawu.com/
*
* SSDB PHP client SDK.
*/
class SSDBException extends Exception
{
}
class SSDBTimeoutException extends SSDBException
{
}
/**
* All methods(except *exists) returns false on error,
* so one should... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Log/Redis.php | Cola/Ext/Log/Redis.php | <?php
class Cola_Ext_Log_Redis extends Cola_Ext_Log_Abstract
{
public $config = array(
'persistent' => true,
'host' => '127.0.0.1',
'port' => 6379,
'timeout' => 3,
'options' => array(),
'queue' => '_cola_redis_queue'
);
public function... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Log/Echo.php | Cola/Ext/Log/Echo.php | <?php
/**
*
*/
class Cola_Ext_Log_Echo extends Cola_Ext_Log_Abstract
{
public function write($text)
{
echo $text;
}
} | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Log/Null.php | Cola/Ext/Log/Null.php | <?php
/**
*
*/
class Cola_Ext_Log_Null extends Cola_Ext_Log_Abstract
{
public function write($text)
{
return;
}
} | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Log/Abstract.php | Cola/Ext/Log/Abstract.php | <?php
/**
*
*/
abstract class Cola_Ext_Log_Abstract
{
const EMERG = 0; // Emergency: system is unusable
const ALERT = 1; // Alert: action must be taken immediately
const CRIT = 2; // Critical: critical conditions
const ERR = 3; // Error: error conditions
const WARN = 4; // Warn... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
fuchaoqun/colaphp | https://github.com/fuchaoqun/colaphp/blob/d420146da989e7790b481af78de585b19ebfa639/Cola/Ext/Log/File.php | Cola/Ext/Log/File.php | <?php
/**
*
*/
class Cola_Ext_Log_File extends Cola_Ext_Log_Abstract
{
public $config = array(
'mode' => '0755',
'file' => '/tmp/Cola.log',
);
public function write($text)
{
$dir = dirname($this->config['file']);
is_dir($dir) || mkdir($dir, $this->config['mode'], true... | php | BSD-3-Clause | d420146da989e7790b481af78de585b19ebfa639 | 2026-01-05T03:06:12.821886Z | false |
kolar/telegram-poll-bot | https://github.com/kolar/telegram-poll-bot/blob/3aadbf70d16692566f02c1b1197f4c79dd16bb2c/poll-bot-webhook.php | poll-bot-webhook.php | <?php
require_once 'PollBot.php';
define('BOT_TOKEN', 'XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
define('BOT_WEBHOOK', 'https://bot.server/poll-bot-webhook.php');
$bot = new PollBot(BOT_TOKEN, 'PollBotChat');
if (php_sapi_name() == 'cli') {
if ($argv[1] == 'set') {
$bot->setWebhook(BOT_WEBHOOK);
} el... | php | MIT | 3aadbf70d16692566f02c1b1197f4c79dd16bb2c | 2026-01-05T03:06:19.395298Z | false |
kolar/telegram-poll-bot | https://github.com/kolar/telegram-poll-bot/blob/3aadbf70d16692566f02c1b1197f4c79dd16bb2c/poll-bot-worker.php | poll-bot-worker.php | <?php
set_time_limit(0);
require_once 'PollBot.php';
define('BOT_TOKEN', 'XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$bot = new PollBot(BOT_TOKEN, 'PollBotChat');
$bot->runLongpoll();
| php | MIT | 3aadbf70d16692566f02c1b1197f4c79dd16bb2c | 2026-01-05T03:06:19.395298Z | false |
kolar/telegram-poll-bot | https://github.com/kolar/telegram-poll-bot/blob/3aadbf70d16692566f02c1b1197f4c79dd16bb2c/TelegramBot.php | TelegramBot.php | <?php
abstract class TelegramBotCore {
protected $host;
protected $port;
protected $apiUrl;
public $botId;
public $botUsername;
protected $botToken;
protected $handle;
protected $inited = false;
protected $lpDelay = 1;
protected $netDelay = 1;
protected $updatesOffset = false;
protec... | php | MIT | 3aadbf70d16692566f02c1b1197f4c79dd16bb2c | 2026-01-05T03:06:19.395298Z | false |
kolar/telegram-poll-bot | https://github.com/kolar/telegram-poll-bot/blob/3aadbf70d16692566f02c1b1197f4c79dd16bb2c/PollBot.php | PollBot.php | <?php
require_once 'TelegramBot.php';
class PollBot extends TelegramBot {
public $redis = false;
protected static $REDIS_HOST = '127.0.0.1';
protected static $REDIS_PORT = 6379;
public function init() {
parent::init();
$this->dbInit();
}
public function dbInit() {
if (!$this->redis) {
... | php | MIT | 3aadbf70d16692566f02c1b1197f4c79dd16bb2c | 2026-01-05T03:06:19.395298Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/tests/SeleniumTest.php | tests/SeleniumTest.php | <?php
require_once 'vendor/autoload.php';
class Run extends Sauce\Sausage\WebDriverTestCase
{
protected $start_url = 'http://localhost';
public static $browsers = array(
array(
'browserName' => 'chrome',
'desiredCapabilities' => array(
'platform' => 'Linux'
... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/tests/UnitTest.php | tests/UnitTest.php | <?php
class UnitTest extends PHPUnit_Framework_TestCase
{
private $CI;
private function login($email = 'foo@bar.com', $password = 'password123')
{
$_POST['email'] = $email;
$_POST['password'] = $password;
$this->CI->User = load_controller('User');
return json_decode($th... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/index.php | api/index.php | <?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging an... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/html_helper.php | api/system/helpers/html_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/url_helper.php | api/system/helpers/url_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/captcha_helper.php | api/system/helpers/captcha_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/form_helper.php | api/system/helpers/form_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/inflector_helper.php | api/system/helpers/inflector_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/string_helper.php | api/system/helpers/string_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/security_helper.php | api/system/helpers/security_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/array_helper.php | api/system/helpers/array_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/download_helper.php | api/system/helpers/download_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/text_helper.php | api/system/helpers/text_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
rmcdaniel/angular-codeigniter-seed | https://github.com/rmcdaniel/angular-codeigniter-seed/blob/2c6abb968b7739680f0b5c29716dace74b0792e3/api/system/helpers/email_helper.php | api/system/helpers/email_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | php | MIT | 2c6abb968b7739680f0b5c29716dace74b0792e3 | 2026-01-05T03:06:11.684635Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.