Download the PHP package ibonly/potato-orm without Composer

On this page you can find all versions of the php package ibonly/potato-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package potato-orm

ƒ# Potato-ORM

Build Status License Quality Score Scruitinizer Code Code Climate Test Coverage

Potato-ORM is a package that manages the CRUD operation of database. Potato-ORM currently supports MYSQL, POSTGRES and SQLITE Database.

Installation

PHP 5.5+ and Composer are required.

Via Composer

Usage

App Namespace

Create a Class that correspond to the singular form of the table name in the database. i.e.

The table name can also be defined in the model if the user wants it to be specified.

The fields that is to be output can also be specified as protected $fillables = [].

The Model class contains getAll(), where([$field => $value]), find($value), save(), update() and detroy($id) methods.

getAll()

Return type = JSON

where($field, $value)

Passing conditions to where

Return type = String

Update($value):

To return custom message, wrap the `save()` method in an `if statement`

Return type = Boolean

save()

To return custom message, wrap the `save()` method in an `if statement`

Return type = Boolean

file($fileName)->uploadFile()

This method is used to upload file, it can only be used along side save() and update($id)

detroy($value)

Return type = Boolean

Create Database Table

Its is also possible to create Database Table with the Schema class. The table name will be specified in the createTable($name) method.

Return type = Boolean

Database Constraint

Foreign Key

The reference table (users) and field (id) will be written as (users-id)

Unique Key

Testing

Contributing

To contribute and extend the scope of this package, Please check out CONTRIBUTING file for detailed contribution guidelines.

Credits

Potato-ORM is created and maintained by Ibraheem ADENIYI.


All versions of potato-orm with dependencies

PHP Build Version
Package Version
Requires vlucas/phpdotenv Version ^2.0
php Version >=5.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ibonly/potato-orm contains the following files

Loading the files please wait ....