Download the PHP package bigsinoos/j-eloquent without Composer

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

Deprecation Notice

For newer versions of Laravel just use the simple attribute casting functionality which is a really nicer approach.

What is j-Eloquent?

Thanks to Laravel, Django and Rails we all know that convention over configuration (CoC) makes the development more funny. So suppose that you want to convert the Gregorian date attributes of your models to Jalali (persian) dates, in this case helps you to convert them conventionally, for example when you access a property named on your model, the detects the convention automatically and tries to convert property of your model if it is a date attribute. This is also true for and fields.

Installation

require following line in your composer secion :

Requirement

this package requires : miladr/jalali

Features

Documentation

The :

By using trait in your models you can enable the plugin :

Usage

By default you can access your eloquent date attributes in jalali date by adding a substring to the begining of your original attribute like :

Changing prefix

You can change the jalali date convention prefix with overriding and or by overrriding property on your model class :

Custom date attributes :

You can tell Eloquent that which one of your fields are date attributes like created_at and updated_at, then Eloquent treats them like objects you define multiple date attributes like this :

When using the above trait all of the fields that are treated like date objects by Laravel will be available for conventional converting. They will be also added to model's , and methods.

Converter helper method

The method allowes you to normally convert one of your fields, from Gregorian date to Jalali date :


All versions of j-eloquent with dependencies

PHP Build Version
Package Version
Requires illuminate/database Version 5.1.* || 5.2.* || 5.3.* || 5.4.*
miladr/jalali Version 0.*
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 bigsinoos/j-eloquent contains the following files

Loading the files please wait ....