The.NET Framework version 2.0 (x64) improves scalability and performance with improved caching, application deployment and updating with ClickOnce, support for the broadest array of browsers and devices with ASP.NET 2.0 controls and services and 64-bit support. For more information on the.NET Framework 2.0 click here.
![]()
This package has been abandoned and is no longer maintained. Caffeinated GitHubThis is a Laravel 5 GitHub API Wrapper package that is heavily influenced by both KNP Labs client and Graham Campbell's package. It's essentially a merger of the two packages born out of the need for more control over the code base for some personal projects.
Notable Differences. Utilizes GuzzleHttp v5.0. Certification verification is disabled. Only supports token authentication for the time being. Has very few API implementationsDocumentationYou will find user friendly and updated documentation in the wiki here: Quick InstallationBegin by installing the package through Composer. Composer require caffeinated/github=2.0Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file: Service Provider.
Getting StartedIntroduction
The Caffeinated Repository package allows the means to implement a standard boilerplate repository interface. This covers the standard Eloquent methods in a non-static, non-facade driven way right out of the box. Fear not though Batman! The Caffeinated Repository package does not limit you in any way when it comes to customizing (e.g overriding) the provided interface or adding your own methods.
Installing Caffeinated Repository![]()
It is recommended that you install the package using Composer.
This package is compliant with PSR-1, PSR-2, and PSR-4. If you find any compliance oversights, please send a patch via pull request.
Create a Model
Create your model like you normally would. We'll be wrapping our repository around our model to access and query the database for the information we need.
Create a Repository
Create a new Repository class - usually these classes are simply stored within a
Repositories directory. There are a few requirements for each repository instance:
![]()
Injecting a Repository
Once you've built and configured your repository instance, you may inject the class within your classes where needed:
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |