Phundament 3 via composer (PHP Package Manager)

104 views
Skip to first unread message

schmunk

unread,
Mar 24, 2012, 8:02:30 AM3/24/12
to phundam...@googlegroups.com
Hi guys,

for those who wanna check out some cool new stuff on the weekend, just go here:

https://github.com/phundament/app

It's Phundament 3 via composer, a Package Manager Proof-of-Concept for Yii 1.1! :lol: 
Please let me know if this works for you basically.


Best regards,
schmunk 

schmunk

unread,
Mar 28, 2012, 7:36:33 AM3/28/12
to phundam...@googlegroups.com
Installation protocol:
 
Kraftbuch:phundament-app-535c2df tobias$ php composer.phar self-update
Updating to version a3185c7.
    Downloading: 100%         
Kraftbuch:phundament-app-535c2df tobias$ php composer.phar install
Installing dependencies                                                      
  - Package mishamx/yii-user (0.3.107)
    Downloading: 100%         
    Unpacking archive
    Cleaning up

  - Package crisu83/yii-rights (master)
    Cloning tip

  - Package crisu83/yii-bootstrap (master)
    Cloning tip

  - Package crisu83/yii-less (master)
    Cloning tip

  - Package phundament/themes/p3bootstrap (dev-master)
    Cloning 554210b8b8e9ef8d182d2b858686695e5f448dae

  - Package phundament/lessii (dev-master)
    Cloning 08c3faf7210f2fb4d5459838c431ff3973b40e6d

  - Package phundament/gii-template-collection (dev-master)
    Cloning 233efe309923891d3dd0f93465f2d1294d8b5d34

  - Package phundament/p3media (dev-master)
    Cloning e3a3c108f7141e91e67e934e1f2cac0efe5bd930

  - Package phundament/p3pages (dev-master)
    Cloning 3f1a343225fae761722145e511b0ddbb8b557900

  - Package phundament/p3widgets (dev-master)
    Cloning 60203f731c2882ae51baa0e9b2973b3d71fa723e

  - Package phundament/p3admin (dev-master)
    Cloning d1a67f06894130335065675ccfa6f1449597ae33

  - Package phundament/p3extensions (dev-master)
    Cloning 023ea6efed0edf47bd16259e4636298681eb7d4f

  - Package phundament/p3install (dev-master)
    Cloning ed7e5e82feaa5ec83f5eb65ce1f205c0396d22d4

Writing lock file
Generating autoload files
Kraftbuch:phundament-app-535c2df tobias$ p3/setup.sh ../../github/yii/framework/yiic
========================
Phundament 3 Quick Setup
========================

This script will do to following:
1. if a valid yiic command is provided as first parameter, it will setup a Yii web application skeleton
2. it will call Yii migration commands to setup the database schema
3. it create appropriate folder permissions for P3Media the media manager module

STAGE 1
For providing an out-of-the-box running web application, we had to modify 'config/main','config/console' and 'layouts/main'.
Note: Skip '...overwrite?' for these files by hitting <enter>

Running command: /Users/tobias/Webserver/github/yii/framework/yiic webapp /Users/tobias/Webserver/TESTING/phundament-app-535c2df

Create a Web application under '/Users/tobias/Webserver/TESTING/phundament-app-535c2df'? [yes|no] y
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/assets
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/css
   generate css/bg.gif
   generate css/form.css
   generate css/ie.css
   generate css/main.css
   generate css/print.css
   generate css/screen.css
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/images
   generate index-test.php
   generate index.php
   generate protected/.htaccess
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/commands
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/commands/shell
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/components
   generate protected/components/Controller.php
   generate protected/components/UserIdentity.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/config
   generate protected/config/console.php
   generate protected/config/main.php
   generate protected/config/test.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/controllers
   generate protected/controllers/SiteController.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/data
   generate protected/data/schema.mysql.sql
   generate protected/data/schema.sqlite.sql
   generate protected/data/testdrive.db
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/messages
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/migrations
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/models
   generate protected/models/ContactForm.php
   generate protected/models/LoginForm.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/runtime
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/tests
   generate protected/tests/bootstrap.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/tests/fixtures
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/tests/functional
   generate protected/tests/functional/SiteTest.php
   generate protected/tests/phpunit.xml
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/tests/report
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/tests/unit
   generate protected/tests/WebTestCase.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/views
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/views/layouts
   generate protected/views/layouts/column1.php
   generate protected/views/layouts/column2.php
   generate protected/views/layouts/main.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/views/site
   generate protected/views/site/contact.php
   generate protected/views/site/error.php
   generate protected/views/site/index.php
   generate protected/views/site/login.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/protected/views/site/pages
   generate protected/views/site/pages/about.php
   generate protected/yiic
   generate protected/yiic.bat
   generate protected/yiic.php
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/themes
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/themes/classic
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/themes/classic/views
   generate themes/classic/views/.htaccess
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/themes/classic/views/layouts
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/themes/classic/views/site
      mkdir /Users/tobias/Webserver/TESTING/phundament-app-535c2df/themes/classic/views/system

Your application has been created successfully under /Users/tobias/Webserver/TESTING/phundament-app-535c2df.

STAGE 2
Apply database migrations? (y/n)
y
Applying migrations...

Yii Migration Tool v1.0 (based on Yii v1.1.11-dev)

Creating migration history table "migration_module_user"...done.
Total 2 new migrations to be applied:
    m110402_195159_init
    m111013_235000_editor

