- FEATURES
- Autoload
- Class Reflection
- Magic Methods
- Exceptions
- Late Static Binding
- Type Hinting
- SPL
- PHPUNIT
- PHAR
- COMPOSER
- Carbon
- Guzzle
- Faker
- Math
- Requests
- DESIGN PATTERNS
- Singleton Pattern
- Observer Pattern
- Strategy Pattern
- Dependency Injection
- Middleware
- Registry
- SYMFONY
- Routes
- Annotations
- Flex
- Controllers
- Doctrine
- Templating
- VERSIONS
- Php7.4
- Php8.0
- SECURITY
- Filter Input
- Remote Code Injection
- Sql Injection
- Session Fixation
- File Uploads
- Cross Site Scripting
- Spoofed Forms
- CSRF
- Session Hijacking
- MODERN PHP
- Composer
- Autoloader
- Package
-
Releases
- Generators
- Dependency Injection
- Middleware
- CUSTOM FRAMEWORK
- App
- Http Foundation
- Front Controller
- Routing
- Render Controller
- Resolver
- SoC
- FRAMEWORKS
- Slim
- Symfony V5
- Laravel V8
- Laminas V3
- Codeigniter V4
Github
Generate a new release on github Composer init generates composer.json file
New release:
Tag version: v1.2
Target: releases (branch)
cd dss-client/
composer init
{
"name": "catalin/dss-client",
"require": {}
}
Repositories and package
By default Composer only uses the packagist repository. By specifying repositories you can get packages from elsewhere. Repositories are not resolved recursively. You can only add them to your main composer.json. Repository declarations of dependencies' composer.jsons are ignored.composer json
Add private git repository and release version (+ autoload) Move index.php example to root
{
"name": "catalin/dss-client",
"require": {
"minte9/httpclient": "1.0"
},
"repositories": [
{
"type": "package",
"package": {
"name": "minte9/httpclient",
"version": "1.8",
"source": {
"type": "git",
"url": "https://myusername@github.com/myusername/http-client.git",
"reference": "v1.8"
}
}
}
],
"autoload": {
"psr-4": {
"minte9\httpclient\": "vendor/minte9/httpclient/src/"
}
}
}
composer require minte9/httpclient
vendor/
composer/
minte9/
src/
inc/
index.example.php
composer.example.json
autoload/
mv example.php /dss-client/index.php
Composer version caret
~1.2 is equivalent to >=1.2 <2.0.0, while ~1.2.3 is equivalent to >=1.2.3 <1.3.0
^1.2.3 is equivalent to >=1.2.3 <2.0.0
Last update: 395 days ago