Skip to content

Commit

Permalink
Refactor GitHub workflow for PHP extension build
Browse files Browse the repository at this point in the history
The update simplifies GitHub workflow operations for PHP extension build and test. The watches were adjusted so that the workflow does not only push in the main branch. Also, the run demo command in the workflow file was replaced with a more premise one to run a PHP file directly.
  • Loading branch information
koriym committed Jun 26, 2024
1 parent 7af89cb commit 4179a02
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Build and Test PHP Extension

on:
man
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand Down Expand Up @@ -41,4 +38,4 @@ jobs:
- name: Run demo
run: |
php -d extension=./modules/rayaop.so -i | grep rayaop
echo '<?php rayaop(); rayaop_advanced();' | php -d extension=./modules/rayaop.so -drayaop.greeting="konichiwa"
php -d extension=./modules/rayaop.so rayphp.php
31 changes: 20 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,30 @@ A PHP extension that provides Aspect-Oriented Programming (AOP) functionality fo
## Installation

2.Compile the extension:
```
phpize
./configure
make
```

```
phpize
./configure
make
```

3. Install the extension:
```
sudo make install
```

```
sudo make install
```

4. Add the following line to your php.ini file:
```
extension=rayaop.so
```

```
extension=rayaop.so
```

## About this Extension

This PECL extension is designed to enhance the performance of Ray.Aop by eliminating the need for CodeGen, resulting in faster execution speeds. While it is primarily created for Ray.Aop, it can also be used to implement custom AOP solutions independently of Ray.Aop.

By using this extension, developers can achieve high-performance method interception without the overhead of generating and compiling additional code.

## Usage

Expand Down

0 comments on commit 4179a02

Please sign in to comment.