Skip to content

Commit 506fdda

Browse files
committed
Release version 0.12.0
1 parent a55d3bc commit 506fdda

File tree

4 files changed

+169
-107
lines changed

4 files changed

+169
-107
lines changed

.gitattributes

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# Exclude unnecessary files from Composer and Git exports
2-
/docs/ export-ignore
3-
#/evals/ export-ignore # include this one with distribution
4-
#/examples/ export-ignore # include this one with distribution
52
/.github/ export-ignore
6-
/notes/ export-ignore
7-
/tests/ export-ignore
83
/.gitignore export-ignore
94
/.gitattributes export-ignore
105
/.cursorignore export-ignore
@@ -21,6 +16,16 @@
2116
*.md export-ignore
2217
*.mdx export-ignore
2318

19+
# Project specific ignores
20+
/archived/ export-ignore
21+
/docs/ export-ignore
22+
#/evals/ export-ignore # include this one with distribution
23+
#/examples/ export-ignore # include this one with distribution
24+
/experimental/ export-ignore
25+
/notes/ export-ignore
26+
/tests/ export-ignore
27+
/src-experimental/ export-ignore
28+
2429
# Line ending normalization
2530
# Ensure PHP, JS, and text files have consistent line endings
2631
*.php text eol=lf

composer.json

