diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..1aeb0bf --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..f324872 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/socialbox-php.iml b/.idea/socialbox-php.iml new file mode 100644 index 0000000..4126d6f --- /dev/null +++ b/.idea/socialbox-php.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..31dd44a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# Variables +CONFIG ?= release +LOG_LEVEL = debug +OUTDIR = build/$(CONFIG) +PACKAGE = $(OUTDIR)/net.nosial.socialbox.ncc + +# Default Target +all: build + +# Build Steps +build: + ncc build --config=$(CONFIG) --log-level $(LOG_LEVEL) + +install: + ncc package install --package=$(PACKAGE) --skip-dependencies --reinstall -y --log-level $(LOG_LEVEL) + +clean: + rm -rf build + +.PHONY: all build install clean \ No newline at end of file diff --git a/project.json b/project.json new file mode 100644 index 0000000..1a8c5db --- /dev/null +++ b/project.json @@ -0,0 +1,39 @@ +{ + "project": { + "compiler": { + "extension": "php", + "minimum_version": "8.0", + "maximum_version": "8.2" + } + }, + "assembly": { + "name": "socialbox", + "package": "net.nosial.socialbox", + "version": "1.0.0", + "uuid": "573597f7-c7f0-408a-8a02-462756927cb6" + }, + "build": { + "source_path": "src/Socialbox", + "default_configuration": "release", + "define_constants": { + "ASSEMBLY_PACKAGE": "%ASSEMBLY.PACKAGE%", + "ASSEMBLY_VERSION": "%ASSEMBLY.VERSION%", + "ASSEMBLY_UID": "%ASSEMBLY.UID%" + }, + "configurations": [ + { + "name": "release", + "build_type": "ncc", + "output": "build/release/%ASSEMBLY.PACKAGE%.ncc" + }, + { + "name": "debug", + "build_type": "ncc", + "output": "build/debug/%ASSEMBLY.PACKAGE%.ncc", + "define_constants": { + "DEBUG": "1" + } + } + ] + } +} \ No newline at end of file diff --git a/src/Socialbox/socialbox.php b/src/Socialbox/socialbox.php new file mode 100644 index 0000000..f876379 --- /dev/null +++ b/src/Socialbox/socialbox.php @@ -0,0 +1,8 @@ +