Introduction of openpear

30
Copyright © 2009 Sotaro KARASAWA / nequal.jp nequal / sotarok sotaro.k [at] gmail.com openpear Open PEAR Repository Channel

description

Introduction of openpear

Transcript of Introduction of openpear

Page 1: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

nequal / sotaroksotaro.k [at] gmail.com

openpearOpen PEAR Repository Channel

Page 2: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Introduction• A young star of PHP (by yando)• Name

– sotarok / Sotaro KARASAWA• Love

– Pudding– Photo/Camera

• Blogs– http://d.hatena.ne.jp/sotarok/– http://twitter.com/sotarok– ...

Page 3: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

英語で資料つくったけど

ところどころ

おかしいかもしれない

あとでこっそりおしえてください

(´・ω・`)

Page 4: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Agenda• Question• About PEAR• Introduction of openpear• New Features in Next Version

Page 5: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Question• Do you know how many packages in

PyPI

Page 6: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Packages

5727

0 2000 4000 6000 8000 10000 12000 14000 16000

Python

Ruby

Perl

PHP

Page 7: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Packages

5727

7260

0 2000 4000 6000 8000 10000 12000 14000 16000

Python

Ruby

Perl

PHP

Page 8: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Packages

5727

7260

15124

0 2000 4000 6000 8000 10000 12000 14000 16000

Python

Ruby

Perl

PHP

Page 9: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Packages

5727

7260

15124

534

0 2000 4000 6000 8000 10000 12000 14000 16000

Python

Ruby

Perl

PHP

Page 10: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Oh... God...

Page 11: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

About PEAR

Page 12: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

About PEAR• PEAR - PHP Extension and Application Repository• Founded in 1999

– A structured library of open-source code for PHP users– A system for code distribution and package maintenance– A standard style for code written in PHP– The PHP Extension Community Library (PECL) – A web site, mailing lists and download mirrors to support the PHP/PEAR community– A community-driven project

• http://pear.php.net/manual/en/about.pear.php

Page 13: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Actual situation in PEAR• pear.php.net Statistics

– Total 534 packages– Total 315 maintainers– Total 42,454,184 downloads

• http://pear.php.net/package-stats.php

Page 14: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

is PEAR popular now ?• Google Trends 「PEAR PHP」

Page 15: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Why don't people use PEAR ?• Not compatible with E_STRICT (Old packages)• Using framework

– CakePHP– symfony– ...

• Zend Framework ?• Complicated work flow to Release

– Mailing List (in English)– Vote– Make tar-ball and upload

Page 16: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

How about following "PEAR" ?• Anyone can contribute any packages• Coordinate with repository (version controlled)

• Easy to release• Easy to use

夢夢夢夢のようなのようなのようなのような話話話話だだだだ

It's like a dream come true-- sotarok

Page 17: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

powered by nequal

Page 18: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Introductionof openpear

Page 19: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Introduction of openpear• http://openpear.org/• established in 11/2008• opened (not closed) PEAR channel/repository

Page 20: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

openpear : Features• Login with OpenID• Subversion coordinated

– Any logged-in members can commit• Web interface

– Search packages, maintainers– Packaging and Release– Auto register to channel server– Repository browser (like Trac)

• Favorite

Page 21: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

localopenpear.org

createyour

package

Subversionrepository

(auto-generate)

releaseyour

packagePEAR

channelserver

(auto-register)

svn co/ svn up

svn ci

write some code

Work flow in openpear

login

OP

Page 22: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Login with OpenID (2.0)• One-click login

– mixi, Hatena, Google, Yahoo! Japan• Create only Subversion account

Page 23: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Subversion coordinated• mkdir automatically (in svn repository)• checkout -> write some code -> commit• Manage permission

– Anyone (logged in) can commit– Members you allowed can commit

Page 24: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Packaging on the web• Fill the form

– release version– install path– etc...

• Click "Release" button

Page 25: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Packaging on the web• Tagging automatically• Generate package tar ball automatically• Register to channel server automatically

Page 26: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Easy to install package• openpear is also a PEAR channel server

% pear channel-discover openpear.org% pear install openpear/GD_Tab_Guitar% pear list -c openpearINSTALLED PACKAGES, CHANNEL OPENPEAR.ORG:=========================================PACKAGE VERSION STATEGD_Tab_Guitar 0.1.0 stable

Page 27: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

New Featuresin Next Version

Page 28: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

New Features (under development)• Renew web interface• i18n

– after i18n, we will announce in PEAR-DEV ML!!• Tagging (Categorize)• Tickets (Bug track)• Documentation

– Generate API Doc automatically– Package documentation with Wiki style

• Commit timeline– like Github!

Page 29: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

Our goal• A huge variety of packages

– Very useful library– Joke library

• Be infrastructure for all PHP developer's – not only for Japanese developers, but for all PHP developers

Page 30: Introduction of openpear

Copyright © 2009 Sotaro KARASAWA / nequal.jp

We are looking forward toYOUR

commitment!