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 |
|---|---|---|---|---|---|---|---|---|
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Model/EditableFormField/EditableDateField/FormField.php | code/Model/EditableFormField/EditableDateField/FormField.php | <?php
namespace SilverStripe\UserForms\Model\EditableFormField\EditableDateField;
use SilverStripe\Forms\DateField;
/**
* @package userforms
*/
class FormField extends DateField
{
public function Type()
{
return 'date-alt text';
}
}
| php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Extension/UserFormFieldEditorExtension.php | code/Extension/UserFormFieldEditorExtension.php | <?php
namespace SilverStripe\UserForms\Extension;
use SilverStripe\Admin\AdminRootController;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\GridField\GridFieldPaginator;
use SilverStripe\Forms\Tab;
use SilverStripe\Forms\GridField\GridField;
use SilverStripe\Forms\GridField\GridFieldButtonRow;
use SilverSt... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Extension/UserFormValidator.php | code/Extension/UserFormValidator.php | <?php
namespace SilverStripe\UserForms\Extension;
use SilverStripe\Forms\Validation\RequiredFieldsValidator;
use SilverStripe\UserForms\Model\EditableFormField\EditableFieldGroup;
use SilverStripe\UserForms\Model\EditableFormField\EditableFieldGroupEnd;
use SilverStripe\UserForms\Model\EditableFormField;
use SilverSt... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Extension/UserFormFileExtension.php | code/Extension/UserFormFileExtension.php | <?php
namespace SilverStripe\UserForms\Extension;
use SilverStripe\Assets\File;
use SilverStripe\Assets\Folder;
use SilverStripe\Core\Convert;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\Queries\SQLUpdate;
use SilverStripe\UserForms\Control\UserDefinedFormController;
use Sil... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Extension/UpgradePolymorphicExtension.php | code/Extension/UpgradePolymorphicExtension.php | <?php
namespace SilverStripe\UserForms\Extension;
use SilverStripe\Control\Director;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
use SilverStripe\Core\Validation\ValidationException;
use SilverStripe\Dev\Deprecation;
use Sil... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/FormField/UserFormsCheckboxSetField.php | code/FormField/UserFormsCheckboxSetField.php | <?php
namespace SilverStripe\UserForms\FormField;
use SilverStripe\Core\Validation\ValidationResult;
use SilverStripe\Forms\CheckboxSetField;
/**
* @package userforms
*/
class UserFormsCheckboxSetField extends CheckboxSetField
{
/**
* If your project uses a custom UserFormsCheckboxSetField template, ensu... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/FormField/UserFormsStepField.php | code/FormField/UserFormsStepField.php | <?php
namespace SilverStripe\UserForms\FormField;
/**
* Represents a page step in a form, which may contain form fields or other groups
*/
class UserFormsStepField extends UserFormsCompositeField
{
private static $casting = [
'StepNumber' => 'Int'
];
/**
* Numeric index (1 based) of this s... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/FormField/UserFormsOptionSetField.php | code/FormField/UserFormsOptionSetField.php | <?php
namespace SilverStripe\UserForms\FormField;
use SilverStripe\Forms\OptionsetField;
use SilverStripe\UserForms\Model\EditableFormField;
/**
* @package userforms
*/
class UserFormsOptionSetField extends OptionsetField
{
/**
* If your project uses a custom UserFormsCheckboxSetField template, ensure th... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/FormField/UserFormsCompositeField.php | code/FormField/UserFormsCompositeField.php | <?php
namespace SilverStripe\UserForms\FormField;
use SilverStripe\Forms\CompositeField;
use SilverStripe\UserForms\Model\EditableFormField;
use SilverStripe\UserForms\Model\EditableFormField\EditableFormStep;
/**
* Represents a composite field group, which may contain other groups
*/
abstract class UserFormsCompo... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/FormField/UserFormsFieldContainer.php | code/FormField/UserFormsFieldContainer.php | <?php
namespace SilverStripe\UserForms\FormField;
use SilverStripe\UserForms\Model\EditableFormField;
/**
* Represents a field container which can iteratively process nested fields, converting it into a fieldset
*/
interface UserFormsFieldContainer
{
/**
* Process the next field in the list, returning th... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/FormField/UserFormsGroupField.php | code/FormField/UserFormsGroupField.php | <?php
namespace SilverStripe\UserForms\FormField;
use SilverStripe\UserForms\Model\EditableFormField\EditableFieldGroupEnd;
use SilverStripe\UserForms\Model\EditableFormField;
/**
* Front end composite field for userforms
*/
class UserFormsGroupField extends UserFormsCompositeField
{
public function __construc... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/FormField/UserFormsFieldList.php | code/FormField/UserFormsFieldList.php | <?php
namespace SilverStripe\UserForms\FormField;
use SilverStripe\Forms\FieldList;
use SilverStripe\UserForms\Model\EditableFormField;
/**
* A list of formfields which allows for iterative processing of nested composite fields
*/
class UserFormsFieldList extends FieldList implements UserFormsFieldContainer
{
... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Form/UserForm.php | code/Form/UserForm.php | <?php
namespace SilverStripe\UserForms\Form;
use ResetFormAction;
use SilverStripe\Control\Controller;
use SilverStripe\Control\Session;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form;
use SilverStripe\Forms\FormAction;
use SilverStripe\UserForms\FormField\UserFormsStepField;
use SilverStripe\UserForms... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Form/UserFormsRequiredFieldsValidator.php | code/Form/UserFormsRequiredFieldsValidator.php | <?php
namespace SilverStripe\UserForms\Form;
use InvalidArgumentException;
use SilverStripe\Dev\Debug;
use SilverStripe\Forms\FileField;
use SilverStripe\Forms\FormField;
use SilverStripe\Forms\Validation\RequiredFieldsValidator;
use SilverStripe\Core\ArrayLib;
use SilverStripe\UserForms\Model\EditableFormField;
/**... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Form/GridFieldAddClassesButton.php | code/Form/GridFieldAddClassesButton.php | <?php
namespace SilverStripe\UserForms\Form;
use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Forms\GridField\GridField;
use SilverStripe\Forms\GridField\GridField_ActionProvider;
use SilverStripe\Forms\GridField\GridField_FormAction;
use SilverStripe\Forms\GridField\GridField_HTMLProvider;
use Silve... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Form/UserFormsGridFieldFilterHeader.php | code/Form/UserFormsGridFieldFilterHeader.php | <?php
namespace SilverStripe\UserForms\Form;
use SilverStripe\Core\Convert;
use SilverStripe\Forms\CompositeField;
use SilverStripe\Forms\DateField;
use SilverStripe\Forms\DropdownField;
use SilverStripe\Forms\FieldGroup;
use SilverStripe\Forms\GridField\GridField;
use SilverStripe\Forms\GridField\GridField_FormActio... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Task/RecoverUploadLocationsHelper.php | code/Task/RecoverUploadLocationsHelper.php | <?php
namespace SilverStripe\UserForms\Task;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use RuntimeException;
use SilverStripe\Assets\File;
use SilverStripe\Assets\Folder;
use SilverStripe\Core\Config\Configurable;
use SilverStripe\Core\Convert;
use SilverStripe\Core\Environment;
use SilverStripe\Core\Injec... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Control/UserDefinedFormAdmin.php | code/Control/UserDefinedFormAdmin.php | <?php
namespace SilverStripe\UserForms\Control;
use SilverStripe\Admin\FormSchemaController;
use SilverStripe\Assets\Folder;
use SilverStripe\Control\HTTPRequest;
use SilverStripe\Control\HTTPResponse;
use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form;
use ... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Control/UserDefinedFormController.php | code/Control/UserDefinedFormController.php | <?php
namespace SilverStripe\UserForms\Control;
use Exception;
use PageController;
use Psr\Log\LoggerInterface;
use SilverStripe\AssetAdmin\Controller\AssetAdmin;
use SilverStripe\Assets\File;
use SilverStripe\Assets\Upload;
use SilverStripe\Control\Controller;
use SilverStripe\Control\Email\Email;
use SilverStripe\C... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Extensions/UsedOnTableExtension.php | code/Extensions/UsedOnTableExtension.php | <?php
namespace SilverStripe\UserForms\Extensions;
use SilverStripe\Admin\Forms\UsedOnTable;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataObject;
use SilverStripe\UserForms\Model\EditableFormField;
use SilverStripe\UserForms\Model\Submission\SubmittedFileField;
use SilverStripe\UserForms\Model\Submission... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Modifier/UnderscoreSegmentFieldModifier.php | code/Modifier/UnderscoreSegmentFieldModifier.php | <?php
namespace SilverStripe\UserForms\Modifier;
use SilverStripe\Forms\SegmentFieldModifier\SlugSegmentFieldModifier;
class UnderscoreSegmentFieldModifier extends SlugSegmentFieldModifier
{
public function getPreview($value)
{
return str_replace('-', '_', parent::getPreview($value) ?? '');
}
... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
silverstripe/silverstripe-userforms | https://github.com/silverstripe/silverstripe-userforms/blob/e33fff165d33a077ec4b20c2eef2ef8bca25d15a/code/Modifier/DisambiguationSegmentFieldModifier.php | code/Modifier/DisambiguationSegmentFieldModifier.php | <?php
namespace SilverStripe\UserForms\Modifier;
use SilverStripe\Forms\Form;
use SilverStripe\Forms\SegmentFieldModifier\AbstractSegmentFieldModifier;
use SilverStripe\UserForms\Model\EditableFormField;
class DisambiguationSegmentFieldModifier extends AbstractSegmentFieldModifier
{
public function getPreview($v... | php | BSD-3-Clause | e33fff165d33a077ec4b20c2eef2ef8bca25d15a | 2026-01-05T05:22:58.009669Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Traits/CanVerifyEmail.php | src/Traits/CanVerifyEmail.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Traits;
trait CanVerifyEmail
{
/**
* {@inheritdoc}
*/
public function getEmailForVerification(): string
{
return $this->email;
}
/**
* {@inheritdoc}
*/
public function hasVerifiedEmail(): bool
{
retu... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Traits/CanVerifyPhone.php | src/Traits/CanVerifyPhone.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Traits;
trait CanVerifyPhone
{
/**
* {@inheritdoc}
*/
public function getPhoneForVerification(): ?string
{
return $this->phone;
}
/**
* {@inheritdoc}
*/
public function getCountryForVerification(): ?string
{... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Traits/CanResetPassword.php | src/Traits/CanResetPassword.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Traits;
trait CanResetPassword
{
/**
* {@inheritdoc}
*/
public function getEmailForPasswordReset(): string
{
return $this->email;
}
/**
* {@inheritdoc}
*/
public function sendPasswordResetNotification(string $to... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Traits/AuthenticatableTwoFactor.php | src/Traits/AuthenticatableTwoFactor.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Traits;
trait AuthenticatableTwoFactor
{
/**
* Get the TwoFactor options.
*
* @return array|null
*/
public function getTwoFactor(): ?array
{
return $this->two_factor;
}
}
| php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Traits/HasHashables.php | src/Traits/HasHashables.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Traits;
trait HasHashables
{
/**
* Get the current hashables for the model.
*
* @return array|null
*/
public function getHashables(): ?array
{
return $this->hashables ?? null;
}
/**
* Set the hashables associat... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Support/helpers.php | src/Support/helpers.php | <?php
declare(strict_types=1);
if (! function_exists('get_login_field')) {
/**
* Get the login field to be used.
*
* @param string $loginfield
*
* @return string
*/
function get_login_field($loginfield)
{
return ! $loginfield || filter_var($loginfield, FILTER_VALIDATE... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Services/PasswordResetBrokerManager.php | src/Services/PasswordResetBrokerManager.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Services;
use InvalidArgumentException;
use Illuminate\Contracts\Auth\PasswordBrokerFactory;
use Rinvex\Auth\Contracts\PasswordResetBrokerContract;
class PasswordResetBrokerManager implements PasswordBrokerFactory
{
/**
* The application instance.
*... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Services/PasswordResetBroker.php | src/Services/PasswordResetBroker.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Services;
use Closure;
use Illuminate\Support\Carbon;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use UnexpectedValueException;
use Illuminate\Contracts\Auth\UserProvider;
use Rinvex\Auth\Contracts\CanResetPasswordContract;
use Rinvex\Auth\Contracts\Pa... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Services/EmailVerificationBroker.php | src/Services/EmailVerificationBroker.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Services;
use Closure;
use Illuminate\Support\Carbon;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use UnexpectedValueException;
use Illuminate\Contracts\Auth\UserProvider;
use Rinvex\Auth\Contracts\CanVerifyEmailContract;
use Rinvex\Auth\Contracts\Emai... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Services/EmailVerificationBrokerManager.php | src/Services/EmailVerificationBrokerManager.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Services;
use InvalidArgumentException;
use Rinvex\Auth\Contracts\EmailVerificationBrokerContract;
use Rinvex\Auth\Contracts\EmailVerificationBrokerFactoryContract;
class EmailVerificationBrokerManager implements EmailVerificationBrokerFactoryContract
{
/**
... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Contracts/AuthenticatableTwoFactorContract.php | src/Contracts/AuthenticatableTwoFactorContract.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
interface AuthenticatableTwoFactorContract
{
/**
* Get the TwoFactor options.
*
* @return array|null
*/
public function getTwoFactor(): ?array;
}
| php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Contracts/CanVerifyPhoneContract.php | src/Contracts/CanVerifyPhoneContract.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
interface CanVerifyPhoneContract
{
/**
* Get the phone for verification.
*
* @return string|null
*/
public function getPhoneForVerification(): ?string;
/**
* Get the country for verification.
*
* @return s... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Contracts/PasswordResetBrokerContract.php | src/Contracts/PasswordResetBrokerContract.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
use Illuminate\Contracts\Auth\PasswordBroker;
interface PasswordResetBrokerContract extends PasswordBroker
{
/**
* Constant representing an expired token.
*
* @var string
*/
const EXPIRED_TOKEN = 'passwords.expired';
}
| php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Contracts/EmailVerificationBrokerContract.php | src/Contracts/EmailVerificationBrokerContract.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
use Closure;
interface EmailVerificationBrokerContract
{
/**
* Constant representing a successfully sent verification email.
*
* @var string
*/
const LINK_SENT = 'messages.verification.email.link_sent';
/**
* Const... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Contracts/CanResetPasswordContract.php | src/Contracts/CanResetPasswordContract.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
interface CanResetPasswordContract
{
/**
* Get the email address where password reset links are sent.
*
* @return string
*/
public function getEmailForPasswordReset(): string;
/**
* Send the password reset notificat... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Contracts/EmailVerificationBrokerFactoryContract.php | src/Contracts/EmailVerificationBrokerFactoryContract.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
interface EmailVerificationBrokerFactoryContract
{
/**
* Get a broker instance by name.
*
* @param string $name
*
* @return \Rinvex\Auth\Contracts\EmailVerificationBrokerContract
*/
public function broker($name = nu... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Contracts/CanVerifyEmailContract.php | src/Contracts/CanVerifyEmailContract.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Contracts;
interface CanVerifyEmailContract
{
/**
* Get the email for verification sending.
*
* @return string
*/
public function getEmailForVerification(): string;
/**
* Determine if the user has verified their email address.... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Console/Commands/PublishCommand.php | src/Console/Commands/PublishCommand.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Attribute\AsCommand;
#[AsCommand(name: 'rinvex:publish:auth')]
class PublishCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var ... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
rinvex/laravel-auth | https://github.com/rinvex/laravel-auth/blob/b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327/src/Providers/AuthServiceProvider.php | src/Providers/AuthServiceProvider.php | <?php
declare(strict_types=1);
namespace Rinvex\Auth\Providers;
use Illuminate\Support\ServiceProvider;
use Rinvex\Support\Traits\ConsoleTools;
use Rinvex\Auth\Console\Commands\PublishCommand;
use Rinvex\Auth\Services\PasswordResetBrokerManager;
use Rinvex\Auth\Services\EmailVerificationBrokerManager;
class AuthSer... | php | MIT | b39c6cc4e22c261b245aa282d5c0e9ac6f0bb327 | 2026-01-05T05:23:26.001935Z | false |
fabiofdsantos/laracountries | https://github.com/fabiofdsantos/laracountries/blob/2fc577f080f713f7896a42afa6749c3e24d5f62f/database/seeds/CountriesTableSeeder.php | database/seeds/CountriesTableSeeder.php | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class CountriesTableSeeder extends Seeder
{
/**
* Run the seeder.
*
* @return void
*/
public function run()
{
Schema::disableForeignKeyCo... | php | MIT | 2fc577f080f713f7896a42afa6749c3e24d5f62f | 2026-01-05T05:23:32.611162Z | false |
fabiofdsantos/laracountries | https://github.com/fabiofdsantos/laracountries/blob/2fc577f080f713f7896a42afa6749c3e24d5f62f/database/migrations/create_countries_table.php | database/migrations/create_countries_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCountriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('countries', function (Blueprint $table) {
... | php | MIT | 2fc577f080f713f7896a42afa6749c3e24d5f62f | 2026-01-05T05:23:32.611162Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/phpunit.php | phpunit.php | <?php
include __DIR__.'/vendor/autoload.php';
| php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/src/Decimal.php | src/Decimal.php | <?php
declare(strict_types=1);
namespace Litipk\BigNumbers;
use Litipk\BigNumbers\DecimalConstants as DecimalConstants;
use Litipk\BigNumbers\Errors\InfiniteInputError;
use Litipk\BigNumbers\Errors\NaNInputError;
use Litipk\BigNumbers\Errors\NotImplementedError;
/**
* Immutable object that represents a rational nu... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | true |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/src/DecimalConstants.php | src/DecimalConstants.php | <?php
declare(strict_types=1);
namespace Litipk\BigNumbers;
use Litipk\BigNumbers\Decimal as Decimal;
/**
* Class that holds many important numeric constants
*
* @author Andreu Correa Casablanca <castarco@litipk.com>
*/
final class DecimalConstants
{
/** @var Decimal */
private static $ZERO = null;
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/src/Errors/BigNumbersError.php | src/Errors/BigNumbersError.php | <?php
namespace Litipk\BigNumbers\Errors;
use Throwable;
interface BigNumbersError extends Throwable
{
}
| php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/src/Errors/NaNInputError.php | src/Errors/NaNInputError.php | <?php
namespace Litipk\BigNumbers\Errors;
use DomainException;
class NaNInputError extends DomainException implements BigNumbersError
{
public function __construct(string $message = 'NaN values are not supported')
{
parent::__construct($message, 0, null);
}
}
| php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/src/Errors/NotImplementedError.php | src/Errors/NotImplementedError.php | <?php
namespace Litipk\BigNumbers\Errors;
use LogicException;
class NotImplementedError extends LogicException implements BigNumbersError
{
public function __construct(string $message = 'Not Implemented feature')
{
parent::__construct($message, 0, null);
}
}
| php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/src/Errors/InfiniteInputError.php | src/Errors/InfiniteInputError.php | <?php
namespace Litipk\BigNumbers\Errors;
use DomainException;
class InfiniteInputError extends DomainException implements BigNumbersError
{
public function __construct(string $message = 'Infinite values are not supported')
{
parent::__construct($message, 0, null);
}
}
| php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/DecimalConstantsTest.php | tests/DecimalConstantsTest.php | <?php
use Litipk\BigNumbers\DecimalConstants as DecimalConstants;
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalConstantsTest extends TestCase
{
public function testFiniteAbs()
{
$this->assertTrue(DecimalConstants::pi()->equal... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/regression/issue55Test.php | tests/regression/issue55Test.php | <?php
declare(strict_types=1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class issue55Test extends TestCase
{
public function test_that_forcing_concrete_precision_on_creation_does_not_corrupt_the_passed_value()
{
$this->assertEquals(4.0, Decimal::create(4.0, 8)->asFloat());
}... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/regression/issue58Test.php | tests/regression/issue58Test.php | <?php
declare(strict_types=1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class issue58Test extends TestCase
{
public function test_that_fromString_preserves_the_correct_inner_scale_to_avoid_divisions_by_zero()
{
$value = Decimal::create('12.99', 4);
$divisor = Decimal::cr... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/regression/issue60Test.php | tests/regression/issue60Test.php | <?php
declare(strict_types=1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class issue60Test extends TestCase
{
public function test_that_fromFloat_division_does_not_calculate_invalid_log10_avoiding_div_zero()
{
$value = Decimal::fromFloat(1.001);
$divisor = Decimal::fromFl... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/regression/issue53Test.php | tests/regression/issue53Test.php | <?php
declare(strict_types=1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class issue53Test extends TestCase
{
public function test_that_no_division_by_zero_is_performed_without_explicit_scale()
{
$d1 = Decimal::create(192078120.5);
$d2 = Decimal::create(31449600);
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalRoundTest.php | tests/Decimal/DecimalRoundTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalRoundTest extends TestCase
{
public function testIntegerRound()
{
$this->assertTrue(Decimal::fromFloat(0.4)->round()->isZero());
$this->assertTrue(Decimal::fromFloat(... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalAsNativeTest.php | tests/Decimal/DecimalAsNativeTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalAsFloatTest extends TestCase
{
public function testAsInteger()
{
$this->assertEquals(1, Decimal::fromString('1.0')->asInteger());
$this->assertTrue(is_int(Decimal::... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalIsIntegerTest.php | tests/Decimal/DecimalIsIntegerTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalIsIntegerTest extends TestCase
{
public function testIntegers()
{
$this->assertTrue(Decimal::fromInteger(-200)->isInteger());
$this->assertTrue(Decimal::fromInteger(-... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalIsZeroTest.php | tests/Decimal/DecimalIsZeroTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalIsZeroTest extends TestCase
{
public function testZeros()
{
$this->assertTrue(Decimal::fromInteger(0)->isZero());
$this->assertTrue(Decimal::fromFloat(0.0)->isZero())... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalArcsinTest.php | tests/Decimal/DecimalArcsinTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group arcsin
*/
class DecimalArcsinTest extends TestCase
{
public function arcsinProvider() {
// Some values provided by wolframalpha
return [
['0.154', '0.15461530016096', 14],
['1', '... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalArctanTest.php | tests/Decimal/DecimalArctanTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group arctan
*/
class DecimalArctanTest extends TestCase
{
public function arctanProvider() {
// Some values provided by wolframalpha
return [
['0.154', '0.15279961393666', 14],
['0', '... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalFromFloatTest.php | tests/Decimal/DecimalFromFloatTest.php | <?php
declare(strict_types=1);
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
class DecimalFromFloatTest extends TestCase
{
/**
* @expectedException \DomainException
* @expectedExceptionMessage fltValue can't be NaN
*/
public function testNaN()
{
Decimal::... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalCompTest.php | tests/Decimal/DecimalCompTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalCompTest extends TestCase
{
public function testSelfComp()
{
$ten = Decimal::fromInteger(10);
$this->assertTrue($ten->comp($ten) === 0);
}
public function... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalSqrtTest.php | tests/Decimal/DecimalSqrtTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalSqrtTest extends TestCase
{
public function testIntegerSqrt()
{
$this->assertTrue(Decimal::fromInteger(0)->sqrt()->equals(Decimal::fromInteger(0)));
$this->assertTrue... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalSubTest.php | tests/Decimal/DecimalSubTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalSubTest extends TestCase
{
public function testZeroSub()
{
$one = Decimal::fromInteger(1);
$zero = Decimal::fromInteger(0);
$this->assertTrue($one->sub($z... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalIsLessThanTest.php | tests/Decimal/DecimalIsLessThanTest.php | <?php
declare(strict_types = 1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class DecimalIsLessThanTest extends TestCase
{
public function testGreater()
{
$this->assertFalse(Decimal::fromFloat(1.01)->isLessThan(Decimal::fromFloat(1.001)));
}
public function testEqual()
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalArccotTest.php | tests/Decimal/DecimalArccotTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group arccot
*/
class DecimalArccotTest extends TestCase
{
public function arccotProvider() {
// Some values provided by wolframalpha
return [
['0.154', '1.41799671285823', 14],
['0', '... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalFromIntegerTest.php | tests/Decimal/DecimalFromIntegerTest.php | <?php
declare(strict_types=1);
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
\date_default_timezone_set('UTC');
class DecimalFromIntegerTest extends TestCase
{
/**
* @expectedException \TypeError
*/
public function testNoInteger()
{
Decimal::fromInteger(5.1);... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalFromStringTest.php | tests/Decimal/DecimalFromStringTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalFromStringTest extends TestCase
{
public function testNegativeSimpleString()
{
$n1 = Decimal::fromString('-1');
$n2 = Decimal::fromString('-1.0');
$this->ass... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalExpTest.php | tests/Decimal/DecimalExpTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group cos
*/
class DecimalExpTest extends TestCase
{
public function expProvider() {
// Some values provided by Mathematica
return [
['0', '1', 0],
['0', '1', 1],
['0', '1',... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalCosTest.php | tests/Decimal/DecimalCosTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group cos
*/
class DecimalCosTest extends TestCase
{
public function cosProvider() {
// Some values provided by Mathematica
return [
['1', '0.54030230586814', 14],
['123.123', '-0.82483... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalCeilTest.php | tests/Decimal/DecimalCeilTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalCeilTest extends TestCase
{
public function testIntegerCeil()
{
$this->assertTrue(Decimal::fromFloat(0.00)->ceil()->isZero());
$this->assertTrue(Decimal::fromFloat(... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalInternalValidationTest.php | tests/Decimal/DecimalInternalValidationTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalInternalValidationTest extends TestCase
{
/**
* @expectedException \TypeError
*/
public function testConstructorNullValueValidation()
{
Decimal::fromInteger(nul... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalCreateTest.php | tests/Decimal/DecimalCreateTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use Litipk\Exceptions\InvalidArgumentTypeException;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class A {} // Empty class used for testing
class DecimalCreateTest extends TestCase
{
public function testCreateWithInvalidType()
{
$... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalArccosTest.php | tests/Decimal/DecimalArccosTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group arccos
*/
class DecimalArccosTest extends TestCase
{
public function arccosProvider() {
// Some values provided by wolframalpha
return [
['0.154', '1.41618102663394', 14],
['1', '... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalEqualsTest.php | tests/Decimal/DecimalEqualsTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalEqualsTest extends TestCase
{
public function testSimpleEquals()
{
// Transitivity & inter-types constructors compatibility
$this->assertTrue(Decimal::fromInteger(1)-... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalFloorTest.php | tests/Decimal/DecimalFloorTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalFloorTest extends TestCase
{
public function testIntegerFloor()
{
$this->assertTrue(Decimal::fromFloat(0.00)->floor()->isZero());
$this->assertTrue(Decimal::fromFloat... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalSinTest.php | tests/Decimal/DecimalSinTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group sin
*/
class DecimalSinTest extends TestCase
{
public function sinProvider() {
// Some values providede by mathematica
return [
['1', '0.84147098480790', 14],
['123.123', '-0.5653... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalSerializationTest.php | tests/Decimal/DecimalSerializationTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalSerializationTest extends TestCase
{
public function testBaseCase()
{
$one = Decimal::fromInteger(1);
$little = Decimal::fromString('0.0000000000001');
$se... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalAbsTest.php | tests/Decimal/DecimalAbsTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalAbsTest extends TestCase
{
public function testAbs()
{
$this->assertTrue(Decimal::fromInteger(0)->abs()->equals(Decimal::fromInteger(0)));
$this->assertTrue(Decimal::... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalAddTest.php | tests/Decimal/DecimalAddTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalAddTest extends TestCase
{
public function testZeroAdd()
{
$z = Decimal::fromInteger(0);
$n = Decimal::fromInteger(5);
$this->assertTrue($z->add($n)->equals(... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalSecTest.php | tests/Decimal/DecimalSecTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group sec
*/
class DecimalSecTest extends TestCase
{
public function SecProvider() {
// Some values provided by Mathematica
return [
['5', '3.52532008581609', 14],
['456.456', '-1.66172... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalMulTest.php | tests/Decimal/DecimalMulTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalMulTest extends TestCase
{
public function testZeroFiniteMul()
{
$z = Decimal::fromInteger(0);
$n = Decimal::fromInteger(5);
$r1 = $z->mul($n);
$r2 =... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalCotanTest.php | tests/Decimal/DecimalCotanTest.php | <?php
use \Litipk\BigNumbers\Decimal as Decimal;
use \Litipk\BigNumbers\DecimalConstants as DecimalConstants;
use PHPUnit\Framework\TestCase;
/**
* @group cotan
*/
class DecimalCotanTest extends TestCase
{
public function cotanProvider() {
// Some values providede by mathematica
return [
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalAdditiveInverseTest.php | tests/Decimal/DecimalAdditiveInverseTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalAdditiveInverseTest extends TestCase
{
public function testZeroAdditiveInverse()
{
$this->assertTrue(Decimal::fromInteger(0)->additiveInverse()->equals(Decimal::fromInteger(0... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalIsGreaterThanTest.php | tests/Decimal/DecimalIsGreaterThanTest.php | <?php
declare(strict_types = 1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class DecimalIsGreaterThanTest extends TestCase
{
public function testGreater()
{
$this->assertTrue(Decimal::fromFloat(1.01)->isGreaterThan(Decimal::fromFloat(1.001)));
}
public function testEqual(... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalIsGreaterOrEqualToTest.php | tests/Decimal/DecimalIsGreaterOrEqualToTest.php | <?php
declare(strict_types = 1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class DecimalIsGreaterOrEqualToTest extends TestCase
{
public function testGreater()
{
$this->assertTrue(Decimal::fromFloat(1.01)->isGreaterOrEqualTo(Decimal::fromFloat(1.001)));
}
public function ... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalTanTest.php | tests/Decimal/DecimalTanTest.php | <?php
use \Litipk\BigNumbers\Decimal as Decimal;
use \Litipk\BigNumbers\DecimalConstants as DecimalConstants;
use PHPUnit\Framework\TestCase;
/**
* @group tan
*/
class DecimalTanTest extends TestCase
{
public function tanProvider() {
// Some values providede by mathematica
return [
[... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalCosecTest.php | tests/Decimal/DecimalCosecTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group cosec
*/
class DecimalCosecTest extends TestCase
{
public function cosecProvider() {
// Some values provided by Mathematica
return [
['1', '1.18839510577812', 14],
['123.123', '-1... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalDivTest.php | tests/Decimal/DecimalDivTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalDivTest extends TestCase
{
public function testZeroFiniteDiv()
{
$one = Decimal::fromInteger(1);
$zero = Decimal::fromInteger(0);
$catched = false;
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalArcsecTest.php | tests/Decimal/DecimalArcsecTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group arcsec
*/
class DecimalArcsecTest extends TestCase
{
public function arcsecProvider() {
// Some values provided by wolframalpha
return [
['25.546', '1.53164125102163', 14],
['1.5'... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalFromDecimalTest.php | tests/Decimal/DecimalFromDecimalTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalFromDecimalTest extends TestCase
{
public function testBasicCase()
{
$n1 = Decimal::fromString('3.45');
$this->assertTrue(Decimal::fromDecimal($n1)->equals($n1));
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalLog10Test.php | tests/Decimal/DecimalLog10Test.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalLog10Test extends TestCase
{
/**
* @expectedException \DomainException
* @expectedExceptionMessage Decimal can't represent infinite numbers.
*/
public function testZer... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalModTest.php | tests/Decimal/DecimalModTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group mod
*/
class DecimalModTest extends TestCase
{
public function modProvider() {
return [
['10', '3', '1'],
['34', '3.4', '0'],
['15.1615', '3.156156', '2.536876'],
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalPowTest.php | tests/Decimal/DecimalPowTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use Litipk\BigNumbers\DecimalConstants as DecimalConstants;
use Litipk\BigNumbers\Errors\NotImplementedError;
use PHPUnit\Framework\TestCase;
date_default_timezone_set('UTC');
class DecimalPowTest extends TestCase
{
public function testZeroPositive()
{
... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalIsLessOrEqualToTest.php | tests/Decimal/DecimalIsLessOrEqualToTest.php | <?php
declare(strict_types = 1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class DecimalIsLessOrEqualToTest extends TestCase
{
public function testGreater()
{
$this->assertFalse(Decimal::fromFloat(1.01)->isLessOrEqualTo(Decimal::fromFloat(1.001)));
}
public function testE... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
Coder-Spirit/php-bignumbers | https://github.com/Coder-Spirit/php-bignumbers/blob/6da5c5ec6ea0c6246cbb5e663e056b7042061482/tests/Decimal/DecimalArccscTest.php | tests/Decimal/DecimalArccscTest.php | <?php
use Litipk\BigNumbers\Decimal as Decimal;
use PHPUnit\Framework\TestCase;
/**
* @group arccsc
*/
class DecimalArccscTest extends TestCase
{
public function arccscProvider() {
// Some values provided by wolframalpha
return [
['25.546', '0.03915507577327', 14],
['1.5'... | php | MIT | 6da5c5ec6ea0c6246cbb5e663e056b7042061482 | 2026-01-05T05:23:38.183871Z | false |
RikudouSage/GogDownloader | https://github.com/RikudouSage/GogDownloader/blob/51828fd0d673e8f167e9baaf8636718b27a66950/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__ . '/src')
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => [
'statements' => ['de... | php | MIT | 51828fd0d673e8f167e9baaf8636718b27a66950 | 2026-01-05T05:23:42.986854Z | false |
RikudouSage/GogDownloader | https://github.com/RikudouSage/GogDownloader/blob/51828fd0d673e8f167e9baaf8636718b27a66950/src/AppKernel.php | src/AppKernel.php | <?php
namespace App;
use App\DependencyInjection\CommandLocatorCompilerPass;
use App\DependencyInjection\EventCoordinatorCompilerPass;
use Closure;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use S... | php | MIT | 51828fd0d673e8f167e9baaf8636718b27a66950 | 2026-01-05T05:23:42.986854Z | false |
RikudouSage/GogDownloader | https://github.com/RikudouSage/GogDownloader/blob/51828fd0d673e8f167e9baaf8636718b27a66950/src/Interfaces/SingleCommandInterface.php | src/Interfaces/SingleCommandInterface.php | <?php
namespace App\Interfaces;
interface SingleCommandInterface
{
public static function getCommandName(): string;
}
| php | MIT | 51828fd0d673e8f167e9baaf8636718b27a66950 | 2026-01-05T05:23:42.986854Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.