Lines changed: 157 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,165 @@
11
{
2-
"name": "cognesy/instructor-php",
3-
"description": "Structured data extraction in PHP, powered by LLMs",
4-
"keywords": ["llm", "language models", "inference", "ai", "genai", "openai", "anthropic", "cohere", "ollama", "structured output", "semantic processing", "automation", "data processing", "data extraction"],
5-
"type": "library",
6-
"license": "MIT",
7-
"bin": [
8-
"bin/instructor"
9-
],
10-
"autoload": {
11-
"psr-4": {
12-
"Cognesy\\Instructor\\": "src/",
13-
"Cognesy\\Utils\\": "src-utils/",
14-
"Cognesy\\Addons\\": "src-addons/",
15-
"Cognesy\\Aux\\": "src-aux/",
16-
"Cognesy\\LLM\\": "src-llm/",
17-
"Cognesy\\Setup\\": "src-setup/",
18-
"Cognesy\\Tell\\": "src-tell/",
19-
"Cognesy\\Experimental\\": "src-experimental/",
20-
"Cognesy\\InstructorHub\\": "src-hub/"
21-
},
22-
"files": [
23-
]
2+
"name": "cognesy/instructor-php",
3+
"description": "Structured data extraction in PHP, powered by LLMs",
4+
"keywords": [
5+
"llm",
6+
"language models",
7+
"inference",
8+
"ai",
9+
"genai",
10+
"openai",
11+
"anthropic",
12+
"cohere",
13+
"ollama",
14+
"structured output",
15+
"semantic processing",
16+
"automation",
17+
"data processing",
18+
"data extraction"
19+
],
20+
"type": "library",
21+
"license": "MIT",
22+
"bin": [
23+
"bin/instructor"
24+
],
25+
"autoload": {
26+
"psr-4": {
27+
"Cognesy\\Instructor\\": "src/",
28+
"Cognesy\\Utils\\": "src-utils/",
29+
"Cognesy\\Addons\\": "src-addons/",
30+
"Cognesy\\Aux\\": "src-aux/",
31+
"Cognesy\\LLM\\": "src-llm/",
32+
"Cognesy\\Setup\\": "src-setup/",
33+
"Cognesy\\Tell\\": "src-tell/",
34+
"Cognesy\\Experimental\\": "src-experimental/",
35+
"Cognesy\\InstructorHub\\": "src-hub/"
2436
},
25-
"autoload-dev": {
26-
"psr-4": {
27-
"Tests\\": "tests/",
28-
"Examples\\": "examples/",
29-
"Cognesy\\Evals\\": "evals/",
30-
"Cognesy\\Experimental\\": "experimental/"
31-
},
32-
"files": [
33-
"tests/Examples/Call/test_functions.php"
34-
]
37+
"files": []
38+
},
39+
"autoload-dev": {
40+
"psr-4": {
41+
"Tests\\": "tests/",
42+
"Examples\\": "examples/",
43+
"Cognesy\\Evals\\": "evals/",
44+
"Cognesy\\Experimental\\": "experimental/"
3545
},
36-
"authors": [
37-
{
38-
"name": "Dariusz Debowczyk",
39-
"email": "ddebowczyk@gmail.com"
40-
}
41-
],
42-
"require-dev": {
43-
"ext-curl": "*",
44-
"ext-dom": "*",
45-
"cebe/markdown": "^1.2",
46-
"duzun/hquery": "^3.1",
47-
"eftec/bladeone": "^4.16",
48-
"gioni06/gpt3-tokenizer": "^1.2",
49-
"guzzlehttp/psr7": "^2.7",
50-
"illuminate/database": "^11.10",
51-
"illuminate/http": "^11.37",
52-
"league/html-to-markdown": "^5.1",
53-
"mockery/mockery": "^1.6",
54-
"nyholm/psr7": "^1.8",
55-
"pestphp/pest": "^2.34",
56-
"php-http/discovery": "^1.20",
57-
"phpstan/phpstan": "^1.11",
58-
"psr/http-factory-implementation": "*",
59-
"psy/psysh": "@stable",
60-
"spatie/browsershot": "^4.1",
61-
"symfony/browser-kit": "^7.1",
62-
"symfony/console": "^7.1",
63-
"symfony/css-selector": "^7.1",
64-
"symfony/dom-crawler": "^7.1",
65-
"symfony/http-client": "^7.1",
66-
"symfony/psr-http-message-bridge": "^7.1",
67-
"symfony/var-dumper": "^6.4 || ^7.0",
68-
"toolkit/cli-utils": "^2.0",
69-
"twig/twig": "^3.0",
70-
"vimeo/psalm": "dev-master",
71-
"webuni/front-matter": "^2.0"
46+
"files": [
47+
"tests/Examples/Call/test_functions.php"
48+
]
49+
},
50+
"authors": [
51+
{
52+
"name": "Dariusz Debowczyk",
53+
"email": "ddebowczyk@gmail.com"
54+
}
55+
],
56+
"require-dev": {
57+
"ext-curl": "*",
58+
"ext-dom": "*",
59+
"cebe/markdown": "^1.2",
60+
"cognesy/aux-tools": "^0.12.0",
61+
"cognesy/experimental": "^0.12.0",
62+
"cognesy/instructor-php-hub": "^0.12.0",
63+
"cognesy/instructor-php-setup": "^0.12.0",
64+
"cognesy/tell": "^0.12.0",
65+
"duzun/hquery": "^3.1",
66+
"eftec/bladeone": "^4.16",
67+
"gioni06/gpt3-tokenizer": "^1.2",
68+
"guzzlehttp/psr7": "^2.7",
69+
"illuminate/database": "^11.10",
70+
"illuminate/http": "^11.37",
71+
"league/html-to-markdown": "^5.1",
72+
"mockery/mockery": "^1.6",
73+
"nyholm/psr7": "^1.8",
74+
"pestphp/pest": "^2.34",
75+
"php-http/discovery": "^1.20",
76+
"phpstan/phpstan": "^1.11",
77+
"psr/http-factory-implementation": "*",
78+
"psy/psysh": "@stable",
79+
"spatie/browsershot": "^4.1",
80+
"symfony/browser-kit": "^7.1",
81+
"symfony/console": "^7.1",
82+
"symfony/css-selector": "^7.1",
83+
"symfony/dom-crawler": "^7.1",
84+
"symfony/http-client": "^7.1",
85+
"symfony/psr-http-message-bridge": "^7.1",
86+
"symfony/var-dumper": "^6.4 || ^7.0",
87+
"toolkit/cli-utils": "^2.0",
88+
"twig/twig": "^3.0",
89+
"vimeo/psalm": "dev-master",
90+
"webuni/front-matter": "^2.0"
91+
},
92+
"config": {
93+
"allow-plugins": {
94+
"pestphp/pest-plugin": true,
95+
"php-http/discovery": true
96+
},
97+
"sort-packages": true
98+
},
99+
"require": {
100+
"php": "^8.2",
101+
"ext-fileinfo": "*",
102+
"ext-libxml": "*",
103+
"ext-simplexml": "*",
104+
"ext-xmlreader": "*",
105+
"adbario/php-dot-notation": "^3.3",
106+
"aimeos/map": "^3.8",
107+
"cognesy/utils": "^0.12.0",
108+
"cognesy/instructor-php-addons": "^0.12.0",
109+
"cognesy/llm": "^0.12.0",
110+
"guzzlehttp/guzzle": "^7.8",
111+
"phpdocumentor/reflection-docblock": "^5.4",
112+
"phpstan/phpdoc-parser": "^1.29",
113+
"psr/event-dispatcher": "^1.0",
114+
"psr/log": "^3.0",
115+
"symfony/filesystem": "^7.1",
116+
"symfony/intl": "^7.1",
117+
"symfony/property-access": "^6.4 || ^7.0",
118+
"symfony/property-info": "^6.4 || ^7.0",
119+
"symfony/serializer": "^6.4 || ^7.0",
120+
"symfony/type-info": "^7.1",
121+
"symfony/validator": "^6.4 || ^7.0",
122+
"symfony/yaml": "^7.1",
123+
"vlucas/phpdotenv": "^5.6"
124+
},
125+
"scripts": {
126+
"tests": "@php vendor/bin/pest",
127+
"phpstan": "@php vendor/bin/phpstan -c phpstan.neon",
128+
"psalm": "@php vendor/bin/psalm",
129+
"instructor": "php ./bin/instructor"
130+
},
131+
"repositories": [
132+
{
133+
"type": "path",
134+
"url": "./src-addons"
135+
},
136+
{
137+
"type": "path",
138+
"url": "./src-aux"
139+
},
140+
{
141+
"type": "path",
142+
"url": "./src-experimental"
143+
},
144+
{
145+
"type": "path",
146+
"url": "./src-hub"
147+
},
148+
{
149+
"type": "path",
150+
"url": "./src-llm"
72151
},
73-
"config": {
74-
"allow-plugins": {
75-
"pestphp/pest-plugin": true,
76-
"php-http/discovery": true
77-
},
78-
"sort-packages": true
152+
{
153+
"type": "path",
154+
"url": "./src-setup"
79155
},
80-
"require": {
81-
"php": "^8.2",
82-
"ext-fileinfo": "*",
83-
"ext-libxml": "*",
84-
"ext-simplexml": "*",
85-
"ext-xmlreader": "*",
86-
"adbario/php-dot-notation": "^3.3",
87-
"aimeos/map": "^3.8",
88-
"guzzlehttp/guzzle": "^7.8",
89-
"phpdocumentor/reflection-docblock": "^5.4",
90-
"phpstan/phpdoc-parser": "^1.29",
91-
"psr/event-dispatcher": "^1.0",
92-
"psr/log": "^3.0",
93-
"symfony/filesystem": "^7.1",
94-
"symfony/intl": "^7.1",
95-
"symfony/property-access": "^6.4 || ^7.0",
96-
"symfony/property-info": "^6.4 || ^7.0",
97-
"symfony/serializer": "^6.4 || ^7.0",
98-
"symfony/type-info": "^7.1",
99-
"symfony/validator": "^6.4 || ^7.0",
100-
"symfony/yaml": "^7.1",
101-
"vlucas/phpdotenv": "^5.6"
156+
{
157+
"type": "path",
158+
"url": "./src-tell"
102159
},
103-
"scripts": {
104-
"tests": "@php vendor/bin/pest",
105-
"phpstan": "@php vendor/bin/phpstan -c phpstan.neon",
106-
"psalm": "@php vendor/bin/psalm",
107-
"instructor": "php ./bin/instructor"
160+
{
161+
"type": "path",
162+
"url": "./src-utils"
108163
}
164+
]
109165
}

examples/A05_Extras/ReasoningContent/run.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
$loader->add('Cognesy\\Instructor\\', __DIR__ . '../../src/');
1818

1919
use Cognesy\LLM\LLM\Inference;
20+
use Cognesy\Utils\Debug\Debug;
2021
use Cognesy\Utils\Str;
2122

2223
//Debug::enable();

src-utils/Xml/Xml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Convert XML to array
1010
*
11-
* @package Cognesy\Instructor\Utils
11+
* @package Cognesy\Utils
1212
*/
1313
class Xml
1414
{

0 commit comments

Comments
 (0)