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 |
|---|---|---|---|---|---|---|---|---|
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/controllers/about.php | demo/app/controllers/about.php | <?php
class AboutController extends Controller
{
function init($ctx){
}
function index($ctx){
}
function us($ctx){
}
}
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/controllers/index.php | demo/app/controllers/index.php | <?php
class IndexController extends Controller
{
function init($ctx){
}
function index($ctx){
$page = 1;
$size = 16;
$where = '';
#$ctx->page = Post::paginate($page, $size, $where, 'id desc');
$ctx->var = 'hello! ' . date('Y-m-d H:i:s'); // 在 View 中可以直接使用的变量: $var
}
}
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/controllers/about/job.php | demo/app/controllers/about/job.php | <?php
class JobController extends Controller
{
function init($ctx){
}
function index($ctx){
}
}
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/controllers/api/test.php | demo/app/controllers/api/test.php | <?php
class TestController extends Controller
{
function init($ctx){
$this->layout = false;
}
function index($ctx){
$data = array(
'a' => 1,
'b' => 2,
);
echo json_encode($data);
}
}
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/console/test.php | demo/app/console/test.php | <?php
error_reporting(E_ALL & ~E_NOTICE);
define('APP_PATH', dirname(__FILE__) . '/..');
require_once('/data/lib/iphp/loader.php');
Logger::debug('running...');
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/console/test_master_worker.php | demo/app/console/test_master_worker.php | <?php
error_reporting(E_ALL & ~E_NOTICE);
define('APP_PATH', dirname(__FILE__) . '/..');
require_once('/data/lib/iphp/loader.php');
class MyMasterWorker extends MasterWorker
{
function master(){
for($i=0; $i<100; $i++){
#Logger::debug("add job $i");
$this->add_job($i);
#$this->wait(); // 如果每添加一个任务便 wait 的话... | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/models/Post.php | demo/app/models/Post.php | <?php
class Post extends Model
{
static $table_name = 'posts';
}
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/layout.tpl.php | demo/app/views/layout.tpl.php | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>iphp - A fast and simple PHP framework for web development</title>
<meta name="description" content="iphp framework">
<meta name="keywords" content="iphp framework">
<link href="<?= _url('/css/bootstrap.min.css') ?>" rel="stylesheet">
<link hre... | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/index.tpl.php | demo/app/views/index.tpl.php |
<h3>演示</h3>
<p>从 Controller 传来的变量 <code>$var</code>: <?=$var?> </p>
<table class="table table-striped">
<thead>
<tr>
<th>Path</th>
<th>Controller File</th>
<th>Controller#action</th>
<th>View</th>
<th>Full URL</th>
</tr>
</thead>
<tbody>
<tr>
<td><?=str_replace(_url(''), '', _url('about'))?></td>
<t... | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/about.tpl.php | demo/app/views/about.tpl.php | <h1>About</h1> | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/_error/ajax.tpl.php | demo/app/views/_error/ajax.tpl.php | <?php
$msg = htmlspecialchars($_e->getMessage());
if(strpos($msg, 'in SQL:') !== false || strpos($msg, 'db error') !== false || get_class($_e) == 'SSDBException'){
Logger::error($_e);
$msg = 'db error';
}
iphp_Response::ajax($_e->getCode(), $msg);
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/_error/404.tpl.php | demo/app/views/_error/404.tpl.php | <h1>404 - Not Found!</h1>
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/_error/default.tpl.php | demo/app/views/_error/default.tpl.php | <!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title><?= htmlspecialchars($_e->getMessage()) ?></title>
<style>body{font-size: 14px; font-family: monospace;}</style>
</head>
<body>
<h1 style="text-align: center;"><?= htmlspecialchars($_e->getMessage()) ?></h1>
<div>
<?php
if(App::$env == 'dev'){
$ts = $_e-... | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/about/us.tpl.php | demo/app/views/about/us.tpl.php | <h1>About Us</h1> | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/views/about/job.tpl.php | demo/app/views/about/job.tpl.php | <h1>Jobs</h1>
| php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/config/config_dev.php | demo/app/config/config_dev.php | <?php
define('ENV', 'dev');
return array(
'env' => ENV,
'logger' => array(
'level' => 'all', // none/off|(LEVEL)
'dump' => 'file', // none|html|file, 可用'|'组合
'files' => array( // ALL|(LEVEL)
'ALL' => dirname(__FILE__) . '/../../logs/' . date('Y-m') . '.log',
),
),
'db' => array(
'host' => 'localhost',... | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/config/config.php | demo/app/config/config.php | <?php
define('ENV', 'dev');
return array(
'env' => ENV,
'logger' => array(
'level' => 'all', // none/off|(LEVEL)
'dump' => 'file', // none|html|file, 可用'|'组合
'files' => array( // ALL|(LEVEL)
'ALL' => dirname(__FILE__) . '/../../logs/' . date('Y-m') . '.log',
),
),
'db' => array(
'host' => 'localhost',... | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
ideawu/iphp | https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/app/config/config_online.php | demo/app/config/config_online.php | <?php
define('ENV', 'online');
return array(
'env' => ENV,
'logger' => array(
'level' => 'all', // none/off|(LEVEL)
'dump' => 'file', // none|html|file, 可用'|'组合
'files' => array( // ALL|(LEVEL)
'ALL' => "/data/applogs/demo/" . date('Y-m-d') . '.log',
),
),
'db' => array(
'host' => 'localhost',
'dbna... | php | BSD-3-Clause | 47d322cd119dcbe5e5f246146c1bfb6d440fe51b | 2026-01-05T05:02:00.171683Z | false |
jcnewell/ergast-f1-api | https://github.com/jcnewell/ergast-f1-api/blob/eff8af1c873f09b5e037e46581d17937e87a04e6/webroot/php/api/index.php | webroot/php/api/index.php | <?php
include("functions.inc");
$urlComponents = parse_url($_SERVER['REQUEST_URI']);
$path = strtolower(urldecode($urlComponents['path']));
$url = "http://ergast.com" . $path;
$period = strrpos($path, ".");
if($period !== FALSE) {
$format = substr($path, $period + 1);
$path = substr($path, 0, $period);
if(strcmp... | php | Apache-2.0 | eff8af1c873f09b5e037e46581d17937e87a04e6 | 2026-01-05T05:02:19.752675Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/registration.php | registration.php | <?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Creatuity_Interception',
__DIR__
); | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/CompiledInterceptorTest.php | Test/Integration/CompiledInterceptor/CompiledInterceptorTest.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor;
use Creatuity\Interception\Generator\AreasPluginList;
use Creatuity\Interception\Generator\FileCache;
use Creatuity\Interception\Generator\Stat... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/ComplexItemTyped.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/ComplexItemTyped.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model;
class ComplexItemTyped
{
private $value;
private $variadicValue;
public function... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/ComplexItem.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/ComplexItem.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model;
class ComplexItem
{
private $attribute;
private $variadicAttribute;
public funct... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/Item.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/Item.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model;
class Item
{
/**
* @return string
*/
public function getName()
{
... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/SecondItem.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/SecondItem.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model;
class SecondItem
{
/**
* @return string
*/
public function getName()
{
... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/Item/Enhanced.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/Item/Enhanced.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model\Item;
class Enhanced extends \Creatuity\Interception\Test\Integration\CompiledInterceptor\Custo... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/ItemPlugin/Advanced.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/ItemPlugin/Advanced.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model\ItemPlugin;
class Advanced
{
/**
* @param $subject
* @param $proceed
* @par... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/ItemPlugin/Complex.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/ItemPlugin/Complex.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model\ItemPlugin;
class Complex
{
/**
* @param $subject
* @param $proceed
* @para... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/CompiledInterceptor/Custom/Module/Model/ItemPlugin/Simple.php | Test/Integration/CompiledInterceptor/Custom/Module/Model/ItemPlugin/Simple.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model\ItemPlugin;
class Simple
{
/**
* @param $subject
* @param $invocationResult
... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Integration/_files/reader_mock_map.php | Test/Integration/_files/reader_mock_map.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model\ComplexItem;
use Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model\ComplexItemTyped;
use Creatuity\In... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Unit/Custom/Module/Model/Item.php | Test/Unit/Custom/Module/Model/Item.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Unit\Custom\Module\Model;
class Item
{
/**
* @return string
*/
public function getName()
{
return 'item';
}
}
| php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Unit/Custom/Module/Model/Item/Enhanced.php | Test/Unit/Custom/Module/Model/Item/Enhanced.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Unit\Custom\Module\Model\Item;
class Enhanced extends \Creatuity\Interception\Test\Unit\Custom\Module\Model\Item
{
/**
* @return string
... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Unit/Custom/Module/Model/ItemPlugin/Advanced.php | Test/Unit/Custom/Module/Model/ItemPlugin/Advanced.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Unit\Custom\Module\Model\ItemPlugin;
class Advanced
{
/**
* @param $subject
* @param $proceed
* @param $argument
* @return... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Unit/Custom/Module/Model/ItemPlugin/Simple.php | Test/Unit/Custom/Module/Model/ItemPlugin/Simple.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Creatuity\Interception\Test\Unit\Custom\Module\Model\ItemPlugin;
class Simple
{
/**
* @param $subject
* @param $invocationResult
* @return string
*
... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Unit/CompiledPluginList/CompiledPluginListTest.php | Test/Unit/CompiledPluginList/CompiledPluginListTest.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Creatuity\Interception\Test\Unit\CompiledPluginList;
use Creatuity\Interception\Generator\StaticScope;
use Magento\Framework\App\ObjectManager;
use Creatuity\Interception\Generator\CompiledPluginList;
use ... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Test/Unit/_files/reader_mock_map.php | Test/Unit/_files/reader_mock_map.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Creatuity\Interception\Test\Unit\Custom\Module\Model\Item;
use Creatuity\Interception\Test\Unit\Custom\Module\Model\Item\Enhanced;
use Creatuity\Interception\Test\Unit\Custom\Module\Model\ItemPlugin\Advanced;
us... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Generator/AreasPluginList.php | Generator/AreasPluginList.php | <?php
namespace Creatuity\Interception\Generator;
use Magento\Framework\App\ObjectManager;
use Magento\Framework\Config\Scope;
/**
* Class AreasPluginList
*/
class AreasPluginList
{
/** @var Scope */
private $scope;
/** @var array */
private $plugins;
/**
* AreasPluginList constructor.
... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Generator/CompiledInterceptorSubstitution.php | Generator/CompiledInterceptorSubstitution.php | <?php
namespace Creatuity\Interception\Generator;
use Magento\Setup\Module\Di\Compiler\Config\Chain\InterceptorSubstitution;
use function array_merge;
use function substr;
/**
* Class CompiledInterceptorSubstitution adds required parameters to interceptor constructor
*/
class CompiledInterceptorSubstitution exten... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Generator/NoSerialize.php | Generator/NoSerialize.php | <?php
namespace Creatuity\Interception\Generator;
use Magento\Framework\Serialize\SerializerInterface;
/**
* Class NoSerialize
*/
class NoSerialize implements SerializerInterface
{
/**
* Serialize data into string
*
* @param string|int|float|bool|array|null $data
* @return string|bool
... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Generator/CompiledInterceptor.php | Generator/CompiledInterceptor.php | <?php
namespace Creatuity\Interception\Generator;
use Magento\Framework\Code\Generator\CodeGeneratorInterface;
use Magento\Framework\Code\Generator\DefinedClasses;
use Magento\Framework\Code\Generator\Io;
use Magento\Framework\ObjectManagerInterface;
use Magento\Framework\Code\Generator\EntityAbstract;
use Magento\Fr... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Generator/StaticScope.php | Generator/StaticScope.php | <?php
namespace Creatuity\Interception\Generator;
use Magento\Framework\Config\ScopeInterface;
/**
* Class StaticScope
*/
class StaticScope implements ScopeInterface
{
/**
* @var string
*/
protected $scope;
/**
* StaticScope constructor.
*
* @param string $scope
*/
pu... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Generator/FileCache.php | Generator/FileCache.php | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Creatuity\Interception\Generator;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Config\CacheInterface;
use function dirname;
use function file_exists;
use function file_put_con... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
creatuity/magento2-interceptors | https://github.com/creatuity/magento2-interceptors/blob/37e9f4b7df3439230e5585fbf55a038e2cc22766/Generator/CompiledPluginList.php | Generator/CompiledPluginList.php | <?php
namespace Creatuity\Interception\Generator;
use Magento\Framework\App\ObjectManager;
use Magento\Framework\Config\ReaderInterface;
use Magento\Framework\Config\ScopeInterface;
use Magento\Framework\Interception\Definition\Runtime as InterceptionDefinitionRuntime;
use Magento\Framework\Interception\ObjectManager... | php | MIT | 37e9f4b7df3439230e5585fbf55a038e2cc22766 | 2026-01-05T05:02:29.611390Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/example.blade.php | example.blade.php | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cookie Consent</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swa... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/vendor/autoload.php | vendor/autoload.php | <?php
// autoload.php @generated by Composer
if (PHP_VERSION_ID < 50600) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
}
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/vendor/composer/autoload_real.php | vendor/composer/autoload_real.php | <?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit097b259ba67d03f0111b724291f0acdf
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/vendor/composer/autoload_namespaces.php | vendor/composer/autoload_namespaces.php | <?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
);
| php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/vendor/composer/autoload_psr4.php | vendor/composer/autoload_psr4.php | <?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Devrabiul\\LaravelCookieConsent\\' => array($baseDir . '/src'),
);
| php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/vendor/composer/autoload_static.php | vendor/composer/autoload_static.php | <?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit097b259ba67d03f0111b724291f0acdf
{
public static $prefixLengthsPsr4 = array (
'D' =>
array (
'Devrabiul\\LaravelCookieConsent\\' => 31,
),
);
public static $prefi... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/vendor/composer/ClassLoader.php | vendor/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 | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/vendor/composer/autoload_classmap.php | vendor/composer/autoload_classmap.php | <?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
);
| php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/src/CookieConsentServiceProvider.php | src/CookieConsentServiceProvider.php | <?php
namespace Devrabiul\CookieConsent;
use Exception;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Response;
class CookieConsentServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* This method is c... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/src/AssetsServiceProvider.php | src/AssetsServiceProvider.php | <?php
namespace Devrabiul\CookieConsent;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\File;
use function PHPUnit\Framework\isNull;
/**
* Class AssetsServiceProvider
*
* Service provider for the CookieConsent Laravel package.
*
* Handles bootstrapping of the package including
* - Setti... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/src/CookieConsent.php | src/CookieConsent.php | <?php
namespace Devrabiul\CookieConsent;
use Illuminate\Contracts\View\View;
use Illuminate\Session\SessionManager as Session;
use Illuminate\Config\Repository as Config;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\File;
/**
* Class CookieConsent
*
* Handles the display and management of co... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/src/Http/Controllers/CookieConsentController.php | src/Http/Controllers/CookieConsentController.php | <?php
namespace Devrabiul\CookieConsent\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
class CookieConsentController extends Controller
{
public function scriptUtils(Request $request)
{
$script = <<<JS
window.onload = function() {
// console.log(... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/src/Facades/CookieConsent.php | src/Facades/CookieConsent.php | <?php
namespace Devrabiul\CookieConsent\Facades;
use Illuminate\Support\Facades\Facade;
class CookieConsent extends Facade
{
protected static function getFacadeAccessor(): string
{
return 'CookieConsent';
}
} | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/src/config/laravel-cookie-consent.php | src/config/laravel-cookie-consent.php | <?php
/**
* Cookie Consent Configuration
*
* This file contains all the configuration options for the cookie consent system.
* It allows customization of the cookie banner appearance, behavior, and compliance settings.
*
* @package Config
* @author Muhammad Rabiul
* @license MIT
*/
return [
/*
|----... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/routes/laravel-cookie-consent.php | routes/laravel-cookie-consent.php | <?php
use Illuminate\Support\Facades\Route;
use Devrabiul\CookieConsent\Http\Controllers\CookieConsentController;
Route::controller(CookieConsentController::class)->group(function () {
Route::get('/laravel-cookie-consent/script-utils', 'scriptUtils')->name('laravel-cookie-consent.script-utils');
});
| php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/assets/version.php | assets/version.php | <?php
return [
'version' => 'v1.1',
];
| php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
devrabiul/laravel-cookie-consent | https://github.com/devrabiul/laravel-cookie-consent/blob/11b54b1bd031c7a256412ff51a2a46cd9adaa3d8/resources/views/cookie-consent.blade.php | resources/views/cookie-consent.blade.php | <!-- Main Cookie Consent Banner -->
<div class="cookie-consent-root
cookie-consent-hide
{{ $cookieConfig['disable_page_interaction'] ? 'cookie-disable-interaction' : '' }}
consent-layout-{{ $cookieConfig['consent_modal_layout'] ?? 'bar' }}
theme-{{ $cookieConfig['theme'] ?? 'default' }}"
data-cooki... | php | MIT | 11b54b1bd031c7a256412ff51a2a46cd9adaa3d8 | 2026-01-05T05:02:38.493104Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/HelpersServiceProvider.php | src/HelpersServiceProvider.php | <?php
namespace Encore\Admin\Helpers;
use Illuminate\Support\ServiceProvider;
class HelpersServiceProvider extends ServiceProvider
{
/**
* {@inheritdoc}
*/
public function boot()
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-admin-helpers');
Helpers::boot();
... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/Helpers.php | src/Helpers.php | <?php
namespace Encore\Admin\Helpers;
use Encore\Admin\Admin;
use Encore\Admin\Auth\Database\Menu;
use Encore\Admin\Extension;
class Helpers extends Extension
{
/**
* Bootstrap this package.
*
* @return void
*/
public static function boot()
{
static::registerRoutes();
... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/Controllers/RouteController.php | src/Controllers/RouteController.php | <?php
namespace Encore\Admin\Helpers\Controllers;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Grid;
use Encore\Admin\Layout\Content;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Routing\Controller;
use Illuminate\Routing\Route;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
class RouteControl... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/Controllers/ScaffoldController.php | src/Controllers/ScaffoldController.php | <?php
namespace Encore\Admin\Helpers\Controllers;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Helpers\Scaffold\ControllerCreator;
use Encore\Admin\Helpers\Scaffold\MigrationCreator;
use Encore\Admin\Helpers\Scaffold\ModelCreator;
use Encore\Admin\Layout\Content;
use Illuminate\Http\Request;
use Illuminate\Routin... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/Controllers/TerminalController.php | src/Controllers/TerminalController.php | <?php
namespace Encore\Admin\Helpers\Controllers;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Layout\Content;
use Exception;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Red... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/Scaffold/MigrationCreator.php | src/Scaffold/MigrationCreator.php | <?php
namespace Encore\Admin\Helpers\Scaffold;
use Illuminate\Database\Migrations\MigrationCreator as BaseMigrationCreator;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Arr;
class MigrationCreator extends BaseMigrationCreator
{
/**
* @var string
*/
protected $bluePrint = '';
pu... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/Scaffold/ControllerCreator.php | src/Scaffold/ControllerCreator.php | <?php
namespace Encore\Admin\Helpers\Scaffold;
class ControllerCreator
{
/**
* Controller full name.
*
* @var string
*/
protected $name;
/**
* The filesystem instance.
*
* @var \Illuminate\Filesystem\Filesystem
*/
protected $files;
protected $DummyGridFiel... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/src/Scaffold/ModelCreator.php | src/Scaffold/ModelCreator.php | <?php
namespace Encore\Admin\Helpers\Scaffold;
use Illuminate\Support\Str;
class ModelCreator
{
/**
* Table name.
*
* @var string
*/
protected $tableName;
/**
* Model name.
*
* @var string
*/
protected $name;
/**
* The filesystem instance.
*
... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/resources/views/artisan.blade.php | resources/views/artisan.blade.php | <script>
$(function () {
var storageKey = function () {
var connection = $('#connections').val();
return 'la-'+connection+'-history'
};
$('#terminal-box').slimScroll({
height: $('#pjax-container').height() - 247 +'px'
});
function History () {
this.index = this.cou... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/resources/views/scaffold.blade.php | resources/views/scaffold.blade.php | <div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Scaffold</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<form method="post" action="{{$action}}" id="scaffold" pjax-container>
<div class="box-body">
<div cla... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
laravel-admin-extensions/helpers | https://github.com/laravel-admin-extensions/helpers/blob/b5ee6173794797d665b5baf7cc2713b523c2dd33/resources/views/database.blade.php | resources/views/database.blade.php | <script> Sfdump = window.Sfdump || (function (doc) { var refStyle = doc.createElement('style'), rxEsc = /([.*+?^${}()|\[\]\/\\])/g, idRx = /\bsf-dump-\d+-ref[012]\w+\b/, keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl', addEventListener = function (e, n, cb) { e.addEventListener(n, cb, fa... | php | MIT | b5ee6173794797d665b5baf7cc2713b523c2dd33 | 2026-01-05T05:02:47.157553Z | false |
dejurin/php-google-translate-for-free | https://github.com/dejurin/php-google-translate-for-free/blob/cbef0daa72685003463024286e3c3e3e10c1a3b3/example.php | example.php | <?php
require_once 'GoogleTranslateForFree.php';
//Single
$source = 'en';
$target = 'ru';
$attempts = 5;
$text = 'Hello';
$tr = new GoogleTranslateForFree();
$result = $tr->translate($source, $target, $text, $attempts);
var_dump($result);
//Array
$source = 'en';
$target = 'ru';
$attempts = 5;
$arr = ['hello', 'wor... | php | MIT | cbef0daa72685003463024286e3c3e3e10c1a3b3 | 2026-01-05T05:03:07.683652Z | false |
dejurin/php-google-translate-for-free | https://github.com/dejurin/php-google-translate-for-free/blob/cbef0daa72685003463024286e3c3e3e10c1a3b3/GoogleTranslateForFree.php | GoogleTranslateForFree.php | <?php
/**
* GoogleTranslateForFree.php.
*
* Class for free use Google Translator. With attempts connecting on failure and array support.
*
* @category Translation
*
* @author Yuri Darwin
* @author Yuri Darwin <gkhelloworld@gmail.com>
* @copyright 2019 Yuri Darwin
* @license https://opensource.org/licenses/MI... | php | MIT | cbef0daa72685003463024286e3c3e3e10c1a3b3 | 2026-01-05T05:03:07.683652Z | false |
dejurin/php-google-translate-for-free | https://github.com/dejurin/php-google-translate-for-free/blob/cbef0daa72685003463024286e3c3e3e10c1a3b3/src/GoogleTranslateForFree.php | src/GoogleTranslateForFree.php | <?php
namespace Dejurin;
/**
* GoogleTranslateForFree.php.
*
* Class for free use Google Translator. With attempts connecting on failure and array support.
*
* @category Translation
*
* @author Yuri Darwin
* @author Yuri Darwin <gkhelloworld@gmail.com>
* @copyright 2019 Yuri Darwin
* @license https://openso... | php | MIT | cbef0daa72685003463024286e3c3e3e10c1a3b3 | 2026-01-05T05:03:07.683652Z | false |
mybuilder/phpunit-accelerator | https://github.com/mybuilder/phpunit-accelerator/blob/91dae70fbeb7b81b9502a9d3ea80d1184c1134b1/src/TestListener.php | src/TestListener.php | <?php
namespace MyBuilder\PhpunitAccelerator;
use PHPUnit\Framework\TestListener as BaseTestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
class TestListener implements BaseTestListener
{
use TestListenerDefaultImplementation;
private $ignorePolicy;
const PHPUNIT_PROPERTY_PREFIX = '... | php | MIT | 91dae70fbeb7b81b9502a9d3ea80d1184c1134b1 | 2026-01-05T05:03:17.385475Z | false |
mybuilder/phpunit-accelerator | https://github.com/mybuilder/phpunit-accelerator/blob/91dae70fbeb7b81b9502a9d3ea80d1184c1134b1/src/IgnoreTestPolicy.php | src/IgnoreTestPolicy.php | <?php
namespace MyBuilder\PhpunitAccelerator;
interface IgnoreTestPolicy
{
/**
* @return boolean
*/
public function shouldIgnore(\ReflectionObject $testReflection);
}
| php | MIT | 91dae70fbeb7b81b9502a9d3ea80d1184c1134b1 | 2026-01-05T05:03:17.385475Z | false |
mybuilder/phpunit-accelerator | https://github.com/mybuilder/phpunit-accelerator/blob/91dae70fbeb7b81b9502a9d3ea80d1184c1134b1/tests/TestListenerTest.php | tests/TestListenerTest.php | <?php
use MyBuilder\PhpunitAccelerator\TestListener;
use MyBuilder\PhpunitAccelerator\IgnoreTestPolicy;
class TestListenerTest extends \PHPUnit\Framework\TestCase
{
private $dummyTest;
protected function setUp()
{
$this->dummyTest = new DummyTest();
}
/**
* @test
*/
public ... | php | MIT | 91dae70fbeb7b81b9502a9d3ea80d1184c1134b1 | 2026-01-05T05:03:17.385475Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/ConfigProvider.php | src/ConfigProvider.php | <?php
namespace Laminas\Db;
class ConfigProvider
{
/**
* Retrieve laminas-db default configuration.
*
* @return array
*/
public function __invoke()
{
return [
'dependencies' => $this->getDependencyConfig(),
];
}
/**
* Retrieve laminas-db defaul... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Module.php | src/Module.php | <?php
namespace Laminas\Db;
class Module
{
/**
* Retrieve default laminas-db configuration for laminas-mvc context.
*
* @return array
*/
public function getConfig()
{
$provider = new ConfigProvider();
return [
'service_manager' => $provider->getDependencyCon... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Metadata.php | src/Metadata/Metadata.php | <?php
namespace Laminas\Db\Metadata;
use Laminas\Db\Adapter\Adapter;
/**
* @deprecated Use Laminas\Db\Metadata\Source\Factory::createSourceFromAdapter($adapter)
*/
class Metadata implements MetadataInterface
{
/** @var MetadataInterface */
protected $source;
/**
* Constructor
*/
public f... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/MetadataInterface.php | src/Metadata/MetadataInterface.php | <?php
namespace Laminas\Db\Metadata;
interface MetadataInterface
{
/**
* Get schemas.
*
* @return string[]
*/
public function getSchemas();
/**
* Get table names.
*
* @param null|string $schema
* @param bool $includeViews
* @return string[]
*/
public ... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Object/ColumnObject.php | src/Metadata/Object/ColumnObject.php | <?php
namespace Laminas\Db\Metadata\Object;
use function array_key_exists;
class ColumnObject
{
/** @var string */
protected $name;
/** @var string */
protected $tableName;
/** @var string */
protected $schemaName;
/** @var int */
protected $ordinalPosition;
/** @var string */... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Object/TriggerObject.php | src/Metadata/Object/TriggerObject.php | <?php
namespace Laminas\Db\Metadata\Object;
use DateTime;
class TriggerObject
{
/** @var string */
protected $name;
/** @var string */
protected $eventManipulation;
/** @var string */
protected $eventObjectCatalog;
/** @var string */
protected $eventObjectSchema;
/** @var stri... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Object/TableObject.php | src/Metadata/Object/TableObject.php | <?php
namespace Laminas\Db\Metadata\Object;
class TableObject extends AbstractTableObject
{
}
| php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Object/ConstraintKeyObject.php | src/Metadata/Object/ConstraintKeyObject.php | <?php
namespace Laminas\Db\Metadata\Object;
class ConstraintKeyObject
{
public const FK_CASCADE = 'CASCADE';
public const FK_SET_NULL = 'SET NULL';
public const FK_NO_ACTION = 'NO ACTION';
public const FK_RESTRICT = 'RESTRICT';
public const FK_SET_DEFAULT = 'SET DEFAULT';
/** @var... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Object/ViewObject.php | src/Metadata/Object/ViewObject.php | <?php
namespace Laminas\Db\Metadata\Object;
class ViewObject extends AbstractTableObject
{
/** @var null|string */
protected $viewDefinition;
/** @var null|string */
protected $checkOption;
/** @var null|bool */
protected $isUpdatable;
/**
* @return string $viewDefinition
*/
... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Object/ConstraintObject.php | src/Metadata/Object/ConstraintObject.php | <?php
namespace Laminas\Db\Metadata\Object;
class ConstraintObject
{
/** @var string */
protected $name;
/** @var string */
protected $tableName;
/** @var string */
protected $schemaName;
/**
* One of "PRIMARY KEY", "UNIQUE", "FOREIGN KEY", or "CHECK"
*
* @var string
... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Object/AbstractTableObject.php | src/Metadata/Object/AbstractTableObject.php | <?php
namespace Laminas\Db\Metadata\Object;
abstract class AbstractTableObject
{
/*
protected $catalogName = null;
protected $schemaName = null;
*/
/** @var string */
protected $name;
/** @var string */
protected $type;
/** @var array */
protected $columns;
/** @var arr... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Source/OracleMetadata.php | src/Metadata/Source/OracleMetadata.php | <?php
namespace Laminas\Db\Metadata\Source;
use Laminas\Db\Adapter\Adapter;
use function implode;
use function strtoupper;
/**
* Metadata source for Oracle
*/
class OracleMetadata extends AbstractSource
{
/** @var array */
protected $constraintTypeMap = [
'C' => 'CHECK',
'P' => 'PRIMARY KE... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Source/SqliteMetadata.php | src/Metadata/Source/SqliteMetadata.php | <?php
namespace Laminas\Db\Metadata\Source;
use Laminas\Db\Adapter\Adapter;
use Laminas\Db\ResultSet\ResultSetInterface;
use function array_merge;
use function implode;
use function is_array;
use function is_string;
use function preg_match;
use function strtoupper;
class SqliteMetadata extends AbstractSource
{
... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Source/MysqlMetadata.php | src/Metadata/Source/MysqlMetadata.php | <?php
namespace Laminas\Db\Metadata\Source;
use DateTime;
use Laminas\Db\Adapter\Adapter;
use function array_change_key_case;
use function array_walk;
use function implode;
use function preg_match;
use function preg_match_all;
use function str_replace;
use function strpos;
use const CASE_LOWER;
use const PREG_PATTE... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Source/PostgresqlMetadata.php | src/Metadata/Source/PostgresqlMetadata.php | <?php
namespace Laminas\Db\Metadata\Source;
use DateTime;
use Laminas\Db\Adapter\Adapter;
use function array_change_key_case;
use function array_walk;
use function implode;
use function is_array;
use function is_string;
use function key;
use const CASE_LOWER;
class PostgresqlMetadata extends AbstractSource
{
p... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Source/AbstractSource.php | src/Metadata/Source/AbstractSource.php | <?php
namespace Laminas\Db\Metadata\Source;
use Exception;
use Laminas\Db\Adapter\Adapter;
use Laminas\Db\Metadata\MetadataInterface;
use Laminas\Db\Metadata\Object\ColumnObject;
use Laminas\Db\Metadata\Object\ConstraintKeyObject;
use Laminas\Db\Metadata\Object\ConstraintObject;
use Laminas\Db\Metadata\Object\TableOb... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Source/SqlServerMetadata.php | src/Metadata/Source/SqlServerMetadata.php | <?php
namespace Laminas\Db\Metadata\Source;
use DateTime;
use Laminas\Db\Adapter\Adapter;
use function array_change_key_case;
use function array_walk;
use function implode;
use function is_string;
use function key;
use const CASE_LOWER;
class SqlServerMetadata extends AbstractSource
{
protected function loadSc... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/Metadata/Source/Factory.php | src/Metadata/Source/Factory.php | <?php
namespace Laminas\Db\Metadata\Source;
use Laminas\Db\Adapter\Adapter;
use Laminas\Db\Exception\InvalidArgumentException;
use Laminas\Db\Metadata\MetadataInterface;
/**
* Source metadata factory.
*/
class Factory
{
/**
* Create source from adapter
*
* @return MetadataInterface
* @throw... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/ResultSet/AbstractResultSet.php | src/ResultSet/AbstractResultSet.php | <?php
namespace Laminas\Db\ResultSet;
use ArrayIterator;
use Countable;
use Iterator;
use IteratorAggregate;
use Laminas\Db\Adapter\Driver\ResultInterface;
// phpcs:ignore SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse
use ReturnTypeWillChange;
use function count;
use function current;
use function gettype;
... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/ResultSet/HydratingResultSet.php | src/ResultSet/HydratingResultSet.php | <?php
namespace Laminas\Db\ResultSet;
use ArrayObject;
use Laminas\Hydrator\ArraySerializable;
use Laminas\Hydrator\ArraySerializableHydrator;
use Laminas\Hydrator\HydratorInterface;
use function class_exists;
use function gettype;
use function is_array;
use function is_object;
class HydratingResultSet extends Abst... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/ResultSet/ResultSet.php | src/ResultSet/ResultSet.php | <?php
namespace Laminas\Db\ResultSet;
use ArrayObject;
use function in_array;
use function is_array;
use function is_object;
use function method_exists;
class ResultSet extends AbstractResultSet
{
public const TYPE_ARRAYOBJECT = 'arrayobject';
public const TYPE_ARRAY = 'array';
/**
* Allowed... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/ResultSet/ResultSetInterface.php | src/ResultSet/ResultSetInterface.php | <?php
namespace Laminas\Db\ResultSet;
use Countable;
use Traversable;
interface ResultSetInterface extends Traversable, Countable
{
/**
* Can be anything traversable|array
*
* @abstract
* @param iterable $dataSource
* @return mixed
*/
public function initialize($dataSource);
... | php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
laminas/laminas-db | https://github.com/laminas/laminas-db/blob/1395efe76f7a20c322e78d1885efe103e5e291ff/src/ResultSet/Exception/ExceptionInterface.php | src/ResultSet/Exception/ExceptionInterface.php | <?php
namespace Laminas\Db\ResultSet\Exception;
use Laminas\Db\Exception;
interface ExceptionInterface extends Exception\ExceptionInterface
{
}
| php | BSD-3-Clause | 1395efe76f7a20c322e78d1885efe103e5e291ff | 2026-01-05T05:03:07.882669Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.