Download the PHP package beco/yii-common without Composer

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

Common Stuff for Yii2 Projects

Instalation

composer require beco/yii-common:dev-main

Provides

Images

add the following line to start.sh ./yii migrate --migrationPath=beco/yii/migrations/image --interactive=0

New project starter

Moved to beco\yii2-basic-template

Human, DateTime and Relative functions

If you have a field which is a date or a datetime column in mysql, aka yyyy-mm-dd or yyyy-mm-dd hh:ii:ss, let's call it starts_at, by extending beco\yii\db\ActiveRecord you automatically have three new functions:

  1. $model->starts_atHumanreturns a nice print of the date as "jueves 2 de mayo del 2015 a las 12:34pm"
  2. $model->starts_atRelative returns how much time is left for such date in a human way
  3. $model->starts_atDateTime a \DateTime representation of such date

Automatically you also have starts_atHuman and startsAtHuman.

Info

Then, in order to get some local handling use intermediate classes:

Changelog

v0.1.10

v0.1.8

v0.1.6

v0.1.5

v0.1.2

To do

[] separate system/new from system/setup only for config files rather than code files [x] add LoginForm to templates [] scheduler and beat [x] ~beco\yii\db\LoggableActiveRecord~ include log capabilites to all ActiveRecord [] improve documentation [] should all tables from this packages be beco_table_name?


All versions of yii-common with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
yiisoft/yii2 Version ^2.0
ext-intl Version *
yiisoft/yii2-bootstrap5 Version ~2.0.2
yiisoft/yii2-smarty Version ^2.0
yiisoft/yii2-httpclient Version *
yiisoft/mutex Version *
raoul2000/yii2-workflow Version *
skeeks/yii2-mobile-detect Version ^1.0
yiisoft/yii2-queue Version ^2.3
yiisoft/yii2-debug Version ~2.1.0
mailgun/mailgun-php Version ^3
aws/aws-sdk-php Version ^3.361
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 beco/yii-common contains the following files

Loading the files please wait ...