Coder Social home page Coder Social logo

fengweijp / peachpie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peachpiecompiler/peachpie

0.0 2.0 0.0 59.13 MB

PeachPie - the PHP compiler and runtime for .NET and .NET Core

Home Page: https://www.peachpie.io

License: Apache License 2.0

PowerShell 0.03% Batchfile 0.01% Shell 0.04% C# 97.61% Lex 0.22% Yacc 0.03% PHP 2.04% XSLT 0.03%

peachpie's Introduction


PeachPie
PeachPie Compiler

The open-source PHP compiler to .NET

We recommend using the project with caution and testing it thoroughly before utilizing PeachPie in a production environment. There may still be inconsistencies and incompatibilities with the PHP language; if you run into any issues, kindly let us know and we'll do our best to address them. Take a look at our Roadmap to see which features and extensions we still have to implement.

We are now a member of the .NET Foundation!

Continuous Integration

Service Platform Build Status
Travis CI Ubuntu Travis Build status
AppVeyor VS/Windows AppVeyor Build status
Azure DevOps Windows VSTS Build Status

What is PeachPie?

PeachPie is a modern PHP compiler based on the Microsoft Roslyn compiler platform and drawing from our popular Phalanger project. It allows PHP to be executed within the .NET framework, thereby opening the door for PHP developers into the world of .NET โ€“ and vice versa.

Status and Compatibility

You can find an up-to-date status of the project in our Roadmap section. Please note that the status is dynamic; PeachPie is a work in progress, which means that the list of finished and planned features frequently changes and will be updated on a regular basis. To see the current status of compatibility with the PHP language, please refer to our Compatibility overview.

Project goals

  • Increased performance: PeachPie's extensive type analysis and the influence of Microsoft Roslyn should provide an improved performance of PHP applications and components.

  • Security: since programs run within the standardized and manageable .NET or .NET Core environment, the code is fully verifiable without any unsafe constructs. In addition, PHP applications can be distributed source-lessly for added security benefits.

  • Cross-platform development: the project compiles legacy PHP code into portable class libraries, enabling developers to build cross-platform apps and libraries for Microsoft platforms.

  • Full .NET compatibility: compiled programs run on the reimplemented PeachPie runtime, fully compatibly with the PHP runtime.

  • Both-way interoperability: the project allows for hybrid applications, where parts are written in C# and others in PHP. The parts will be entirely compatible and can communicate seamlessly, all within the .NET framework.

How to use PeachPie

There are currently two ways of using PeachPie via msbuild: in your favorite shell or comfortably in Visual Studio 2017/Visual Studio Code using our official extensions.

Visual Studio

Download our official Visual Studio extension, which makes working with PeachPie compiler as convenient as possible. The extension allows you to easily create a new project using our templates, build & debug, profile your PHP code using the VS diagnostic tools and deploy your project to Azure:

Peachpie Extension

Visual Studio Code

Grab our VSCode extension to quickstart your development with a more lightweight editor. The extension automatically installs all required dependencies, enables the PeachPie: Create project command, syntax error underlining and PeachPie analytics:

Peachpie Extension

Command line building

Alternatively, you can also work with PeachPie on the command line. Please refer to our short introduction video to see how to run the compiler on the command line and to the Getting Started section in our documentation.

How to contribute?

We can use all the help we can get. You can contribute to our repository, spread the word about this project, or give us a small donation to help fund the development. If you believe you have valuable knowledge and experience to add to this project, please do not hesitate to contribute to our repo โ€“ your help is much appreciated.

However, please read the Contribution Guidelines first and ensure you are following them. Also, we kindly ask you to respect our Code of Conduct when posting or interacting with other users.

You can also contribute by donating a dollar or two to the development of PeachPie:

Providing feedback

If you found a bug, have a question or if you have an improvement suggestion, the easiest way of providing feedback is to post it on Gitter or submit an issue here on GitHub. We try to respond as quickly as possible.

.NET Foundation

.NET Foundation
This project is supported by the .NET Foundation.

How to get in touch?

If you have a problem or question, the easiest way is to submit an issue here. You can also follow us on Twitter or Facebook and contact us there regarding your questions or ask the community for support on Gitter, but please understand that we do not provide email support.

For partnership inquiries, commercial support or other questions, please contact us via email at [email protected].

peachpie's People

Contributors

jakubmisek avatar roberthusak avatar petrroll avatar bfistein avatar jan-pavlovsky avatar iamcarbon avatar gordon-matt avatar jondmcelroy avatar bgrainger avatar tobihille avatar dpen2000 avatar jdluzen avatar gitter-badger avatar crbrz avatar dlob avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.