file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
test/ShapeShift.Taml.Tests/Usings.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
global using PolyType;
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
test/ShapeShift.Tests/SerializerBaseTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using PolyType;
namespace ShapeShift.Tests;
public partial class SerializerBaseTests : TestBase
{
[Test, Skip("empty test")]
public void EmptyTest()
{
}
}
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
test/ShapeShift.Tests/ShapeShiftNamingPolicyTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace ShapeShift.Tests;
/// <summary>
/// Verifies property name transformation behaviors of <see cref="ShapeShiftNamingPolicy"/>.
/// </summary>
/// <remarks... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
test/ShapeShift.Tests/TestBase.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace ShapeShift.Tests;
public abstract class TestBase
{
}
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
test/ShapeShift.Tests/Usings.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
global using PolyType;
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
test/ShapeShift.Yaml.Tests/Usings.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
global using PolyType;
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
test/ShapeShift.Yaml.Tests/YamlSerializerTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Globalization;
using ShapeShift.Tests;
namespace ShapeShift.Yaml.Tests;
public partial class YamlSerializerTests : TestBase
{
private string? lastSe... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Build-Docfx.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Builds and optionally hosts the docfx site.
.PARAMETER Serve
A switch to serve the docfx site after building.
.PARAMETER WarningsAsErrors
A switch to treat warnings as errors during the build.
.PARAMETER DisableGitFeatures
A switch to disable Git features during the bui... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Check-DotNetRuntime.ps1 | PowerShell | <#
.SYNOPSIS
Checks whether a given .NET Core runtime is installed.
#>
[CmdletBinding()]
Param (
[Parameter()]
[ValidateSet('Microsoft.AspNetCore.App','Microsoft.NETCore.App')]
[string]$Runtime='Microsoft.NETCore.App',
[Parameter(Mandatory=$true)]
[Version]$Version
)
$dotnet = Get-Command dotne... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Check-DotNetSdk.ps1 | PowerShell | <#
.SYNOPSIS
Checks whether the .NET Core SDK required by this repo is installed.
#>
[CmdletBinding()]
Param (
)
$dotnet = Get-Command dotnet -ErrorAction SilentlyContinue
if (!$dotnet) {
# Nothing is installed.
Write-Output $false
exit 1
}
# We need to set the current directory so dotnet considers th... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-3rdPartySymbolFiles.ps1 | PowerShell | Function Get-FileFromWeb([Uri]$Uri, $OutFile) {
$OutDir = Split-Path $OutFile
if (!(Test-Path $OutFile)) {
Write-Verbose "Downloading $Uri..."
if (!(Test-Path $OutDir)) { New-Item -ItemType Directory -Path $OutDir | Out-Null }
try {
(New-Object System.Net.WebClient).DownloadF... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-ArtifactsStagingDirectory.ps1 | PowerShell | Param(
[switch]$CleanIfLocal
)
if ($env:BUILD_ARTIFACTSTAGINGDIRECTORY) {
$ArtifactStagingFolder = $env:BUILD_ARTIFACTSTAGINGDIRECTORY
} elseif ($env:RUNNER_TEMP) {
$ArtifactStagingFolder = Join-Path $env:RUNNER_TEMP _artifacts
} else {
$ArtifactStagingFolder = [System.IO.Path]::GetFullPath("$PSScriptRo... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-CodeCovTool.ps1 | PowerShell | <#
.SYNOPSIS
Downloads the CodeCov.io uploader tool and returns the path to it.
.PARAMETER AllowSkipVerify
Allows skipping signature verification of the downloaded tool if gpg is not installed.
#>
[CmdletBinding()]
Param(
[switch]$AllowSkipVerify
)
if ($IsMacOS) {
$codeCovUrl = "https://uploader.codeco... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-LibTemplateBasis.ps1 | PowerShell | <#
.SYNOPSIS
Returns the name of the well-known branch in the Library.Template repository upon which HEAD is based.
#>
[CmdletBinding(SupportsShouldProcess = $true)]
Param(
[switch]$ErrorIfNotRelated
)
# This list should be sorted in order of decreasing specificity.
$branchMarkers = @(
@{ commit = 'fd0a7b2... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-NuGetTool.ps1 | PowerShell | <#
.SYNOPSIS
Downloads the NuGet.exe tool and returns the path to it.
.PARAMETER NuGetVersion
The version of the NuGet tool to acquire.
#>
Param(
[Parameter()]
[string]$NuGetVersion='6.14.0'
)
$toolsPath = & "$PSScriptRoot\Get-TempToolsPath.ps1"
$binaryToolsPath = Join-Path $toolsPath $NuGetVersion
if ... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-ProcDump.ps1 | PowerShell | <#
.SYNOPSIS
Downloads 32-bit and 64-bit procdump executables and returns the path to where they were installed.
#>
$version = '0.0.1'
$baseDir = "$PSScriptRoot\..\obj\tools"
$procDumpToolPath = "$baseDir\procdump.$version\bin"
if (-not (Test-Path $procDumpToolPath)) {
if (-not (Test-Path $baseDir)) { New-Item -Typ... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-SymbolFiles.ps1 | PowerShell | <#
.SYNOPSIS
Collect the list of PDBs built in this repo.
.PARAMETER Path
The directory to recursively search for PDBs.
.PARAMETER Tests
A switch indicating to find PDBs only for test binaries instead of only for shipping shipping binaries.
#>
[CmdletBinding()]
param (
[parameter(Mandatory=$true)]
[... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-TempToolsPath.ps1 | PowerShell | if ($env:AGENT_TEMPDIRECTORY) {
$path = "$env:AGENT_TEMPDIRECTORY\$env:BUILD_BUILDID"
} elseif ($env:localappdata) {
$path = "$env:localappdata\gitrepos\tools"
} else {
$path = "$PSScriptRoot\..\obj\tools"
}
if (!(Test-Path $path)) {
New-Item -ItemType Directory -Path $Path | Out-Null
}
(Resolve-Path ... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Install-DotNetSdk.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Installs the .NET SDK specified in the global.json file at the root of this repository,
along with supporting .NET runtimes used for testing.
.DESCRIPTION
This MAY not require elevation, as the SDK and runtimes are installed locally to this repo location,
unless `-Insta... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Install-NuGetCredProvider.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Downloads and installs the Microsoft Artifacts Credential Provider
from https://github.com/microsoft/artifacts-credprovider
to assist in authenticating to Azure Artifact feeds in interactive development
or unattended build agents.
.PARAMETER Force
Forces install of ... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Install-NuGetPackage.ps1 | PowerShell | <#
.SYNOPSIS
Installs a NuGet package.
.PARAMETER PackageID
The Package ID to install.
.PARAMETER Version
The version of the package to install. If unspecified, the latest stable release is installed.
.PARAMETER Source
The package source feed to find the package to install from.
.PARAMETER Prerelease
... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/MergeFrom-Template.ps1 | PowerShell |
<#
.SYNOPSIS
Merges the latest changes from Library.Template into HEAD of this repo.
.PARAMETER LocalBranch
The name of the local branch to create at HEAD and use to merge into from Library.Template.
#>
[CmdletBinding(SupportsShouldProcess = $true)]
Param(
[string]$LocalBranch = "dev/$($env:USERNAME)/libte... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/Set-EnvVars.ps1 | PowerShell | <#
.SYNOPSIS
Set environment variables in the environment.
Azure Pipeline and CMD environments are considered.
.PARAMETER Variables
A hashtable of variables to be set.
.PARAMETER PrependPath
A set of paths to prepend to the PATH environment variable.
.OUTPUTS
A boolean indicating whether the environ... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/Variables.ps1 | PowerShell | # This artifact captures all variables defined in the ..\variables folder.
# It "snaps" the values of these variables where we can compute them during the build,
# and otherwise captures the scripts to run later during an Azure Pipelines environment release.
$RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot/../... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/_all.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
This script returns all the artifacts that should be collected after a build.
Each powershell artifact is expressed as an object with these properties:
Source - the full path to the source file
ArtifactName - the name of the artifact to upload to
C... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/_stage_all.ps1 | PowerShell | <#
.SYNOPSIS
This script links all the artifacts described by _all.ps1
into a staging directory, reading for uploading to a cloud build artifact store.
It returns a sequence of objects with Name and Path properties.
#>
[CmdletBinding()]
param (
[string]$ArtifactNameSuffix,
[switch]$AvoidSymbolicLin... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/build_logs.ps1 | PowerShell | $ArtifactStagingFolder = & "$PSScriptRoot/../Get-ArtifactsStagingDirectory.ps1"
if (!(Test-Path $ArtifactStagingFolder/build_logs)) { return }
@{
"$ArtifactStagingFolder/build_logs" = (Get-ChildItem -Recurse "$ArtifactStagingFolder/build_logs")
}
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/coverageResults.ps1 | PowerShell | $RepoRoot = Resolve-Path "$PSScriptRoot\..\.."
$coverageFilesUnderRoot = @(Get-ChildItem "$RepoRoot/*.cobertura.xml" -Recurse | Where-Object {$_.FullName -notlike "*/In/*" -and $_.FullName -notlike "*\In\*" })
# Under MTP, coverage files are written directly to the artifacts output directory,
# so we need to look th... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/deployables.ps1 | PowerShell | $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..")
$BuildConfiguration = $env:BUILDCONFIGURATION
if (!$BuildConfiguration) {
$BuildConfiguration = 'Debug'
}
$PackagesRoot = "$RepoRoot/bin/Packages/$BuildConfiguration"
if (!(Test-Path $PackagesRoot)) { return }
@{
"$PackagesRoot" = (Get-ChildIt... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/projectAssetsJson.ps1 | PowerShell | $ObjRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..\obj")
if (!(Test-Path $ObjRoot)) { return }
@{
"$ObjRoot" = (
(Get-ChildItem "$ObjRoot\project.assets.json" -Recurse)
);
}
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/symbols.ps1 | PowerShell | $BinPath = [System.IO.Path]::GetFullPath("$PSScriptRoot/../../bin")
$3rdPartyPath = [System.IO.Path]::GetFullPath("$PSScriptRoot/../../obj/SymbolsPackages")
if (!(Test-Path $BinPath)) { return }
$symbolfiles = & "$PSScriptRoot/../Get-SymbolFiles.ps1" -Path $BinPath | Get-Unique
$3rdPartyFiles = & "$PSScriptRoot/../Get-... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/testResults.ps1 | PowerShell | [CmdletBinding()]
Param(
)
$result = @{}
$RepoRoot = Resolve-Path "$PSScriptRoot\..\.."
$testRoot = Join-Path $RepoRoot test
$result[$testRoot] = (Get-ChildItem "$testRoot\TestResults" -Recurse -Directory | Get-ChildItem -Recurse -File)
$artifactStaging = & "$PSScriptRoot/../Get-ArtifactsStagingDirectory.ps1"
$testl... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/test_symbols.ps1 | PowerShell | $BinPath = [System.IO.Path]::GetFullPath("$PSScriptRoot/../../bin")
if (!(Test-Path $BinPath)) { return }
$symbolfiles = & "$PSScriptRoot/../Get-SymbolFiles.ps1" -Path $BinPath -Tests | Get-Unique
@{
"$BinPath" = $SymbolFiles;
}
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/dotnet-test-cloud.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Runs tests as they are run in cloud test runs.
.PARAMETER Configuration
The configuration within which to run tests.
.PARAMETER IncludeNativeAOT
Whether to run the NativeAOT-compiled tests too.
.PARAMETER Agent
The name of the agent. This is used in preparing test run t... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/publish-CodeCov.ps1 | PowerShell | <#
.SYNOPSIS
Uploads code coverage to codecov.io
.PARAMETER CodeCovToken
Code coverage token to use
.PARAMETER PathToCodeCoverage
Path to root of code coverage files
.PARAMETER Name
Name to upload with codecoverge
.PARAMETER Flags
Flags to upload with codecoverge
#>
[CmdletBinding()]
Param (
[Pa... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/variables/DotNetSdkVersion.ps1 | PowerShell | $globalJson = Get-Content -LiteralPath "$PSScriptRoot\..\..\global.json" | ConvertFrom-Json
$globalJson.sdk.version
| AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/variables/_all.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
This script returns a hashtable of build variables that should be set
at the start of a build or release definition's execution.
#>
[CmdletBinding(SupportsShouldProcess = $true)]
param (
)
$vars = @{}
Get-ChildItem "$PSScriptRoot\*.ps1" -Exclude "_*" |% {
Write-Host "Com... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
tools/variables/_define.ps1 | PowerShell | <#
.SYNOPSIS
This script translates the variables returned by the _all.ps1 script
into commands that instruct Azure Pipelines to actually set those variables for other pipeline tasks to consume.
The build or release definition may have set these variables to override
what the build would do. So only se... | AArnott/ShapeShift | 2 | One serializer for all formats | C# | AArnott | Andrew Arnott | Microsoft |
config/Migrations/20150813000000_create_social_profiles.php | PHP | <?php
use Phinx\Migration\AbstractMigration;
class CreateSocialProfiles extends AbstractMigration
{
public function change()
{
$table = $this->table('social_profiles');
$table
->addColumn('user_id', 'integer', [
'default' => null,
'limit' => 11,
... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
config/bootstrap.php | PHP | <?php
/**
* HybridAuth Plugin bootstrap
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
use Cake\Core\Configure;
if (file_exists(CONFIG . 'hybridauth.php')) {
Configure::load('hybridauth');
} else {
$config = [
'providers' => [
... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
config/hybridauth.php | PHP | <?php
/**
* HybridAuth Plugin example config
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
use Cake\Core\Configure;
return [
'HybridAuth' => [
'providers' => [
'OpenID' => [
'enabled' => true
],
... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
config/routes.php | PHP | <?php
/**
* HybridAuth Plugin routes
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
namespace ADmad\HybridAuth\Config;
use Cake\Routing\Router;
Router::plugin('ADmad/HybridAuth', ['path' => '/hybrid-auth'], function ($routes) {
$routes->connect... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
src/Auth/HybridAuthAuthenticate.php | PHP | <?php
namespace ADmad\HybridAuth\Auth;
use Cake\Auth\BaseAuthenticate;
use Cake\Controller\ComponentRegistry;
use Cake\Core\Configure;
use Cake\Datasource\EntityInterface;
use Cake\Event\Event;
use Cake\Event\EventDispatcherTrait;
use Cake\Network\Request;
use Cake\Network\Response;
use Cake\ORM\TableRegistry;
use Cak... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
src/Controller/HybridAuthController.php | PHP | <?php
namespace ADmad\HybridAuth\Controller;
use App\Controller\AppController;
use Cake\Event\Event;
/**
* HybridAuth Controller
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
class HybridAuthController extends AppController
{
/**
* Allow ... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
src/Model/Entity/SocialProfile.php | PHP | <?php
namespace ADmad\HybridAuth\Model\Entity;
use Cake\ORM\Entity;
/**
* HybridAuth Authenticate
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*
* @property int $id
* @property int $user_id
* @property string $provider
* @property string $identif... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
src/Model/Table/SocialProfilesTable.php | PHP | <?php
namespace ADmad\HybridAuth\Model\Table;
use Cake\ORM\Table;
/**
* HybridAuth Authenticate
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*
* @property \App\Model\Table\UsersTable|\Cake\ORM\Association\BelongsTo $Users
* @method \ADmad\HybridAut... | ADmad/CakePHP-HybridAuth | 78 | CakePHP plugin for HybridAuth | PHP | ADmad | ||
src/Datasource/Entity.php | PHP | <?php
declare(strict_types=1);
/**
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) ADmad
*/
namespace ADmad\Entity\Datasource;
use Cake\Core\Exception\CakeExc... | ADmad/cakephp-entity | 0 | PHP | ADmad | |||
src/EntityPlugin.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Entity;
use Cake\Core\BasePlugin;
/**
* Plugin for ADmad\Entity
*/
class EntityPlugin extends BasePlugin
{
/**
* Do bootstrapping or not
*
* @var bool
*/
protected bool $bootstrapEnabled = false;
/**
* Console middleware
*
... | ADmad/cakephp-entity | 0 | PHP | ADmad | |||
src/Exception/ResponseException.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Glide\Exception;
use Cake\Http\Exception\NotFoundException;
class ResponseException extends NotFoundException
{
}
| ADmad/cakephp-glide | 34 | CakePHP plugin for using Glide image manipulation library | PHP | ADmad | ||
src/Exception/SignatureException.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Glide\Exception;
use Cake\Http\Exception\ForbiddenException;
class SignatureException extends ForbiddenException
{
}
| ADmad/cakephp-glide | 34 | CakePHP plugin for using Glide image manipulation library | PHP | ADmad | ||
src/GlidePlugin.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Glide;
use Cake\Core\BasePlugin;
class GlidePlugin extends BasePlugin
{
/**
* Do bootstrapping or not
*
* @var bool
*/
protected bool $bootstrapEnabled = false;
/**
* Console middleware
*
* @var bool
*/
protected ... | ADmad/cakephp-glide | 34 | CakePHP plugin for using Glide image manipulation library | PHP | ADmad | ||
src/Middleware/GlideMiddleware.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Glide\Middleware;
use ADmad\Glide\Exception\ResponseException;
use ADmad\Glide\Exception\SignatureException;
use ADmad\Glide\Response\PsrResponseFactory;
use Cake\Core\Configure;
use Cake\Core\InstanceConfigTrait;
use Cake\Event\EventDispatcherInterface;
use Cake\Event\E... | ADmad/cakephp-glide | 34 | CakePHP plugin for using Glide image manipulation library | PHP | ADmad | ||
src/Response/PsrResponseFactory.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Glide\Response;
use ADmad\Glide\Exception\ResponseException;
use Cake\Http\Response;
use Laminas\Diactoros\Stream;
use League\Flysystem\FilesystemException;
use League\Flysystem\FilesystemOperator;
use League\Glide\Responses\ResponseFactoryInterface;
use Psr\Http\Message... | ADmad/cakephp-glide | 34 | CakePHP plugin for using Glide image manipulation library | PHP | ADmad | ||
src/View/Helper/GlideHelper.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Glide\View\Helper;
use Cake\Utility\Security;
use Cake\View\Helper;
use League\Glide\Urls\UrlBuilder;
use League\Glide\Urls\UrlBuilderFactory;
/**
* GlideHelper
*
* @property \Cake\View\Helper\HtmlHelper $Html
*/
class GlideHelper extends Helper
{
/**
* Hel... | ADmad/cakephp-glide | 34 | CakePHP plugin for using Glide image manipulation library | PHP | ADmad | ||
config/schema/i18n_messages.sql | SQL | CREATE TABLE `i18n_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`domain` varchar(100) NOT NULL,
`locale` varchar(5) NOT NULL,
`singular` varchar(255) NOT NULL,
`plural` varchar(255) DEFAULT NULL,
`context` varchar(50) DEFAULT NULL,
`value_0` varchar(255) DEFAULT NULL,
`value_1` varchar(255) DEFAULT... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Command/I18nCommand.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\Command;
use Cake\Command\Command;
use Cake\Console\Arguments;
use Cake\Console\ConsoleIo;
use Cake\Console\ConsoleOptionParser;
/**
* Command for interactive I18N management.
*/
class I18nCommand extends Command
{
/**
* The name of this command.
*
... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Command/I18nExtractCommand.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\Command;
use Cake\Command\I18nExtractCommand as CakeI18nExtractCommand;
use Cake\Console\Arguments;
use Cake\Console\ConsoleIo;
use Cake\Console\ConsoleOptionParser;
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Utility\Hash;
use Cake\Ut... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Command/I18nInitCommand.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\Command;
use Cake\Command\I18nInitCommand as CakeI18nInitCommand;
use Cake\Console\Arguments;
use Cake\Console\ConsoleIo;
use Cake\Console\ConsoleOptionParser;
/**
* Command for interactive I18N management.
*/
class I18nInitCommand extends CakeI18nInitCommand
{
... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Command/I18nModelTrait.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\Command;
use Cake\Console\Arguments;
use Cake\ORM\Table;
/**
* Trait to get model
*/
trait I18nModelTrait
{
/**
* Model instance for saving translation messages.
*
* @var \Cake\ORM\Table
*/
protected Table $_model;
/**
* Get ... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/I18n/DbMessagesLoader.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\I18n;
use Cake\Datasource\RepositoryInterface;
use Cake\Datasource\ResultSetInterface;
use Cake\I18n\Package;
use Cake\ORM\Locator\LocatorAwareTrait;
use Cake\ORM\Table;
/**
* DbMessages loader.
*
* Returns translation messages stored in database.
*/
class DbMe... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/I18nPlugin.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n;
use ADmad\I18n\Command\I18nCommand;
use ADmad\I18n\Command\I18nExtractCommand;
use ADmad\I18n\Command\I18nInitCommand;
use Cake\Console\CommandCollection;
use Cake\Core\BasePlugin;
class I18nPlugin extends BasePlugin
{
/**
* Do bootstrapping or not
*... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Middleware/I18nMiddleware.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\Middleware;
use Cake\Core\Configure;
use Cake\Core\InstanceConfigTrait;
use Cake\Http\ServerRequest;
use Cake\I18n\I18n;
use Cake\Utility\Hash;
use Closure;
use Laminas\Diactoros\Response\RedirectResponse;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Routing/Route/I18nRoute.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\Routing\Route;
use Cake\Core\Configure;
use Cake\Routing\Route\DashedRoute;
use Cake\Utility\Hash;
class I18nRoute extends DashedRoute
{
/**
* List of available languages.
*
* @var array|null
*/
protected static ?array $_availableLangs =... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Validation/Validator.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\Validation;
use Cake\Validation\ValidationSet;
use Cake\Validation\Validator as CakeValidator;
use function Cake\I18n\__d;
class Validator extends CakeValidator
{
/**
* I18n domain for validation messages.
*
* @var string
*/
protected st... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/View/Widget/TimezoneWidget.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\I18n\View\Widget;
use Cake\View\Form\ContextInterface;
use Cake\View\Widget\SelectBoxWidget;
use DateTimeZone;
/**
* Input widget class for generating a selectbox of timezone.
*/
class TimezoneWidget extends SelectBoxWidget
{
/**
* {@inheritDoc}
*
*... | ADmad/cakephp-i18n | 44 | A CakePHP plugin with I18n related tools. | PHP | ADmad | ||
src/Model/Behavior/SequenceBehavior.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Sequence\Model\Behavior;
use ArrayObject;
use Cake\Database\Expression\IdentifierExpression;
use Cake\Database\Expression\QueryExpression;
use Cake\Datasource\EntityInterface;
use Cake\Event\EventInterface;
use Cake\ORM\Behavior;
use Cake\ORM\Query\SelectQuery;
/**
* S... | ADmad/cakephp-sequence | 45 | CakePHP plugin for maintaining a contiguous sequence of records | PHP | ADmad | ||
src/SequencePlugin.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Sequence;
use Cake\Core\BasePlugin;
class SequencePlugin extends BasePlugin
{
/**
* Do bootstrapping or not
*
* @var bool
*/
protected bool $bootstrapEnabled = false;
/**
* Console middleware
*
* @var bool
*/
prot... | ADmad/cakephp-sequence | 45 | CakePHP plugin for maintaining a contiguous sequence of records | PHP | ADmad | ||
config/Migrations/20190914000000_CreateSocialProfiles.php | PHP | <?php
use Migrations\BaseMigration;
class CreateSocialProfiles extends BaseMigration
{
public function change()
{
$table = $this->table('social_profiles');
$table
->addColumn('user_id', 'integer', [
'default' => null,
'limit' => 11,
'n... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
src/Database/Type/SerializedType.php | PHP | <?php
declare(strict_types=1);
/**
* ADmad\SocialAuth plugin.
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
namespace ADmad\SocialAuth\Database\Type;
use Cake\Database\Driver;
use Cake\Database\Type\BaseType;
use PDO;
class SerializedType extends... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
src/Middleware/SocialAuthMiddleware.php | PHP | <?php
declare(strict_types=1);
/**
* ADmad\SocialAuth plugin.
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
namespace ADmad\SocialAuth\Middleware;
use Cake\Core\Configure;
use Cake\Core\InstanceConfigTrait;
use Cake\Datasource\EntityInterface;
use... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
src/Model/Entity/SocialProfile.php | PHP | <?php
declare(strict_types=1);
/**
* ADmad\SocialAuth plugin.
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
namespace ADmad\SocialAuth\Model\Entity;
use Cake\ORM\Entity;
/**
* @property int $id
* @property int|null $user_id
* @property string ... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
src/Model/Table/SocialProfilesTable.php | PHP | <?php
declare(strict_types=1);
/**
* ADmad\SocialAuth plugin.
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
namespace ADmad\SocialAuth\Model\Table;
use Cake\ORM\Table;
/**
* @method \ADmad\SocialAuth\Model\Entity\SocialProfile newEmptyEntity()
... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
src/SocialAuthPlugin.php | PHP | <?php
declare(strict_types=1);
/**
* ADmad\SocialAuth plugin.
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
namespace ADmad\SocialAuth;
use ADmad\SocialAuth\Database\Type\SerializedType;
use Cake\Core\BasePlugin;
use Cake\Core\PluginApplicationInt... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
tests/TestCase/Middleware/SocialAuthMiddlewareTest.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\SocialAuth\Test\TestCase\Middleware;
use ADmad\SocialAuth\Middleware\SocialAuthMiddleware;
use ADmad\SocialAuth\Model\Entity\SocialProfile;
use ADmad\SocialAuth\Model\Table\SocialProfilesTable;
use Cake\Event\EventInterface;
use Cake\Event\EventManager;
use Cake\Http\Exc... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
tests/TestCase/Model/Table/SocialProfilesTableTest.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\SocialAuth\Test\TestCase\Model\Table;
use ADmad\SocialAuth\Model\Table\SocialProfilesTable;
use Cake\TestSuite\TestCase;
class SocialProfilesTableTest extends TestCase
{
protected SocialProfilesTable $socialProfilesTable;
/**
* @return void
*/
pub... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
tests/bootstrap.php | PHP | <?php
declare(strict_types=1);
/**
* Test suite bootstrap.
*
* This function is used to find the location of CakePHP whether CakePHP
* has been installed as a dependency of the plugin, or the plugin is itself
* installed as a dependency of an application.
*/
$findRoot = function ($root) {
do {
$lastR... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
tests/schema.php | PHP | <?php
declare(strict_types=1);
return [
[
'table' => 'social_profiles',
'columns' => [
'id' => ['type' => 'integer', 'length' => null, 'unsigned' => false, 'null' => false, 'default' => null, 'autoIncrement' => true],
'user_id' => ['type' => 'integer', 'length' => null, 'uns... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
tests/test_app/src/Http/TestRequestHandler.php | PHP | <?php
declare(strict_types=1);
namespace TestApp\Http;
use Cake\Http\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
class TestRequestHandler implements RequestHandlerInterface
{
public $callable;
public bool $called... | ADmad/cakephp-social-auth | 51 | A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter. | PHP | ADmad | ||
src/TreePlugin.php | PHP | <?php
declare(strict_types=1);
namespace ADmad\Tree;
use Cake\Core\BasePlugin;
class TreePlugin extends BasePlugin
{
/**
* Do bootstrapping or not
*
* @var bool
*/
protected bool $bootstrapEnabled = false;
/**
* Console middleware
*
* @var bool
*/
protected bo... | ADmad/cakephp-tree | 11 | CakPHP plugin for working with tree structures | PHP | ADmad | ||
src/View/Helper/TreeHelper.php | PHP | <?php
declare(strict_types=1);
/**
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) 2008, Andy Dawson
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace ADmad\Tree\View\Helper;
use Cake\Core\... | ADmad/cakephp-tree | 11 | CakPHP plugin for working with tree structures | PHP | ADmad | ||
build.rs | Rust | //! Build script for PHPantomLSP.
//!
//! Parses `stubs/jetbrains/phpstorm-stubs/PhpStormStubsMap.php` and generates
//! a Rust source file (`stub_map_generated.rs`) that:
//!
//! 1. Embeds every referenced PHP stub file via `include_str!`.
//! 2. Provides static arrays mapping class names and function names to
//!... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
example.php | PHP | <?php
/**
* PHPantomLSP — Feature Showcase
*
* A single-file demo of every completion and go-to-definition feature.
* Open this in your editor to try each one interactively.
*/
namespace Demo;
use Exception;
use Stringable;
use Demo\UserProfile as Profile;
// ─── Interfaces ────────────────────────────────────... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/completion/builder.rs | Rust | /// Completion item building.
///
/// This module contains the logic for constructing LSP `CompletionItem`s from
/// resolved `ClassInfo`, filtered by the `AccessKind` (arrow, double-colon,
/// or parent double-colon), as well as class name completion when no member
/// access operator is present.
use std::collections:... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/completion/mod.rs | Rust | /// Completion-related modules.
///
/// This sub-module groups all completion logic:
/// - **target**: Extracting the completion target (access operator and subject)
/// - **resolver**: Resolving the subject to a concrete class type
/// - **builder**: Building LSP `CompletionItem`s from resolved class info
pub mod buil... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/completion/resolver.rs | Rust | /// Type resolution for completion subjects.
///
/// This module contains the logic for resolving a completion subject (e.g.
/// `$this`, `self`, `static`, `$var`, `$this->prop`, `ClassName`) to a concrete
/// `ClassInfo` so that the correct completion items can be offered.
///
/// Resolution strategies include:
/// ... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/completion/target.rs | Rust | /// Completion target extraction.
///
/// This module contains the logic for detecting the access operator (`->` or
/// `::`) before the cursor and extracting the textual subject to its left
/// (e.g. `$this`, `self`, `$var`, `$this->prop`, `ClassName`).
use tower_lsp::lsp_types::*;
use crate::Backend;
use crate::type... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/composer.rs | Rust | use std::collections::HashMap;
use std::fs;
/// Composer autoload support.
///
/// This module handles parsing `composer.json` to extract PSR-4 autoload
/// mappings, and resolving fully-qualified PHP class names to file paths
/// on disk using those mappings.
///
/// It also parses `autoload_files.php` (generated by C... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/definition/mod.rs | Rust | /// Goto definition support.
///
/// This module contains the logic for resolving "go to definition" requests,
/// allowing users to jump from a symbol reference to its definition in the
/// source code.
///
/// Supported symbols:
/// - **Class-like types**: class, interface, trait, enum references
/// - **Methods*... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/definition/resolve.rs | Rust | /// Goto-definition resolution.
///
/// Given a cursor position in a PHP file this module:
/// 1. Extracts the symbol (class / interface / trait / enum name) under the cursor.
/// 2. Resolves it to a fully-qualified name using the file's `use` map and namespace.
/// 3. Locates the file on disk via PSR-4 mappings.... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/docblock.rs | Rust | //! PHPDoc block parsing.
//!
//! This module extracts type information from PHPDoc comments (`/** ... */`),
//! specifically `@return`, `@var`, `@property`, and `@method` tags. It also
//! provides a compatibility check so that a docblock type only overrides a
//! native type hint when the native hint is broad enough... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/lib.rs | Rust | //! PHPantomLSP — a lightweight PHP language server.
//!
//! This crate is organised into the following modules:
//!
//! - [`types`]: Data structures for extracted PHP information (classes, methods, functions, etc.)
//! - [`parser`]: PHP parsing and AST extraction using mago_syntax
//! - [`completion`]: Completion logi... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/main.rs | Rust | use phpantom_lsp::Backend;
use tower_lsp::{LspService, Server};
#[tokio::main]
async fn main() {
env_logger::init();
let stdin = tokio::io::stdin();
let stdout = tokio::io::stdout();
let (service, socket) = LspService::new(Backend::new);
Server::new(stdin, stdout, socket).serve(service).await;
}... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/parser.rs | Rust | /// PHP parsing and AST extraction.
///
/// This module contains the logic for parsing PHP source text using the
/// mago_syntax parser and extracting class information (methods, properties,
/// constants), `use` statement mappings, and namespace declarations from
/// the resulting AST.
use std::collections::HashMap;
... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/server.rs | Rust | /// LSP server trait implementation.
///
/// This module contains the `impl LanguageServer for Backend` block,
/// which handles all LSP protocol messages (initialize, didOpen, didChange,
/// didClose, completion, etc.).
use std::collections::{HashMap, HashSet};
use std::path::PathBuf;
use tower_lsp::LanguageServer;
u... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/stubs.rs | Rust | /// Embedded PHP stub support (powered by JetBrains phpstorm-stubs).
///
/// This module provides access to PHP standard library stubs (interfaces,
/// classes, and functions) that are embedded directly into the binary at
/// compile time. The stubs come from the
/// [phpstorm-stubs](https://github.com/JetBrains/phpst... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/types.rs | Rust | //! Data types used throughout the PHPantomLSP server.
//!
//! This module contains all the "model" structs and enums that represent
//! extracted PHP information (classes, methods, properties, constants,
//! standalone functions) as well as completion-related types
//! (AccessKind, CompletionTarget) and PHPStan condit... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
src/util.rs | Rust | /// Utility functions for the PHPantomLSP server.
///
/// This module contains helper methods for position/offset conversion,
/// class lookup by offset, logging, cross-file class resolution, and
/// shared text-processing helpers used by multiple modules.
use tower_lsp::lsp_types::*;
use crate::Backend;
use crate::co... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
test_lsp.sh | Shell | #!/bin/bash
# Test script for PHPantomLSP
# Sends LSP JSON-RPC messages over stdin and prints responses from stdout
cargo build 2>/dev/null
PROJECT_DIR="$PWD"
FILE_URI="file://${PROJECT_DIR}/example.php"
# Function to send an LSP message with correct Content-Length
send() {
local body="$1"
local len=${#body... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/common/mod.rs | Rust | #![allow(dead_code)]
use phpantom_lsp::Backend;
use std::collections::HashMap;
use std::fs;
pub fn create_test_backend() -> Backend {
Backend::new_test()
}
// Minimal PHP stubs for UnitEnum and BackedEnum so that tests exercising
// the "embedded stub" code-path work without `composer install`.
static UNIT_ENUM_... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_access_kind.rs | Rust | mod common;
use common::create_test_backend;
use phpantom_lsp::{AccessKind, Backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Access Kind Detection ──────────────────────────────────────────────────
#[tokio::test]
async fn test_detect_access_kind_arrow() {
assert_eq!(
Backend::... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.