ccmbenchmark/ting
Ting is a lightweight Laravel/PHP package from ccmbenchmark that adds simple benchmarking utilities to time and compare code paths. Use it to measure execution duration, collect results, and quickly spot slow sections during local development and profiling.
ting for read-heavy or complex queries while keeping Eloquent for CRUD).AppServiceProvider.hasOne/belongsTo).Repository pattern)?ting addresses better?ting outweigh benefits compared to Eloquent?ting be incrementally adopted (e.g., for new modules) or is a full rewrite needed?ting?ting provides clear benefits (e.g., complex read operations).ting repositories as confidence grows.ting for repositories and Eloquent for models where relationships or events are critical.// Existing Eloquent model
class User extends Model {}
// New ting repository
class UserRepository {
public function findActiveUsers(): array {
return (new QueryBuilder)->select('*')->from('users')->where('active', true)->fetchAll();
}
}
$this->app->bind(UserRepository::class, function ($app) {
return new UserRepository($app->make(PDO::class));
});
ting.ting repositories for domain-critical modules.ting by default.ting where possible.fill()).make:repository (custom Artisan command) to scaffold ting repositories.ting.DB::transaction().ting’s API.How can I help you explore Laravel packages today?