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 |
|---|---|---|---|---|---|---|---|---|
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/src/Model/Taxonomy.php | src/Model/Taxonomy.php | <?php
namespace Sober\Models\Model;
use Sober\Models\Model;
class Taxonomy extends Model
{
// data req for register_taxonomy()
protected $links = 'post';
public function run()
{
if ($this->isDisabled()) {
return;
}
$this->setDefaultConfig()->setConfig();
... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/autoload.php | dist/autoload.php | <?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitd1e6f52ebe485f122f3b493cfa8c3f5d::getLoader();
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/composer/autoload_files.php | dist/composer/autoload_files.php | <?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
);
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/composer/autoload_real.php | dist/composer/autoload_real.php | <?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitd1e6f52ebe485f122f3b493cfa8c3f5d
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/composer/autoload_namespaces.php | dist/composer/autoload_namespaces.php | <?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/composer/autoload_psr4.php | dist/composer/autoload_psr4.php | <?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
'Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
'Sober\\Models\\Mode... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/composer/autoload_static.php | dist/composer/autoload_static.php | <?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInitd1e6f52ebe485f122f3b493cfa8c3f5d
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
);
public static $prefixLeng... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/composer/ClassLoader.php | dist/composer/ClassLoader.php | <?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Autoload;
/**
* ClassLoader im... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/composer/autoload_classmap.php | dist/composer/autoload_classmap.php | <?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php',
'Composer\\Installers\\AimeosInstaller' => $vendor... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/symfony/yaml/Dumper.php | dist/symfony/yaml/Dumper.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Yaml;
/**
* Dumper dumps PHP variables to YAML strin... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/symfony/yaml/Escaper.php | dist/symfony/yaml/Escaper.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Yaml;
/**
* Escaper encapsulates escaping rules for ... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/symfony/yaml/Inline.php | dist/symfony/yaml/Inline.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Exception\DumpExcept... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | true |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/symfony/yaml/Yaml.php | dist/symfony/yaml/Yaml.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Exception\ParseExcep... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/symfony/yaml/Parser.php | dist/symfony/yaml/Parser.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Exception\ParseExcep... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | true |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/symfony/yaml/Unescaper.php | dist/symfony/yaml/Unescaper.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Exception\ParseExcep... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/AbstractConfig.php | dist/hassankhan/config/src/AbstractConfig.php | <?php
namespace Noodlehaus;
use ArrayAccess;
use Iterator;
/**
* Abstract Config class
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/noodlehaus/config
* @license MIT
*/
abstract class Abstr... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/Exception.php | dist/hassankhan/config/src/Exception.php | <?php
namespace Noodlehaus;
class Exception extends \Exception
{
}
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/ConfigInterface.php | dist/hassankhan/config/src/ConfigInterface.php | <?php
namespace Noodlehaus;
/**
* Config interface
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/noodlehaus/config
* @license MIT
*/
interface ConfigInterface
{
/**
* Gets a configu... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/Config.php | dist/hassankhan/config/src/Config.php | <?php
namespace Noodlehaus;
use Noodlehaus\Exception\FileNotFoundException;
use Noodlehaus\Exception\UnsupportedFormatException;
use Noodlehaus\Exception\EmptyDirectoryException;
/**
* Config
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassa... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/ErrorException.php | dist/hassankhan/config/src/ErrorException.php | <?php
namespace Noodlehaus;
class ErrorException extends \ErrorException
{
}
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/FileParser/Json.php | dist/hassankhan/config/src/FileParser/Json.php | <?php
namespace Noodlehaus\FileParser;
use Noodlehaus\Exception\ParseException;
/**
* JSON file parser
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/noodlehaus/config
* @license MIT
*/
clas... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/FileParser/FileParserInterface.php | dist/hassankhan/config/src/FileParser/FileParserInterface.php | <?php
namespace Noodlehaus\FileParser;
/**
* Config file parser interface
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/noodlehaus/config
* @license MIT
*/
interface FileParserInterface
{
... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/FileParser/Yaml.php | dist/hassankhan/config/src/FileParser/Yaml.php | <?php
namespace Noodlehaus\FileParser;
use Exception;
use Symfony\Component\Yaml\Yaml as YamlParser;
use Noodlehaus\Exception\ParseException;
/**
* YAML file parser
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link ht... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/FileParser/AbstractFileParser.php | dist/hassankhan/config/src/FileParser/AbstractFileParser.php | <?php
namespace Noodlehaus\FileParser;
/**
* Abstract file parser
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/noodlehaus/config
* @license MIT
*/
abstract class AbstractFileParser implemen... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/FileParser/Xml.php | dist/hassankhan/config/src/FileParser/Xml.php | <?php
namespace Noodlehaus\FileParser;
use Noodlehaus\Exception\ParseException;
/**
* XML file parser
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/noodlehaus/config
* @license MIT
*/
class... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/FileParser/Ini.php | dist/hassankhan/config/src/FileParser/Ini.php | <?php
namespace Noodlehaus\FileParser;
use Noodlehaus\Exception\ParseException;
/**
* INI file parser
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/noodlehaus/config
* @license MIT
*/
class... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/FileParser/Php.php | dist/hassankhan/config/src/FileParser/Php.php | <?php
namespace Noodlehaus\FileParser;
use Exception;
use Noodlehaus\Exception\ParseException;
use Noodlehaus\Exception\UnsupportedFormatException;
/**
* PHP file parser
*
* @package Config
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link ... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/Exception/FileNotFoundException.php | dist/hassankhan/config/src/Exception/FileNotFoundException.php | <?php
namespace Noodlehaus\Exception;
use Noodlehaus\Exception;
class FileNotFoundException extends Exception
{
}
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/Exception/EmptyDirectoryException.php | dist/hassankhan/config/src/Exception/EmptyDirectoryException.php | <?php
namespace Noodlehaus\Exception;
use Noodlehaus\Exception;
class EmptyDirectoryException extends Exception
{
}
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/Exception/ParseException.php | dist/hassankhan/config/src/Exception/ParseException.php | <?php
namespace Noodlehaus\Exception;
use Noodlehaus\ErrorException;
class ParseException extends ErrorException
{
public function __construct(array $error)
{
$message = $error['message'] ?: 'There was an error parsing the file';
$code = isset($error['code']) ? $error['code'] : 0;
... | php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
soberwp/models | https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/dist/hassankhan/config/src/Exception/UnsupportedFormatException.php | dist/hassankhan/config/src/Exception/UnsupportedFormatException.php | <?php
namespace Noodlehaus\Exception;
use Noodlehaus\Exception;
class UnsupportedFormatException extends Exception
{
}
| php | MIT | b71df3c9a4f9e108d739c920120ad6da077ea125 | 2026-01-05T03:50:14.210672Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/configuration.php | configuration.php | <?php
use Monolog\Logger;
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
return [
// The url to the psx public folder (i.e. http://api.acme.com or http://127.0.0.1/psx/public)
'psx_url' => env('APP_URL')->string(),
// The input path 'index.php/' or '' if ever... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/container.php | container.php | <?php
return \PSX\Framework\Dependency\ContainerBuilder::build(
__DIR__,
true,
__DIR__ . '/vendor/psx/framework/resources/container.php',
__DIR__ . '/resources/container.php',
);
| php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Model/Collection.php | src/Model/Collection.php | <?php
declare(strict_types = 1);
namespace App\Model;
/**
* @template T
*/
class Collection implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $totalResults = null;
protected ?int $startIndex = null;
protected ?int $itemsPerPage = null;
/**
* @var array<T>|null
... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Model/Population.php | src/Model/Population.php | <?php
declare(strict_types = 1);
namespace App\Model;
class Population implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
protected ?int $place = null;
protected ?string $region = null;
protected ?int $population = null;
protected ?int $users = null;
p... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Model/PopulationCollection.php | src/Model/PopulationCollection.php | <?php
declare(strict_types = 1);
namespace App\Model;
/**
* @extends Collection<Population>
*/
class PopulationCollection extends Collection implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
| php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Model/Welcome.php | src/Model/Welcome.php | <?php
declare(strict_types = 1);
namespace App\Model;
class Welcome implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?string $message = null;
protected ?string $url = null;
protected ?string $version = null;
public function setMessage(?string $message) : void
{
$... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Model/Message.php | src/Model/Message.php | <?php
declare(strict_types = 1);
namespace App\Model;
class Message implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?bool $success = null;
protected ?string $message = null;
protected ?int $id = null;
public function setSuccess(?bool $success) : void
{
$this->su... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Controller/Population.php | src/Controller/Population.php | <?php
namespace App\Controller;
use App\Model;
use App\Service;
use App\Table;
use PSX\Api\Attribute\Body;
use PSX\Api\Attribute\Delete;
use PSX\Api\Attribute\Get;
use PSX\Api\Attribute\Param;
use PSX\Api\Attribute\Path;
use PSX\Api\Attribute\Post;
use PSX\Api\Attribute\Put;
use PSX\Api\Attribute\Query;
use PSX\Frame... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Controller/Welcome.php | src/Controller/Welcome.php | <?php
namespace App\Controller;
use App\Model;
use PSX\Api\Attribute\Get;
use PSX\Api\Attribute\Path;
use PSX\Framework\Base;
use PSX\Framework\Controller\ControllerAbstract;
class Welcome extends ControllerAbstract
{
#[Get]
#[Path('/')]
public function show(): Model\Welcome
{
$welcome = new ... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Table/Population.php | src/Table/Population.php | <?php
namespace App\Table;
use App\Model;
use App\Table\Generated\PopulationRow;
use App\Table\Generated\PopulationTable;
use PSX\Http\Exception\NotFoundException;
use PSX\Sql\Condition;
use PSX\Sql\OrderBy;
class Population extends PopulationTable
{
public function getCollection(?int $startIndex = null, ?int $c... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Table/Generated/PopulationRow.php | src/Table/Generated/PopulationRow.php | <?php
namespace App\Table\Generated;
class PopulationRow implements \JsonSerializable, \PSX\Record\RecordableInterface
{
private ?int $id = null;
private ?int $place = null;
private ?string $region = null;
private ?int $population = null;
private ?int $users = null;
private ?float $worldUsers ... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Table/Generated/PopulationTable.php | src/Table/Generated/PopulationTable.php | <?php
namespace App\Table\Generated;
/**
* @extends \PSX\Sql\TableAbstract<\App\Table\Generated\PopulationRow>
*/
class PopulationTable extends \PSX\Sql\TableAbstract
{
public const NAME = 'app_population';
public const COLUMN_ID = 'id';
public const COLUMN_PLACE = 'place';
public const COLUMN_REGIO... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Migrations/Version20230326195309.php | src/Migrations/Version20230326195309.php | <?php
declare(strict_types=1);
namespace App\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230326195309 extends AbstractMigration
{
public function getDescription(): string
{
... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/src/Service/Population.php | src/Service/Population.php | <?php
/*
* PSX is an open source PHP framework to develop RESTful APIs.
* For the current version and information visit <https://phpsx.org>
*
* Copyright 2010-2022 Christoph Kappestein <christoph.kappestein@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/tests/fixture.php | tests/fixture.php | <?php
return [
'app_population' => [
['id' => 1, 'place' => 1, 'region' => 'China', 'population' => 1338612968, 'users' => 360000000, 'world_users' => 20.8, 'insert_date' => '2013-03-26 15:21:49'],
['id' => 2, 'place' => 2, 'region' => 'United States', 'population' => 307212123, 'users' => 22771900... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/tests/bootstrap.php | tests/bootstrap.php | <?php
require __DIR__ . '/../vendor/autoload.php';
$container = require_once __DIR__ . '/../container.php';
/** @var \PSX\Framework\Test\Environment $environment */
$environment = $container->get(\PSX\Framework\Test\Environment::class);
$environment->setup();
| php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/tests/Controller/PopulationTest.php | tests/Controller/PopulationTest.php | <?php
namespace App\Tests\Controller;
use App\Model;
use PSX\Framework\Test\ControllerDbTestCase;
class PopulationTest extends ControllerDbTestCase
{
public function getDataSet(): array
{
return $this->createFromFile(__DIR__ . '/../fixture.php');
}
public function testGetAll(): void
{
... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/tests/Controller/WelcomeTest.php | tests/Controller/WelcomeTest.php | <?php
namespace App\Tests\Controller;
use PSX\Framework\Test\ControllerTestCase;
class WelcomeTest extends ControllerTestCase
{
public function testShow(): void
{
$response = $this->sendRequest('/', 'GET');
$actual = (string) $response->getBody();
$data = \json_decode($actual);
... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/public/index.php | public/index.php | <?php
/*
* PSX is a open source PHP framework to develop RESTful APIs.
* For the current version and informations visit <http://phpsx.org>
*
* Copyright 2010-2023 Christoph Kappestein <christoph.kappestein@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
apioo/psx | https://github.com/apioo/psx/blob/7574c11ca1141e719116007ce0da8b4494a2914e/resources/container.php | resources/container.php | <?php
use PSX\Framework\Controller\ControllerInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $container) {
$services = $container->services();
$services->defaults()
->autowire()
->autoconfigure();
... | php | Apache-2.0 | 7574c11ca1141e719116007ce0da8b4494a2914e | 2026-01-05T03:50:30.691905Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/command.php | command.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand;
use TypistTech\ImageOptimizeCommand\CLI\Commands\AttachmentCommand;
use TypistTech\ImageOptimizeCommand\CLI\Commands\BatchCommand;
use TypistTech\ImageOptimizeCommand\CLI\Commands\CommandNamespace;
use TypistTech\ImageOptimizeCommand\CLI\Comma... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/OptimizerChainFactory.php | src/OptimizerChainFactory.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand;
use Spatie\ImageOptimizer\OptimizerChain;
use Spatie\ImageOptimizer\OptimizerChainFactory as BaseOptimizerChainFactory;
class OptimizerChainFactory
{
public const HOOK = 'TypistTech/ImageOptimizeCommand/OptimizerChain';
/**
* Cr... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/LoggerInterface.php | src/LoggerInterface.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand;
use Psr\Log\LoggerInterface as BaseLoggerInterface;
interface LoggerInterface extends BaseLoggerInterface
{
/**
* Section header.
*
* @param string $title The section title.
*
* @return void
*/
public fun... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/LoggerFactory.php | src/CLI/LoggerFactory.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
class LoggerFactory
{
public const HOOK = 'TypistTech/ImageOptimizeCommand/CLI/Logger';
/**
* Creates a logger.
*
* @return LoggerInterface
*/
public st... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Logger.php | src/CLI/Logger.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use WP_CLI;
class Logger implements LoggerInterface
{
/**
* System is unusable.
*
* @param string $message The message.
* @param array $_context The context.
... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/AttachmentCommand.php | src/CLI/Commands/AttachmentCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\LoggerFactory;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use TypistTech\ImageOptimizeCommand\Operations\AttachmentImages\BackupFactory... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/BatchCommand.php | src/CLI/Commands/BatchCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use TypistTech\ImageOptimizeCommand\CLI\Logger;
use TypistTech\ImageOptimizeCommand\Repositories\AttachmentRepository;
class BatchCommand
{
/**
* Optimize certain number of non-optimized attachments.
*
* ## OPT... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/ThemesCommand.php | src/CLI/Commands/ThemesCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
class ThemesCommand
{
/**
* Find and optimize images under wp-content/themes.
*
* ## OPTIONS
*
* [--extensions=<extensions>]
* : File types to optimize, separated by commas.
* Default: gif,jp... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/ResetCommand.php | src/CLI/Commands/ResetCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\LoggerFactory;
use TypistTech\ImageOptimizeCommand\Operations\AttachmentImages\Restore;
use TypistTech\ImageOptimizeCommand\Operations\Attachment... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/WPIncludesCommand.php | src/CLI/Commands/WPIncludesCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use WP_CLI;
class WPIncludesCommand
{
/**
* Find and optimize images under wp-includes.
*
* ## OPTIONS
*
* [--extensions=<extensions>]
* : File types to optimize, separated by commas.
* Defa... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/PluginsCommand.php | src/CLI/Commands/PluginsCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use WP_CLI;
class PluginsCommand
{
/**
* Find and optimize images under wp-content/plugins.
*
* ## OPTIONS
*
* [--extensions=<extensions>]
* : File types to optimize, separated by commas.
* ... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/RestoreCommand.php | src/CLI/Commands/RestoreCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\LoggerFactory;
use TypistTech\ImageOptimizeCommand\Operations\AttachmentImages\Restore;
use TypistTech\ImageOptimizeCommand\Operations\Attachment... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/CommandNamespace.php | src/CLI/Commands/CommandNamespace.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use WP_CLI\Dispatcher\CommandNamespace as BaseCommandNamespace;
/**
* Optimize images.
*
* ## PREREQUISITE
*
* The package will use these optimizers if they are present on your system:
* - JpegOptim
* - Optipng
* ... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/WPAdminCommand.php | src/CLI/Commands/WPAdminCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use WP_CLI;
class WPAdminCommand
{
/**
* Find and optimize images under wp-admin.
*
* ## OPTIONS
*
* [--extensions=<extensions>]
* : File types to optimize, separated by commas.
* Default: g... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/MUPluginsCommand.php | src/CLI/Commands/MUPluginsCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use WP_CLI;
class MUPluginsCommand
{
/**
* Find and optimize images under wp-content/mu-plugins.
*
* ## OPTIONS
*
* [--extensions=<extensions>]
* : File types to optimize, separated by commas.
... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/CLI/Commands/FindCommand.php | src/CLI/Commands/FindCommand.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI\Commands;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use TypistTech\ImageOptimizeCommand\CLI\LoggerFactory;
use TypistTech\ImageOptimizeCommand\Operations\Find;
use TypistTech\ImageOptimizeCommand\Oper... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/Backup.php | src/Operations/Backup.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations;
use Symfony\Component\Filesystem\Exception\FileNotFoundException;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use functio... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/Optimize.php | src/Operations/Optimize.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations;
use Spatie\ImageOptimizer\OptimizerChain;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use function WP_CLI\Utils\normalize... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/Find.php | src/Operations/Find.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations;
use InvalidArgumentException;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use function WP_CLI\Utils\normalize_path;
class Find
{
/**
... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/AttachmentImages/RestoreFactory.php | src/Operations/AttachmentImages/RestoreFactory.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use TypistTech\ImageOptimizeCommand\Repositories\AttachmentRepository;
class RestoreFactory
{
public const HOOK ... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/AttachmentImages/Backup.php | src/Operations/AttachmentImages/Backup.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use TypistTech\ImageOptimizeCommand\Operations\Backup as BaseBackup;
use TypistTech\ImageOptimizeCommand\Repositories\AttachmentRepository;
class Backup
{
/*... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/AttachmentImages/Optimize.php | src/Operations/AttachmentImages/Optimize.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use TypistTech\ImageOptimizeCommand\Operations\Optimize as BaseOptimize;
use TypistTech\ImageOptimizeCommand\Repositories\AttachmentRepository;
class Optimize
{
... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/AttachmentImages/BackupFactory.php | src/Operations/AttachmentImages/BackupFactory.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use TypistTech\ImageOptimizeCommand\Operations\Backup as BaseBackup;
use TypistTech\ImageOptimizeCommand\Repositories... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Operations/AttachmentImages/Restore.php | src/Operations/AttachmentImages/Restore.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use TypistTech\ImageOptimizeCommand\Operations\Backup;
use Ty... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/src/Repositories/AttachmentRepository.php | src/Repositories/AttachmentRepository.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Repositories;
use WP_Query;
class AttachmentRepository
{
protected const OPTIMIZED_META_KEY = '_typist_tech_image_optimized';
protected const OPTIMIZED_META_VALUE = true;
/**
* Get non-optimized attachment ids.
*
* ... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/OptimizerChainFactoryTest.php | tests/unit/OptimizerChainFactoryTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand;
use Codeception\Test\Unit;
use Mockery;
use Spatie\ImageOptimizer\OptimizerChain;
use Spatie\ImageOptimizer\OptimizerChainFactory as BaseOptimizerChainFactory;
use WP_Mock;
class OptimizerChainFactoryTest extends Unit
{
public function tes... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/_bootstrap.php | tests/unit/_bootstrap.php | <?php
declare(strict_types=1);
require_once codecept_root_dir('vendor/autoload.php'); // Composer autoload.
// Now call the bootstrap method of WP Mock.
WP_Mock::activateStrictMode();
WP_Mock::bootstrap();
| php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/CLI/LoggerFactoryTest.php | tests/unit/CLI/LoggerFactoryTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI;
use Codeception\Test\Unit;
use Mockery;
use WP_Mock;
class LoggerFactoryTest extends Unit
{
/**
* @var \TypistTech\ImageOptimizeCommand\UnitTester
*/
protected $tester;
public function testCreate()
{
WP_... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/CLI/LoggerTest.php | tests/unit/CLI/LoggerTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\CLI;
use Codeception\Test\Unit;
use Psr\Log\LoggerInterface as PsrLoggerInterface;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
class LoggerTest extends Unit
{
/**
* @var \TypistTech\ImageOptimizeCommand\UnitTester
*/
... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Operations/FindTest.php | tests/unit/Operations/FindTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations;
use Codeception\Module\Filesystem as FilesystemModule;
use Codeception\Test\Unit;
use Mockery;
use Symfony\Component\Finder\Finder;
use TypistTech\ImageOptimizeCommand\LoggerInterface;
use WP_Mock;
class FindTest extends Unit
{
... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Operations/OptimizeTest.php | tests/unit/Operations/OptimizeTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations;
use Codeception\Module\Filesystem as FilesystemModule;
use Codeception\Test\Unit;
use Mockery;
use Spatie\ImageOptimizer\OptimizerChain;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\Logger;
us... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Operations/BackupTest.php | tests/unit/Operations/BackupTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations;
use Codeception\Module\Filesystem as FilesystemModule;
use Mockery;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\Logger;
use WP_Mock;
class BackupTest extends \Codeception\Test\Unit
{
/**... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Operations/AttachmentImages/RestoreFactoryTest.php | tests/unit/Operations/AttachmentImages/RestoreFactoryTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use Codeception\Test\Unit;
use Mockery;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\Logger;
use TypistTech\ImageOptimizeCommand\Repositories\AttachmentRepository;
use WP_Mock;... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Operations/AttachmentImages/BackupTest.php | tests/unit/Operations/AttachmentImages/BackupTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use Codeception\Test\Unit;
use Mockery;
use TypistTech\ImageOptimizeCommand\CLI\Logger;
use TypistTech\ImageOptimizeCommand\Operations\Backup as BackupOperation;
use TypistTech\ImageOptimizeCommand\Repositories\Atta... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Operations/AttachmentImages/BackupFactoryTest.php | tests/unit/Operations/AttachmentImages/BackupFactoryTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use Codeception\Test\Unit;
use Mockery;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\Logger;
use TypistTech\ImageOptimizeCommand\Operations\Backup as BaseBackup;
use TypistTech... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Operations/AttachmentImages/RestoreTest.php | tests/unit/Operations/AttachmentImages/RestoreTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Operations\AttachmentImages;
use Codeception\Module\Filesystem as FilesystemModule;
use Codeception\Test\Unit;
use Mockery;
use Symfony\Component\Filesystem\Filesystem;
use TypistTech\ImageOptimizeCommand\CLI\Logger;
use TypistTech\ImageOptimiz... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/unit/Repositories/AttachmentRepositoryTest.php | tests/unit/Repositories/AttachmentRepositoryTest.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Repositories;
use Codeception\Test\Unit;
use WP_Mock;
class AttachmentRepositoryTest extends Unit
{
/**
* @var \TypistTech\ImageOptimizeCommand\UnitTester
*/
protected $tester;
public function testMarkAsOptimized()
{... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/_support/UnitTester.php | tests/_support/UnitTester.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand;
use Codeception\Actor;
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoi... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
typisttech/image-optimize-command | https://github.com/typisttech/image-optimize-command/blob/84e73c59f59a17eff69a39fdaa5295d1888b67c1/tests/_support/Helper/Unit.php | tests/_support/Helper/Unit.php | <?php
declare(strict_types=1);
namespace TypistTech\ImageOptimizeCommand\Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
use Codeception\Module;
use Codeception\TestInterface;
use WP_Mock;
class Unit extends Module
{
public function _before(T... | php | MIT | 84e73c59f59a17eff69a39fdaa5295d1888b67c1 | 2026-01-05T03:50:42.060449Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/index.php | index.php | <!DOCTYPE HTML>
<html lang="en">
<head>
<title>IconCaptcha v4.0.6 - By Fabian Wennink</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<meta name="author" content="Fabian Wennink © <?= date('Y') ?>" />
<meta name="viewport" content="width... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/scripts/publish-server-assets.php | scripts/publish-server-assets.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
/**
* Script t... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/scripts/publish-helpers.php | scripts/publish-helpers.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
/**
* Will att... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/scripts/publish-client-assets.php | scripts/publish-client-assets.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
/**
* Script t... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/src/Cors.php | src/Cors.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
namespace IconC... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/src/Payload.php | src/Payload.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
namespace IconC... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/src/Options.php | src/Options.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
namespace IconC... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/src/Request.php | src/Request.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
namespace IconC... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/src/Utils.php | src/Utils.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
namespace IconC... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
fabianwennink/IconCaptcha-PHP | https://github.com/fabianwennink/IconCaptcha-PHP/blob/a64c3799c4d43f56df0abe472e2e2d0522536eef/src/IconCaptcha.php | src/IconCaptcha.php | <?php
/*
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl)
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license
*
* The above copyright notice and license shall be included in all copies or substantial portions of the software.
*/
namespace IconC... | php | MIT | a64c3799c4d43f56df0abe472e2e2d0522536eef | 2026-01-05T03:50:44.193752Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.