Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Raeen committed Jan 22, 2021
2 parents 07511a9 + 7066458 commit 37112d9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
50 changes: 46 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,32 @@

You can use python in php with it

[![Latest Stable Version](https://poser.pugx.org/raeen/phpy/v)](//packagist.org/packages/raeen/phpy) [![Total Downloads](https://poser.pugx.org/raeen/phpy/downloads)](//packagist.org/packages/raeen/phpy) [![Latest Unstable Version](https://poser.pugx.org/raeen/phpy/v/unstable)](//packagist.org/packages/raeen/phpy) [![License](https://poser.pugx.org/raeen/phpy/license)](//packagist.org/packages/raeen/phpy)[![Monthly Downloads](https://poser.pugx.org/raeen/phpy/d/monthly)](//packagist.org/packages/raeen/phpy) [![Daily Downloads](https://poser.pugx.org/raeen/phpy/d/daily)](//packagist.org/packages/raeen/phpy)

***
## Features
- Show all output from python file
- Show last line output from python
- Send data to python file
- Get data from python file
- show image in php from python
- path Genrate
- write python line code
- mange python line code
- write python part
- require python part
***
**Install**

**Install**
```batch
git clone https://github.com/Raeen123/phpy
```
```batch
composer require raeen/phpy
```

***

**Python**

We use these libraries for create phpy.py:
Expand All @@ -32,7 +51,7 @@ Get datas to python file
For Get data you must

```python
get_data( Number Of Send data )
phpy.get_data( Number Of Send data )
```


Expand Down Expand Up @@ -122,8 +141,7 @@ Example
$python->img($output,$type,true,
[
'border' => '1px solid red'
]
)
])
```
***
**Path**
Expand Down Expand Up @@ -209,6 +227,30 @@ For get output anywhere you should use this
$Snippet->require(name)
```

**Example , index.php :**

```php
$Snippet->start("test");
$Snippet->line("a = 'Hello world'");
$Snippet->line("print(a)");
echo $Snippet->end("test");
```

```output
Output : Hello world
```

**You can use this code in another file**

```php

$Snippet->require("test");

```

```output
Output : Hello world
```
***

**License**
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"type": "library",
"description" : "Use python in php very easy",
"license" : "MIT",
"version" : "2.0.1",
"authors": [
{
"name": "Raeen",
Expand Down

0 comments on commit 37112d9

Please sign in to comment.