Download the PHP package araiyusuke/laravel-fake-api without Composer

On this page you can find all versions of the php package araiyusuke/laravel-fake-api. 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 laravel-fake-api

laravel-fake-api

yml形式のファイルを使ってLaravelにAPIのモック環境を構築するライブラリ

LaravelのRoute定義ファイルで初期化してください。

api-config

APIの設計はyml形式で行う。

suffixを使えば、同じメソッド名で異なるランダムな値を返すことができます

メソッド名_1, メソッド名_2, メソッド名_3

Generators Method

method name random value
rand_name 漢字のフルネーム
rand_firstName 名前
lastName 名字
rand_kanaName カタカナのフルネーム
rand_firstKanaName カタカナの名前
rand_lastKanaName カタカナの名字
rand_country 国
rand_prefecture 県
rand_year 年
rand_month 月
rand_day 日
rand_time 時刻
rand_mail メール
rand_boolean Boolean
rand_realText(int digit) ランダムな文字列
rand_company 会社名
rand_city 市
rand_postcode 郵便番号
rand_streetAddress 番地
rand_latitude 緯度
rand_longitude 経度
rand_password パスワード
rand_phoneNumber 携帯番号 or 家の電話
rand_url URL
rand_ipv4 IPアドレス
rand_isbn10 International Standard Book Number(10)
rand_isbn13 International Standard Book Number(13)
rand_creditCardNumber クレジットカード
increment_id repeatCountを指定した時に連番のIDが出力されます
rand_numberBetween(int,int) 引数に指定した範囲からランダムな数字を返します
rand_randomFloat(少数桁数, 最小値, 最大値) ランダムな浮動小数点数を一つ返す
rand_randomElement(A,...B) 引数に指定した値からランダムで一つ返す

Created by araiyusuke


All versions of laravel-fake-api with dependencies

PHP Build Version
Package Version
No informations.
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 araiyusuke/laravel-fake-api contains the following files

Loading the files please wait ...