scouting-nl / soqlbuilder
1.1.0
2026-03-27 16:00 UTC
Requires
- php: ^8.3
- ext-mbstring: *
Requires (Dev)
- nerdman/php-cs-fixer-config: ^1.3
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^12.5
README
Copyright © 2025-2026 Scouting Nederland (https://www.scouting.nl)
Introduction
This PHP library can be used to programmatically build a SOQL query.
Installation
composer require scouting-nl/soqlbuilder
Example
use ScoutingNL\Salesforce\Soql\SoqlBuilder; use ScoutingNL\Salesforce\Soql\Where; $query = SoqlBuilder::select('Account') ->columns('Id', 'Name') ->where( Where::equals('RecordType.DeveloperName', 'Scouting_Organisations'), Where::equals('Active__c', true), Where::in( 'Id', SoqlBuilder::select('Organisation_Unit__c') ->columns('Organisation__c') ->where('Type__c', 'scouts'), ), );
License
This library is licensed under the MIT license