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
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/field/float.php
classes/field/float.php
<?php defined('SYSPATH') or die('No direct script access.'); class Field_Float extends Jelly_Field_Float { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/field/boolean.php
classes/field/boolean.php
<?php defined('SYSPATH') or die('No direct script access.'); class Field_Boolean extends Jelly_Field_Boolean { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/field/password.php
classes/field/password.php
<?php defined('SYSPATH') or die('No direct script access.'); class Field_Password extends Jelly_Field_Password { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/field/belongsto.php
classes/field/belongsto.php
<?php defined('SYSPATH') or die('No direct script access.'); class Field_BelongsTo extends Jelly_Field_BelongsTo { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/field/primary.php
classes/field/primary.php
<?php defined('SYSPATH') or die('No direct script access.'); class Field_Primary extends Jelly_Field_Primary { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/core.php
classes/jelly/core.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * This core class is the main interface to all * models, builders, and meta data. */ abstract class Jelly_Core { /** * @var string The prefix to use for all model's class names * This can be overridden to allow you to place * ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field.php
classes/jelly/field.php
<?php defined('SYSPATH') or die('No direct script access.'); abstract class Jelly_Field extends Jelly_Field_Core { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/model.php
classes/jelly/model.php
<?php defined('SYSPATH') or die('No direct script access.'); class Jelly_Model extends Jelly_Model_Core { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/meta.php
classes/jelly/meta.php
<?php defined('SYSPATH') or die('No direct script access.'); class Jelly_Meta extends Jelly_Meta_Core { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/collection.php
classes/jelly/collection.php
<?php defined('SYSPATH') or die('No direct script access.'); class Jelly_Collection extends Jelly_Collection_Core { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/builder.php
classes/jelly/builder.php
<?php defined('SYSPATH') or die('No direct script access.'); class Jelly_Builder extends Jelly_Builder_Core { }
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/builder/core.php
classes/jelly/builder/core.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Jelly_Builder is a class used for query building. It handles * automatic aliasing of all models and columns (but also supports * unknown models and fields). * * Because of the limitations of PHP and Kohana's class structure, * it must extend a Da...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/model/core.php
classes/jelly/model/core.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Jelly_Model is the class all models must extend. It handles * various CRUD operations and relationships to other models. * * @package Jelly */ abstract class Jelly_Model_Core { /** * @var array The original data set on the object */ protec...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/collection/core.php
classes/jelly/collection/core.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Jelly_Collection encapsulates a Database_Result object. It has the exact same API. * * It offers a few special features that make it useful: * * * Only one model is instantiated for the whole result set, which * is significantly faster in ter...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/core.php
classes/jelly/field/core.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Core class that all fields must extend. * * @package Jelly */ abstract class Jelly_Field_Core { /** * @var string The model's name */ public $model; /** * @var string The column's name in the database */ public $column; /** * ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/expression.php
classes/jelly/field/expression.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles expression fields, which allow an arbitrary database * expression as the field column. * * For example, if you always wanted the field to return a concatenation * of two columns in the database, you can do this: * * 'field' => new Fie...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/integer.php
classes/jelly/field/integer.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles integer data-types * * @package Jelly */ abstract class Jelly_Field_Integer extends Jelly_Field { /** * Converts the value to an integer * * @param mixed $value * @return int */ public function set($value) { if ($value =...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/enum.php
classes/jelly/field/enum.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles enumerated lists. * * A choices property is required, which is an array of valid options. If you * attempt to set a value that isn't a valid choice, the default will be used. * * @package Jelly */ abstract class Jelly_Field_Enum extends...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/relationship.php
classes/jelly/field/relationship.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * An abstract class that is useful for identifying which * fields that are relationships. * * @package Jelly * @author Jonathan Geiger */ abstract class Jelly_Field_Relationship extends Jelly_Field { /** * Most relationship are in fact not pa...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/timestamp.php
classes/jelly/field/timestamp.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles timestamps and conversions to and from different formats. * * All timestamps are represented internally by UNIX timestamps, regardless * of their format in the database. When the model is saved, the value is * converted back to the format ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/text.php
classes/jelly/field/text.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles long strings * * @package Jelly */ abstract class Jelly_Field_Text extends Jelly_Field { /** * Casts to a string, preserving NULLs along the way * * @param mixed $value * @return string */ public function set($value) { if...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/serialized.php
classes/jelly/field/serialized.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles serialized data. * * When set, the field attempts to unserialize the data into it's * actual PHP representation. When the model is saved, the value * is serialized back and saved as a string into the column. * * @package Jelly */ abstr...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/string.php
classes/jelly/field/string.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles strings * * @package Jelly */ abstract class Jelly_Field_String extends Jelly_Field { /** * Casts to a string, preserving NULLs along the way * * @param mixed $value * @return string */ public function set($value) { if ($...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/file.php
classes/jelly/field/file.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles files and file uploads. * * If a valid upload is set on the field, the upload will be saved * automatically to the $path set and the value of the field will * be the filename used. * * @package Jelly */ abstract class Jelly_Field_File ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/email.php
classes/jelly/field/email.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles email addresses. * * No special processing is added for this field other * than a validation rule that ensures the email address is valid. * * @package Jelly */ abstract class Jelly_Field_Email extends Field_String { /** * Adds an em...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/manytomany.php
classes/jelly/field/manytomany.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles many to many relationships * * @package Jelly */ abstract class Jelly_Field_ManyToMany extends Jelly_Field_Relationship implements Jelly_Field_Behavior_Saveable, Jelly_Field_Behavior_Haveable, Jelly_Field_Behavior_Changeable { /** * Thi...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/slug.php
classes/jelly/field/slug.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles "slugs". * * Slugs are not validated, but rather automatically converted to a valid slug. * * A valid slug consists of lowercase alphanumeric characters, plus * underscores, dashes, and forward slashes. * * @package Jelly */ abstract ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/hasone.php
classes/jelly/field/hasone.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles has one relationships * * @package Jelly */ abstract class Jelly_Field_HasOne extends Jelly_Field_HasMany implements Jelly_Field_Behavior_Joinable { /** * @param mixed $value * @return mixed */ public function set($value) { ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/hasmany.php
classes/jelly/field/hasmany.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles has many relationships * * @package Jelly */ abstract class Jelly_Field_HasMany extends Jelly_Field_Relationship implements Jelly_Field_Behavior_Saveable, Jelly_Field_Behavior_Haveable, Jelly_Field_Behavior_Changeable { /** * A string p...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/float.php
classes/jelly/field/float.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles floats. * * You can specify an optional places property to * round the value to the specified number of places. * * @package Jelly */ abstract class Jelly_Field_Float extends Jelly_Field { /** * @var int The number of places to round...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/boolean.php
classes/jelly/field/boolean.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles boolean data types. * * @package Jelly */ abstract class Jelly_Field_Boolean extends Jelly_Field { /** * @var mixed How TRUE is represented in the database */ public $true = 1; /** * @var string How TRUE is represented to use...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/password.php
classes/jelly/field/password.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles passwords by automatically hashing them before they're * saved to the database. * * It is important to note that a new password is hashed only when the * model is saved. This means you must save a model if you want to * compare hashes of ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/belongsto.php
classes/jelly/field/belongsto.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles belongs to relationships * * @package Jelly */ abstract class Jelly_Field_BelongsTo extends Jelly_Field_Relationship implements Jelly_Field_Behavior_Joinable { /** * @var boolean Defaults belongs_to's to in the database */ public $...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/primary.php
classes/jelly/field/primary.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Handles primary keys. * * Currently, a primary key can be an integer or a string. * * @package Jelly */ abstract class Jelly_Field_Primary extends Jelly_Field { /** * @var boolean Defaults primary keys to primary */ public $primary = TRU...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/behavior/joinable.php
classes/jelly/field/behavior/joinable.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Declares a field that can be joined using Jelly_Model's with() * * The with() method is expected to complete the join() clause. * * @package Jelly */ interface Jelly_Field_Behavior_Joinable { /** * This method should add a join() and on() cla...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/behavior/changeable.php
classes/jelly/field/behavior/changeable.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Declares a field that can have individual records add()ed or remove()ed from it. * * This interface does not require any methods to be declared, but rather * acts as a flag for the model so that it knows the field supports this feature. * * In ge...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/behavior/haveable.php
classes/jelly/field/behavior/haveable.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Interface for a field that can "have" other models. * * This is used by the Jelly_Model's has() method, * * @package Jelly */ interface Jelly_Field_Behavior_Haveable { /** * This method should return a boolean that indicates whether or * no...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/field/behavior/saveable.php
classes/jelly/field/behavior/saveable.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Declares a field will handle its own saving queries. Nearly all * relationship types implement this interface. * * @package Jelly */ interface Jelly_Field_Behavior_Saveable { /** * This method is called after an insert or update is finished on...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
jonathangeiger/kohana-jelly
https://github.com/jonathangeiger/kohana-jelly/blob/33b58051d096cfeb411aadb52e9bc2f26b8ef5e4/classes/jelly/meta/core.php
classes/jelly/meta/core.php
<?php defined('SYSPATH') or die('No direct script access.'); /** * Jelly_Meta objects act as a registry of information about a particular model. * * @package Jelly */ abstract class Jelly_Meta_Core { /** * @var boolean If this is FALSE, properties can still be set on the meta object */ protected $initializ...
php
MIT
33b58051d096cfeb411aadb52e9bc2f26b8ef5e4
2026-01-05T04:12:34.182387Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/src/CrudTrait.php
src/CrudTrait.php
<?php namespace CoffeeCode\DataLayer; use DateTime; use PDOException; /** * Trait CrudTrait * @package CoffeeCode\DataLayer */ trait CrudTrait { /** * @param array $data * @return int|null * @throws PDOException */ protected function create(array $data): string|bool { if ($...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/src/DataLayer.php
src/DataLayer.php
<?php namespace CoffeeCode\DataLayer; use PDO; use PDOException; use stdClass; /** * Class DataLayer * @package CoffeeCode\DataLayer */ abstract class DataLayer { use CrudTrait; /** @var string $entity database table */ private string $entity; /** @var string $primary table primary key field */ ...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/src/Connect.php
src/Connect.php
<?php namespace CoffeeCode\DataLayer; use PDO; use PDOException; /** * Class Connect * @package CoffeeCode\DataLayer */ class Connect { /** @var array */ private static array $instance; /** @var PDOException|null */ private static ?PDOException $error = null; /** * @param array|null $da...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/db_config.php
example/db_config.php
<?php const DATA_LAYER_CONFIG = [ "driver" => "mysql", "host" => "localhost", "port" => "3306", "dbname" => "datalayer", "username" => "root", "passwd" => "", "options" => [ PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, ...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/save_example.php
example/save_example.php
<?php require 'db_config.php'; require '../vendor/autoload.php'; require 'Models/User.php'; require 'Models/Address.php'; use Example\Models\Address; use Example\Models\User; /* * USER MODEL */ $create = false; if ($create) { echo "<h1>Create:</h1>"; $user = new User; $user->first_name = "Robson"; ...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/pdo_example.php
example/pdo_example.php
<?php require 'db_config.php'; require '../vendor/autoload.php'; use CoffeeCode\DataLayer\Connect; /* * GET PDO instance AND errors */ $connect = Connect::getInstance(); $error = Connect::getError(); /* * CHECK connection/errors */ if ($error) { echo $error->getMessage(); exit; } /* * FETCH DATA */ $...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/destroy_example.php
example/destroy_example.php
<?php require 'db_config.php'; require '../vendor/autoload.php'; require 'Models/User.php'; require 'Models/Address.php'; use Example\Models\Address; use Example\Models\User; /* * USER REMOVE */ echo "<h1>Remove</h1>"; $user = (new User())->findById(6); if ($user) { var_dump($user->data()); if ($user->d...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/find_example.php
example/find_example.php
<?php require 'db_config.php'; require '../vendor/autoload.php'; require 'Models/User.php'; require 'Models/Address.php'; require 'Models/Company.php'; use Example\Models\Address; use Example\Models\Company; use Example\Models\User; /* * MODEL */ $testId = 1; echo "<h1>User Model</h1>"; $user = new User(); var_d...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/multi_db_example.php
example/multi_db_example.php
<?php require 'db_config.php'; require '../vendor/autoload.php'; require 'Models/User.php'; require 'Models/UserDatabase.php'; use Example\Models\User; use Example\Models\UserDatabase; const DATABASE = [ "driver" => "mysql", "host" => "localhost", "port" => "3306", "dbname" => "upinside", "usern...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/Models/Address.php
example/Models/Address.php
<?php namespace Example\Models; use CoffeeCode\DataLayer\DataLayer; /** * Class Address * @package Example\Models */ class Address extends DataLayer { /** * Address constructor. */ public function __construct() { parent::__construct("adresses", ["user_id"]); } /** * @re...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/Models/User.php
example/Models/User.php
<?php namespace Example\Models; use CoffeeCode\DataLayer\DataLayer; /** * Class User * @package Example\Models */ class User extends DataLayer { /** * User constructor. */ public function __construct() { parent::__construct("users", ["first_name", "last_name"]); } public fun...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/Models/UserDatabase.php
example/Models/UserDatabase.php
<?php namespace Example\Models; use CoffeeCode\DataLayer\DataLayer; /** * Class User * @package Example\Models */ class UserDatabase extends DataLayer { /** * User constructor. */ public function __construct() { parent::__construct("ws_users", ["user_name", "user_lastname"], "user_id...
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
robsonvleite/datalayer
https://github.com/robsonvleite/datalayer/blob/619eb838783a3d2488d98f8a879dd772e62b444f/example/Models/Company.php
example/Models/Company.php
<?php namespace Example\Models; use CoffeeCode\DataLayer\DataLayer; class Company extends DataLayer { public function __construct() { parent::__construct("companies", ["user_id", "name"]); } }
php
MIT
619eb838783a3d2488d98f8a879dd772e62b444f
2026-01-05T04:12:40.209900Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/bootstrap.php
src/Codeception/bootstrap.php
<?php declare(strict_types=1); use Codeception\Verify\Expectations\ExpectAny; use Codeception\Verify\Verifiers\VerifyAny; if (!function_exists('verify')) { /** * @param mixed $actual * @return VerifyAny */ function verify($actual): VerifyAny { return new VerifyAny($actual); } }...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verify.php
src/Codeception/Verify/Verify.php
<?php declare(strict_types=1); namespace Codeception\Verify; use ArrayAccess; use Codeception\Verify\Verifiers\VerifyArray; use Codeception\Verify\Verifiers\VerifyCallable; use Codeception\Verify\Verifiers\VerifyDirectory; use Codeception\Verify\Verifiers\VerifyFile; use Codeception\Verify\Verifiers\VerifyJsonFile; ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expect.php
src/Codeception/Verify/Expect.php
<?php declare(strict_types=1); namespace Codeception\Verify; use ArrayAccess; use Codeception\Verify\Expectations\ExpectArray; use Codeception\Verify\Expectations\ExpectBaseObject; use Codeception\Verify\Expectations\ExpectCallable; use Codeception\Verify\Expectations\ExpectClass; use Codeception\Verify\Expectations...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Asserts/AssertThrows.php
src/Codeception/Verify/Asserts/AssertThrows.php
<?php declare(strict_types=1); namespace Codeception\Verify\Asserts; use Exception; use PHPUnit\Framework\Assert; use PHPUnit\Framework\ExpectationFailedException; use Throwable; trait AssertThrows { public function assertThrows($throws = null, $message = false): self { if ($throws instanceof Except...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyBaseObject.php
src/Codeception/Verify/Verifiers/VerifyBaseObject.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyBaseObject extends Verify { use VerifyDataTrait; /** * VerifyBaseObject constructor * * @param object $object */ public function __construc...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyDataTrait.php
src/Codeception/Verify/Verifiers/VerifyDataTrait.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use PHPUnit\Framework\Assert; trait VerifyDataTrait { /** * Verifies that a file/dir is not readable. * * @param string $message * @return self */ public function isNotReadable(string $message = ''): self { ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyMixed.php
src/Codeception/Verify/Verifiers/VerifyMixed.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyMixed extends Verify { /** * VerifyMixed constructor. * * @param mixed $actual */ public function __construct($actual) { parent::__c...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyString.php
src/Codeception/Verify/Verifiers/VerifyString.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyString extends Verify { public function __construct(string $string) { parent::__construct($string); } public function containsString(string $needle...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyJsonString.php
src/Codeception/Verify/Verifiers/VerifyJsonString.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyJsonString extends Verify { public function __construct(string $actualJson) { parent::__construct($actualJson); } /** * Verifies that the gene...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyCallable.php
src/Codeception/Verify/Verifiers/VerifyCallable.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Asserts\AssertThrows; use Codeception\Verify\Verify; use Exception; use Throwable; class VerifyCallable extends Verify { use AssertThrows; public function __construct(callable $callable) { parent::__co...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyFile.php
src/Codeception/Verify/Verifiers/VerifyFile.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyFile extends Verify { use VerifyDataTrait; public function __construct(string $actual) { parent::__construct($actual); } /** * Verifies t...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyArray.php
src/Codeception/Verify/Verifiers/VerifyArray.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use ArrayAccess; use Codeception\Exception\InvalidVerifyException; use Codeception\Verify\Verify; use Countable; use PHPUnit\Framework\Assert; use function basename; use function is_array; use function is_iterable; class VerifyArray extends Veri...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyXmlString.php
src/Codeception/Verify/Verifiers/VerifyXmlString.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Exception\InvalidVerifyException; use Codeception\Verify\Verify; use DOMDocument; use PHPUnit\Framework\Assert; use function basename; use function is_string; class VerifyXmlString extends Verify { /** * VerifyXmlString ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyJsonFile.php
src/Codeception/Verify/Verifiers/VerifyJsonFile.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyJsonFile extends Verify { public function __construct(string $actualFile) { parent::__construct($actualFile); } /** * Verifies that two JSON f...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyAny.php
src/Codeception/Verify/Verifiers/VerifyAny.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; class VerifyAny extends VerifyMixed { public function arrayContains($needle, string $message = ''): self { Verify::Array($this->actual)->contains($needle, $message); return $this; } ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyDirectory.php
src/Codeception/Verify/Verifiers/VerifyDirectory.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyDirectory extends Verify { use VerifyDataTrait; /** * VerifyDirectory constructor * * @param string $directory */ public function __constru...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Verifiers/VerifyXmlFile.php
src/Codeception/Verify/Verifiers/VerifyXmlFile.php
<?php declare(strict_types=1); namespace Codeception\Verify\Verifiers; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; class VerifyXmlFile extends Verify { public function __construct(string $actualFile) { parent::__construct($actualFile); } /** * Verifies that two XML fil...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectFile.php
src/Codeception/Verify/Expectations/ExpectFile.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectFile extends Expect { use ExpectDataTrait; public function __construct(string $actual) { parent::__construct($actual); } /** * Expect ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectAny.php
src/Codeception/Verify/Expectations/ExpectAny.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; class ExpectAny extends ExpectMixed { public function arrayToContain($needle, string $message = ''): self { Expect::Array($this->actual)->toContain($needle, $message); return $this; }...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectDataTrait.php
src/Codeception/Verify/Expectations/ExpectDataTrait.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use PHPUnit\Framework\Assert; trait ExpectDataTrait { /** * Expect that a file/dir is not readable. * * @param string $message * @return self */ public function notToBeReadable(string $message = ''): self ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectBaseObject.php
src/Codeception/Verify/Expectations/ExpectBaseObject.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectBaseObject extends Expect { use ExpectDataTrait; /** * ExpectBaseObject constructor * * @param object $object */ public function __const...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectArray.php
src/Codeception/Verify/Expectations/ExpectArray.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use ArrayAccess; use Codeception\Exception\InvalidVerifyException; use Codeception\Verify\Expect; use Countable; use PHPUnit\Framework\Assert; use function basename; use function is_array; use function is_iterable; class ExpectArray extends E...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectString.php
src/Codeception/Verify/Expectations/ExpectString.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectString extends Expect { public function __construct(string $string) { parent::__construct($string); } public function notToContainString(string ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectXmlFile.php
src/Codeception/Verify/Expectations/ExpectXmlFile.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectXmlFile extends Expect { public function __construct(string $actualFile) { parent::__construct($actualFile); } /** * Expect that two XML fi...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectDirectory.php
src/Codeception/Verify/Expectations/ExpectDirectory.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectDirectory extends Expect { use ExpectDataTrait; /** * ExpectDirectory constructor * * @param string $directory */ public function __cons...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectMixed.php
src/Codeception/Verify/Expectations/ExpectMixed.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectMixed extends Expect { /** * ExpectMixed constructor. * * @param mixed $actual */ public function __construct($actual) { parent::...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectJsonFile.php
src/Codeception/Verify/Expectations/ExpectJsonFile.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectJsonFile extends Expect { public function __construct(string $actualFile) { parent::__construct($actualFile); } /** * Expect that two JSON ...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectCallable.php
src/Codeception/Verify/Expectations/ExpectCallable.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Asserts\AssertThrows; use Codeception\Verify\Expect; use Exception; use Throwable; class ExpectCallable extends Expect { use AssertThrows; public function __construct(callable $callable) { parent::_...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectClass.php
src/Codeception/Verify/Expectations/ExpectClass.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use Codeception\Verify\Verifiers\VerifyDataTrait; use PHPUnit\Framework\Assert; class ExpectClass extends Expect { use VerifyDataTrait; /** * ExpectClass constructor * * @param string $cl...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectJsonString.php
src/Codeception/Verify/Expectations/ExpectJsonString.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Verify\Expect; use PHPUnit\Framework\Assert; class ExpectJsonString extends Expect { public function __construct(string $actualJson) { parent::__construct($actualJson); } /** * Expect that the gen...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Verify/Expectations/ExpectXmlString.php
src/Codeception/Verify/Expectations/ExpectXmlString.php
<?php declare(strict_types=1); namespace Codeception\Verify\Expectations; use Codeception\Exception\InvalidVerifyException; use Codeception\Verify\Expect; use DOMDocument; use PHPUnit\Framework\Assert; use function basename; use function is_string; class ExpectXmlString extends Expect { /** * ExpectXmlStri...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/src/Codeception/Exception/InvalidVerifyException.php
src/Codeception/Exception/InvalidVerifyException.php
<?php declare(strict_types=1); namespace Codeception\Exception; use InvalidArgumentException; use function gettype; use function sprintf; final class InvalidVerifyException extends InvalidArgumentException { public function __construct($verifyName, $actual) { $message = sprintf( "%s type...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/tests/InheritanceTest.php
tests/InheritanceTest.php
<?php declare(strict_types=1); include_once __DIR__.'/../src/Codeception/bootstrap.php'; use Codeception\Verify\Verify; use PHPUnit\Framework\Assert; use PHPUnit\Framework\TestCase; include __DIR__.'/../vendor/autoload.php'; final class InheritanceTest extends TestCase { public function testVerifyCanBeExtended...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/tests/ExpectTest.php
tests/ExpectTest.php
<?php declare(strict_types=1); include_once __DIR__.'/../src/Codeception/bootstrap.php'; use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\TestCase; final class ExpectTest extends TestCase { public function testObjectToHaveProperty(): void { $object = new \Stdclass(); $...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
Codeception/Verify
https://github.com/Codeception/Verify/blob/2591031f88a38b3b679315eac2b95ddda025afde/tests/VerifyTest.php
tests/VerifyTest.php
<?php declare(strict_types=1); include_once __DIR__.'/../src/Codeception/bootstrap.php'; use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\TestCase; use PHPUnit\Runner\Version; final class VerifyTest extends TestCase { protected DOMDocument $xml; protected function setUp(): void {...
php
MIT
2591031f88a38b3b679315eac2b95ddda025afde
2026-01-05T04:12:59.093323Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Plugin.php
src/Stitcher/Plugin.php
<?php namespace Stitcher; interface Plugin { public static function getConfigurationPath(): ?string; public static function getServicesPath(): ?string; public static function boot(): void; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/DynamicFactory.php
src/Stitcher/DynamicFactory.php
<?php namespace Stitcher; abstract class DynamicFactory { private $rules = []; public function setRule(string $class, callable $callback): DynamicFactory { $this->rules[$class] = $callback; return $this; } protected function getRules(): array { return $this->rules; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/App.php
src/Stitcher/App.php
<?php namespace Stitcher; use Illuminate\Support\Arr; use Pageon\Config; use Stitcher\Application\DevelopmentServer; use Stitcher\Application\ProductionServer; use Stitcher\Application\Router; use Stitcher\Exception\InvalidConfiguration; use Stitcher\Exception\InvalidPlugin; use Symfony\Component\Config\FileLocator; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Configureable.php
src/Stitcher/Configureable.php
<?php namespace Stitcher; interface Configureable { public function isValidConfiguration($subject): bool; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/File.php
src/Stitcher/File.php
<?php namespace Stitcher; use Symfony\Component\Filesystem\Filesystem; class File { /** @var Filesystem */ private static $fs; /** @var string */ private static $base; public static function base(?string $base): void { self::$base = rtrim($base, '/'); } public static functi...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Task.php
src/Stitcher/Task.php
<?php namespace Stitcher; interface Task { public function execute(): void; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Application/DevelopmentServer.php
src/Stitcher/Application/DevelopmentServer.php
<?php namespace Stitcher\Application; use GuzzleHttp\Psr7\Response; use Stitcher\Task\PartialParse; use Symfony\Component\Routing\Exception\ResourceNotFoundException; class DevelopmentServer extends Server { /** @var string */ protected $rootDirectory; /** @var null|string */ protected $path; /...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Application/ProductionServer.php
src/Stitcher/Application/ProductionServer.php
<?php namespace Stitcher\Application; use GuzzleHttp\Psr7\Response; class ProductionServer extends Server { /** @var string */ protected $rootDirectory; public function __construct(string $rootDirectory) { $this->rootDirectory = $rootDirectory; } public static function make(string $...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Application/Server.php
src/Stitcher/Application/Server.php
<?php namespace Stitcher\Application; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\ServerRequest; use Pageon\Http\HeaderContainer; use Stitcher\Exception\ErrorHandler; use Stitcher\Exception\Http; use Stitcher\Exception\StitcherException; abstract class Server { /** @var Router ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Application/Router.php
src/Stitcher/Application/Router.php
<?php namespace Stitcher\Application; use FastRoute\Dispatcher; use FastRoute\Dispatcher\GroupCountBased; use FastRoute\RouteCollector; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use Stitcher\App; use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; class Router { /** @va...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Renderer/Extension.php
src/Stitcher/Renderer/Extension.php
<?php namespace Stitcher\Renderer; interface Extension { public function name(): string; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Renderer/TwigRenderer.php
src/Stitcher/Renderer/TwigRenderer.php
<?php namespace Stitcher\Renderer; use Stitcher\Exception\InvalidConfiguration; use Symfony\Component\Filesystem\Filesystem; use Twig_Environment; use Twig_Error_Loader; class TwigRenderer extends Twig_Environment implements Renderer { public function __construct(string $templateDirectory) { $fs = ne...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Renderer/RendererFactory.php
src/Stitcher/Renderer/RendererFactory.php
<?php namespace Stitcher\Renderer; use Stitcher\DynamicFactory; class RendererFactory extends DynamicFactory { protected $templateDirectory; protected $rendererConfiguration; protected $extensions = []; public function __construct( string $templateDirectory, ?string $rendererConfigur...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false