Download the PHP package joaojkuligowski/mypersist without Composer

On this page you can find all versions of the php package joaojkuligowski/mypersist. 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 mypersist

MyPersist

MyPersist is a lightweight micro ORM (Object-Relational Mapping) for PHP that supports both PDO (for database interaction) and JSON files (for lightweight data storage). This library allows you to easily create, read, update, and delete data while maintaining a clean and simple codebase.

Features

Installation

You can install MyPersist via Composer.

Usage

Setup

First, create a new instance of the Base class. You can choose the storage driver (PDO or JSON).

Using PDO (SQLite)

Using JSON

Basic Operations

Inserting Data

To insert data into a table, use the insert method:

Selecting Data

To retrieve data from a table, use the select method:

Upserting Data

To insert or update a record, use the upsert method. This is particularly useful for maintaining unique records:

Working with joins

To join data, use the join method:

Docs

Complete Documentation

Table and Column Management

The library automatically creates tables and columns as needed. If you insert data into a table that doesn’t exist, it will be created with the appropriate columns.

Error Handling

All methods include basic error handling. If an error occurs during database operations, it will output an error message. You can further enhance error handling based on your requirements.

Running Tests

You can run the tests using PHPUnit. First, ensure you have PHPUnit installed, then execute:

Contributing

If you'd like to contribute to MyPersist, feel free to fork the repository and submit a pull request. Ensure you follow the coding standards and include tests for any new features or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.


All versions of mypersist with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 joaojkuligowski/mypersist contains the following files

Loading the files please wait ....