*** applying m110402_195159_init
    > create table usr_users ... done (time: 0.001s)
    > insert into usr_users ... done (time: 0.001s)
    > insert into usr_users ... done (time: 0.001s)
    > create table usr_profiles ... done (time: 0.002s)
    > insert into usr_profiles ... done (time: 0.001s)
    > insert into usr_profiles ... done (time: 0.001s)
    > create table usr_profiles_fields ... done (time: 0.002s)
    > insert into usr_profiles_fields ... done (time: 0.001s)
    > insert into usr_profiles_fields ... done (time: 0.001s)
    > insert into usr_profiles_fields ... done (time: 0.001s)
*** applied m110402_195159_init (time: 0.016s)

*** applying m111013_235000_editor
    > insert into usr_users ... done (time: 0.002s)
    > insert into usr_profiles ... done (time: 0.002s)
*** applied m111013_235000_editor (time: 0.005s)


Migrated up successfully.

Yii Migration Tool v1.0 (based on Yii v1.1.11-dev)

Creating migration history table "migration_module_rights"...done.
Total 2 new migrations to be applied:
    m110402_195159_init
    m111013_235000_p3items

*** applying m110402_195159_init
    > create table AuthAssignment ... done (time: 0.002s)
    > create table AuthItem ... done (time: 0.001s)
    > create table AuthItemChild ... done (time: 0.001s)
    > create table Rights ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
*** applied m110402_195159_init (time: 0.010s)

*** applying m111013_235000_p3items
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.002s)
    > insert into AuthItem ... done (time: 0.002s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItem ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthItemChild ... done (time: 0.001s)
    > insert into AuthAssignment ... done (time: 0.001s)
    > insert into AuthAssignment ... done (time: 0.001s)
    > insert into AuthAssignment ... done (time: 0.001s)
*** applied m111013_235000_p3items (time: 0.037s)


Migrated up successfully.

Yii Migration Tool v1.0 (based on Yii v1.1.11-dev)

Creating migration history table "migration_module_p3widgets"...done.
Total 4 new migrations to be applied:
    m110518_000000_init
    m111028_000000_meta
    m120309_021733_translation
    m120312_192854_democontent2

*** applying m110518_000000_init
    > create table p3_widget ... done (time: 0.001s)
*** applied m110518_000000_init (time: 0.003s)

*** applying m111028_000000_meta
    > create table p3_widget_meta ... done (time: 0.002s)
*** applied m111028_000000_meta (time: 0.003s)

*** applying m120309_021733_translation

    > create table p3_widget_translation ... done (time: 0.001s)
*** applied m120309_021733_translation (time: 0.002s)

*** applying m120312_192854_democontent2

    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget ... done (time: 0.001s)
    > insert into p3_widget_meta ... done (time: 0.001s)
    > insert into p3_widget_meta ... done (time: 0.002s)
    > insert into p3_widget_meta ... done (time: 0.002s)
    > insert into p3_widget_meta ... done (time: 0.002s)
    > insert into p3_widget_meta ... done (time: 0.001s)
    > insert into p3_widget_meta ... done (time: 0.001s)
    > insert into p3_widget_meta ... done (time: 0.001s)
    > insert into p3_widget_meta ... done (time: 0.001s)
    > insert into p3_widget_meta ... done (time: 0.001s)
    > insert into p3_widget_translation ... done (time: 0.001s)
    > insert into p3_widget_translation ... done (time: 0.001s)
    > insert into p3_widget_translation ... done (time: 0.001s)
    > insert into p3_widget_translation ... done (time: 0.001s)
    > insert into p3_widget_translation ... done (time: 0.001s)
    > insert into p3_widget_translation ... done (time: 0.001s)
    > insert into p3_widget_translation ... done (time: 0.001s)
*** applied m120312_192854_democontent2 (time: 0.030s)


Migrated up successfully.

Yii Migration Tool v1.0 (based on Yii v1.1.11-dev)

Creating migration history table "migration_module_p3media"...done.
Total 1 new migration to be applied:
    m110719_000000_init

*** applying m110719_000000_init
    > create table p3_media ... done (time: 0.002s)
    > create table p3_media_meta ... done (time: 0.002s)
*** applied m110719_000000_init (time: 0.005s)


Migrated up successfully.

Yii Migration Tool v1.0 (based on Yii v1.1.11-dev)

Creating migration history table "migration_module_p3pages"...done.
Total 2 new migrations to be applied:
    m120312_182502_init
    m120315_183733_pages

*** applying m120312_182502_init

    > create table p3_page ... done (time: 0.001s)
    > create table p3_page_meta ... done (time: 0.002s)
    > create table p3_page_translation ... done (time: 0.001s)
*** applied m120312_182502_init (time: 0.006s)

*** applying m120315_183733_pages

    > insert into p3_page ... done (time: 0.001s)
    > insert into p3_page ... done (time: 0.001s)
    > insert into p3_page ... done (time: 0.001s)
    > insert into p3_page ... done (time: 0.001s)
    > insert into p3_page_meta ... done (time: 0.001s)
    > insert into p3_page_meta ... done (time: 0.001s)
    > insert into p3_page_meta ... done (time: 0.001s)
    > insert into p3_page_meta ... done (time: 0.001s)
    > insert into p3_page_translation ... done (time: 0.001s)
    > insert into p3_page_translation ... done (time: 0.001s)
    > insert into p3_page_translation ... done (time: 0.001s)
*** applied m120315_183733_pages (time: 0.013s)


Migrated up successfully.

STAGE 3
Setup folder permissions? (y/n)
y
chmod: ./extensions/_themes/bootstrap/css: No such file or directory
~/Webserver/TESTING/phundament-app-535c2df

Installation complete.
Thank you for choosing Phundament 3.
Kraftbuch:phundament-app-535c2df tobias$

Don't forget to update your config ... 
Reply all
Reply to author
Forward
0 new messages