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 |
|---|---|---|---|---|---|---|---|---|
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/src/Ajaxray/PHPWatermark/Watermark.php | src/Ajaxray/PHPWatermark/Watermark.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark;
use Ajaxray\PHPWatermark\CommandBuilders\CommandBuilderFactory;
use Ajaxray\PHPWatermark\CommandBuilders\WatermarkCommandBuilderInterface;
class Watermark
{
// Anchors to place text/image
public const POSITION_TOP_LEFT = 'NorthWest';
public c... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/src/Ajaxray/PHPWatermark/CommandBuilders/AbstractCommandBuilder.php | src/Ajaxray/PHPWatermark/CommandBuilders/AbstractCommandBuilder.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark\CommandBuilders;
use Ajaxray\PHPWatermark\Requirements\RequirementsChecker;
abstract class AbstractCommandBuilder
{
protected array $options;
protected string $source;
public function __construct(string $source)
{
$this->source = ... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/src/Ajaxray/PHPWatermark/CommandBuilders/WatermarkCommandBuilderInterface.php | src/Ajaxray/PHPWatermark/CommandBuilders/WatermarkCommandBuilderInterface.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark\CommandBuilders;
interface WatermarkCommandBuilderInterface
{
/**
* Build the imagemagick shell command for watermarking with Image
*
* @param string $markerImage The image file path to watermark with
* @param string $output The wat... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/src/Ajaxray/PHPWatermark/CommandBuilders/PDFCommandBuilder.php | src/Ajaxray/PHPWatermark/CommandBuilders/PDFCommandBuilder.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark\CommandBuilders;
final class PDFCommandBuilder extends AbstractCommandBuilder implements WatermarkCommandBuilderInterface
{
/** @inheritDoc */
public function getImageMarkCommand(string $markerImage, string $output, array $options): string
{
... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/src/Ajaxray/PHPWatermark/CommandBuilders/CommandBuilderFactory.php | src/Ajaxray/PHPWatermark/CommandBuilders/CommandBuilderFactory.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark\CommandBuilders;
final class CommandBuilderFactory
{
private const PATTERN_MIME_IMAGE = '/^image\/\w{1,4}$/';
private const PATTERN_MIME_PDF = '/^application\/(x\-)?pdf$/';
public static function getCommandBuilder(string $sourcePath): Watermar... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/src/Ajaxray/PHPWatermark/CommandBuilders/ImageCommandBuilder.php | src/Ajaxray/PHPWatermark/CommandBuilders/ImageCommandBuilder.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark\CommandBuilders;
use Ajaxray\PHPWatermark\Watermark;
final class ImageCommandBuilder extends AbstractCommandBuilder implements WatermarkCommandBuilderInterface
{
/** @inheritDoc */
public function getImageMarkCommand(string $markerImage, string $o... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/src/Ajaxray/PHPWatermark/Requirements/RequirementsChecker.php | src/Ajaxray/PHPWatermark/Requirements/RequirementsChecker.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark\Requirements;
class RequirementsChecker
{
public function ensureImagemagickInstallation(): bool
{
exec("convert -version", $out, $returnCode);
if ($returnCode !== 0) {
throw new \BadFunctionCallException("ImageMagick no... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/tests/bootstrap.php | tests/bootstrap.php | <?php declare(strict_types=1);
include_once('vendor/autoload.php');
include_once('tests/Ajaxray/TestUtils/OverrideFunctions.php');
| php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/tests/Ajaxray/PHPWatermark/Tests/WatermarkTest.php | tests/Ajaxray/PHPWatermark/Tests/WatermarkTest.php | <?php declare(strict_types=1);
namespace Ajaxray\PHPWatermark\Tests;
use Ajaxray\PHPWatermark\CommandBuilders\ImageCommandBuilder;
use Ajaxray\PHPWatermark\CommandBuilders\PDFCommandBuilder;
use Ajaxray\PHPWatermark\Watermark;
use Ajaxray\TestUtils\NonPublicAccess;
use PHPUnit\Framework\TestCase;
class WatermarkTest... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/tests/Ajaxray/PHPWatermark/Tests/CommandBuilders/PDFCommandBuilderTest.php | tests/Ajaxray/PHPWatermark/Tests/CommandBuilders/PDFCommandBuilderTest.php | <?php
declare(strict_types=1);
namespace Ajaxray\PHPWatermark\Tests\CommandBuilders;
use Ajaxray\PHPWatermark\CommandBuilders\PDFCommandBuilder;
use Ajaxray\PHPWatermark\Watermark;
use PHPUnit\Framework\TestCase;
class PDFCommandBuilderTest extends TestCase
{
protected array $options = [
'position' => '... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/tests/Ajaxray/PHPWatermark/Tests/CommandBuilders/ImageCommandBuilderTest.php | tests/Ajaxray/PHPWatermark/Tests/CommandBuilders/ImageCommandBuilderTest.php | <?php
declare(strict_types=1);
namespace Ajaxray\PHPWatermark\Tests\CommandBuilders;
use Ajaxray\PHPWatermark\CommandBuilders\ImageCommandBuilder;
use Ajaxray\PHPWatermark\Watermark;
use PHPUnit\Framework\TestCase;
class ImageCommandBuilderTest extends TestCase
{
protected array $options = [
'position' ... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/tests/Ajaxray/TestUtils/OverrideFunctions.php | tests/Ajaxray/TestUtils/OverrideFunctions.php | <?php declare(strict_types=1);
// Mechanism for mocking some built-in functions
namespace Ajaxray\PHPWatermark;
$GLOBALS['mockGlobalFunctions'] = false;
$GLOBALS['lastExecCommand'] = null;
function file_exists(string $path)
{
global $mockGlobalFunctions;
if (isset($mockGlobalFunctions) && $mockGlobalFuncti... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/tests/Ajaxray/TestUtils/NonPublicAccess.php | tests/Ajaxray/TestUtils/NonPublicAccess.php | <?php
declare(strict_types=1);
namespace Ajaxray\TestUtils;
trait NonPublicAccess
{
/**
* Call protected/private method of a class.
*
* @param object &$object Instantiated object that we will run method on.
* @param string $methodName Method name to call
* @param array $parameters Array ... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/examples/example_img.php | examples/example_img.php | <?php
use Ajaxray\PHPWatermark\Watermark;
include 'vendor/autoload.php';
$watermark = new Watermark(__DIR__ . '/img/poster.jpg');
// Watermarking with Text
$text = "ajaxray.com";
$watermark->withText("ajaxray.com")
->setFont('Arial')
->setFontSize(36)
->setOpacity(.4)
->setRotate(330)
->setOffs... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
ajaxray/php-watermark | https://github.com/ajaxray/php-watermark/blob/c713ef4999062aebdf6eb66a54e6736afa094c30/examples/example_pdf.php | examples/example_pdf.php | <?php
use Ajaxray\PHPWatermark\Watermark;
include 'vendor/autoload.php';
$watermark = new Watermark(__DIR__ . '/pdf/The_Man_In_The_Red_Underpants.pdf');
// Watermark with text
$text = "ajaxray.com";
$watermark->withText($text)
->setFont('Arial')
->setFontSize(18)
->setRotate(345)
->setOffset(20, 60)... | php | MIT | c713ef4999062aebdf6eb66a54e6736afa094c30 | 2026-01-05T04:29:51.654492Z | false |
CollaboraOnline/richdocumentscode | https://github.com/CollaboraOnline/richdocumentscode/blob/0c6582e6bb6b625be89c59ed619f0a0792ea8bd2/proxy.php | proxy.php | <?php
/*
* Copyright (C) 2020 Collabora Productivity, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | php | Apache-2.0 | 0c6582e6bb6b625be89c59ed619f0a0792ea8bd2 | 2026-01-05T04:30:11.229768Z | false |
CollaboraOnline/richdocumentscode | https://github.com/CollaboraOnline/richdocumentscode/blob/0c6582e6bb6b625be89c59ed619f0a0792ea8bd2/templates/admin.php | templates/admin.php | <?php
/*
* Copyright (C) 2020 Collabora Productivity, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | php | Apache-2.0 | 0c6582e6bb6b625be89c59ed619f0a0792ea8bd2 | 2026-01-05T04:30:11.229768Z | false |
CollaboraOnline/richdocumentscode | https://github.com/CollaboraOnline/richdocumentscode/blob/0c6582e6bb6b625be89c59ed619f0a0792ea8bd2/lib/Settings/Admin.php | lib/Settings/Admin.php | <?php
/*
* Copyright (C) 2020 Collabora Productivity, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | php | Apache-2.0 | 0c6582e6bb6b625be89c59ed619f0a0792ea8bd2 | 2026-01-05T04:30:11.229768Z | false |
CollaboraOnline/richdocumentscode | https://github.com/CollaboraOnline/richdocumentscode/blob/0c6582e6bb6b625be89c59ed619f0a0792ea8bd2/lib/Settings/Section.php | lib/Settings/Section.php | <?php
/*
* Copyright (C) 2020 Collabora Productivity, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | php | Apache-2.0 | 0c6582e6bb6b625be89c59ed619f0a0792ea8bd2 | 2026-01-05T04:30:11.229768Z | false |
dounokouno/TransmitMail | https://github.com/dounokouno/TransmitMail/blob/04fe60f91901b114d4785b2d8669c64121d55f20/index.php | index.php | <?php
/**
* TransmitMail
*
* @package TransmitMail
* @license MIT License
* @copyright TAGAWA Takao, dounokouno@gmail.com
* @link https://github.com/dounokouno/TransmitMail
*/
require_once 'lib/TransmitMail.php';
$tm = new TransmitMail();
$tm->init('config/config.yml');
$tm->run();
| php | MIT | 04fe60f91901b114d4785b2d8669c64121d55f20 | 2026-01-05T04:30:08.962071Z | false |
dounokouno/TransmitMail | https://github.com/dounokouno/TransmitMail/blob/04fe60f91901b114d4785b2d8669c64121d55f20/lib/Spyc.php | lib/Spyc.php | <?php
/**
* Spyc -- A Simple PHP YAML Class
* @version 0.6.2
* @author Vlad Andersen <vlad.andersen@gmail.com>
* @author Chris Wanstrath <chris@ozmm.org>
* @link https://github.com/mustangostang/spyc/
* @copyright Copyright 2005-2006 Chris Wanstrath, 2006-2011 Vlad Andersen
* @license http://www.op... | php | MIT | 04fe60f91901b114d4785b2d8669c64121d55f20 | 2026-01-05T04:30:08.962071Z | true |
dounokouno/TransmitMail | https://github.com/dounokouno/TransmitMail/blob/04fe60f91901b114d4785b2d8669c64121d55f20/lib/qdsmtp.php | lib/qdsmtp.php | <?php
/**
* Qdsmtp ver 0.2.0a
* SMTP Talker
*
* PHP versions 4 and 5 (PHP4.3 upper)
*
* Copyright 2008, Spok in japan , tokyo
* hal456.net/qdmail : http://hal456.net/qdsmtp/
* & CPA-LAB/Technical : http://www.cpa-lab.com/tech/
* Licensed under The MIT License License
*
* @copyright Copyright 2008, Spo... | php | MIT | 04fe60f91901b114d4785b2d8669c64121d55f20 | 2026-01-05T04:30:08.962071Z | false |
dounokouno/TransmitMail | https://github.com/dounokouno/TransmitMail/blob/04fe60f91901b114d4785b2d8669c64121d55f20/lib/tinyTemplate.php | lib/tinyTemplate.php | <?php
/*--------------------------------------------------------------*\
Description: HTML template class based on bTemplate.
Author: Takayuki Miyauchi (miya@theta.ne.jp)
Modified by: TAGAWA Takao (dounokouno@gmail.com)
License: MIT License
Version: 0.1.2
\*--------------... | php | MIT | 04fe60f91901b114d4785b2d8669c64121d55f20 | 2026-01-05T04:30:08.962071Z | false |
dounokouno/TransmitMail | https://github.com/dounokouno/TransmitMail/blob/04fe60f91901b114d4785b2d8669c64121d55f20/lib/qdmail.php | lib/qdmail.php | <?php
/**
* Qdmail ver 1.2.6b
* E-Mail for multibyte charset
*
* PHP versions 4 and 5 (PHP4.3 upper)
*
* Copyright 2008, Spok in japan , tokyo
* hal456.net/qdmail : http://hal456.net/qdmail/
* & CPA-LAB/Technical : http://www.cpa-lab.com/tech/
* Licensed under The MIT License License
*
* @copyright Co... | php | MIT | 04fe60f91901b114d4785b2d8669c64121d55f20 | 2026-01-05T04:30:08.962071Z | true |
dounokouno/TransmitMail | https://github.com/dounokouno/TransmitMail/blob/04fe60f91901b114d4785b2d8669c64121d55f20/lib/TransmitMail.php | lib/TransmitMail.php | <?php
/**
* TransmitMail クラス
*
* @package TransmitMail
* @license MIT License
* @copyright TAGAWA Takao, dounokouno@gmail.com
* @link https://github.com/dounokouno/TransmitMail
*/
class TransmitMail
{
// システム情報
const SYSTEM_NAME = 'TransmitMail';
const VERSION = '2.6.3';
// 表示モード
p... | php | MIT | 04fe60f91901b114d4785b2d8669c64121d55f20 | 2026-01-05T04:30:08.962071Z | true |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/phpstan-bootstrap.php | phpstan-bootstrap.php | <?php
require_once __DIR__.'/vendor/autoload.php';
class_alias('PDPhilip\\Elasticsearch\\Laravel\\v11\\Connection\\ConnectionCompatibility', 'PDPhilip\\Elasticsearch\\Laravel\\Compatibility\\Connection\\ConnectionCompatibility');
class_alias('PDPhilip\\Elasticsearch\\Laravel\\v11\\Schema\\BlueprintCompatibility', 'PD... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/BlogPost.php | workbench/app/Models/BlogPost.php | <?php
declare(strict_types=1);
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Model as Eloquent;
use Workbench\Database\Factories\BlogPostFactory;
/**
* App\Models\BlogPost
*
******Fields*******
*
* @property string $_id
* @property s... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/Client.php | workbench/app/Models/Client.php | <?php
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use PDPhilip\Elasticsearch\Eloquent\HybridRelations;
use Workbench\Database\Factories\ClientFactory;
/**
* App\Models\Client
*
******Fields*******
*
* @property string $_id
* @pr... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/ProductUnsafe.php | workbench/app/Models/ProductUnsafe.php | <?php
declare(strict_types=1);
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Builder;
use PDPhilip\Elasticsearch\Eloquent\Model;
use PDPhilip\Elasticsearch\Eloquent\SoftDeletes;
use Workbench\Database\Factories\ProductFactory;
/**
* App\M... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/UserProfile.php | workbench/app/Models/UserProfile.php | <?php
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Model as Eloquent;
use Workbench\Database\Factories\UserProfileFactory;
/**
* App\Models\UserProfile
*
******Fields*******
*
* @property string $_id
* @property string $user_id
* @p... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/Product.php | workbench/app/Models/Product.php | <?php
declare(strict_types=1);
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Builder;
use PDPhilip\Elasticsearch\Eloquent\Model;
use PDPhilip\Elasticsearch\Eloquent\SoftDeletes;
use Workbench\Database\Factories\ProductFactory;
/**
* App\M... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/Avatar.php | workbench/app/Models/Avatar.php | <?php
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Model;
use Workbench\Database\Factories\AvatarFactory;
/**
* App\Models\Avatar
*
******Fields*******
*
* @property string $_id
* @property string $url
* @property string $imageable_... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/ClientProfile.php | workbench/app/Models/ClientProfile.php | <?php
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Model as Eloquent;
use Workbench\Database\Factories\ClientProfileFactory;
/**
* App\Models\ClientProfile
*
******Fields*******
*
* @property string $_id
* @property string $client_id... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/ClientLog.php | workbench/app/Models/ClientLog.php | <?php
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Model as Eloquent;
use Workbench\Database\Factories\ClientLogFactory;
/**
* App\Models\ClientLog
*
******Fields*******
*
* @property string $_id
* @property string $client_id
* @pro... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/Company.php | workbench/app/Models/Company.php | <?php
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\HybridRelations;
use PDPhilip\Elasticsearch\Eloquent\Model;
use Workbench\Database\Factories\CompanyFactory;
/**
* App\Models\Company
*
******Fields*******
*
* @property string $_id
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/workbench/app/Models/Person.php | workbench/app/Models/Person.php | <?php
namespace Workbench\App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use PDPhilip\Elasticsearch\Eloquent\Model;
use Workbench\Database\Factories\PersonFactory;
/**
* App\Models\UserJob
*
******Fields*******
*
* @property string $_id
* @property string $name
* @property int $status
* @... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Connection.php | src/Connection.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch;
use Closure;
use Elastic\Elasticsearch\Client;
use Elastic\Elasticsearch\ClientBuilder;
use Elastic\Elasticsearch\Endpoints\Indices;
use Elastic\Elasticsearch\Exception\AuthenticationException;
use Elastic\Elasticsearch\Exception\ClientResponseExceptio... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/ElasticClient.php | src/ElasticClient.php | <?php
namespace PDPhilip\Elasticsearch;
use Elastic\Elasticsearch\Client;
use Elastic\Elasticsearch\Endpoints\Indices;
use Elastic\Elasticsearch\Exception\ClientResponseException;
use Elastic\Elasticsearch\Exception\MissingParameterException;
use Elastic\Elasticsearch\Exception\ServerResponseException;
use Elastic\El... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/ElasticServiceProvider.php | src/ElasticServiceProvider.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch;
use Illuminate\Support\ServiceProvider;
use PDPhilip\Elasticsearch\Eloquent\Model;
class ElasticServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*/
public function boot(): void
{
Model::se... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Solutions/DynamicIndexSolution.php | src/Solutions/DynamicIndexSolution.php | <?php
namespace PDPhilip\Elasticsearch\Solutions;
use Spatie\Ignition\Contracts\Solution;
class DynamicIndexSolution implements Solution
{
public function __construct(public $modelName) {}
public function getSolutionTitle(): string
{
return 'Use DynamicIndex trait in '.$this->modelName.' model';... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Builder.php | src/Schema/Builder.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema;
use Closure;
use Elastic\Elasticsearch\Endpoints\Indices;
use Elastic\Elasticsearch\Exception\ClientResponseException;
use Elastic\Elasticsearch\Exception\MissingParameterException;
use Elastic\Elasticsearch\Exception\ServerResponseException;
us... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/ManagesDefaultMigrations.php | src/Schema/ManagesDefaultMigrations.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema;
use PDPhilip\Elasticsearch\Exceptions\InvalidFieldTypeException;
use PDPhilip\Elasticsearch\Schema\Definitions\PropertyDefinition;
trait ManagesDefaultMigrations
{
/**
* {@inheritdoc}
*/
public function binary($name, $length =... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Schema.php | src/Schema/Schema.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema;
use Elastic\Elasticsearch\Endpoints\Indices;
use Illuminate\Support\Facades\Facade;
use PDPhilip\Elasticsearch\Exceptions\LogicException;
/**
* @method static Builder overridePrefix(string $value)
* @method static array getTables()
* @method... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/ManagesElasticMigrations.php | src/Schema/ManagesElasticMigrations.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema;
use PDPhilip\Elasticsearch\Schema\Definitions\PropertyDefinition;
trait ManagesElasticMigrations
{
/**
* Create a new date column on the table.
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/date.ht... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Blueprint.php | src/Schema/Blueprint.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema;
use Closure;
use Exception;
use Illuminate\Database\Schema\Blueprint as BlueprintBase;
use Illuminate\Support\Fluent;
use PDPhilip\Elasticsearch\Connection;
use PDPhilip\Elasticsearch\Laravel\Compatibility\Schema\BlueprintCompatibility;
use PDPh... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Definitions/FluentDefinitions.php | src/Schema/Definitions/FluentDefinitions.php | <?php
namespace PDPhilip\Elasticsearch\Schema\Definitions;
use Illuminate\Support\Fluent;
use Illuminate\Support\Str;
class FluentDefinitions extends Fluent
{
public function __call($method, $parameters)
{
$key = Str::Snake($method);
unset($method);
$this->{$key} = $parameters[0];
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Definitions/NormalizerPropertyDefinition.php | src/Schema/Definitions/NormalizerPropertyDefinition.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema\Definitions;
/**
* @method $this type(string|array $value)
* @method $this charFilter(array $value)
* @method $this filter(array $value)
*/
class NormalizerPropertyDefinition extends FluentDefinitions {}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Definitions/FilterPropertyDefinition.php | src/Schema/Definitions/FilterPropertyDefinition.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema\Definitions;
/**
* @method $this type(string|array $value)
* @method $this preserveOriginal(bool $value)
* @method $this ignoredScripts(array $value)
* @method $this outputUnigrams(bool $value)
* @method $this commonWords(array $value)
* @m... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Definitions/AnalyzerPropertyDefinition.php | src/Schema/Definitions/AnalyzerPropertyDefinition.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema\Definitions;
/**
* @method $this type(string|array $value)
* @method $this tokenizer(string|array $value)
* @method $this charFilter(array $value)
* @method $this filter(array $value)
* @method $this positionIncrementGap(int $value)
*/
clas... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Definitions/TokenizerPropertyDefinition.php | src/Schema/Definitions/TokenizerPropertyDefinition.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema\Definitions;
/**
* @method $this type(string|array $value)
* @method $this tokenizeOnChars(string|array $value)
* @method $this maxTokenLength(int $value)
* @method $this minGram(int $value)
* @method $this maxGram(int $value)
* @method $th... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Definitions/CharFilterPropertyDefinition.php | src/Schema/Definitions/CharFilterPropertyDefinition.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema\Definitions;
/**
* @method $this type(string|array $value)
* @method $this escapedTags(array $value)
* @method $this mappings(array $value)
* @method $this mappingsPath(string $value)
* @method $this pattern(string $value)
* @method $this r... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Definitions/PropertyDefinition.php | src/Schema/Definitions/PropertyDefinition.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema\Definitions;
use Closure;
use Illuminate\Support\Fluent;
/**
* Class ColumnDefinition
*
* @method PropertyDefinition boost(int $boost)
* @method PropertyDefinition dynamic(bool $value)
* @method PropertyDefinition fields(Closure $field)
* ... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Schema/Grammars/Grammar.php | src/Schema/Grammars/Grammar.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Schema\Grammars;
use Closure;
use Illuminate\Database\Schema\Blueprint as BaseBlueprint;
use Illuminate\Database\Schema\Grammars\Grammar as BaseGrammar;
use Illuminate\Support\Fluent;
use Illuminate\Support\Str;
use InvalidArgumentException;
use PDPhili... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/InvalidFieldTypeException.php | src/Exceptions/InvalidFieldTypeException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
class InvalidFieldTypeException extends LaravelElasticsearchException {}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/BuilderException.php | src/Exceptions/BuilderException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
class BuilderException extends LaravelElasticsearchException {}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/BulkInsertQueryException.php | src/Exceptions/BulkInsertQueryException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
use Elastic\Elasticsearch\Response\Elasticsearch;
class BulkInsertQueryException extends LaravelElasticsearchException
{
private int $errorLimit = 10;
/**
* BulkInsertQueryException constructor.
*/
public function __c... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/LaravelElasticsearchException.php | src/Exceptions/LaravelElasticsearchException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
use Exception;
class LaravelElasticsearchException extends Exception {}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/ParameterException.php | src/Exceptions/ParameterException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
use Exception;
class ParameterException extends Exception
{
private array $_details;
public function __construct($message, $code = 0, ?Exception $previous = null, $details = [])
{
parent::__construct($message, $code, $p... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/LogicException.php | src/Exceptions/LogicException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
class LogicException extends LaravelElasticsearchException {}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/QueryException.php | src/Exceptions/QueryException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
use Elastic\Elasticsearch\Exception\ClientResponseException;
use Elastic\Elasticsearch\Exception\MissingParameterException;
use Exception;
final class QueryException extends Exception
{
private int $errorLimit = 10;
protected array... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/RuntimeException.php | src/Exceptions/RuntimeException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
class RuntimeException extends LaravelElasticsearchException {}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/MissingOrderException.php | src/Exceptions/MissingOrderException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
use Exception;
class MissingOrderException extends LaravelElasticsearchException
{
// private array $_details;
public function __construct($message = 'Order parameter is required for pagination using search_after.', $code = 0, ?... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Exceptions/DynamicIndexException.php | src/Exceptions/DynamicIndexException.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Exceptions;
use PDPhilip\Elasticsearch\Eloquent\Model;
use PDPhilip\Elasticsearch\Solutions\DynamicIndexSolution;
use Spatie\Ignition\Contracts\ProvidesSolution;
use Spatie\Ignition\Contracts\Solution;
use Throwable;
class DynamicIndexException extends... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/BelongsToMany.php | src/Relations/BelongsToMany.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany as EloquentBelongsToMany;
use Illuminate\Support\Arr;
use... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/MorphMany.php | src/Relations/MorphMany.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Database\Eloquent\Relations\MorphMany as BaseMorphMany;
class MorphMany extends BaseMorphMany
{
use ManagesRefresh;
/**
* Get the name of the "where in" me... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/ManagesRefresh.php | src/Relations/ManagesRefresh.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
trait ManagesRefresh
{
public function withoutRefresh(): self
{
// TODO: Need to check if this is an inverse relationship etc. Need to attach the option in proper places.
// Add the `refresh` option to the related mo... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/BelongsTo.php | src/Relations/BelongsTo.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo as BaseBelongsTo;
class BelongsTo extends BaseBelongsTo
{
/**
* Get the key for comparing against... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/MorphTo.php | src/Relations/MorphTo.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Database\Eloquent\Relations\MorphTo as BaseMorphTo;
class MorphTo extends BaseMorphTo
{
/** {@inheritdoc} */
public function addConstraints()
{
if (s... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/HasOne.php | src/Relations/HasOne.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Database\Eloquent\Relations\HasOne as BaseHasOne;
class HasOne extends BaseHasOne
{
public function getHasCompareKey(): str... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/MorphOne.php | src/Relations/MorphOne.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Relations\MorphOne as BaseMorphOne;
class MorphOne extends BaseMorphOne {}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/HasMany.php | src/Relations/HasMany.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Database\Eloquent\Relations\HasMany as BaseHasMany;
class HasMany extends BaseHasMany
{
/**
* {@inheritdoc}
*/
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/MorphToMany.php | src/Relations/MorphToMany.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphToMany as EloquentMorphToMany;
use Illuminate\Support\Arr;
use PDPh... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/Traits/QueriesRelationships.php | src/Relations/Traits/QueriesRelationships.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations\Traits;
use Closure;
use Exception;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasOneOrMa... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/Traits/EloquentBuilder.php | src/Relations/Traits/EloquentBuilder.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations\Traits;
use Illuminate\Database\Eloquent\Builder;
class EloquentBuilder extends Builder
{
use QueriesRelationships;
}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Relations/Traits/InteractsWithPivotTable.php | src/Relations/Traits/InteractsWithPivotTable.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Relations\Traits;
use BackedEnum;
trait InteractsWithPivotTable
{
/** {@inheritdoc} */
protected function formatRecordsList(array $records)
{
return collect($records)->mapWithKeys(function ($attributes, $id) {
if (! is_a... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Utils/Sanitizer.php | src/Utils/Sanitizer.php | <?php
namespace PDPhilip\Elasticsearch\Utils;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
final class Sanitizer
{
public static function flattenFieldMapping(array $mapping)
{
$fields = [];
if (! empty($mapping['mappings'])) {
foreach ... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Utils/ArrayStore.php | src/Utils/ArrayStore.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Utils;
use Closure;
use PDPhilip\Elasticsearch\Contracts\ArrayStore as ArrayStoreContract;
class ArrayStore implements ArrayStoreContract
{
/**
* The repository's store
*
* @var array<string, mixed>
*/
protected array $data ... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Utils/TimeBasedUUIDGenerator.php | src/Utils/TimeBasedUUIDGenerator.php | <?php
namespace PDPhilip\Elasticsearch\Utils;
/**
* @internal
*
* @see https://github.com/elastic/elasticsearch/blob/6b7751d65f7b32be38020688b8867f406a0f608a/server/src/main/java/org/elasticsearch/common/TimeBasedUUIDGenerator.java
*
* - Same 15-byte ID structure (timestamp, sequence, MAC).
* - Atomic sequence ... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Utils/Helpers.php | src/Utils/Helpers.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Utils;
use Closure;
use Illuminate\Foundation\Application;
use Illuminate\Support\Str;
use PDPhilip\Elasticsearch\Exceptions\RuntimeException;
final class Helpers
{
public static function escape($value): string
{
$specialChars = ['"', '... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Utils/Timer.php | src/Utils/Timer.php | <?php
namespace PDPhilip\Elasticsearch\Utils;
trait Timer
{
private array $timer = [];
public function startTimer()
{
$this->timer['start'] = microtime(true);
return $this;
}
public function stopTimer()
{
$this->timer['end'] = microtime(true);
return $this;
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Traits/HasOptions.php | src/Traits/HasOptions.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Traits;
use PDPhilip\Elasticsearch\Contracts\ArrayStore as ArrayStoreContract;
use PDPhilip\Elasticsearch\Utils\ArrayStore;
trait HasOptions
{
/**
* Request Config
*/
protected ArrayStoreContract $options;
/**
* Access the c... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Traits/Makeable.php | src/Traits/Makeable.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Traits;
trait Makeable
{
/**
* Instantiate a new class with the arguments.
*/
public static function make(mixed ...$arguments): static
{
return new static(...$arguments);
}
}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Builder.php | src/Query/Builder.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Query;
use Carbon\Carbon;
use Closure;
use DateTimeInterface;
use Elastic\Elasticsearch\Response\Elasticsearch;
use Exception;
use Generator;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Database\Query\Builder as BaseBuilder;
use Illuminat... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | true |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Grammar.php | src/Query/Grammar.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Query;
use DateTime;
use Illuminate\Database\Query\Builder as BaseBuilder;
use Illuminate\Database\Query\Grammars\Grammar as BaseGrammar;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Str;
use InvalidArgumentE... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | true |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/ManagesOptions.php | src/Query/ManagesOptions.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Query;
use Exception;
use PDPhilip\Elasticsearch\Query\Options\ClauseOptions;
use PDPhilip\Elasticsearch\Query\Options\DateOptions;
use PDPhilip\Elasticsearch\Query\Options\FuzzyOptions;
use PDPhilip\Elasticsearch\Query\Options\MatchOptions;
use PDPhili... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Processor.php | src/Query/Processor.php | <?php
declare(strict_types=1);
namespace PDPhilip\Elasticsearch\Query;
use Elastic\Elasticsearch\Response\Elasticsearch;
use Illuminate\Database\Query\Builder as BaseBuilder;
use Illuminate\Database\Query\Processors\Processor as BaseProcessor;
use Illuminate\Support\Collection;
use PDPhilip\Elasticsearch\Data\MetaDT... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/SearchOptions.php | src/Query/Options/SearchOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
use InvalidArgumentException;
/**
* SearchOptions for Multi-Match Queries.
*
* Supports: best_fields, most_fields, cross_fields, phrase, phrase_prefix, bool_prefix
*
* @method $this type(string $value) options: "best_fields", "most_fields", "cross_fields", "... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/MatchOptions.php | src/Query/Options/MatchOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this analyzer(string $analyzer) MatchQuery
* @method $this autoGenerateSynonymsPhraseQuery(bool $value) MatchQuery
* @method $this boost(float|int $value) MatchQuery
* @method $this fuzziness(mixed $value) MatchQuery
* @method $this maxExpansio... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/TermsOptions.php | src/Query/Options/TermsOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this boost(float|int $value)
*/
class TermsOptions extends QueryOptions
{
public function allowedOptions(): array
{
return [
'boost',
];
}
}
| php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/NestedOptions.php | src/Query/Options/NestedOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this scoreMode(string $value)
* @method $this ignoreUnmapped(bool $value)
*/
class NestedOptions extends QueryOptions
{
public function allowedOptions(): array
{
return [
'score_mode',
'ignore_unmapped',
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/DateOptions.php | src/Query/Options/DateOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this boost(float|int $value)
* @method $this format(string $value)
* @method $this timeZone(string $value)
* @method $this relation(string $value) $value must be one of the following: INTERSECTS (default), CONTAINS, WITHIN
*/
class DateOptions ... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/QueryStringOptions.php | src/Query/Options/QueryStringOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* QueryStringOptions for Query String Queries.
*
*
* @method $this type(string $value) //Options: best_fields, most_fields, cross_fields, phrase, phrase_prefix, bool_prefix
* @method $this allowLeadingWildcard(bool $value)
* @method $this analyzeWildcard... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/QueryOptions.php | src/Query/Options/QueryOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
use Illuminate\Support\Fluent;
use Illuminate\Support\Str;
/**
* @mixin MatchOptions
* @mixin TermOptions
* @mixin FuzzyOptions
* @mixin SearchOptions
* @mixin DateOptions
* @mixin PhraseOptions
* @mixin PhrasePrefixOptions
* @mixin PrefixOptions
* @mixi... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/RegexOptions.php | src/Query/Options/RegexOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this flags(string $value)
* @method $this caseInsensitive(bool $value)
* @method $this maxDeterminizedStates(int $value)
* @method $this rewrite(string $value)
*/
class RegexOptions extends QueryOptions
{
public function allowedOptions(): a... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/TermOptions.php | src/Query/Options/TermOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this boost(float|int $value)
* @method $this caseInsensitive(bool $value)
*/
class TermOptions extends QueryOptions
{
public function allowedOptions(): array
{
return [
'boost',
'case_insensitive',
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/FuzzyOptions.php | src/Query/Options/FuzzyOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this fuzziness(string|int $value)
* @method $this maxExpansions(int $value)
* @method $this prefixLength(int $value)
* @method $this transpositions(bool $value)
* @method $this rewrite(string $value)
*/
class FuzzyOptions extends QueryOptions
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/PrefixOptions.php | src/Query/Options/PrefixOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this rewrite(string $value)
* @method $this caseInsensitive(bool $value)
*/
class PrefixOptions extends QueryOptions
{
public function allowedOptions(): array
{
return [
'rewrite',
'case_insensitive',
... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/PhraseOptions.php | src/Query/Options/PhraseOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this analyzer(string $analyzer)
* @method $this slop(int $value)
* @method $this zeroTermsQuery(string $value)
*/
class PhraseOptions extends QueryOptions
{
public function allowedOptions(): array
{
return [
'analyzer... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/PhrasePrefixOptions.php | src/Query/Options/PhrasePrefixOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* @method $this analyzer(string $operator)
* @method $this maxExpansions(int $value)
* @method $this slop(int $value)
* @method $this zeroTermsQuery(string $value)
*/
class PhrasePrefixOptions extends QueryOptions
{
public function allowedOptions(): a... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
pdphilip/laravel-elasticsearch | https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/SimpleQueryStringOptions.php | src/Query/Options/SimpleQueryStringOptions.php | <?php
namespace PDPhilip\Elasticsearch\Query\Options;
/**
* SimpleQueryStringOptions for Simple Query String queries.
*
* Mirrors Elasticsearch simple_query_string parameters:
* - Safer parsing (ignores invalid syntax)
* - Supports flags, boosting, default operator, wildcard analysis, etc.
*
* @method $this fl... | php | MIT | fa763d05633d714afb22f6ca769e7b9aab2c1f5c | 2026-01-05T04:30:19.564556Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.