folded-php / orm Goto Github PK
View Code? Open in Web Editor NEWAn ORM for you web app.
Home Page: https://packagist.org/packages/folded/orm
License: MIT License
An ORM for you web app.
Home Page: https://packagist.org/packages/folded/orm
License: MIT License
The current command is ... required ...
where it should be ... require ...
(note that the d
is not present in the latter).
The class DatabaseConnection is not meant to be extended. Mark it as final.
The class DatabaseConnection is marked as final.
None.
None.
When the code loads functions, it should detect the existance of the function under the namespace instead of just the name of the function
The call of function_exists()
use the full qualified namespace.
namespace Folded;
if (!function_exists("Folded\theFunction")) {
// load the function now
}
Functions declared twice enters in collision.
None.
Static analysis helps catching bugs earlier.
pest --coverage && phpstan analyse src
phpstan.neon
configuration fileNone.
None.
Currently, we have to use a verbose code to access a specific page using the paginate method.
Some kind of method to easily go to a specific page:
$posts = Post::toPage($_GET["page"] ?? 1)->paginate(15);
A verbose code is needed:
$posts = Post::paginate(15, ['*'], 'page', $_GET["page"] ?? 1);
Calling ->paginate(15)
on a model will raise an error.
Use method ->paginate(15)
method on a model.
// app/Post.php
namespace App;
use Folded\Model;
class Post extends Model {}
// index.php
use App\Post;
Post::paginate(15);
The model returns an iterable with pagination feature as per the Laravel Eloquent's Pagination documentation.
This error is raised:
Uncaught Error: Class 'Illuminate\Pagination\Paginator' not found
Limiting results, and using ->offset()
manually to simulate a pagination.
There is no templates for bugs and enhancements, which can reduce the chances someone will want to describe his issue or can make difficult to format and clarify an issue without proper templates.
For an enhancements, the following sections (using level 2 title, ##
) should be shown:
The text hints, using italic, should be shown below each of these titles (without the double quotes):
For a bug, the following sections (using level 2 title, ##
) should be shown:
The text hints, using italic, should be show below each of these titles (without the double quotes):
To write by hand the issue layout.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.