[News] phpnar-plugin 0.1.0

172 views
Skip to first unread message

Martin Eisengardt

unread,
Aug 28, 2012, 2:46:50 AM8/28/12
to maven-...@googlegroups.com
Hi.
 
The phpnar-plugin in a pre-version (0.1.0) was released. It helps to compile php binaries for maven-nar-plugin (http://duns.github.com/maven-nar-plugin/). The maven-nar-plugin enables maven to ship, install and identify binaries that fit your local platform. You only specifcy a groupid, artifactid and version and maven-nar-plugin guesses the matching binary. The pom.xml does not contain any hint about the platform you are running so that you can use the same pom.xml on both, linux and windows. The main benefit for us is to provide php binaries over maven and obselete the need to locally install and setup php. Instead let maven do this for you.
 
We are providing php starting from 5.3.0 through maven in the next days. Some versions are available in the next days (starting with 5.4.0 the nexus is populated):
 
You could even use it manually by using the maven nar plugin goals: http://duns.github.com/maven-nar-plugin/
Or you simply wait for some more handy goals (f.e. "mvn org.phpmaven:maven-php-plugin:install-php"). Ask for a small example if you cannot run it on your own. It will take some more days to provide the goals for local php install.
 
 
What versions do we provide?
In php-maven we start at 5.3.0 and provide every release version up to the current version (5.3.16 and 5.4.6) as well as future releases,
 
What Platforms are supported?
x86 (32bit) Windows via vc9
amd64 Windows via vc9
x86 (32bit) Linux via gcc
amd64 Linux via gcc
ppc MacOSX via gcc crosscompile
i386 (32bit) MacOSX via gcc crosscompile
x86_64 MacOSX via gcc crosscompile
 
If you need another platform please ask for it.
 
About your own compilation/ suhosin and others.
We use net.php:php for unmodified compilations.
There are several patches around. We want to provide the suhosin patches version too. You can provide your own version too. However keep in mind to not use the original net.php:php tag for a patched or modified php version. Instead use a group id specific to your patch.
We are planning to provide some sapis (most important the apache dll) via maven too.
 
About extensions
Using dependencies will become more handy. The next plugin aims to compile php extensions for maven-nar. We will provide the common built in extensions and the pecl extensions in the phpmaven repository as well as xdebug.
Setup of extensions will become very easy. For example via pom.xml: "<extensions><extension>bzip2</extension><extension>myext</extension></extension><zendExtension>xdebug</zendExtension>"
And even your php project can contain a hint for the minimum php version or the extensions it needs:
<dependencies>
  <dependency>
    <groupId>net.php</groupId>
    <artifactId>php</artifactId>
    <version>[5.3.5,5.4.0)</version>
    <type>phpnar</type>
  </dependency>
  <dependency>
    <groupId>net.php.extension</groupId>
    <artifactId>bzip2</artifactId>
    <type>phpext</type>
  </dependency>
</dependencies>
 
Have fun
Martin
 

Shadowalker

unread,
Aug 28, 2012, 10:27:56 AM8/28/12
to maven-...@googlegroups.com
Hi.
Maybe a full tutorial on the use of this plugin (maybe a sample project) would be awesome and very useful I think.
Cheers.

Martin Eisengardt

unread,
Aug 28, 2012, 10:35:16 AM8/28/12
to maven-...@googlegroups.com
I am working on it :)

--
You received this message because you are subscribed to the Google Groups "Maven for PHP" group.
To view this discussion on the web visit https://groups.google.com/d/msg/maven-for-php/-/_4SDWpiKgcgJ.

To post to this group, send email to maven-...@googlegroups.com.
To unsubscribe from this group, send email to maven-for-ph...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maven-for-php?hl=en.

tma...@fastbooking.net

unread,
Sep 11, 2013, 11:20:08 AM9/11/13
to maven-...@googlegroups.com
All your urls http://nexus.php-maven.org/* fail with 503 error code.


Le mardi 28 août 2012 08:46:50 UTC+2, Martin Eisengardt a écrit :
Reply all
Reply to author
Forward
0 new messages