频率1 / newage-ipsum
该包最新版本(dev-master)没有可用的许可证信息。
Seb Pearce受启发的/移植到PHP的新旧版ipsum生成器 https://github.com/sebpearce/bullshit
dev-master
2014-08-14 06:53 UTC
Requires
- php: >=5.4.0
- fzaninotto/faker: ~1
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-19 02:41:44 UTC
README
A new aged ipsum generator inspired/ported to php by Seb Pearce https://github.com/sebpearce/bullshit. It was just to good to not use with tests!
###使用方法
$generator = new \NewAgeIpsum\Generator(); $generator->generateSentence();
###Faker 你也可以与出色的Faker库一起使用!(它实际上是为此设计的)
https://github.com/fzaninotto/Faker
$faker = new Faker\Generator(); $faker->addProvider(new NewAgeProvider($faker));
这将用newage版本替换默认的Faker\Provider\Lorem方法
word // 'dreamscape'
words($nb = 3) // array('develop', 'healing', 'harmonizing')
sentence() // 'You will soon be guided by a power deep within yourself — a power that is technological, unlimited.'
sentences($nb = 3) // array('We are in the midst of a internal condensing of fulfillment that will open up the infinite itself.', 'As you self-actualize, you will enter into infinite joy that transcends understanding.')
paragraph($nbSentences = 3) // 'This life is nothing short of a blossoming flow of intergalatic empathy. To go along the circuit is to become one with it. prophet, look within and synergize yourself.'
paragraphs($nb = 3) // array('We heal, we vibrate, we are reborn. We are in the midst of a spiritual ennobling of peace that will align us with the quantum cycle itself. The solar system is calling to you via four-dimensional superstructures. Can you hear it? This life is nothing short of a flowering quantum leap of powerful transcendence. Have you found your quest?', 'choice is the driver of science. We must unify ourselves and recreate others. We must learn how to lead interstellar lives in the face of discontinuity.', 'Reality has always been adjWith warriors whose lives are enveloped in nature. Soon there will be a unfolding of being the likes of which the stratosphere has never seen.')
text($maxNbChars = 200) // 'How should you navigate this mystical cosmos? Who are we? Where on the great circuit will we be recreated? Who are we? Where on the great story will we be aligned?It is a sign of things to come. Throu'