Download the PHP package eyewill/tucle-core without Composer

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

This package for laravel 5.3, for 5.2 is here.

インストール

for Vagrant

プロジェクト用に空のフォルダを作成し、Vagurantfileの共有フォルダに追加
config.vm.synced_folder "host/path/to/example-project", "guest/path/to/example-project"
vagrantを再起動し、共有フォルダに移動
> vagrant reload
> vagrant ssh
$ cd guest/path/to/example-project
ウェブサーバーとデータベースを作成

recommend

Composer高速化プラグインをインストール
$ composer global require hirak/prestissimo

共通

laravelプロジェクト作成
$ composer create-project "laravel/laravel=~5.3.0" .
TucleCoreをインストール
$ composer require eyewill/tucle-core:dev-master

# 開発時はcomposer.jsonのautoload-devに以下を追加
$ vi composer.json
"autoload-dev": {
    "files": [
        "../packages/TucleBuilder/vendor/autoload.php",
        "../packages/TucleCore/vendor/autoload.php",
        "../packages/TucleCore/src/helpers.php"
    ]
}
$ composer dumpautoload
TucleCoreサービスプロバイダを登録
$ vi config/app.php
'providers' => [
  ...
  Eyewill\TucleCore\TucleCoreServiceProvider::class,
  ...
],

使い方

初期化

$ php artisan tucle:init

インストール後一度だけ実行してください。

実行するとルートフォルダに.tucleというファイルが作成されます。

.tucleが作成されていて生成対象のファイルが存在する場合、そのタスクはスキップします。

# .envを更新
vi .env
APP_URL=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
MAIL_PORT=1025
FRONT_URL=
# マイグレーション
$ php artisan migrate

ユーザー管理モジュールを作成

$ php artisan tucle:makeuser --force

ユーザー管理画面を作成します

データベースのマイグレーションが終わってから実行してください

--forceをつけない場合、User.phpは更新されません

デフォルトの管理ユーザーを作成

$ php artisan db:seed

再生成

$ php artisan tucle:init --force --only=assets,packages

強制的に上書き実行させる場合は--forceをつけてください。

--only=で任意のタスクを実行できます。

--listで実行できるタスクの一覧を表示します。

リソースを更新 (Resources)

> yarn
> yarn global add bower
> bower install
> yarn run prod
# TucleCoreをpackagesフォルダから読み込む場合は
> yarn run prod-dev

必ず最初に一回実行する必要があります

migrate buildのconfigを出力

> php artisan vendor:publish --provider="Primalbase\Migrate\MigrateServiceProvider"
> vi config/migrate-build.php
> php artisan migrate:build table_name

Presenter

入力フォームの定義

  public $forms = [
    ...
    // セレクトボックス
    [
      'type' => 'select',
      'name' => 'category_id',
      // 未選択時のラベルを定義(未選択状態が不要な場合はfalseをセット)
      'empty_label' => '選択してください',
    ],
    ...
  ],
  ...
  // フィールド名のキャメルケース+Valuesでセレクトボックスの値取得用コールバックになる
  public function categoryIdValues()
  {
    return ['1' => 'fuga', 2 => 'fuga'];
  }

All versions of tucle-core with dependencies

PHP Build Version
Package Version
Requires codesleeve/laravel-stapler Version ^1.0
laravelcollective/html Version ~5.2.0
illuminate/support Version ~5.2.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 eyewill/tucle-core contains the following files

Loading the files please wait ....