diff --git a/docRb.md b/docRb.md new file mode 100644 index 0000000..d67bb51 --- /dev/null +++ b/docRb.md @@ -0,0 +1,22 @@ +# Video DEMO en este enlace: +## https://www.youtube.com/watch?v=LgiEzr2uSEg + +* Instale el componente de PHP Mailer ejecutando la siguiente línea de comando desde el directorio de proyecto: +composer require phpmailer/phpmailer +cree un correo de Gmail para fines de este test y configure el host stm de Gmail. +* Cree la aplicación según los requerimiento con PHP puro (sin framework), MySql y las librerías de jQuery, Bootstrap. +* En la carpeta del proyecto encontraran la siguiente estructura: +a) una carpeta App donde encontraran: +-el archivo controllerList.php quien se encarga de cargar la tabla que se muestra en la aplicación con los datos que se encuentran cargados en la base de datos. +-el archivo controllerLoad.php se encarga de todo lo referente al proceso de cargar el CSV procesarlo, subir al servidor, eliminar líneas vacías, controlar códigos duplicados, respetar los caracteres especiales que pueden haber dentro de la descripción de cada código y todos los controles requeridos para luego guardar en la base de datos. +– el archivo Load contiene la vista de la tabla de códigos con su buscador. +-el archivo login.php se encarga de la verificación y el acceso a la aplicación. +-el archivo logout.php se encarga de destruir la sesión y redireccionar a login de la aplicación. +-el archivo controllerMail.php se encarga de enviar un correo (al usuario conectado, es decir al correo de la sesión) con los datos generados luego de procesar el CSV +b) En la carpeta dataBase encontraran: +-el archivo conf.php el cual contiene los datos para conectarse a la base de datos. +-el archivo connec.php donde se hace la conexión a la base de datos con PDO. +-el archivo SQL. +c) En la carpeta js encontraran el archivo internal.js el cual contiene todo el código jquery y Ajax utilizado en la aplicación +d) En la carpeta script_newUser esta el script para crear usuarios desde el terminal. + diff --git a/phpTest_20/.vscode/launch.json b/phpTest_20/.vscode/launch.json new file mode 100644 index 0000000..317d206 --- /dev/null +++ b/phpTest_20/.vscode/launch.json @@ -0,0 +1,38 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch built-in server and debug", + "type": "php", + "request": "launch", + "runtimeArgs": [ + "-S", + "localhost:8000", + "-t", + "." + ], + "port": 9003, + "serverReadyAction": { + "action": "openExternally" + } + }, + { + "name": "Debug current script in console", + "type": "php", + "request": "launch", + "program": "${file}", + "cwd": "${fileDirname}", + "externalConsole": false, + "port": 9003 + }, + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003 + } + ] +} \ No newline at end of file diff --git a/phpTest_20/Composer-Setup.exe b/phpTest_20/Composer-Setup.exe new file mode 100644 index 0000000..76df8e2 Binary files /dev/null and b/phpTest_20/Composer-Setup.exe differ diff --git a/phpTest_20/app/controllerList.php b/phpTest_20/app/controllerList.php new file mode 100644 index 0000000..1a7103c --- /dev/null +++ b/phpTest_20/app/controllerList.php @@ -0,0 +1,18 @@ + prepare($sqlHome); +$queryHome -> execute(); +$resultsHome = $queryHome -> fetchAll(PDO::FETCH_OBJ); + +if($queryHome -> rowCount() > 0) { + foreach($resultsHome as $resultHome) { + $reg['data'][]=$resultHome; + } + +} +echo json_encode($reg); + + +?> \ No newline at end of file diff --git a/phpTest_20/app/controllerLoad.php b/phpTest_20/app/controllerLoad.php new file mode 100644 index 0000000..23e5e59 --- /dev/null +++ b/phpTest_20/app/controllerLoad.php @@ -0,0 +1,42 @@ + prepare($sqlExis); + $queryExis -> execute(); + $exis = $queryExis -> fetchAll(PDO::FETCH_OBJ); + + if($queryExis -> rowCount() == 0) { + $sql = "INSERT INTO cpt (id, code, description) VALUES (NULL, '".$code."', '".$des."')"; + $query = $pdo -> prepare($sql); + $query -> execute(); + $counSave = $query->rowCount(); + $counSave2+=$counSave; + } + } + + echo "Quantity of Items original file: ".$counOrg. "
". "Number of Registered Items: ".$counSave2; +} + + +?> \ No newline at end of file diff --git a/phpTest_20/app/controllerMail.php b/phpTest_20/app/controllerMail.php new file mode 100644 index 0000000..dd8d1a7 --- /dev/null +++ b/phpTest_20/app/controllerMail.php @@ -0,0 +1,43 @@ +SMTPOptions = array( + 'ssl' => array( + 'verify_peer' => false, + 'verify_peer_name' => false, + 'allow_self_signed' => true + ) +); + + //Server settings + $mail->SMTPDebug = 0; + $mail->isSMTP(); + $mail->Host = 'smtp.gmail.com'; + $mail->SMTPAuth = true; + $mail->Username = 'ruthtest81@gmail.com'; + $mail->Password = '123456T!'; + $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; + $mail->Port = 465; + + //Recipients + $mail->setFrom('ruthtest81@gmail.com', 'Mailer'); + $mail->addAddress($_SESSION['userLog'], ''); + + //Content + $mail->isHTML(true); + $mail->Subject = 'Report from PHP test'; + $mail->Body = 'You have just processed a CSV file in the application:
'.$_POST['body'].''; + + $mail->send(); + + +?> \ No newline at end of file diff --git a/phpTest_20/app/csvFile/codigos.csv b/phpTest_20/app/csvFile/codigos.csv new file mode 100644 index 0000000..cbdb6f9 --- /dev/null +++ b/phpTest_20/app/csvFile/codigos.csv @@ -0,0 +1,3421 @@ +code,name +00100,"Anesthesia for procedures on salivary glands, including biopsy" +00102,Anesthesia for procedures involving plastic repair of cleft lip +00103,"Anesthesia For Reconstructive Procedures of Eyelid (eg, blepharoplasty, ptosis surgery)" +00104,Anesthesia for electroconvulsive therapy +00120,"Anesthesia For Procedures on External, Middle, & Inner Ear Including Biopsy; Not Otherwise Specified" +00124,"Anesthesia For Procedures on External, Middle, & Inner Ear Including Biopsy; Otoscopy" +00126,"Anesthesia For Procedures on External, Middle, & Inner Ear Including Biopsy; Tympanotomy" +00140,Anesthesia For Procedures on Eye; Not Otherwise Specified +00142,Anesthesia For Procedures on Eye; Lens Surgery +01962,Anesthesia for urgent hysterectomy following delivery +01963,Anesthesia for cesarean hysterectomy without any labor analgesia/anesthesia care +01965,Anesthesia for incomplete or missed abortion procedures +01966,Anesthesia for induced abortion procedures +01967,Neuraxial labor analgesia/anesthesia for planned vaginal delivery (this includes any repeat subarachnoid needle placement and drug injection and/or any necessary replacement of an epidural catheter during labor) +01968,Anesthesia for cesarean delivery following neuraxial labor analgesia/anesthesia (List separately in addition to code for primary procedure performed) +01969,Anesthesia for cesarean hysterectomy following neuraxial labor analgesia/anesthesia (List separately in addition to code for primary procedure performed) +01990,Physiological support for harvesting of organ(s) from brain-dead patient +01991,Anesthesia For Diagnostic or Therapeutic Nerve Blocks & Injections (when block or injection is performed by a different physician or other qualified health care professional); Other Than the Prone Position +01992,Anesthesia For Diagnostic or Therapeutic Nerve Blocks & Injections (when block or injection is performed by a different physician or other qualified health care professional); Prone Position +01996,Daily hospital management of epidural or subarachnoid continuous drug administration +01999,Anesthesia Not Otherwise Specified +10021,Fine Needle Aspiration; w/Out Imaging Guidance +10022,Fine Needle Aspiration; w/Imaging Guidance +10030,"Image-Guided Fluid Collection Drainage by Catheter (eg, abscess, hematoma, seroma, lymphocele, cyst), Soft Tissue (eg, extremity, abdominal wall, neck), Percutaneous" +10040,"Acne Surgery (eg, marsupialization, opening or removal of multiple milia, comedones, cysts, pustules)" +10060,Incision & Drainage Abscess (Simple/Single) +10061,Incision & Drainage Abscess (Complicated/Multiple) +10080,Incision & Drainage of Pilonidal Cyst; Simple +10081,Incision & Drainage of Pilonidal Cyst; Complicated +10120,Removal of Foreign Body in Foot (Simple) +10121,"Incision & Removal of Foreign Body, Subcutaneous Tissues; Complicated" +10140,"Incision & Drainage of Hematoma, Seroma or Fluid Collection" +10160,Aspiration of Cyst +10180,"Incision and drainage, complex, postoperative wound infection" +11000,Debride Infected Skin +11001,"Debridement of extensive eczematous or infected skin; each additional 10% of the body surface, or part thereof (List separately in addition to code for primary procedure)" +11004,"Debridement of skin, subcutaneous tissue, muscle and fascia for necrotizing soft tissue infection; external genitalia and perineum" +11005,"Debridement of skin, subcutaneous tissue, muscle and fascia for necrotizing soft tissue infection; abdominal wall, with or without fascial closure" +11006,"Debridement of skin, subcutaneous tissue, muscle and fascia for necrotizing soft tissue infection; external genitalia, perineum and abdominal wall, with or without fascial closure" +11008,"Removal of prosthetic material or mesh, abdominal wall for infection (eg, for chronic or recurrent mesh infection or necrotizing soft tissue infection) (List separately in addition to code for primary procedure)" +11010,"Debridement including removal of foreign material at the site of an open fracture and/or an open dislocation (eg, excisional debridement); skin and subcutaneous tissues" +11011,"Debridement including removal of foreign material at the site of an open fracture and/or an open dislocation (eg, excisional debridement); skin, subcutaneous tissue, muscle fascia, and muscle" +11012,"Debridement including removal of foreign material at the site of an open fracture and/or an open dislocation (eg, excisional debridement); skin, subcutaneous tissue, muscle fascia, muscle, and bone" +11040,"Debridement; Skin, Partial Thickness" +11041,"Debridement; Skin, Full Thickness" +11042,"Debridement, Subcutaneous Tissue (includes epidermis and dermis, if performed); First 20 sq cm or Less" +11043,Debride Skin Tissue Muscle +11044,"Debridement, bone (includes epidermis, dermis, subcutaneous tissue, muscle and/or fascia, if performed); first 20 sq cm or less" +11045,"Debridement, Subcutaneous Tissue (includes epidermis and dermis, if performed); Each Addtl 20 sq cm, or Part Thereof" +11046,"Debridement, muscle and/or fascia (includes epidermis, dermis, and subcutaneous tissue, if performed); each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)" +11047,"Debridement, bone (includes epidermis, dermis, subcutaneous tissue, muscle and/or fascia, if performed); each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)" +11055,Debride Hyperkeratotic Lesion +11056,Debride Hyperkeratotic Lesion (2-4) +11057,Debride Hyperkeratotic Lesions (>4) +11100,Biopsy of Skin Subq Tissue 1 Lesion +11101,"Biopsy of Skin, Subcutaneous Tissue and/or Mucous Membrane (including simple closure), Unless Otherwise Listed; Each Separate/Addtl Lesion" +11200,Removal of Skin Tag (up to 15) +11201,"Removal, Skin Tags, Multiple Fibrocutaneous Tags, Any Area" +11300,"Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter 0.5 cm or Less" +11301,"Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter 0.6 to 1.0 cm" +11302,"Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter 1.1 to 2.0 cm" +11303,"Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter Over 2.0 cm" +11305,Shaving Skin Lesion Diam 0.5 cm +11306,Shaving Skin Lesion Diam 0.6-1.0 cm +11307,Shaving Skin Lesion Diam 1.1-2.0 cm + + + + +11450,Excision of Skin/Subcutaneous Tissue Axillary; Simple or Intermediate Repair +11451,"Excision of Skin/Subcutaneous Tissue for Hidradenitis, Axillary; Complex Repair" +11462,"Excision of Skin/Subcutaneous Tissue for Hidradenitis, Inguinal; Simple or Intermediate Repair" +11463,"Excision of Skin/Subcutaneous Tissue for Hidradenitis, Inguinal; Complex Repair" +11470,"Excision of Skin/Subcutaneous Tissue for Hidradenitis, Perianal, Perineal, or Umbilical; Simple or Intermediate Repair" +11471,"Excision of Skin/Subcutaneous Tissue for Hidradenitis, Perianal, Perineal, or Umbilical; Complex Repair" +11600,"Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 0.5 cm or Less" +11601,"Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 0.6 to 1.0 cm" +11602,"Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 1.1 to 2.0 cm" +11603,"Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 2.1 to 3.0 cm" +11604,"Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 3.1 to 4.0 cm" +11606,"Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter Over 4.0 cm" +11620,"Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 0.5 cm or Less" +11621,"Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 0.6 to 1.0 cm" +11622,"Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 1.1 to 2.0 cm" +11623,"Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 2.1 to 3.0 cm" +11624,"Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 3.1 to 4.0 cm" +11626,"Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter Over 4.0 cm" +11640,"Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 0.5 cm or Less" +11641,"Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 0.6 to 1.0 cm" +11642,"Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 1.1 to 2.0 cm" +11643,"Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 2.1 to 3.0 cm" +11644,"Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 3.1 to 4.0 cm" +11646,"Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter Over 4.0 cm" +11719,"Trimming of Nondystrophic Nnails, Any Number" +11720,Debridement of Toenails +11721,Debridement of Toenails 6 or More +11730,Nail Avulsion (Single) +11732,Avulsion Nail Plate Partial/Comp Simple Ea Addtl +11740,Evacuation of Subungual Hematoma +11750,Excision on Toenail +11752,"Excision of Nail and Nail Matrix, Partial or Complete (eg, ingrown or deformed nail), for Permanent Removal; w/Amputation of Tuft of Distal Phalanx" +11755,Biopsy Nail Unit Sperarate Procedure +11760,Repair of Nail Bed +11762,Reconstruction of Nail Bed w/Graft +11765,Wedge Excision Skin Nail Fold +11770,Excision of Pilonidal Cyst or Sinus; Simple +11771,Excision of Pilonidal Cyst or Sinus; Extensive +11772,Excision of Pilonidal Cyst or Sinus; Complicated +11900,Injection Intralesional Up to & Include 7 Lesions +11901,Injection Intralesional; More Than 7 Lesions +11920,"Tattooing, Intradermal Introduction of Insoluble Opaque Pigments to Correct Color Defects of Skin, Including Micropigmentation; 6.0 sq cm or Less" +11921,"Tattooing, Intradermal Introduction of Insoluble Opaque Pigments to Correct Color Defects of Skin, Including Micropigmentation; 6.1 to 20.0 sq cm" +11922,"Tattooing, Intradermal Introduction of Insoluble Opaque Pigments to Correct Color Defects of Skin, Including Micropigmentation; Each Addtl 20.0 sq cm, or Part thereof" +11950,"Subcutaneous Injection of Filling Material (eg, collagen); 1 cc or Less" +11951,"Subcutaneous Injection of Filling Material (eg, collagen); 1.1 to 5.0 cc" +11952,"Subcutaneous Injection of Filling Material (eg, collagen); 5.1 to 10.0 cc" +11954,"Subcutaneous Injection of Filling Material (eg, collagen); Over 10.0 cc" +11960,"Insertion of Tissue Expander(s) for Other Than Breast, Including Subsequent Expansion" +11970,Replacement of Tissue Expander w/Permanent Prosthesis +11971,Removal of Tissue Expander(s) w/Out Insertion of Prosthesis +11976,"Removal, Implantable Contraceptive Capsules" +11980,Subcutaneous Hormone Pellet Implantation (implantation of estradiol and/or testosterone pellets beneath the skin) +11981,"Insertion, Non-Biodegradable Drug Delivery Implant" +11982,"Removal, Non-Biodegradable Drug Delivery Implant" +11983,"Removal w/Reinsertion, Non-Biodegradable Drug Delivery Implant" +12001,"Simple Repair, Superficial Wounds, Scalp/Neck/Axillae/Genitalia 2.5-cm/<" +12002,"Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); 2.6 cm to 7.5 cm" +12004,"Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); 7.6 cm to 12.5 cm" +12005,"Simple Repair, Superficial Wounds, Scalp/Neck/Axillae/Genitalia/Trunk/Extremities; 12.6-20.0cm" +12006,"Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); 20.1 cm to 30.0 cm" +12007,"Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); Over 30.0 cm" +12011,"Simple Repair, Superficial Wounds, Face/Ears/Eyelids/Nose/Lips/Mouth 2.5cm /<" +12013,"Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Llips and/or Mucous Membranes; 2.6 cm to 5.0 cm" +12014,"Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 5.1 cm to 7.5 cm" +12015,"Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 7.6 cm to 12.5 cm" +12016,"Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 12.6 cm to 20.0 cm" +12017,"Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 20.1 cm to 30.0 cm" +12018,"Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; Over 30.0 cm" +12020,Treatment of Superficial Wound Dehiscence; Simple Closure +12021,Treatment of Superficial Wound Dehiscence; w/ Packing +12031,"Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 2.5 cm or Less" +12032,"Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 2.6 cm to 7.5 cm" +12034,"Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 7.6 cm to 12.5 cm" +12035,"Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 12.6 cm to 20.0 cm" +12036,"Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 20.1 cm to 30.0 cm" +12037,"Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); Over 30.0 cm" +12041,Wound Closure <2.5cm +12042,"Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 2.6 cm to 7.5 cm" +12044,"Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 7.6 cm to 12.5 cm" +12045,"Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 12.6 cm to 20.0 cm" +12046,"Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 20.1 cm to 30.0 cm" +12047,"Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; Over 30.0 cm" +12051,"Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 2.5 cm or Less" +12052,"Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 2.6 cm to 5.0 cm" +12053,"Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 5.1 cm to 7.5 cm" +12054,"Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 7.6 cm to 12.5 cm" +12055,"Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 12.6 cm to 20.0 cm" +12056,"Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 20.1 cm to 30.0 cm" +12057,"Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; Over 30.0 cm" +13100,"Repair, Complex, Trunk; 1.1 cm to 2.5 cm" +13101,"Repair, Complex, Trunk; 2.6 cm to 7.5 cm" +13102,"Repair, Complex, Trunk; Each Addtl 5 cm or Less" +13120,"Repair, Complex, Scalp, Arms, and/or Legs; 1.1 cm to 2.5 cm" +13121,"Repair, Complex, Scalp, Arms, and/or Legs; 2.6 cm to 7.5 cm" +13122,"Repair, Complex, Scalp, Arms, and/or Legs; Each Addtl 5 cm or Less" +13131,"Repair, Complex, Forehead, Cheeks, Chin, Mouth, Neck, Axillae, Genitalia, Hands and/or Feet; 1.1 cm to 2.5 cm" +13132,"Repair, Complex, Forehead, Cheeks, Chin, Mouth, Neck, Axillae, Genitalia, Hands and/or Feet; 2.6 cm to 7.5 cm" +13133,"Repair, Complex, Forehead, Cheeks, Chin, Mouth, Neck, Axillae, Genitalia, Hands and/or Feet; Each Addtl 5 cm or Less" +13151,"Repair, complex, eyelids, nose, ears and/or lips; 1.1 cm to 2.5 cm" +13152,"Repair, complex, eyelids, nose, ears and/or lips; 2.6 cm to 7.5 cm" +13153,"Repair, complex, eyelids, nose, ears and/or lips; each additional 5 cm or less (List separately in addition to code for primary procedure)" +13160,"Secondary closure of surgical wound or dehiscence, extensive or complicated" +14000,"Adjacent tissue transfer or rearrangement, trunk; defect 10 sq cm or less" +14001,"Adjacent tissue transfer or rearrangement, trunk; defect 10.1 sq cm to 30.0 sq cm" +14020,"Adjacent tissue transfer or rearrangement, scalp, arms and/or legs; defect 10 sq cm or less" +14021,"Adjacent tissue transfer or rearrangement, scalp, arms and/or legs; defect 10.1 sq cm to 30.0 sq cm" +14040,"Adjacent tissue transfer or rearrangement, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands and/or feet; defect 10 sq cm or less" +14041,"Adjacent tissue transfer or rearrangement, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands and/or feet; defect 10.1 sq cm to 30.0 sq cm" +14060,"Adjacent tissue transfer or rearrangement, eyelids, nose, ears and/or lips; defect 10 sq cm or less" +14061,"Adjacent tissue transfer or rearrangement, eyelids, nose, ears and/or lips; defect 10.1 sq cm to 30.0 sq cm" +14301,"Adjacent tissue transfer or rearrangement, any area; defect 30.1 sq cm to 60.0 sq cm" +14302,"Adjacent tissue transfer or rearrangement, any area; each additional 30.0 sq cm, or part thereof (List separately in addition to code for primary procedure)" +14350,"Filleted finger or toe flap, including preparation of recipient site" +15002,"Surgical preparation or creation of recipient site by excision of open wounds, burn eschar, or scar (including subcutaneous tissues), or incisional release of scar contracture, trunk, arms, legs; first 100 sq cm or 1% of body area of infants and children" +15003,"Surgical preparation or creation of recipient site by excision of open wounds, burn eschar, or scar (including subcutaneous tissues), or incisional release of scar contracture, trunk, arms, legs; each additional 100 sq cm, or part thereof, or each additional 1% of body area of infants and children (List separately in addition to code for primary procedure)" +15004,Prep Site F/S/N/H/F/G/M/D gt 1st 100 sq cm/1pct +15005,"Surgical preparation or creation of recipient site by excision of open wounds, burn eschar, or scar (including subcutaneous tissues), or incisional release of scar contracture, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet and/or multiple digits; each additional 100 sq cm, or part thereof, or each additional 1% of body area of infants and children (List separately in addition to code for primary procedure)" +15040,"Harvest of skin for tissue cultured skin autograft, 100 sq cm or less" +15050,"Pinch graft, single or multiple, to cover small ulcer, tip of digit, or other minimal open area (except on face), up to defect size 2 cm diameter" +15100,"Split-thickness autograft, trunk, arms, legs; first 100 sq cm or less, or 1% of body area of infants and children (except 15050)" +15101,"Split-thickness autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15110,"Epidermal autograft, trunk, arms, legs; first 100 sq cm or less, or 1% of body area of infants and children" +15111,"Epidermal autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15115,"Epidermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 100 sq cm or less, or 1% of body area of infants and children" +15116,"Epidermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15120,"Split-thickness autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 100 sq cm or less, or 1% of body area of infants and children (except 15050)" +15121,"Split-thickness autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15130,"Dermal autograft, trunk, arms, legs; first 100 sq cm or less, or 1% of body area of infants and children" +15131,"Dermal autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15135,"Dermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 100 sq cm or less, or 1% of body area of infants and children" +15136,"Dermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15150,"Tissue cultured skin autograft, trunk, arms, legs; first 25 sq cm or less" +15151,"Tissue cultured skin autograft, trunk, arms, legs; additional 1 sq cm to 75 sq cm (List separately in addition to code for primary procedure)" +15152,"Tissue cultured skin autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15155,"Tissue cultured skin autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 25 sq cm or less" +15156,"Tissue cultured skin autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; additional 1 sq cm to 75 sq cm (List separately in addition to code for primary procedure)" +15157,"Tissue cultured skin autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15200,"Full thickness graft, free, including direct closure of donor site, trunk; 20 sq cm or less" +15201,"Full thickness graft, free, including direct closure of donor site, trunk; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)" +15220,"Full thickness graft, free, including direct closure of donor site, scalp, arms, and/or legs; 20 sq cm or less" +15221,"Full thickness graft, free, including direct closure of donor site, scalp, arms, and/or legs; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)" +15240,"Full thickness graft, free, including direct closure of donor site, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands, and/or feet; 20 sq cm or less" +15241,"Full thickness graft, free, including direct closure of donor site, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands, and/or feet; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)" +15260,"Full thickness graft, free, including direct closure of donor site, nose, ears, eyelids, and/or lips; 20 sq cm or less" +15261,"Full thickness graft, free, including direct closure of donor site, nose, ears, eyelids, and/or lips; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)" +15271,"Application of skin substitute graft to trunk, arms, legs, total wound surface area up to 100 sq cm; first 25 sq cm or less wound surface area" +15272,"Application of skin substitute graft to trunk, arms, legs, total wound surface area up to 100 sq cm; each additional 25 sq cm wound surface area, or part thereof (List separately in addition to code for primary procedure)" +15273,"Application of skin substitute graft to trunk, arms, legs, total wound surface area greater than or equal to 100 sq cm; first 100 sq cm wound surface area, or 1% of body area of infants and children" +15274,"Application of skin substitute graft to trunk, arms, legs, total wound surface area greater than or equal to 100 sq cm; each additional 100 sq cm wound surface area, or part thereof, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15275,"Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area up to 100 sq cm; first 25 sq cm or less wound surface area" +15276,"Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area up to 100 sq cm; each additional 25 sq cm wound surface area, or part thereof (List separately in addition to code for primary procedure)" +15277,"Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area greater than or equal to 100 sq cm; first 100 sq cm wound surface area, or 1% of body area of infants and children" +15278,"Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area greater than or equal to 100 sq cm; each additional 100 sq cm wound surface area, or part thereof, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)" +15570,"Formation of direct or tubed pedicle, with or without transfer; trunk" +15572,"Formation of direct or tubed pedicle, with or without transfer; scalp, arms, or legs" +15574,"Formation of direct or tubed pedicle, with or without transfer; forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands or feet" +15576,"Formation of direct or tubed pedicle, with or without transfer; eyelids, nose, ears, lips, or intraoral" +15600,Delay of flap or sectioning of flap (division and inset); at trunk +15610,"Delay of flap or sectioning of flap (division and inset); at scalp, arms, or legs" +15620,"Delay of flap or sectioning of flap (division and inset); at forehead, cheeks, chin, neck, axillae, genitalia, hands, or feet" +15630,"Delay of flap or sectioning of flap (division and inset); at eyelids, nose, ears, or lips" +15650,"Transfer, intermediate, of any pedicle flap (eg, abdomen to wrist, Walking tube), any location" +15731,"Forehead flap with preservation of vascular pedicle (eg, axial pattern flap, paramedian forehead flap)" +15732,"Muscle, myocutaneous, or fasciocutaneous flap; head and neck (eg, temporalis, masseter muscle, sternocleidomastoid, levator scapulae)" +15734,"Muscle, myocutaneous, or fasciocutaneous flap; trunk" +15736,"Muscle, myocutaneous, or fasciocutaneous flap; upper extremity" +15738,"Muscle, myocutaneous, or fasciocutaneous flap; lower extremity" +15740,Flap; island pedicle requiring identification and dissection of an anatomically named axial vessel +15750,Flap; neurovascular pedicle +15756,Free muscle or myocutaneous flap with microvascular anastomosis +15757,Free skin flap with microvascular anastomosis +15758,Free fascial flap with microvascular anastomosis +15760,"Graft; composite (eg, full thickness of external ear or nasal ala), including primary closure, donor area" +15770,Graft; derma-fat-fascia +15775,Punch graft for hair transplant; 1 to 15 punch grafts +15776,Punch graft for hair transplant; more than 15 punch grafts +15777,"Implantation of biologic implant (eg, acellular dermal matrix) for soft tissue reinforcement (ie, breast, trunk) (List separately in addition to code for primary procedure)" +15780,"Dermabrasion; total face (eg, for acne scarring, fine wrinkling, rhytids, general keratosis)" +15781,"Dermabrasion; segmental, face" +15782,"Dermabrasion; regional, other than face" +15783,"Dermabrasion; superficial, any site (eg, tattoo removal)" +15786,"Abrasion; Single Lesion (eg, keratosis, scar)" +15787,Abrasion; Each Addtl 4 Lesions or Less +15788,"Chemical Peel, Facial; Epidermal" +15789,"Chemical Peel, Facial; Dermal" +15792,"Chemical Peel, Nonfacial; Epidermal" +15793,"Chemical Peel, Nonfacial; Dermal" +15819,Cervicoplasty +15820,"Blepharoplasty, Lower Eyelid" +15821,"Blepharoplasty, lower eyelid; with extensive herniated fat pad" +15822,"Blepharoplasty, upper eyelid;" +15823,"Blepharoplasty, upper eyelid; with excessive skin weighting down lid" +15824,Rhytidectomy; forehead +15825,"Rhytidectomy; neck with platysmal tightening (platysmal flap, P-flap)" +15826,Rhytidectomy; glabellar frown lines +15828,"Rhytidectomy; cheek, chin, and neck" +15829,Rhytidectomy; superficial musculoaponeurotic system (SMAS) flap +15830,Excision Skin & Infraumbilical Panniculectomy +15832,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); thigh" +15833,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); leg" +15834,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); hip" +15835,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); buttock" +15836,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); arm" +15837,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); forearm or hand" +15838,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); submental fat pad" +15839,"Excision, excessive skin and subcutaneous tissue (includes lipectomy); other area" +15840,Graft for facial nerve paralysis; free fascia graft (including obtaining fascia) +15841,Graft for facial nerve paralysis; free muscle graft (including obtaining graft) +15842,Graft for facial nerve paralysis; free muscle flap by microsurgical technique +15845,Graft for facial nerve paralysis; regional muscle transfer +15847,"Excision, excessive skin and subcutaneous tissue (includes lipectomy), abdomen (eg, abdominoplasty) (includes umbilical transposition and fascial plication) (List separately in addition to code for primary procedure)" +15850,Removal Sutures Under Anesthesia Same Surgeon +15851,"Removal of Sutures Under Anesthesia (other than local), Other Surgeon" +15852,Dressing Change Under Anesthesia +15860,"Intravenous Injection of Agent (eg, fluorescein) to Test Vascular Flow in Flap or Graft" +15876,Suction Assisted Lipectomy; Head and Neck +15877,Suction Assisted Lipectomy; Trunk +15878,Suction Assisted Lipectomy; Uupper Extremity +15879,Suction Assisted Lipectomy; Lower Extremity +15920,"Excision, Coccygeal Pressure Ulcer, w/Coccygectomy; w/Primary Suture" +15922,"Excision, Coccygeal Pressure Ulcer, w/Coccygectomy; w/Flap Closure" +15931,"Excision Sacral Pressure Ulcer, w/Primary Suture" +15933,"Excision Sacral Pressure Ulcer, w/Primary Suture; w/Ostectomy" +15934,"Excision Sacral Pressure Ulcer, w/Skin Flap Closure" +15935,"Excision Sacral Pressure Ulcer, w/Skin Flap Closure; w/Ostectomy" +15936,"Excision Sacral Pressure Ulcer, in Preparation for Muscle or Myocutaneous Flap or Skin Graft Closure" +15937,"Excision Sacral Pressure Ulcer, in Preparation for Muscle or Myocutaneous Flap or Skin Graft Closure; w/Ostectomy" +15940,"Excision Ischial Pressure Ulcer, w/Primary Suture" +15941,"Excision Ischial Pressure Ulcer, w/Primary Suture; w/Ostectomy" +15944,"Excision Ischial Ressure Ulcer, w/Skin Flap Closure" +15945,"Excision Ischial Pressure Ulcer, w/Skin Flap Closure; w/Ostectomy" +15946,"Excision Ischial Pressure Ulcer, w/Ostectomy, in Preparation for Muscle or Myocutaneous Flap or Skin Graft Closure" +15950,"Excision Trochanteric Pressure Ulcer, w/Primary Suture" +15951,Excision Trochanteric Pressure Ulcer w/Primary Suture; w/Ostectomy +15952,"Excision Trochanteric Pressure Ulcer, w/Skin Flap Closure" +15953,"Excision Trochanteric Pressure Ulcer, w/Skin Flap Closure; w/Ostectomy" +15956,"Excision, trochanteric pressure ulcer, in preparation for muscle or myocutaneous flap or skin graft closure;" +15958,"Excision, trochanteric pressure ulcer, in preparation for muscle or myocutaneous flap or skin graft closure; with ostectomy" +15999,"Unlisted Procedure, Excision Pressure Ulcer" +16000,"Initial Treatment, 1st Degree Burn, When No More Than Local Trea" +16020,"Dressings &/or Debridement, Initial/Subquent w/o Anesthesia" +16025,"Dressings and/or Debridement of Partial-Thickness Burns, Initial or Subsequent; Medium" +16030,"Dressings and/or Debridement of Partial-Thickness Burns, Initial or Subsequent; Large" +16035,Escharotomy; Initial Incision +16036,Escharotomy; Each Addtl Incision +17000,Destruction (skin) 1 +17003,Destruction (skin) >2 up to 15 +17004,Destruction Premalignant Lesion 15/> +17106,"Destruction of Cutaneous Vascular Proliferative Lesions (eg, laser technique); Less Than 10 sq cm" +17107,"Destruction of Cutaneous Vascular Proliferative Lesions (eg, laser technique); 10.0 to 50.0 sq cm" +17108,"Destruction of Cutaneous Vascular Proliferative Lesions (eg, laser technique); Over 50.0 sq cm" +17110,Destruct of Benign Lesion +17111,Destruction Benign Lesions 15 or More +17250,Chemical Cautery Tissue +17260,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Aarms or Legs; Lesion Diameter 0.5 cm or Less" +17261,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 0.6 to 1.0 cm" +17262,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 1.1 to 2.0 cm" +17263,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 2.1 to 3.0 cm" +17264,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 3.1 to 4.0 cm" +17266,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter over 4.0 cm" +17270,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 0.5 cm or Less" +17271,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 0.6 to 1.0 cm" +17272,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 1.1 to 2.0 cm" +17273,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 2.1 to 3.0 cm" +17274,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 3.1 to 4.0 cm" +17276,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter over 4.0 cm" +17280,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 0.5 cm or Less" +17281,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 0.6 to 1.0 cm" +17282,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 1.1 to 2.0 cm" +17283,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 2.1 to 3.0 cm" +17284,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 3.1 to 4.0 cm" +17286,"Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter Over 4.0 cm" +17311,"Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), Head, Neck, Hands, Feet, Genitalia, or any Location w/Surgery Directly Involving Muscle, Cartilage, Bone, Tendon, Major Nerves, or Vessels; First Stage, up to 5 Tissue Blocks" +17312,"Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), Head, Neck, Hands, Feet, Genitalia, or Any Location w/Surgery Directly Involving Muscle, Cartilage, Bone, Tendon, Major Nerves, or Vessels; Each Addtl Stage After the First Stage, up to 5 Tissue Blocks (List separately in addition to code for primary procedure)" +17313,"Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), of the Trunk, Arms, or Legs; First Stage, up to 5 tissue Blocks" +17314,"Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), of the Trunk, Arms, or Legs; Each Addtl Stage After the First Stage, up to 5 Ttissue Blocks" +17315,"Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), Each Addtl Block After the First 5 Tissue Blocks, Any Stage" +17340,"Cryotherapy (CO2 slush, liquid N2) for Acne" +17360,"Chemical Exfoliation for Acne (eg, acne paste, acid)" +17380,"Electrolysis Epilation, Each 30 min" +17999,"Unlisted Procedure, Skin, Mucous Membrane & Subcutaneous Tissue" +19000,Puncture Aspiration Cyst of Breast +19001,Needle/Punct Cyst of Breast Addtl +19020,"Mastotomy w/Exploration or Drainage of Abscess, Deep" +19030,Injection Procedure Only for Mammary Ductogram or Galactogram +19081,Biopsy Breast 1st Lesion Stereotactic +19082,Biopsy Breast Addtl Lesion Stereotactic +19083,Biopsy Breast 1st Lesion Ultrasound Imaging +19084,Biopsy Breast Addtl Lesion Ultrasound Imaging +19085,Biopsy Breast 1st Lesion MR Imaging +19086,Biopsy Breast Addtl Lesion MR Imaging +19100,"Biopsy of Breast; Percutaneous, Needle Core, Not Using Imaging Guidance (separate procedure)" +19101,"Biopsy of Breast; Open, Incisional" +19105,"Ablation, Cryosurgical, of Fibroadenoma, Including Ultrasound Guidance, Each Fibroadenoma" +19110,"Nipple Exploration, w/ or w/Out Excision of a Solitary Lactiferous Duct or a Papilloma Lactiferous Duct" +19112,Excision of Lactiferous Duct Fistula +19120,"Excision of Cyst, Fibroadenoma, or Other Benign or Malignant Tumor, Aberrant Breast Tissue, Duct Lesion, Nipple or Areolar Lesion (except Mastectomy for Gynecomastia), Open, Male or Female, 1 or More Lesions" +19125,"Excision of Breast Lesion Identified by Preoperative Placement of Radiological Marker, Open; Single Lesion" +19126,"Excision of Breast Lesion Identified by Preoperative Placement of Radiological Marker, Open; Each Addtl Lesion Separately Identified by a Preoperative Radiological Marker (List separately in addition to code for primary procedure)" +19260,Excision of Chest Wall Tumor Including Ribs +19271,"Excision of chest wall tumor involving ribs, with plastic reconstruction; without mediastinal lymphadenectomy" +19272,"Excision of chest wall tumor involving ribs, with plastic reconstruction; with mediastinal lymphadenectomy" +19281,Placement Breast Local Device 1st Lesion Per Cut +19282,Placement Breast Local Device Addtl Lesion Per Cut +19283,Placement Breast Local Device 1st Lesion Stereotactic +19284,Placement Breast Local Device Addtl Lesion Stereotactic +19285,Placement Breast Local Device 1st Lesion Ultrasound Guidance +19286,Placement Breast Local Device Addtl Lesion Ultrasound Guidance +19287,Placement Breast Local Device 1st Lesion MR Guidance +19288,Placement Breast Local Device Addtl Lesion MR Guidance +19296,"Placement of Radiotherapy Afterloading Expandable Catheter (single or multichannel) Into the Breast for Interstitial Radioelement Application Following Partial Mastectomy, Includes Imaging Guidance; on Date Separate from Partial Mastectomy" +19297,"Placement of Radiotherapy Afterloading Expandable Catheter (single or multichannel) Into the Breast for Interstitial Radioelement Application following Partial Mastectomy, Includes Imaging Guidance; Concurrent w/Partial Mastectomy (List separately in addition to code for primary procedure)" +19298,"Placement of Radiotherapy Afterloading Brachytherapy Catheters (multiple tube and button type) Into the Breast for Interstitial Radioelement Application following (at the time of or subsequent to) Partial Mastectomy, Includes Imaging Guidance" +19300,Mastectomy for Gynecomastia +19301,"Mastectomy, partial (eg, lumpectomy, tylectomy, quadrantectomy, segmentectomy);" +19302,"Mastectomy, partial (eg, lumpectomy, tylectomy, quadrantectomy, segmentectomy); with axillary lymphadenectomy" +19303,"Mastectomy, simple, complete" +19304,"Mastectomy, subcutaneous" +19305,"Mastectomy, radical, including pectoral muscles, axillary lymph nodes" +19306,"Mastectomy, radical, including pectoral muscles, axillary and internal mammary lymph nodes (Urban type operation)" +19307,"Mastectomy, modified radical, including axillary lymph nodes, with or without pectoralis minor muscle, but excluding pectoralis major muscle" +19316,Mastopexy +19318,Reduction mammaplasty +19324,"Mammaplasty, augmentation; without prosthetic implant" +19325,"Mammaplasty, augmentation; with prosthetic implant" +19328,Removal of intact mammary implant +19330,Removal of mammary implant material +19340,"Immediate insertion of breast prosthesis following mastopexy, mastectomy or in reconstruction" +19342,"Delayed insertion of breast prosthesis following mastopexy, mastectomy or in reconstruction" +19350,Nipple/areola reconstruction +19355,Correction of inverted nipples +19357,"Breast reconstruction, immediate or delayed, with tissue expander, including subsequent expansion" +19361,"Breast reconstruction with latissimus dorsi flap, without prosthetic implant" +19364,Breast reconstruction with free flap +19366,Breast reconstruction with other technique +19367,"Breast reconstruction with transverse rectus abdominis myocutaneous flap (TRAM), single pedicle, including closure of donor site;" +19368,"Breast reconstruction with transverse rectus abdominis myocutaneous flap (TRAM), single pedicle, including closure of donor site; with microvascular anastomosis (supercharging)" +19369,"Breast reconstruction with transverse rectus abdominis myocutaneous flap (TRAM), double pedicle, including closure of donor site" +19370,"Open periprosthetic capsulotomy, breast" +19371,"Periprosthetic capsulectomy, breast" +19380,Revision of reconstructed breast +19396,Preparation of moulage for custom breast implant +19499,"Unlisted procedure, breast" +20005,"Incision & Drainage of Soft tissue Abscess, Subfascial (ie, involves the soft tissue below the deep fascia)" +20100,Exploration of penetrating wound (separate procedure); neck +20101,Exploration of penetrating wound (separate procedure); chest +20102,Exploration of penetrating wound (separate procedure); abdomen/flank/back +20103,Exploration of penetrating wound (separate procedure); extremity +20150,"Excision of Epiphyseal Bar, w/ or w/Out Autogenous Soft Tissue Graft oObtained Through Same Fascial Incision" +20200,"Biopsy, Muscle; Superficial" +20205,"Biopsy, Muscle; Deep" +20206,"Biopsy, Muscle, Percutaneous Needle" +20220,"Biopsy, Bone, Trocar, or Needle; Superficial (eg, ilium, sternum, spinous process, ribs)" +20225,"Biopsy, Bone, Trocar, or Needle; Deep (eg, vertebral body, femur)" +20240,"Biopsy, Bone, Open; Superficial (eg, ilium, sternum, spinous process, ribs, trochanter of femur)" +20245,"Biopsy, Bone, Open; Deep (eg, humerus, ischium, femur)" +20250,"Biopsy, Vertebral Body, Open; Thoracic" +20251,"Biopsy, Vertebral Body, Open; Lumbar or Cervical" +20500,Injection Sinus Tract Therapeutic Separate Proc +20501,Inject Sinus Tract for X-Ray +20520,Removal of Foreign Body in Muscle or Tendon Sheath; Simple +20525,Removal of Foreign Body in Muscle or Tendon Sheath; Deep or Complicated +20526,Carpal Tunnel Injection +20527,"Injection, Enzyme (eg, collagenase), Palmar Fascial Cord (ie, Dupuytren's contracture)" +20550,Tendon and/or Ligament Injection +20551,Injection Single Tendon Origin/Insertion +20552,Trigger Point Injections Focused +20553,Trigger Point Injection Comprehensive +20555,Placement of Needles or Catheters Into Muscle and/or Soft Tissue for Subsequent Interstitial Radioelement Application +20600,Joint/Bursa Injection w/Out Fluoroscopy +20604,Arthrocentesis/Aspiration Small Joint w/Ultrasound Guidance +20605,Asp/Injection Intermediate Joint/Bursa +20606,Arthrocentesis Aspiration Tntermediate Joint w/Ultrasound Guidance +20610,Arthrocentesis Major Asp/Inj Major Joint/Bursa +20611,Arthrocentesis Aspiration Major Joint w/Ultrasound Guidance +20612,Aspiration& Injection Ganglion Cyst Any Location +20615,Aspiration & Injection for Treatment of Bone Cyst +20650,Insertion Wire/Pin w/Appl Skeletal Traction Spx +20660,"Application of cranial tongs, caliper, or stereotactic frame, including removal (separate procedure)" +20661,"Application of halo, including removal; cranial" +20662,"Application of halo, including removal; pelvic" +20663,"Application of halo, including removal; femoral" +20664,"Application of halo, including removal, cranial, 6 or more pins placed, for thin skull osteology (eg, pediatric patients, hydrocephalus, osteogenesis imperfecta)" +20665,Removal of Tongs or Halo Applied by Another Individual +20670,"Removal of Implant; Superficial (eg, buried wire, pin or rod)" +20680,Removal Hardware +20690,"Application of a uniplane (pins or wires in 1 plane), unilateral, external fixation system" +20692,"Application of a multiplane (pins or wires in more than 1 plane), unilateral, external fixation system (eg, Ilizarov, Monticelli type)" +20693,"Adjustment or revision of external fixation system requiring anesthesia (eg, new pin[s] or wire[s] and/or new ring[s] or bar[s])" +20694,"Removal, Under Anesthesia, of External Fixation System" +20696,"Application of multiplane (pins or wires in more than 1 plane), unilateral, external fixation with stereotactic computer-assisted adjustment (eg, spatial frame), including imaging; initial and subsequent alignment(s), assessment(s), and computation(s) of adjustment schedule(s)" +20697,"Application of multiplane (pins or wires in more than 1 plane), unilateral, external fixation with stereotactic computer-assisted adjustment (eg, spatial frame), including imaging; exchange (ie, removal and replacement) of strut, each" +20802,"Replantation, arm (includes surgical neck of humerus through elbow joint), complete amputation" +20805,"Replantation, forearm (includes radius and ulna to radial carpal joint), complete amputation" +20808,"Replantation, hand (includes hand through metacarpophalangeal joints), complete amputation" +20816,"Replantation, digit, excluding thumb (includes metacarpophalangeal joint to insertion of flexor sublimis tendon), complete amputation" +20822,"Replantation, digit, excluding thumb (includes distal tip to sublimis tendon insertion), complete amputation" +20824,"Replantation, thumb (includes carpometacarpal joint to MP joint), complete amputation" +20827,"Replantation, thumb (includes distal tip to MP joint), complete amputation" +20838,"Replantation, foot, complete amputation" +20900,"Bone graft, any donor area; minor or small (eg, dowel or button)" +20902,"Bone graft, any donor area; major or large" +20910,Cartilage graft; costochondral +20912,Cartilage graft; nasal septum +20920,Fascia lata graft; by stripper +20922,"Fascia lata graft; by incision and area exposure, complex or sheet" +20924,"Tendon graft, from a distance (eg, palmaris, toe extensor, plantaris)" +20926,"Tissue grafts, other (eg, paratenon, fat, dermis)" +20930,"Allograft, morselized, or placement of osteopromotive material, for spine surgery only (List separately in addition to code for primary procedure)" +20931,"Allograft, structural, for spine surgery only (List separately in addition to code for primary procedure)" +20936,"Autograft for spine surgery only (includes harvesting the graft); local (eg, ribs, spinous process, or laminar fragments) obtained from same incision (List separately in addition to code for primary procedure)" +20937,Autograft for spine surgery only (includes harvesting the graft); morselized (through separate skin or fascial incision) (List separately in addition to code for primary procedure) +20938,"Autograft for spine surgery only (includes harvesting the graft); structural, bicortical or tricortical (through separate skin or fascial incision) (List separately in addition to code for primary procedure)" +20950,"Monitoring of interstitial fluid pressure (includes insertion of device, eg, wick catheter technique, needle manometer technique) in detection of muscle compartment syndrome" +20955,Bone graft with microvascular anastomosis; fibula +20956,Bone graft with microvascular anastomosis; iliac crest +20957,Bone graft with microvascular anastomosis; metatarsal +20962,"Bone graft with microvascular anastomosis; other than fibula, iliac crest, or metatarsal" +20969,"Free osteocutaneous flap with microvascular anastomosis; other than iliac crest, metatarsal, or great toe" +20970,Free osteocutaneous flap with microvascular anastomosis; iliac crest +20972,Free osteocutaneous flap with microvascular anastomosis; metatarsal +20973,Free osteocutaneous flap with microvascular anastomosis; great toe with web space +20974,Electrical Stimulation to Aid Bone Healing; Noninvasive (nonoperative) +20975,Electrical Stimulation to Aid Bone Healing; Invasive (operative) +20979,"Low Intensity Ultrasound Stimulation to Aid Bone Healing, Noninvasive (nonoperative)" +20982,"Ablation Therapy for Reduction or Eradication of 1 or More Bone Tumors (eg, metastasis) Including Adjacent Soft Tissue When Involved by Tumor Extension, Percutaneous, Including Imaging Guidance When Performed; Radiofrequency" +20983,"Ablation therapy for reduction or eradication of 1 or more bone tumors (eg, metastasis) including adjacent soft tissue when involved by tumor extension, percutaneous, including imaging guidance when performed; cryoablation" +20985,"Computer-assisted surgical navigational procedure for musculoskeletal procedures, image-less (List separately in addition to code for primary procedure)" +20999,"Unlisted Procedure, Musculoskeletal System, General" +21010,"Arthrotomy, Temporomandibular Joint" +21011,"Excision, Tumor, Soft Tissue of Face or Scalp, Subcutaneous; Less Than 2 cm" +21012,"Excision, Tumor, Soft Tissue of Face or Scalp, Subcutaneous; 2 cm or Greater" +21013,"Excision, Tumor, Soft Tissue of Face & Scalp, Subfascial (eg, subgaleal, intramuscular); Less Than 2 cm" +21014,"Excision, Tumor, Soft Tissue of Face & Scalp, Subfascial (eg, Subgaleal, Intramuscular); 2 cm or Greater" +21015,"Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Face or Scalp; Less Than 2 cm" +21016,"Radical resection of tumor (eg, sarcoma), soft tissue of face or scalp; 2 cm or greater" +21025,"Excision of bone (eg, for osteomyelitis or bone abscess); mandible" +21026,"Excision of bone (eg, for osteomyelitis or bone abscess); facial bone(s)" +21029,"Removal by contouring of benign tumor of facial bone (eg, fibrous dysplasia)" +21030,Excision of Benign Tumor or Cyst of Maxilla or Zygoma by Enucleation & Curettage +21031,Excision of Torus Mandibularis +21032,Excision of Maxillary Torus Palatinus +21034,Excision of Malignant Tumor of Maxilla or Zygoma +21040,"Excision of Benign Tumor or Cyst of Mandible, by Enucleation and/or Curettage" +21044,Excision of Malignant Tumor of Mandible +21045,Excision of Malignant Tumor of Mandible; Radical Resection +21046,"Excision of Benign Tumor or Cyst of Mandible; Requiring Intra-Oral Osteotomy (eg, locally aggressive or destructive lesion[s])" +21047,"Excision of Benign Tumor or Cyst of Mandible; Requiring Extra-Oral Osteotomy and Partial Mandibulectomy (eg, locally aggressive or destructive lesion[s])" +21048,"Excision of Benign Tumor or Cyst of Maxilla; Requiring Intra-Oral Osteotomy (eg, locally aggressive or destructive lesion[s])" +21049,"Excision of Benign Tumor or Cyst of Maxilla; Requiring Extra-Oral Osteotomy & Partial Maxillectomy (eg, locally aggressive or destructive lesion[s])" +21050,"Condylectomy, Temporomandibular Joint (separate procedure)" +21060,"Meniscectomy, Partial or Complete, Temporomandibular Joint (separate procedure)" +21070,Coronoidectomy (separate procedure) +21073,"Manipulation of Temporomandibular Joint(s) (TMJ), Therapeutic, Requiring an Anesthesia Service (ie, general or monitored anesthesia care)" +21076,Impression & Custom Preparation; Surgical Obturator Prosthesis +21077,Impression & Custom Preparation; Orbital Prosthesis +21079,Impression & Custom Preparation; Interim Obturator Prosthesis +21080,Impression & Custom Preparation; Definitive Obturator Prosthesis +21081,Impression & Custom Preparation; Mandibular Resection Prosthesis +21082,Impression & Custom Preparation; Palatal Augmentation Prosthesis +21083,Impression & Custom Preparation; Palatal Lift Prosthesis +21084,Impression & Custom Preparation; Speech Aid Prosthesis +21085,Impression & Custom Preparation; Oral Surgical Splint +21086,Impression & Custom Preparation; Auricular Prosthesis +21087,Impression & Custom Preparation; Nasal Prosthesis +21088,Impression & Custom Preparation; Facial Prosthesis +21089,Unlisted Maxillofacial Prosthetic Procedure +21100,"Application of Halo Type Appliance for Maxillofacial Fixation, Includes Removal (separate procedure)" +21110,"Application of Interdental Fixation Device for Conditions Other Than Fracture or Dislocation, Includes Removal" +21116,Injection Procedure for Temporomandibular Joint Arthrography +21120,"Genioplasty; augmentation (autograft, allograft, prosthetic material)" +21121,"Genioplasty; sliding osteotomy, single piece" +21122,"Genioplasty; sliding osteotomies, 2 or more osteotomies (eg, wedge excision or bone wedge reversal for asymmetrical chin)" +21123,"Genioplasty; sliding, augmentation with interpositional bone grafts (includes obtaining autografts)" +21125,"Augmentation, mandibular body or angle; prosthetic material" +21127,"Augmentation, mandibular body or angle; with bone graft, onlay or interpositional (includes obtaining autograft)" +21137,Reduction forehead; contouring only +21138,Reduction forehead; contouring and application of prosthetic material or bone graft (includes obtaining autograft) +21139,Reduction forehead; contouring and setback of anterior frontal sinus wall +21141,"Reconstruction midface, LeFort I; single piece, segment movement in any direction (eg, for Long Face Syndrome), without bone graft" +21142,"Reconstruction midface, LeFort I; 2 pieces, segment movement in any direction, without bone graft" +21143,"Reconstruction midface, LeFort I; 3 or more pieces, segment movement in any direction, without bone graft" +21145,"Reconstruction midface, LeFort I; single piece, segment movement in any direction, requiring bone grafts (includes obtaining autografts)" +21146,"Reconstruction midface, LeFort I; 2 pieces, segment movement in any direction, requiring bone grafts (includes obtaining autografts) (eg, ungrafted unilateral alveolar cleft)" +21147,"Reconstruction midface, LeFort I; 3 or more pieces, segment movement in any direction, requiring bone grafts (includes obtaining autografts) (eg, ungrafted bilateral alveolar cleft or multiple osteotomies)" +21150,"Reconstruction midface, LeFort II; anterior intrusion (eg, Treacher-Collins Syndrome)" +21151,"Reconstruction midface, LeFort II; any direction, requiring bone grafts (includes obtaining autografts)" +21154,"Reconstruction midface, LeFort III (extracranial), any type, requiring bone grafts (includes obtaining autografts); without LeFort I" +21155,"Reconstruction midface, LeFort III (extracranial), any type, requiring bone grafts (includes obtaining autografts); with LeFort I" +21159,"Reconstruction midface, LeFort III (extra and intracranial) with forehead advancement (eg, mono bloc), requiring bone grafts (includes obtaining autografts); without LeFort I" +21160,"Reconstruction midface, LeFort III (extra and intracranial) with forehead advancement (eg, mono bloc), requiring bone grafts (includes obtaining autografts); with LeFort I" +21172,"Reconstruction superior-lateral orbital rim and lower forehead, advancement or alteration, with or without grafts (includes obtaining autografts)" +21175,"Reconstruction, bifrontal, superior-lateral orbital rims and lower forehead, advancement or alteration (eg, plagiocephaly, trigonocephaly, brachycephaly), with or without grafts (includes obtaining autografts)" +21179,"Reconstruction, entire or majority of forehead and/or supraorbital rims; with grafts (allograft or prosthetic material)" +21180,"Reconstruction, entire or majority of forehead and/or supraorbital rims; with autograft (includes obtaining grafts)" +21181,"Reconstruction by contouring of benign tumor of cranial bones (eg, fibrous dysplasia), extracranial" +21182,"Reconstruction of orbital walls, rims, forehead, nasoethmoid complex following intra- and extracranial excision of benign tumor of cranial bone (eg, fibrous dysplasia), with multiple autografts (includes obtaining grafts); total area of bone grafting less than 40 sq cm" +21183,"Reconstruction of orbital walls, rims, forehead, nasoethmoid complex following intra- and extracranial excision of benign tumor of cranial bone (eg, fibrous dysplasia), with multiple autografts (includes obtaining grafts); total area of bone grafting greater than 40 sq cm but less than 80 sq cm" +21184,"Reconstruction of orbital walls, rims, forehead, nasoethmoid complex following intra- and extracranial excision of benign tumor of cranial bone (eg, fibrous dysplasia), with multiple autografts (includes obtaining grafts); total area of bone grafting greater than 80 sq cm" +21188,"Reconstruction midface, osteotomies (other than LeFort type) and bone grafts (includes obtaining autografts)" +21193,"Reconstruction of mandibular rami, horizontal, vertical, C, or L osteotomy; without bone graft" +21194,"Reconstruction of mandibular rami, horizontal, vertical, C, or L osteotomy; with bone graft (includes obtaining graft)" +21195,"Reconstruction of mandibular rami and/or body, sagittal split; without internal rigid fixation" +21196,"Reconstruction of mandibular rami and/or body, sagittal split; with internal rigid fixation" +21198,"Osteotomy, Mandible, Segmental" +21199,"Osteotomy, Mandible, Segmental; w/Genioglossus Advancement" +21206,"Osteotomy, Maxilla, Segmental (eg, Wassmund or Schuchard)" +21208,"Osteoplasty, Facial Bones; Augmentation (autograft, allograft, or prosthetic implant)" +21209,"Osteoplasty, Facial Bones; Reduction" +21210,"Graft, bone; nasal, maxillary or malar areas (includes obtaining graft)" +21215,"Graft, bone; mandible (includes obtaining graft)" +21230,"Graft; rib cartilage, autogenous, to face, chin, nose or ear (includes obtaining graft)" +21235,"Graft; ear cartilage, autogenous, to nose or ear (includes obtaining graft)" +21240,"Arthroplasty, temporomandibular joint, with or without autograft (includes obtaining graft)" +21242,"Arthroplasty, temporomandibular joint, with allograft" +21243,"Arthroplasty, temporomandibular joint, with prosthetic joint replacement" +21244,"Reconstruction of mandible, extraoral, with transosteal bone plate (eg, mandibular staple bone plate)" +21245,"Reconstruction of mandible or maxilla, subperiosteal implant; partial" +21246,"Reconstruction of mandible or maxilla, subperiosteal implant; complete" +21247,"Reconstruction of mandibular condyle with bone and cartilage autografts (includes obtaining grafts) (eg, for hemifacial microsomia)" +21248,"Reconstruction of mandible or maxilla, endosteal implant (eg, blade, cylinder); partial" +21249,"Reconstruction of mandible or maxilla, endosteal implant (eg, blade, cylinder); complete" +21255,Reconstruction of zygomatic arch and glenoid fossa with bone and cartilage (includes obtaining autografts) +21256,"Reconstruction of orbit with osteotomies (extracranial) and with bone grafts (includes obtaining autografts) (eg, micro-ophthalmia)" +21260,"Periorbital osteotomies for orbital hypertelorism, with bone grafts; extracranial approach" +21261,"Periorbital osteotomies for orbital hypertelorism, with bone grafts; combined intra- and extracranial approach" +21263,"Periorbital osteotomies for orbital hypertelorism, with bone grafts; with forehead advancement" +21267,"Orbital repositioning, periorbital osteotomies, unilateral, with bone grafts; extracranial approach" +21268,"Orbital repositioning, periorbital osteotomies, unilateral, with bone grafts; combined intra- and extracranial approach" +21270,"Malar augmentation, prosthetic material" +21275,Secondary revision of orbitocraniofacial reconstruction +21280,Medial canthopexy (separate procedure) +21282,Lateral canthopexy +21295,"Reduction of masseter muscle and bone (eg, for treatment of benign masseteric hypertrophy); extraoral approach" +21296,"Reduction of masseter muscle and bone (eg, for treatment of benign masseteric hypertrophy); intraoral approach" +21299,Unlisted craniofacial and maxillofacial procedure +21310,Closed Treatment of Nasal Bone Fracture w/Out Manipulation +21315,Closed Treatment of Nasal Bone Fracture; w/Out Stabilization +21320,Closed Treatment of Nasal Bone Fracture; w/Stabilization +21325,Open Treatment of Nasal Fracture; Uncomplicated +21330,"Open treatment of nasal fracture; complicated, with internal and/or external skeletal fixation" +21335,Open treatment of nasal fracture; with concomitant open treatment of fractured septum +21336,"Open treatment of nasal septal fracture, with or without stabilization" +21337,"Closed treatment of nasal septal fracture, with or without stabilization" +21338,Open treatment of nasoethmoid fracture; without external fixation +21339,Open treatment of nasoethmoid fracture; with external fixation +21340,"Percutaneous treatment of nasoethmoid complex fracture, with splint, wire or headcap fixation, including repair of canthal ligaments and/or the nasolacrimal apparatus" +21343,Open treatment of depressed frontal sinus fracture +21344,"Open treatment of complicated (eg, comminuted or involving posterior wall) frontal sinus fracture, via coronal or multiple approaches" +21345,"Closed Treatment of Nasomaxillary Complex Fracture (LeFort II type), w/Interdental Wire Fixation or Fixation of Denture or Splint" +21346,Open Treatment of Nasomaxillary Complex Fracture (LeFort II type); w/Wiring and/or Local Fixation +21347,Open treatment of nasomaxillary complex fracture (LeFort II type); requiring multiple open approaches +21348,Open treatment of nasomaxillary complex fracture (LeFort II type); with bone grafting (includes obtaining graft) +21355,"Percutaneous Treatment of Fracture of Malar Area, Including Zygomatic Arch & Malar Tripod, w/Manipulation" +21356,"Open treatment of depressed zygomatic arch fracture (eg, Gillies approach)" +21360,"Open treatment of depressed malar fracture, including zygomatic arch and malar tripod" +21365,"Open treatment of complicated (eg, comminuted or involving cranial nerve foramina) fracture(s) of malar area, including zygomatic arch and malar tripod; with internal fixation and multiple surgical approaches" +21366,"Open treatment of complicated (eg, comminuted or involving cranial nerve foramina) fracture(s) of malar area, including zygomatic arch and malar tripod; with bone grafting (includes obtaining graft)" +21385,Open treatment of orbital floor blowout fracture; transantral approach (Caldwell-Luc type operation) +21386,Open treatment of orbital floor blowout fracture; periorbital approach +21387,Open treatment of orbital floor blowout fracture; combined approach +21390,"Open treatment of orbital floor blowout fracture; periorbital approach, with alloplastic or other implant" +21395,Open treatment of orbital floor blowout fracture; periorbital approach with bone graft (includes obtaining graft) +21400,"Closed Treatment of Fracture of Orbit, Except Blowout; w/Out Manipulation" +21401,"Closed Treatment of Fracture of Orbit, Except Blowout; w/Manipulation" +21406,"Open treatment of fracture of orbit, except blowout; without implant" +21407,"Open treatment of fracture of orbit, except blowout; with implant" +21408,"Open treatment of fracture of orbit, except blowout; with bone grafting (includes obtaining graft)" +21421,"Closed Treatment of Palatal or Maxillary Fracture (LeFort I type), w/Interdental Wire Fixation or Fixation of Denture or Splint" +21422,Open Treatment of Palatal or Maxillary Fracture (LeFort I type) +21423,"Open Treatment of Palatal or Maxillary Fracture (LeFort I type); Ccomplicated (comminuted or involving cranial nerve foramina), Multiple Approaches" +21431,Closed Treatment of Craniofacial Separation (LeFort III type) Using Interdental Wire Fixation of Denture or Splint +21432,Open Treatment of Craniofacial Separation (LeFort III type); w/Wiring and/or Internal Fixation +21433,"Open treatment of craniofacial separation (LeFort III type); complicated (eg, comminuted or involving cranial nerve foramina), multiple surgical approaches" +21435,"Open treatment of craniofacial separation (LeFort III type); complicated, utilizing internal and/or external fixation techniques (eg, head cap, halo device, and/or intermaxillary fixation)" +21436,"Open treatment of craniofacial separation (LeFort III type); complicated, multiple surgical approaches, internal fixation, with bone grafting (includes obtaining graft)" +21440,Closed Treatment of Mandibular or Maxillary Alveolar Ridge Fracture +21445,Open Treatment of Mandibular or Maxillary Alveolar Ridge Fracture (separate procedure) +21450,Closed Treatment of Mandibular Fracture; w/Out Manipulation +21451,Closed Treatment of Mandibular Fracture; w/Manipulation +21452,"Percutaneous Treatment of Mandibular Fracture, w/External Fixation" +21453,Closed Treatment of Mandibular Fracture w/Interdental Fixation +21454,Open treatment of mandibular fracture with external Fixation +21461,Open treatment of mandibular fracture; without interdental fixation +21462,Open treatment of mandibular fracture; with interdental fixation +21465,Open treatment of mandibular condylar fracture +21470,"Open treatment of complicated mandibular fracture by multiple surgical approaches including internal fixation, interdental fixation, and/or wiring of dentures or splints" +21480,Closed Treatment of Temporomandibular Dislocation; Initial or Subsequent +21485,"Closed Treatment of Temporomandibular Dislocation; Complicated (eg, recurrent requiring intermaxillary fixation or splinting), Initial or Subsequent" +21490,Open Treatment of Temporomandibular Dislocation +21495,Open Treatment of Hyoid Fracture +21497,"Interdental Wiring, for Condition Other Than Fracture" +21499,"Unlisted musculoskeletal procedure, head" +21501,"Incision & Drainage, Deep Abscess or Hematoma, Soft Tissues of Neck or Thorax" +21502,"Incision & Drainage, Deep Abscess or Hematoma, Soft Tissues of Neck or Thorax; w/Partial Rib Ostectomy" +21510,"Incision, Deep, w/Opening of Bone Cortex (eg, for osteomyelitis or bone abscess), Thorax" +21550,"Biopsy, Soft Tissue of Neck or Thorax" +21552,"Excision, Tumor, Soft Tissue of Neck or Anterior Thorax, Subcutaneous; 3 cm or Greater" +21554,"Excision, Tumor, Soft Tissue of Neck or Anterior Thorax, Subfascial (eg, intramuscular); 5 cm or Greater" +21555,"Excision, Tumor, Soft Tissue of Neck or Interior Thorax, Subcutaneous; Less Than 3 cm" +21556,"Excision, Tumor, Soft Tissue of Neck or Anterior Thorax, Subfascial (eg, intramuscular); Less Than 5 cm" +21557,"Radical resection of tumor (eg, sarcoma), soft tissue of neck or anterior thorax; less than 5 cm" +21558,"Radical resection of tumor (eg, sarcoma), soft tissue of neck or anterior thorax; 5 cm or greater" +21600,"Excision of rib, partial" +21610,Costotransversectomy (separate procedure) +21615,Excision first and/or cervical rib; +21616,Excision first and/or cervical rib; with sympathectomy +21620,"Ostectomy of sternum, partial" +21627,Sternal Debridement +21630,Radical resection of sternum; +21632,Radical resection of sternum; with mediastinal lymphadenectomy +21685,Hyoid myotomy and suspension +21700,Division of scalenus anticus; without resection of cervical rib +21705,Division of scalenus anticus; with resection of cervical rib +21720,"Division of sternocleidomastoid for torticollis, open operation; without cast application" +21725,"Division of sternocleidomastoid for torticollis, open operation; with cast application" +21740,Reconstructive repair of pectus excavatum or carinatum; open +21742,"Reconstructive Repair of Pectus Excavatum or Carinatum; Minimally Invasive Approach (Nuss procedure), w/Out Thoracoscopy" +21743,"Reconstructive Repair of Pectus Excavatum or Carinatum; Minimally Invasive Approach (Nuss procedure), w/Thoracoscopy" +21750,Closure of Median Sternotomy Separation w/ or w/o Debridement (separate procedure) +21805,"Open treatment of rib fracture without fixation, each" +21811,"Open treatment of rib fracture(s) with internal fixation, includes thoracoscopic visualization when performed, unilateral; 1-3 ribs" +21812,"Open treatment of rib fracture(s) with internal fixation, includes thoracoscopic visualization when performed, unilateral; 4-6 ribs" +21813,"Open treatment of rib fracture(s) with internal fixation, includes thoracoscopic visualization when performed, unilateral; 7 or more ribs" +21820,Closed Treatment of Sternum Fracture +21825,Open treatment of sternum fracture with or without skeletal fixation +21899,"Unlisted procedure, neck or thorax" +21920,"Biopsy, soft tissue of back or flank; superficial" +21925,"Biopsy, soft tissue of back or flank; deep" +21930,"Excision, Tumor, Soft Tissue of Back or Flank, Subcutaneous; Less Than 3 cm" +21931,"Excision, Tumor, Soft Tissue of Back or Flank, Subcutaneous; 3 cm or Greater" +21932,"Excision, Tumor, Soft Tissue of Back or Flank, Subfascial (eg, intramuscular); Less Than 5 cm" +21933,"Excision, Tumor, Soft Tissue of Back or Flank, Subfascial (eg, intramuscular); 5 cm or Greater" +21935,"Radical resection of tumor (eg, sarcoma), soft tissue of back or flank; less than 5 cm" +21936,"Radical resection of tumor (eg, sarcoma), soft tissue of back or flank; 5 cm or greater" +22010,"Incision and drainage, open, of deep abscess (subfascial), posterior spine; cervical, thoracic, or cervicothoracic" +22015,"Incision and drainage, open, of deep abscess (subfascial), posterior spine; lumbar, sacral, or lumbosacral" +22100,"Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; cervical" +22101,"Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; thoracic" +22102,"Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; lumbar" +22103,"Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; each additional segment (List separately in addition to code for primary procedure)" +22110,"Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; cervical" +22112,"Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; thoracic" +22114,"Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; lumbar" +22116,"Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; each additional vertebral segment (List separately in addition to code for primary procedure)" +22206,"Osteotomy of spine, posterior or posterolateral approach, 3 columns, 1 vertebral segment (eg, pedicle/vertebral body subtraction); thoracic" +22207,"Osteotomy of spine, posterior or posterolateral approach, 3 columns, 1 vertebral segment (eg, pedicle/vertebral body subtraction); lumbar" +22208,"Osteotomy of spine, posterior or posterolateral approach, 3 columns, 1 vertebral segment (eg, pedicle/vertebral body subtraction); each additional vertebral segment (List separately in addition to code for primary procedure)" +22210,"Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; cervical" +22212,"Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; thoracic" +22214,"Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; lumbar" +22216,"Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; each additional vertebral segment (List separately in addition to primary procedure)" +22220,"Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; cervical" +22222,"Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; thoracic" +22224,"Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; lumbar" +22226,"Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; each additional vertebral segment (List separately in addition to code for primary procedure)" +22305,Closed Treatment of Vertebral Process Fracture(s) +22310,"Closed Treatment of Vertebral Body Fracture(s), w/o Manipulation, Requiring & Including Casting or Bracing" +22315,"Closed Treatment of Vertebral Fracture(s) and/or Dislocation(s) Requiring Casting or Bracing, w/ & Including Casting and/or Bracing by Manipulation or Traction" +22318,"Open treatment and/or reduction of odontoid fracture(s) and or dislocation(s) (including os odontoideum), anterior approach, including placement of internal fixation; without grafting" +22319,"Open treatment and/or reduction of odontoid fracture(s) and or dislocation(s) (including os odontoideum), anterior approach, including placement of internal fixation; with grafting" +22325,"Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; lumbar" +22326,"Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; cervical" +22327,"Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; thoracic" +22328,"Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; each additional fractured vertebra or dislocated segment (List separately in addition to code for primary procedure)" +22505,"Manipulation of Spine Requiring Anesthesia, Any Region" +22510,"Percutaneous Vertebroplasty (bone biopsy included when performed), 1 Vertebral Body, Unilateral or Bilateral Injection, Inclusive of All Imaging Guidance; Cervicothoracic" +22511,"Percutaneous Vertebroplasty (bone biopsy included when performed), 1 Vertebral Body, Unilateral or Bilateral Injection, Inclusive of All Imaging Guidance; Lumbosacral" +22512,"Percutaneous Vertebroplasty (bone biopsy included when performed), 1 Vertebral Body, Unilateral or Bilateral Injection, Inclusive of All Imaging Guidance; Each Addtl Cervicothoracic or Lumbosacral Vertebral Body" +22513,"Percutaneous vertebral augmentation, including cavity creation (fracture reduction and bone biopsy included when performed) using mechanical device (eg, kyphoplasty), 1 vertebral body, unilateral or bilateral cannulation, inclusive of all imaging guidance; thoracic" +22514,"Percutaneous vertebral augmentation, including cavity creation (fracture reduction and bone biopsy included when performed) using mechanical device (eg, kyphoplasty), 1 vertebral body, unilateral or bilateral cannulation, inclusive of all imaging guidance; lumbar" +22515,"Percutaneous vertebral augmentation, including cavity creation (fracture reduction and bone biopsy included when performed) using mechanical device (eg, kyphoplasty), 1 vertebral body, unilateral or bilateral cannulation, inclusive of all imaging guidance; each additional thoracic or lumbar vertebral body (List separately in addition to code for primary procedure)" +22526,"Percutaneous Intradiscal Electrothermal Annuloplasty, Unilateral or Bilateral Including Fluoroscopic Guidance; Single Level" +22527,"Percutaneous Intradiscal Electrothermal Annuloplasty, Unilateral or Bilateral Including Fluoroscopic Guidance; 1 or More Addtl Levels" +22532,"Arthrodesis, Lateral Extracavitary Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Thoracic" +22533,"Arthrodesis, Lateral Extracavitary Technique, Iincluding Minimal Discectomy to Prepare Interspace (other than for decompression); Lumbar" +22534,"Arthrodesis, Lateral Extracavitary Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Thoracic or Lumbar, Each Addtl Vertebral Segment" +22548,"Arthrodesis, Anterior Transoral or Eextraoral Technique, Clivus-C1-C2 (atlas-axis), w/ or w/o Excision of Odontoid Process" +22551,"Arthrodesis, Anterior Interbody, Including Disc Space Preparation, Discectomy, Osteophytectomy & Decompression of Spinal Cord and/or Nerve Roots; Cervical Below C2" +22552,"Arthrodesis, Anterior Interbody, Including Disc Space Preparation, Discectomy, Osteophytectomy & Decompression of Spinal Cord and/or Nerve Roots; Cervical Below C2, Each Addtl Interspace" +22554,"Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Cervical Below C2" +22556,"Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Thoracic" +22558,"Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Lumbar" +22585,"Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Each Addtl Interspace" +22586,"Arthrodesis, Pre-Sacral Interbody Technique, Including Disc Space Preparation, Discectomy, w/Posterior Iinstrumentation, w/Image Guidance, Includes Bone Graft When Performed, L5-S1 Interspace" +22590,"Arthrodesis, Posterior Technique, Craniocervical (occiput-C2)" +22595,"Arthrodesis, Posterior Technique, Atlas-Axis (C1-C2)" +22600,"Arthrodesis, Posterior or Posterolateral Technique, Single Level; Cervical Below C2 Segment" +22610,"Arthrodesis, Posterior or Posterolateral Technique, Single Level; Thoracic (with lateral transverse technique, when performed)" +22612,"Arthrodesis, Posterior or Posterolateral Technique, Single Level; Lumbar (with lateral transverse technique, when performed)" +22614,"Arthrodesis, Posterior or Posterolateral Technique, Single Level; Each Addtl Vertebral Segment" +22630,"Arthrodesis, Posterior iInterbody Technique, Including Laminectomy and/or Discectomy to Pprepare Interspace (other than for decompression), Single Interspace; Lumbar" +22632,"Arthrodesis, Posterior Interbody Technique, Including Laminectomy and/or Discectomy to Prepare Interspace (other than for decompression), Single Interspace; Each Addtl Interspace" +22633,"Arthrodesis, Combined Posterior or Posterolateral Technique w/Posterior Interbody Technique Including Laminectomy and/or Discectomy Sufficient to Prepare Interspace (other than for decompression), Single Interspace & Segment; Lumbar" +22634,"Arthrodesis, Combined Posterior or Posterolateral Technique w/Posterior Interbody Technique Including Laminectomy and/or Discectomy Sufficient to Prepare Interspace (other than for decompression), Single Interspace & Segment; Each Addtl Interspace & Segment" +22800,"Arthrodesis, Posterior, for Spinal Deformity, w/ or w/Out Cast; up to 6 Vertebral Segments" +22802,"Arthrodesis, Posterior, for Spinal Deformity, w/ or w/o Cast; 7 to 12 Vertebral Segments" +22804,"Arthrodesis, Posterior, for Spinal Deformity, w/ or w/o Cast; 13 or More Vertebral Segments" +22808,"Arthrodesis, Anterior, for Spinal Deformity, w/ or w/o Cast; 2 to 3 Vertebral Segments" +22810,"Arthrodesis, Anterior, for Spinal Deformity, w/ or w/o Cast; 4 to 7 Vertebral Segments" +22812,"Arthrodesis, Anterior, for Spinal Deformity, w/ or w/o Cast; 8 or More Vertebral Segments" +22818,"Kyphectomy, circumferential exposure of spine and resection of vertebral segment(s) (including body and posterior elements); single or 2 segments" +22819,"Kyphectomy, circumferential exposure of spine and resection of vertebral segment(s) (including body and posterior elements); 3 or more segments" +22830,Exploration of spinal fusion +22840,"Posterior non-segmental instrumentation (eg, Harrington rod technique, pedicle fixation across 1 interspace, atlantoaxial transarticular screw fixation, sublaminar wiring at C1, facet screw fixation) (List separately in addition to code for primary procedure)" +22841,Internal spinal fixation by wiring of spinous processes (List separately in addition to code for primary procedure) +22842,"Posterior segmental instrumentation (eg, pedicle fixation, dual rods with multiple hooks and sublaminar wires); 3 to 6 vertebral segments (List separately in addition to code for primary procedure)" +22843,"Posterior segmental instrumentation (eg, pedicle fixation, dual rods with multiple hooks and sublaminar wires); 7 to 12 vertebral segments (List separately in addition to code for primary procedure)" +22844,"Posterior segmental instrumentation (eg, pedicle fixation, dual rods with multiple hooks and sublaminar wires); 13 or more vertebral segments (List separately in addition to code for primary procedure)" +22845,Anterior instrumentation; 2 to 3 vertebral segments (List separately in addition to code for primary procedure) +22846,Anterior instrumentation; 4 to 7 vertebral segments (List separately in addition to code for primary procedure) +22847,Anterior instrumentation; 8 or more vertebral segments (List separately in addition to code for primary procedure) +22848,Pelvic fixation (attachment of caudal end of instrumentation to pelvic bony structures) other than sacrum (List separately in addition to code for primary procedure) +22849,Reinsertion of spinal fixation device +22850,"Removal of posterior nonsegmental instrumentation (eg, Harrington rod)" +22851,"Application of intervertebral biomechanical device(s) (eg, synthetic cage(s), methylmethacrylate) to vertebral defect or interspace (List separately in addition to code for primary procedure)" +22852,Removal of posterior segmental instrumentation +22855,Removal of anterior instrumentation +22856,"Total disc arthroplasty (artificial disc), anterior approach, including discectomy with end plate preparation (includes osteophytectomy for nerve root or spinal cord decompression and microdissection); single interspace, cervical" +22857,"Total disc arthroplasty (artificial disc), anterior approach, including discectomy to prepare interspace (other than for decompression), single interspace, lumbar" +22858,"Total disc arthroplasty (artificial disc), anterior approach, including discectomy with end plate preparation (includes osteophytectomy for nerve root or spinal cord decompression and microdissection); second level, cervical (List separately in addition to code for primary procedure)" +22861,"Revision including replacement of total disc arthroplasty (artificial disc), anterior approach, single interspace; cervical" +22862,"Revision including replacement of total disc arthroplasty (artificial disc), anterior approach, single interspace; lumbar" +22864,"Removal of total disc arthroplasty (artificial disc), anterior approach, single interspace; cervical" +22865,"Removal of total disc arthroplasty (artificial disc), anterior approach, single interspace; lumbar" +22899,"Unlisted procedure, spine" +22900,"Excision, Tumor, Soft Tissue of Abdominal Wall, Subfascial (eg, intramuscular); Less Than 5 cm" +22901,"Excision, Tumor, Soft Tissue of Abdominal Wall, Subfascial (eg, intramuscular); 5 cm or Greater" +22902,"Excision, Tumor, Soft Tissue of Abdominal Wall, Subcutaneous; Less Than 3 cm" +22903,"Excision, Tumor, Soft Tissue of Abdominal Wall, Subcutaneous; 3 cm or Greater" +22904,"Radical resection of tumor (eg, sarcoma), soft tissue of abdominal wall; less than 5 cm" +22905,"Radical resection of tumor (eg, sarcoma), soft tissue of abdominal wall; 5 cm or greater" +22999,"Unlisted procedure, abdomen, musculoskeletal system" +23000,"Removal of Subdeltoid Calcareous Deposits, Open" +23020,"Capsular Contracture Release (eg, Sever type procedure)" +23030,"Incision & Drainage, Shoulder Area; Deep Abscess or Hematoma" +23031,"Incision & Drainage, Shoulder Area; Infected Bursa" +23035,"Incision, Bone Cortex (eg, osteomyelitis or bone abscess), Shoulder Area" +23040,"Arthrotomy, Glenohumeral Joint, Including Exploration, Drainage, or Removal of Foreign Body" +23044,"Arthrotomy, Acromioclavicular, Sternoclavicular Joint, Including Exploration, Drainage, or Removal of Foreign Body" +23065,"Biopsy, Soft Tissue of Shoulder Area; Superficial" +23066,"Biopsy, Soft Tissue of Shoulder Area; Deep" +23071,"Excision, Tumor, Soft Tissue of Shoulder Area, Subcutaneous; 3 cm or Greater" +23073,"Excision, Tumor, Soft Tissue of Shoulder Area, Subfascial (eg, intramuscular); 5 cm or Greater" +23075,"Excision, Tumor, Soft Tissue of Shoulder Area, Subcutaneous; Less Than 3 cm" +23076,"Excision, Tumor, Soft Tissue of Shoulder Area, Subfascial (eg, intramuscular); Less Than 5 cm" +23077,"Radical resection of tumor (eg, sarcoma), soft tissue of shoulder area; less than 5 cm" +23078,"Radical resection of tumor (eg, sarcoma), soft tissue of shoulder area; 5 cm or greater" +23100,"Arthrotomy, Glenohumeral Joint, Including Biopsy" +23101,"Arthrotomy, Acromioclavicular Joint or Sternoclavicular Joint, Including Biopsy and/or Excision of Torn Cartilage" +23105,"Arthrotomy; Glenohumeral Joint, w/ Synovectomy, w/ or w/Out Biopsy" +23106,"Arthrotomy; Sternoclavicular Joint, w/ Synovectomy, w/ or w/Out Biopsy" +23107,"Arthrotomy, Glenohumeral Joint, w/Joint Exploration, w/ or w/Out Rremoval of Loose or Foreign Body" +23120,Claviculectomy; Partial +23125,Claviculectomy; Total +23130,"Acromioplasty or Acromionectomy, Partial, w/ or w/Out Coracoacromial Ligament Release" +23140,Excision or Curettage of Bone Cyst or Benign Tumor of Clavicle or Scapula +23145,Excision or Curettage of Bone Cyst or Benign Tumor of Clavicle or Scapula; w/Autograft (includes obtaining graft) +23146,Excision or Curettage of Bone Cyst or Benign Tumor of Clavicle or Scapula; w/Allograft +23150,Excision or Curettage of Bone Cyst or Benign Tumor of Proximal Humerus +23155,Excision or Curettage of Bone Cyst or Benign Tumor of Proximal Humerus; w/Autograft (includes obtaining graft) +23156,Excision or Curettage of Bone Cyst or Benign Tumor of Proximal Humerus; w/Allograft +23170,"Sequestrectomy (eg, for osteomyelitis or bone abscess), Clavicle" +23172,"Sequestrectomy (eg, for osteomyelitis or bone abscess), Scapula" +23174,"Sequestrectomy (eg, for osteomyelitis or bone abscess), Humeral Head to Surgical Neck" +23180,"Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis), Clavicle" +23182,"Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis), Scapula" +23184,"Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis), Proximal Humerus" +23190,"Ostectomy of Scapula, Partial (eg, superior medial angle)" +23195,"Resection, Humeral Head" +23200,Radical resection of tumor; clavicle +23210,Radical resection of tumor; scapula +23220,"Radical resection of tumor, proximal humerus" +23330,"Removal of Foreign Body, Shoulder; Subcutaneous" +23333,"Removal of Foreign Body, Shoulder; Deep (subfascial or intramuscular)" +23334,"Removal of prosthesis, includes debridement and synovectomy when performed; humeral or glenoid component" +23335,"Removal of prosthesis, includes debridement and synovectomy when performed; humeral and glenoid components (eg, total shoulder)" +23350,Shoulder Arthrogram +23395,"Muscle transfer, any type, shoulder or upper arm; single" +23397,"Muscle transfer, any type, shoulder or upper arm; multiple" +23400,"Scapulopexy (eg, Sprengels deformity or for paralysis)" +23405,"Tenotomy, Shoulder Area; Single Tendon" +23406,"Tenotomy, Shoulder Area; Multiple Tendons Through Same Incision" +23410,"Repair of Ruptured Musculotendinous Cuff (eg, rotator cuff) Open; Acute" +23412,"Repair of Ruptured Musculotendinous Cuff (eg, rotator cuff) Open; Chronic" +23415,"Coracoacromial ligament release, with or without acromioplasty" +23420,"Reconstruction of complete shoulder (rotator) cuff avulsion, chronic (includes acromioplasty)" +23430,Tenodesis of Long Tendon of Biceps +23440,Resection or Transplantation of Long Tendon of Biceps +23450,"Capsulorrhaphy, anterior; Putti-Platt procedure or Magnuson type operation" +23455,"Capsulorrhaphy, anterior; with labral repair (eg, Bankart procedure)" +23460,"Capsulorrhaphy, anterior, any type; with bone block" +23462,"Capsulorrhaphy, anterior, any type; with coracoid process transfer" +23465,"Capsulorrhaphy, glenohumeral joint, posterior, with or without bone block" +23466,"Capsulorrhaphy, glenohumeral joint, any type multi-directional instability" +23470,"Arthroplasty, glenohumeral joint; hemiarthroplasty" +23472,"Arthroplasty, glenohumeral joint; total shoulder (glenoid and proximal humeral replacement (eg, total shoulder))" +23473,"Revision of total shoulder arthroplasty, including allograft when performed; humeral or glenoid component" +23474,"Revision of total shoulder arthroplasty, including allograft when performed; humeral and glenoid component" +23480,"Osteotomy, Clavicle, w/ or w/Out Internal Fixation" +23485,"Osteotomy, clavicle, with or without internal fixation; with bone graft for nonunion or malunion (includes obtaining graft and/or necessary fixation)" +23490,"Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Clavicle" +23491,"Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Proximal Humerus" +23500,Closed Treatment of Clavicular Fracture; w/Out Manipulation +23505,Closed Treatment of Clavicular Fracture; w/Manipulation +23515,"Open treatment of clavicular fracture, includes internal fixation, when performed" +23520,Closed Treatment of Sternoclavicular Dislocation; w/Out Manipulation +23525,Closed Treatment of Sternoclavicular Dislocation; w/Manipulation +23530,"Open treatment of sternoclavicular dislocation, acute or chronic;" +23532,"Open treatment of sternoclavicular dislocation, acute or chronic; with fascial graft (includes obtaining graft)" +23540,Closed Treatment of Acromioclavicular Dislocation; w/Out Manipulation +23545,Closed Treatment of Acromioclavicular Dislocation; w/Manipulation +23550,"Open treatment of acromioclavicular dislocation, acute or chronic;" +23552,"Open treatment of acromioclavicular dislocation, acute or chronic; with fascial graft (includes obtaining graft)" +23570,Closed Treatment of Scapular Fracture; w/Out Manipulation +23575,"Closed Treatment of Scapular Fracture; w/Manipulation, w/ or w/Out Skeletal Traction (with or without shoulder joint involvement)" +23585,"Open Treatment of Scapular Fracture (body, glenoid or acromion) Includes Internal Fixation, when Performed" +23600,Closed Treatment of Proximal Humeral (surgical or anatomical neck) Fracture; w/Out Manipulation +23605,"Closed Treatment of Proximal Humeral (surgical or anatomical neck) Fracture; w/Manipulation, w/ or w/Out Skeletal Traction" +23615,"Open treatment of proximal humeral (surgical or anatomical neck) fracture, includes internal fixation, when performed, includes repair of tuberosity(s), when performed;" +23616,"Open treatment of proximal humeral (surgical or anatomical neck) fracture, includes internal fixation, when performed, includes repair of tuberosity(s), when performed; with proximal humeral prosthetic replacement" +23620,Closed Treatment of Greater Humeral Tuberosity Fracture; w/Out Manipulation +23625,Closed Treatment of Greater Humeral Tuberosity Fracture; w/Manipulation +23630,"Open treatment of greater humeral tuberosity fracture, includes internal fixation, when performed" +23650,"Closed Treatment of Shoulder Dislocation, w/Manipulation; w/Out Anesthesia" +23655,"Closed Treatment of Shoulder Dislocation, w/Manipulation; Requiring Anesthesia" +23660,Open Treatment of Acute Shoulder Dislocation +23665,"Closed Treatment of Shoulder Dislocation, w/Fracture of Greater Humeral Tuberosity, w/Manipulation" +23670,"Open treatment of shoulder dislocation, with fracture of greater humeral tuberosity, includes internal fixation, when performed" +23675,"Closed Treatment of Shoulder Dislocation, w/Surgical or Anatomical Neck Fracture, w/Manipulation" +23680,"Open treatment of shoulder dislocation, with surgical or anatomical neck fracture, includes internal fixation, when performed" +23700,"Manipulation Under Anesthesia, Shoulder Joint, Including Application of Fixation Apparatus (dislocation excluded)" +23800,"Arthrodesis, Glenohumeral Joint" +23802,"Arthrodesis, Glenohumeral Joint; w/Autogenous Graft" +23900,Interthoracoscapular amputation (forequarter) +23920,Disarticulation of shoulder; +23921,Disarticulation of shoulder; secondary closure or scar revision +23929,"Unlisted procedure, shoulder" +23930,"Incision & Drainage, Upper Arm or Elbow Area; Deep Abscess or Hematoma" +23931,"Incision & Drainage, Upper Arm or Elbow Area; Bursa" +23935,"Incision, Deep, w/Opening of Bone Cortex (eg, for osteomyelitis or bone abscess), Humerus or Elbow" +24000,"Arthrotomy, Elbow, Including Exploration, Drainage, or Removal of Foreign Body" +24006,"Arthrotomy of the Elbow, w/Capsular Excision for Capsular Release (separate procedure)" +24065,"Biopsy, Soft Tissue of Upper Arm or Elbow Area; Superficial" +24066,"Biopsy, Soft Tissue of Uupper Arm or Elbow Area; Deep (subfascial or intramuscular)" +24071,"Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subcutaneous; 3 cm or Greater" +24073,"Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subfascial (eg, intramuscular); 5 cm or Greater" +24075,"Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subcutaneous; Less Than 3 cm" +24076,"Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subfascial (eg, intramuscular); Less Than 5 cm" +24077,"Radical resection of tumor (eg, sarcoma), soft tissue of upper arm or elbow area; less than 5 cm" +24079,"Radical resection of tumor (eg, sarcoma), soft tissue of upper arm or elbow area; 5 cm or greater" +24100,"Arthrotomy, Elbow; w/Synovial Biopsy Only" +24101,"Arthrotomy, Elbow; w/Joint Exploration, w/ or w/Out Biopsy, w/ or w/Out Removal of Loose or Foreign Body" +24102,"Arthrotomy, Elbow; w/Synovectomy" +24105,"Excision, Olecranon Bursa" +24110,"Excision or Curettage of Bone Cyst or Benign Tumor, Humerus" +24115,"Excision or curettage of bone cyst or benign tumor, humerus; with autograft (includes obtaining graft)" +24116,"Excision or curettage of bone cyst or benign tumor, humerus; with allograft" +24120,Excision or Curettage of Bone Cyst or Benign Tumor of Head or Neck of Radius or Olecranon Process +24125,Excision or curettage of bone cyst or benign tumor of head or neck of radius or olecranon process; with autograft (includes obtaining graft) +24126,Excision or curettage of bone cyst or benign tumor of head or neck of radius or olecranon process; with allograft +24130,"Excision, radial head" +24134,"Sequestrectomy (eg, for osteomyelitis or bone abscess), shaft or distal humerus" +24136,"Sequestrectomy (eg, for osteomyelitis or bone abscess), radial head or neck" +24138,"Sequestrectomy (eg, for osteomyelitis or bone abscess), olecranon process" +24140,"Partial excision (craterization, saucerization, or diaphysectomy) bone (eg, osteomyelitis), humerus" +24145,"Partial excision (craterization, saucerization, or diaphysectomy) bone (eg, osteomyelitis), radial head or neck" +24147,"Partial excision (craterization, saucerization, or diaphysectomy) bone (eg, osteomyelitis), olecranon process" +24149,"Radical resection of capsule, soft tissue, and heterotopic bone, elbow, with contracture release (separate procedure)" +24150,"Radical resection of tumor, shaft or distal humerus" +24152,"Radical resection of tumor, radial head or neck" +24155,Resection of elbow joint (arthrectomy) +24160,"Removal of prosthesis, includes debridement and synovectomy when performed; humeral and ulnar components" +24164,"Removal of prosthesis, includes debridement and synovectomy when performed; radial head" +24200,"Removal of Foreign Body, Upper Arm or Elbow Area; Subcutaneous" +24201,"Removal of Foreign Body, Upper Arm or Elbow Area; Deep (subfascial or intramuscular)" +24220,Injection Procedure for Elbow Arthrography +24300,"Manipulation, Elbow, Under Anesthesia" +24301,"Muscle or tendon transfer, any type, upper arm or elbow, single (excluding 24320-24331)" +24305,"Tendon lengthening, upper arm or elbow, each tendon" +24310,"Tenotomy, open, elbow to shoulder, each tendon" +24320,"Tenoplasty, with muscle transfer, with or without free graft, elbow to shoulder, single (Seddon-Brookes type procedure)" +24330,"Flexor-plasty, elbow (eg, Steindler type advancement);" +24331,"Flexor-plasty, elbow (eg, Steindler type advancement); with extensor advancement" +24332,"Tenolysis, triceps" +24340,Tenodesis of Biceps Tendon at Elbow +24341,"Repair, Tendon or Muscle, Upper Arm or Elbow, Each Tendon or Muscle, Primary or Secondary (excludes rotator cuff)" +24342,"Reinsertion of ruptured biceps or triceps tendon, distal, with or without tendon graft" +24343,"Repair Lateral Collateral Ligament, Elbow, w/Local Tissue" +24344,"Reconstruction lateral collateral ligament, elbow, with tendon graft (includes harvesting of graft)" +24345,"Repair Medial Collateral Ligament, Elbow, w/Local Tissue" +24346,"Reconstruction Medial Collateral Ligament, Elbow, w/Tendon Graft (includes harvesting of graft)" +24357,"Tenotomy, Elbow, Lateral or Medial (eg, epicondylitis, tennis elbow, golfer's elbow); Percutaneous" +24358,"Tenotomy, elbow, lateral or medial (eg, epicondylitis, tennis elbow, golfer's elbow); debridement, soft tissue and/or bone, open" +24359,"Tenotomy, elbow, lateral or medial (eg, epicondylitis, tennis elbow, golfer's elbow); debridement, soft tissue and/or bone, open with tendon repair or reattachment" +24360,"Arthroplasty, elbow; with membrane (eg, fascial)" +24361,"Arthroplasty, elbow; with distal humeral prosthetic replacement" +24362,"Arthroplasty, elbow; with implant and fascia lata ligament reconstruction" +24363,"Arthroplasty, elbow; with distal humerus and proximal ulnar prosthetic replacement (eg, total elbow)" +24365,"Arthroplasty, radial head;" +24366,"Arthroplasty, radial head; with implant" +24370,"Revision of total elbow arthroplasty, including allograft when performed; humeral or ulnar component" +24371,"Revision of total elbow arthroplasty, including allograft when performed; humeral and ulnar component" +24400,"Osteotomy, Humerus, w/ or w/Out Internal Fixation" +24410,"Multiple osteotomies with realignment on intramedullary rod, humeral shaft (Sofield type procedure)" +24420,"Osteoplasty, humerus (eg, shortening or lengthening) (excluding 64876)" +24430,"Repair of nonunion or malunion, humerus; without graft (eg, compression technique)" +24435,"Repair of nonunion or malunion, humerus; with iliac or other autograft (includes obtaining graft)" +24470,"Hemiepiphyseal arrest (eg, cubitus varus or valgus, distal humerus)" +24495,"Decompression fasciotomy, forearm, with brachial artery exploration" +24498,"Prophylactic treatment (nailing, pinning, plating or wiring), with or without methylmethacrylate, humeral shaft" +24500,Closed Treatment of Humeral Shaft Fracture; w/Out Manipulation +24505,"Closed Treatment of Humeral Shaft Fracture; w/Manipulation, w/ or w/Out Skeletal Traction" +24515,"Open treatment of humeral shaft fracture with plate/screws, with or without cerclage" +24516,"Treatment of humeral shaft fracture, with insertion of intramedullary implant, with or without cerclage and/or locking screws" +24530,"Closed Treatment of Supracondylar or Transcondylar Humeral Fracture, w/ or w/Out Intercondylar Extension; w/Out Manipulation" +24535,"Closed Treatment of Supracondylar or Transcondylar Humeral Fracture, w/ or w/Out Intercondylar Extension; w/Manipulation, w/ or w/Out Skin or Skeletal Traction" +24538,"Percutaneous Skeletal Fixation of Supracondylar or Transcondylar Humeral Fracture, w/ or w/Out Intercondylar Extension" +24545,"Open Treatment of Humeral Supracondylar or Transcondylar Fracture, Includes Internal Fixation, when Performed; w/o Intercondylar Extension" +24546,"Open treatment of humeral supracondylar or transcondylar fracture, includes internal fixation, when performed; with intercondylar extension" +24560,"Closed Treatment of Humeral Epicondylar Fracture, Medial or Lateral; w/Out Manipulation" +24565,"Closed Treatment of Humeral Epicondylar Fracture, Medial or Lateral; w/Manipulation" +24566,"Percutaneous Skeletal Fixation of Humeral Epicondylar Fracture, Medial or Lateral, w/Manipulation" +24575,"Open treatment of humeral epicondylar fracture, medial or lateral, includes internal fixation, when performed" +24576,"Closed Treatment of Humeral Condylar Fracture, Medial or Lateral; w/Out Manipulation" +24577,"Closed Treatment of Humeral Condylar Fracture, Medial or Lateral; w/Manipulation" +24579,"Open treatment of humeral condylar fracture, medial or lateral, includes internal fixation, when performed" +24582,"Percutaneous Skeletal Fixation of Humeral Condylar Fracture, Medial or Lateral, w/Manipulation" +24586,Open treatment of periarticular fracture and/or dislocation of the elbow (fracture distal humerus and proximal ulna and/or proximal radius); +24587,Open treatment of periarticular fracture and/or dislocation of the elbow (fracture distal humerus and proximal ulna and/or proximal radius); with implant arthroplasty +24600,Treatment of Closed Elbow Dislocation; w/Out Anesthesia +24605,Treatment of Closed Elbow Dislocation; Requiring Anesthesia +24615,Open treatment of acute or chronic elbow dislocation +24620,"Closed Treatment of Monteggia Type of Fracture Dislocation at Elbow (fracture proximal end of ulna with dislocation of radial head), w/Manipulation" +24635,"Open treatment of Monteggia type of fracture dislocation at elbow (fracture proximal end of ulna with dislocation of radial head), includes internal fixation, when performed" +24640,"Closed Treatment, Radial Head Subluxation, Nursemaid EL" +24650,Closed Treatment of Radial Head or Neck Fracture; w/Out Manipulation +24655,Closed Treatment of Radial Head or Neck Fracture; w/Manipulation +24665,"Open treatment of radial head or neck fracture, includes internal fixation or radial head excision, when performed;" +24666,"Open treatment of radial head or neck fracture, includes internal fixation or radial head excision, when performed; with radial head prosthetic replacement" +24670,"Closed Treatment of Ulnar Fracture, Proximal End (eg, olecranon or coronoid process[es]); w/Out Manipulation" +24675,"Closed Treatment of Ulnar Fracture, Proximal End (eg, olecranon or coronoid process[es]); w/Manipulation" +24685,"Open Treatment of Ulnar Fracture, Proximal End (eg, olecranon or coronoid process[es]), Includes Internal Fixation, When Performed" +24800,"Arthrodesis, Elbow Joint; Local" +24802,"Arthrodesis, Elbow Joint; w/Autogenous Graft (includes obtaining graft)" +24900,"Amputation, arm through humerus; with primary closure" +24920,"Amputation, arm through humerus; open, circular (guillotine)" +24925,"Amputation, arm through humerus; secondary closure or scar revision" +24930,"Amputation, arm through humerus; re-amputation" +24931,"Amputation, arm through humerus; with implant" +24935,"Stump elongation, upper extremity" +24940,"Cineplasty, upper extremity, complete procedure" +24999,"Unlisted procedure, humerus or elbow" +25000,"Incision, Extensor Tendon Sheath, Wrist (eg, deQuervains disease)" +25001,"Incision, Flexor Tendon Sheath, Wrist (eg, flexor carpi radialis)" +25020,"Decompression fasciotomy, forearm and/or wrist, flexor OR extensor compartment; without debridement of nonviable muscle and/or nerve" +25023,"Decompression fasciotomy, forearm and/or wrist, flexor OR extensor compartment; with debridement of nonviable muscle and/or nerve" +25024,"Decompression fasciotomy, forearm and/or wrist, flexor AND extensor compartment; without debridement of nonviable muscle and/or nerve" +25025,"Decompression fasciotomy, forearm and/or wrist, flexor AND extensor compartment; with debridement of nonviable muscle and/or nerve" +25028,"Incision & Drainage, Forearm and/or Wrist; Deep Abscess or Hematoma" +25031,"Incision & Drainage, Forearm and/or Wrist; Bursa" +25035,"Incision, Deep, Bbone Cortex, Forearm and/or Wrist (eg, osteomyelitis or bone abscess)" +25040,"Arthrotomy, Radiocarpal or Midcarpal Joint, w/Exploration, Drainage, or Removal of Foreign Body" +25065,"Biopsy, Soft Tissue of Forearm and/or Wrist; Superficial" +25066,"Biopsy, Soft Tissue of Forearm and/or Wrist; Deep (subfascial or intramuscular)" +25071,"Excision, Tumor, Soft Tissue of Forearm and/or Wrist Area, Subcutaneous; 3 cm or Greater" +25073,"Excision, Tumor, Soft Tissue of Forearm and/or Wrist Area, Subfascial (eg, intramuscular); 3 cm or Greater" +25075,"Excision, Tumor, Soft Tissue of Forearm and/or Wrist Area, Subcutaneous; Less Than 3 cm" +25076,"Excision, Tumor, Soft Ttissue of Forearm and/or Wrist Area, Subfascial (eg, intramuscular); Less Than 3 cm" +25077,"Radical resection of tumor (eg, sarcoma), soft tissue of forearm and/or wrist area; less than 3 cm" +25078,"Radical resection of tumor (eg, sarcoma), soft tissue of forearm and/or wrist area; 3 cm or greater" +25085,"Capsulotomy, Wrist (eg, contracture)" +25100,"Arthrotomy, Wrist Joint; w/Biopsy" +25101,"Arthrotomy, Wrist Joint; w/Joint Exploration, w/ or w/Out Biopsy, w/ or w/Out Removal of Loose or Foreign Body" +25105,"Arthrotomy, Wrist Joint; w/Synovectomy" +25107,"Arthrotomy, distal radioulnar joint including repair of triangular cartilage, complex" +25109,"Excision of Tendon, Forearm and/or Wrist, Flexor or Extensor, Each" +25110,"Excision, Lesion of Tendon Sheath, Forearm and/or Wrist" +25111,"Excision of Ganglion, Wrist (dorsal or volar); Primary" +25112,"Excision of Ganglion, Wrist (dorsal or volar); Recurrent" +25115,"Radical excision of bursa, synovia of wrist, or forearm tendon sheaths (eg, tenosynovitis, fungus, Tbc, or other granulomas, rheumatoid arthritis); flexors" +25116,"Radical excision of bursa, synovia of wrist, or forearm tendon sheaths (eg, tenosynovitis, fungus, Tbc, or other granulomas, rheumatoid arthritis); extensors, with or without transposition of dorsal retinaculum" +25118,"Synovectomy, Extensor Tendon Sheath, Wrist, Single Compartment" +25119,"Synovectomy, Extensor Tendon Sheath, Wrist, Single Compartment; w/Resection of Distal Ulna" +25120,Excision or Curettage of Bone Cyst or Benign Tumor of Radius or Ulna (excluding head or neck of radius and olecranon process) +25125,Excision or Curettage of Bone Cyst or Benign Tumor of Radius or Ulna (excluding head or neck of radius and olecranon process); w/Autograft +25126,Excision or Curettage of Bone Cyst or Benign Tumor of Radius or Ulna (excluding head or neck of radius and olecranon process); w/Allograft +25130,Excision or Curettage of Bone Cyst or Benign Tumor of Carpal Bones +25135,Excision or Curettage of Bone Cyst or Benign Tumor of Carpal Bones; w/Autograft +25136,Excision or Curettage of Bone Cyst or Benign Tumor of Carpal Bones; w/Allograft +25145,"Sequestrectomy (eg, for osteomyelitis or bone abscess), forearm and/or wrist" +25150,"Partial excision (craterization, saucerization, or diaphysectomy) of bone (eg, for osteomyelitis); ulna" +25151,"Partial excision (craterization, saucerization, or diaphysectomy) of bone (eg, for osteomyelitis); radius" +25170,"Radical resection of tumor, radius or ulna" +25210,Carpectomy; 1 Bone +25215,Carpectomy; All Bones of Proximal Row +25230,Radial Styloidectomy (separate procedure) +25240,"Excision distal ulna partial or complete (eg, Darrach type or matched resection)" +25246,Wrist Arthrogram +25248,"Exploration w/Removal of Deep Foreign Body, Forearm or Wrist" +25250,Removal of Wrist Prosthesis +25251,"Removal of wrist prosthesis; complicated, including total wrist" +25259,"Manipulation, Wrist, Under Anesthesia" +25260,"Repair, Tendon or Muscle, Flexor, Forearm and/or Wrist; Primary, Single, Each Tendon or Muscle" +25263,"Repair, Tendon or Muscle, Flexor, Forearm and/or Wrist; Secondary, Single, Each Tendon or Muscle" +25265,"Repair, Tendon or Muscle, Flexor, Forearm and/or Wrist; Secondary, w/Free Graft (includes obtaining graft), Each Tendon or Muscle" +25270,"Repair, Tendon or Muscle, Extensor, Forearm and/or Wrist; Primary, Single, Each Tendon or Muscle" +25272,"Repair, Tendon or Muscle, Extensor, Forearm and/or Wrist; Secondary, Single, Each Tendon or Muscle" +25274,"Repair, Tendon or Muscle, Extensor, Forearm and/or Wrist; Secondary, w/Free Graft (includes obtaining graft), Each Tendon or Muscle" +25275,"Repair, Tendon Sheath, Extensor, Forearm and/or Wrist, w/Free Graft (includes obtaining graft) (eg, for extensor carpi ulnaris subluxation)" +25280,"Lengthening or Shortening of Flexor or Extensor Tendon, Forearm and/or Wrist, Single, Each Tendon" +25290,"Tenotomy, Open, Flexor or Extensor Tendon, Forearm and/or Wrist, Single, Each Tendon" +25295,"Tenolysis, Flexor or Extensor Tendon, Forearm and/or Wrist, Single, Each Tendon" +25300,Tenodesis at Wrist; Flexors of Fingers +25301,Tenodesis at Wrist; Extensors of Fingers +25310,"Tendon Transplantation or Transfer, Flexor or Extensor, Forearm and/or Wrist, Single; Each Tendon" +25312,"Tendon transplantation or transfer, flexor or extensor, forearm and/or wrist, single; with tendon graft(s) (includes obtaining graft), each tendon" +25315,"Flexor origin slide (eg, for cerebral palsy, Volkmann contracture), forearm and/or wrist;" +25316,"Flexor origin slide (eg, for cerebral palsy, Volkmann contracture), forearm and/or wrist; with tendon(s) transfer" +25320,"Capsulorrhaphy or reconstruction, wrist, open (eg, capsulodesis, ligament repair, tendon transfer or graft) (includes synovectomy, capsulotomy and open reduction) for carpal instability" +25332,"Arthroplasty, wrist, with or without interposition, with or without external or internal fixation" +25335,"Centralization of wrist on ulna (eg, radial club hand)" +25337,"Reconstruction for stabilization of unstable distal ulna or distal radioulnar joint, secondary by soft tissue stabilization (eg, tendon transfer, tendon graft or weave, or tenodesis) with or without open reduction of distal radioulnar joint" +25350,"Osteotomy, Radius; Distal Third" +25355,"Osteotomy, Radius; Middle or Proximal Third" +25360,Osteotomy; Ulna +25365,Osteotomy; Radius & ulna +25370,"Multiple Osteotomies, w/Realignment on Intramedullary Rod (Sofield type procedure); Radius or Ulna" +25375,"Multiple Osteotomies, w/Realignment on Intramedullary Rod (Sofield type procedure); Radius & Ulna" +25390,"Osteoplasty, Radius or Uulna; Shortening" +25391,"Osteoplasty, Radius or Ulna; Lengthening w/Autograft" +25392,"Osteoplasty, Radius & Ulna; Shortening (excluding 64876)" +25393,"Osteoplasty, Radius & Ulna; Lengthening w/Autograft" +25394,"Osteoplasty, Carpal Bone, Shortening" +25400,"Repair of Nonunion or Malunion, Radius or Ulna; w/o Graft (eg, compression technique)" +25405,"Repair of Nonunion or Malunion, Radius or Ulna; w/Autograft (includes obtaining graft)" +25415,"Repair of Nonunion or Malunion, Radius & Ulna; w/o Graft (eg, compression technique)" +25420,"Repair of Nonunion or Malunion, Radius & Ulna; w/Autograft (includes obtaining graft)" +25425,Repair of Defect w/Autograft; Radius or Ulna +25426,Repair of Defect w/Autograft; Radius & Ulna +25430,"Insertion of Vascular Pedicle into Carpal Bone (eg, Hori procedure)" +25431,"Repair of Nonunion of Carpal Bone (excluding carpal scaphoid (navicular)) (includes obtaining graft and necessary fixation), Each Bone" +25440,"Repair of Nonunion, Scaphoid Carpal (navicular) Bone, w/ or w/Out Radial Styloidectomy" +25441,Arthroplasty w/Prosthetic Replacement; Distal Radius +25442,Arthroplasty w/Prosthetic Replacement; Distal Ulna +25443,Arthroplasty w/Prosthetic Replacement; Scaphoid Carpal (navicular) +25444,Arthroplasty with prosthetic replacement; lunate +25445,Arthroplasty with prosthetic replacement; trapezium +25446,Arthroplasty with prosthetic replacement; distal radius and partial or entire carpus (total wrist) +25447,"Arthroplasty, interposition, intercarpal or carpometacarpal joints" +25449,"Revision of arthroplasty, including removal of implant, wrist joint" +25450,Epiphyseal arrest by epiphysiodesis or stapling; distal radius OR ulna +25455,Epiphyseal arrest by epiphysiodesis or stapling; distal radius AND ulna +25490,"Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Radius" +25491,"Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Ulna" +25492,"Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Radius & Ulna" +25500,Closed Treatment of Radial Shaft Fracture; w/Out Manipulation +25505,Closed Treatment of Radial Shaft Fracture; w/Manipulation +25515,"Open Treatment of Radial Shaft Fracture, Includes Internal Fixation, when Performed" +25520,Closed Treatment of Radial Shaft Fracture & Closed Treatment of Dislocation of Distal Radioulnar Joint (Galeazzi fracture/dislocation) +25525,"Open treatment of radial shaft fracture, includes internal fixation, when performed, and closed treatment of distal radioulnar joint Dislocation (Galeazzi fracture/ dislocation), includes Percutaneous Skeletal Fixation, when Performed" +25526,"Open treatment of radial shaft fracture, includes internal fixation, when performed, and open treatment of distal radioulnar joint dislocation (Galeazzi fracture/ dislocation), includes internal fixation, when performed, includes repair of triangular fibrocartilage complex" +25530,Closed Treatment of Ulnar Shaft Fracture; w/Out Manipulation +25535,Closed Treatment of Ulnar Shaft Fracture; w/Manipulation +25545,"Open treatment of ulnar shaft fracture, includes Internal Fixation, when Performed" +25560,Closed Treatment of Radial & Ulnar Shaft Fractures; w/Out Manipulation +25565,Closed Treatment of Radial & Ulnar Shaft Fractures; w/Manipulation +25574,"Open treatment of radial AND ulnar shaft fractures, with internal fixation, when performed; of radius OR ulna" +25575,"Open treatment of radial AND ulnar shaft fractures, with internal fixation, when performed; of radius AND ulna" +25600,"Closed Treatment of Distal Radial Fracture (eg, Colles or Smith type) or Epiphyseal Separation, Includes Closed Treatment of Fracture of Ulnar Styloid, when Performed; w/Out Manipulation" +25605,"Closed Treatment of Distal Radial Fracture (eg, Colles or Smith type) or Epiphyseal Separation, Includes Closed Treatment of Fracture of Ulnar Styloid, when Performed; w/Manipulation" +25606,Percutaneous Skeletal Fixation of Distal Radial Fracture or Epiphyseal Separation +25607,"Open treatment of distal radial extra-articular fracture or epiphyseal separation, with internal fixation" +25608,Open treatment of distal radial intra-articular fracture or epiphyseal separation; with internal fixation of 2 fragments +25609,Open treatment of distal radial intra-articular fracture or epiphyseal separation; with internal fixation of 3 or more fragments +25622,Closed Treatment of Carpal Scaphoid (navicular) Fracture; w/Out Manipulation +25624,Closed Treatment of Carpal Scaphoid (navicular) Fracture; w/Manipulation +25628,"Open treatment of carpal scaphoid (navicular) fracture, includes internal fixation, when performed" +25630,"Closed Treatment of Carpal Bone Fracture (Excluding Carpal Scaphoid [navicular]); w/o Manipulation, Each Bone" +25635,"Closed Treatment of Carpal Bone Fracture (excluding carpal scaphoid [navicular]); w/Manipulation, Each Bone" +25645,"Open treatment of carpal bone fracture (other than carpal scaphoid [navicular]), each bone" +25650,Closed Treatment of Ulnar Styloid Fracture +25651,Percutaneous Skeletal Fixation of Ulnar Styloid Fracture +25652,Open Treatment of Ulnar Styloid Fracture +25660,"Closed Treatment of Radiocarpal or Intercarpal Dislocation, 1 or More Bones, w/Manipulation" +25670,"Open Treatment of Radiocarpal or Intercarpal Dislocation, 1 or More Bones" +25671,Percutaneous Skeletal Fixation of Distal Radioulnar Dislocation +25675,Closed Treatment of Distal Radioulnar Dislocation w/Manipulation +25676,"Open treatment of Distal Radioulnar Dislocation, Acute or Chronic" +25680,"Closed Treatment of Trans-Scaphoperilunar Type of Fracture Dislocation, w/Manipulation" +25685,Open Treatment of Trans-Scaphoperilunar Type of Fracture Dislocation +25690,"Closed Treatment of Lunate Dislocation, w/Manipulation" +25695,Open Treatment of Lunate Dislocation +25800,"Arthrodesis, Wrist; Complete, w/Out Bone Graft (includes radiocarpal and/or intercarpal and/or carpometacarpal joints)" +25805,"Arthrodesis, Wrist; w/Sliding Graft" +25810,"Arthrodesis, wrist; with iliac or other autograft (includes obtaining graft)" +25820,"Arthrodesis, Wrist; Limited, w/o Bone Graft (eg, intercarpal or radiocarpal)" +25825,"Arthrodesis, Wrist; w/Autograft (includes obtaining graft)" +25830,"Arthrodesis, distal radioulnar joint with segmental resection of ulna, with or without bone graft (eg, Sauve-Kapandji procedure)" +25900,"Amputation, forearm, through radius and ulna;" +25905,"Amputation, forearm, through radius and ulna; open, circular (guillotine)" +25907,"Amputation, forearm, through radius and ulna; secondary closure or scar revision" +25909,"Amputation, forearm, through radius and ulna; re-amputation" +25915,Krukenberg procedure +25920,Disarticulation Through Wrist +25922,Disarticulation Through Wrist; Secondary Closure or Scar Revision +25924,Disarticulation Through Wrist; Re-Amputation +25927,Transmetacarpal Amputation +25929,Transmetacarpal Amputation; Secondary Closure or Scar Revision +25931,Transmetacarpal Amputation; Re-Amputation +25999,"Unlisted procedure, forearm or wrist" +26010,Drainage of Finger Abscess; Simple +26011,"Drainage of Finger Abscess; Complicated (eg, felon)" +26020,"Drainage of Tendon Sheath, Digit and/or Palm, Each" +26025,"Drainage of Palmar Bursa; Single, Bursa" +26030,Drainage of Palmar Bursa; Multiple Bursa +26034,"Incision, Bone Cortex, Hand or Finger (eg, osteomyelitis or bone abscess)" +26035,"Decompression Fingers and/or Hand, Injection Injury (eg, grease gun)" +26037,"Decompressive Fasciotomy, Hand" +26040,"Fasciotomy, Palmar (eg, Dupuytren's contracture); Percutaneous" +26045,"Fasciotomy, Palmar (eg, Dupuytren's contracture); Open, Partial" +26055,"Tendon Sheath Incision (eg, for trigger finger)" +26060,"Tenotomy, Percutaneous, Single, Each Digit" +26070,"Arthrotomy, w/Exploration, Drainage, or Removal of Loose or Foreign Body; Carpometacarpal Joint" +26075,"Arthrotomy, w/Exploration, Drainage, or Removal of Loose or Foreign Body; Metacarpophalangeal Joint, Each" +26080,"Arthrotomy, w/Exploration, Drainage, or Removal of Loose or Foreign Body; Interphalangeal Joint, Each" +26100,"Arthrotomy w/Biopsy; Carpometacarpal Joint, Each" +26105,"Arthrotomy w/Biopsy; Metacarpophalangeal Joint, Each" +26110,"Arthrotomy w/Biopsy; Interphalangeal Joint, Each" +26111,"Excision, Tumor or Vascular Malformation, Soft Tissue of Hand or Finger, Subcutaneous; 1.5 cm or Greater" +26113,"Excision, Tumor, Soft Tissue, or Vascular Malformation, of Hand or Finger, Subfascial (eg, intramuscular); 1.5 cm or Greater" +26115,"Excision, Tumor or Vascular Malformation, Soft Tissue of Hand or Finger, Subcutaneous; Less Than 1.5 cm" +26116,"Excision, Tumor, Soft Tissue, or Vascular Malformation, of Hand or Finger, Subfascial (eg, intramuscular); Less Than 1.5 cm" +26117,"Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Hand or Finger; Less Than 3 cm" +26118,"Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Hand or Finger; 3 cm or Greater" +26121,"Fasciectomy, palm only, with or without Z-plasty, other local tissue rearrangement, or skin grafting (includes obtaining graft)" +26123,"Fasciectomy, Partial Palmar w/Release of Single Digit Including Proximal Interphalangeal Joint, w/ or w/Out Z-Plasty, Other Local Tissue Rearrangement, or Skin Grafting" +26125,"Fasciectomy, Partial Palmar w/Release of Ssingle Digit Including Proximal Interphalangeal Joint, w/ or w/Out Z-Plasty, Other Local Tissue Rearrangement, or Skin Grafting; Each addtl Digit" +26130,"Synovectomy, Carpometacarpal Joint" +26135,"Synovectomy, Metacarpophalangeal Joint Including Intrinsic Release & Extensor Hood Reconstruction, Each Digit" +26140,"Synovectomy, Proximal Interphalangeal Joint, Including Extensor Reconstruction, Each Interphalangeal Joint" +26145,"Synovectomy, Tendon Sheath, Radical (tenosynovectomy), Flexor Tendon, Palm and/or Finger, Each Tendon" +26160,"Excision of Lesion of Tendon Sheath or Joint Capsule (eg, cyst, mucous cyst, or ganglion), Hand or Finger" +26170,"Excision of Tendon, Palm, Flexor or Extensor, Single, Each Tendon" +26180,"Excision of Tendon, Finger, Flexor or Extensor, Each Tendon" +26185,"Sesamoidectomy, Thumb or Finger" +26200,Excision or Curettage of Bone Cyst or Benign Tumor of Metacarpal +26205,Excision or Curettage of Bone Cyst or Benign Tumor of Metacarpal; w/Autograft +26210,"Excision or Curettage of Bone Cyst or Benign Tumor of Proximal, Middle, or Distal Phalanx of Finger" +26215,"Excision or Curettage of Bone Cyst or Benign Tumor of Proximal, Middle, or Distal Phalanx of Finger; w/Autograft" +26230,"Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis); Metacarpal" +26235,"Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis); Proximal or Middle Phalanx of Finger" +26236,"Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis); Distal Phalanx of Finger" +26250,"Radical Resection of Tumor, Metacarpal" +26260,"Radical Resection of Tumor, Proximal or Middle Phalanx of Finger" +26262,"Radical Resection of Tumor, Distal Phalanx of Finger" +26320,Removal of Implant from Finger or Hand +26340,"Manipulation, Finger Joint, Under Anesthesia, Each Joint" +26341,"Manipulation, Palmar Fascial Cord (ie, Dupuytren's cord), Post Enzyme Injection (eg, collagenase), Single Cord" +26350,"Repair or Advancement, Flexor Tendon, not in Zone 2 Digital Flexor Tendon Sheath (eg, no man's land); Primary or Secondary w/Out Free Graft, Each Tendon" +26352,"Repair or Advancement, Flexor Tendon, not in Zone 2 Digital Flexor Tendon Sheath (eg, no man's land); Secondary w/ Free Graft (includes obtaining graft), Each Tendon" +26356,"Repair or Advancement, Flexor Tendon, in Zone 2 Digital Flexor Tendon Sheath (eg, no man's land); Primary, w/Out Free Graft, Each Tendon" +26357,"Repair or Advancement, Flexor Tendon, in Zone 2 Digital Flexor Tendon Sheath (eg, no man's land); Secondary, w/Out Free Graft, Each Tendon" +26358,"Repair or Advancement, Flexor Tendon, in Zone 2 Digital Flexor Tendon Sheath (eg, no man's land); Secondary, w/Free Graft (includes obtaining graft), Each Tendon" +26370,"Repair or Advancement of Profundus Tendon, w/Intact Superficialis Tendon; Primary, Each Tendon" +26372,"Repair or Advancement of Profundus Tendon, w/Intact Superficialis Tendon; Secondary w/Free Graft, Each Tendon" +26373,"Repair or Advancement of Profundus Tendon, w/Intact Superficialis Tendon; Secondary w/o Free Graft, Each Tendon" +26390,"Excision Flexor Tendon, w/Implantation of Synthetic Rod for Delayed Tendon Graft, Hand or Finger, Each Rod" +26392,"Removal of Synthetic Rod & Insertion of Flexor Tendon Graft, Hand or Finger, Each Rod" +26410,"Repair, Extensor Tendon, Hand, Primary or Secondary; w/Out Free Graft, Each Tendon" +26412,"Repair, Extensor Tendon, Hand, Primary or Secondary; w/Free Graft, Each Tendon" +26415,"Excision of Extensor Tendon, w/Implantation of Synthetic Rod for Delayed Tendon Graft, Hand or Finger, Each Rod" +26416,"Removal of Synthetic Rod & Insertion of Extensor Tendon Graft, Hand or Finger, Each Rod" +26418,"Repair, Extensor Tendon, Finger, Primary or Secondary; w/Out Free Graft, Each Tendon" +26420,"Repair, Extensor Tendon, Finger, Primary or Secondary; w/Free Graft (includes obtaining graft) Each Tendon" +26426,"Repair of Extensor Tendon, Central Slip, Secondary (eg, boutonniere deformity); Using Local Tissue(s), Including Lateral Band(s), Each Finger" +26428,"Repair of Extensor Tendon, Central Slip, Secondary (eg, boutonniere deformity); w/Free Graft (includes obtaining graft), Each Finger" +26432,Cltx Dstl Xtnsr Tdn Insj w/ & w/Out Percutan Pinning +26433,"Repair of Extensor Tendon, Distal Insertion, Primary or Secondary; w/o Graft (eg, mallet finger)" +26434,Repair Extensor Tendon Distal Insertion w/Graft +26437,"Realignment of Extensor Tendon, Hand, Each Tendon" +26440,"Tenolysis, Flexor Tendon; Palm or Finger, Each Tendon" +26442,"Tenolysis, Flexor Tendon; Palm & Finger, Each Tendon" +26445,"Tenolysis, Extensor Tendon, Hand or Finger, Each Tendon" +26449,"Tenolysis, Complex, Extensor Tendon, Finger, Including Forearm, Each Tendon" +26450,"Tenotomy, Flexor, Palm, Open, Each Tendon" +26455,"Tenotomy, Flexor, Finger, Open, Each Tendon" +26460,"Tenotomy, Extensor, Hand or Finger, Open, Each Tendon" +26471,"Tenodesis; of Proximal Interphalangeal Joint, Each Joint" +26474,"Tenodesis; of Distal Joint, Each Joint" +26476,"Lengthening of Tendon, Extensor, Hand or Finger, Each Tendon" +26477,"Shortening of Tendon, Extensor, Hand or Finger, Each Tendon" +26478,"Lengthening of Tendon, Flexor, Hand or Finger, Each Tendon" +26479,"Shortening of Tendon, Flexor, Hand or Finger, Each Tendon" +26480,"Transfer or Transplant of Tendon, Carpometacarpal Area or Dorsum of Hand; w/Out Free Graft, Each Tendon" +26483,"Transfer or Transplant of Tendon, Carpometacarpal Area or Dorsum of Hand; w/Free Tendon Graft, Each Tendon" +26485,"Transfer or Transplant of Tendon, Palmar; w/Out Free Tendon Graft, Each Tendon" +26489,"Transfer or Transplant of Tendon, Palmar; w/Free Tendon Graft, Each Tendon" +26490,"Opponensplasty; Superficialis Tendon Transfer Type, Each Tendon" +26492,"Opponensplasty; Tendon Transfer w/Graft, Each Tendon" +26494,Opponensplasty; Hypothenar Muscle Transfer +26496,Opponensplasty; Other Methods +26497,Transfer of Tendon to Restore Intrinsic Function; Ring & Small Finger +26498,Transfer of Tendon to Restore Intrinsic Function; All 4 Fingers +26499,"Correction Claw Finger, Other Methods" +26500,"Reconstruction of Tendon Pulley, Each Tendon; w/Local Tissues" +26502,"Reconstruction of Tendon Pulley, Each Tendon; w/Tendon or Fascial Graft" +26508,"Release of Thenar Muscle(s) (eg, thumb contracture)" +26510,"Cross Intrinsic Transfer, Each Tendon" +26516,"Capsulodesis, Metacarpophalangeal Joint; Single Digit" +26517,"Capsulodesis, Metacarpophalangeal Joint; 2 Digits" +26518,"Capsulodesis, Metacarpophalangeal Joint; 3 or 4 Digits" +26520,"Capsulectomy or Capsulotomy; Metacarpophalangeal Joint, Each Joint" +26525,"Capsulectomy or Capsulotomy; Interphalangeal Joint, Each Joint" +26530,"Arthroplasty, Metacarpophalangeal Joint; Each Joint" +26531,"Arthroplasty, Metacarpophalangeal Joint; w/Prosthetic Implant, Each Joint" +26535,"Arthroplasty, Interphalangeal Joint; Each Joint" +26536,"Arthroplasty, Interphalangeal Joint; w/Prosthetic Implant, Each Joint" +26540,"Repair of Collateral Ligament, Metacarpophalangeal or Interphalangeal Joint" +26541,"Reconstruction, Collateral Ligament, Metacarpophalangeal Joint, Single; w/Tendon or Fascial Graft" +26542,"Reconstruction, Collateral Ligament, Metacarpophalangeal Joint, Single; w/Local Tissue (eg, adductor advancement)" +26545,"Reconstruction, Collateral Ligament, Interphalangeal Joint, Single, Including Graft, Each Joint" +26546,"Repair Non-Union, Metacarpal or Phalanx" +26548,"Repair & Reconstruction, Finger, Volar Plate, Interphalangeal Joint" +26550,Pollicization of a Digit +26551,"Transfer, Toe-to-Hand w/Microvascular Anastomosis; Great Toe Wrap-Around w/Bone Graft" +26553,"Transfer, Toe-to-Hand w/Microvascular Anastomosis; Other Than Great Toe, Single" +26554,"Transfer, Toe-to-Hand w/Microvascular Anastomosis; Other Than Great Toe, Double" +26555,"Transfer, Finger to Another Position w/o Microvascular Anastomosis" +26556,"Transfer, Free Toe Joint, w/Microvascular Anastomosis" +26560,Repair of Syndactyly (web finger) Each Web Space; w/Skin Flaps +26561,Repair of Syndactyly (web finger) Each Web Space; wSkin Flaps & Grafts +26562,"Repair of Syndactyly (web finger) Each Web Space; Complex (eg, involving bone, nails)" +26565,"Osteotomy; Metacarpal, Each" +26567,"Osteotomy; Phalanx of Finger, Each" +26568,"Osteoplasty, Lengthening, Metacarpal or Phalanx" +26580,Repair Cleft Hand +26587,"Reconstruction of Polydactylous Digit, Soft Tissue & Bone" +26590,"Repair Macrodactylia, Each Digit" +26591,"Repair, Intrinsic Muscles of Hand, Each Muscle" +26593,"Release, Intrinsic Muscles of Hand, Each Muscle" +26596,"Excision of Constricting Ring of Finger, w/Multiple Z-Plasties" +26600,"Closed Treatment of Metacarpal Fracture, Single; w/Out Manipulation, Each Bone" +26605,"Closed Treatment of Metacarpal Fracture, Single; w/Manipulation, Each Bone" +26607,"Closed Treatment of Metacarpal Fracture, w/Manipulation, w/External Fixation, Each Bone" +26608,"Percutaneous Skeletal Fixation of Metacarpal Fracture, Each Bone" +26615,"Open Treatment of Metacarpal Fracture, Single, Includes Internal Fixation, when Performed, Each Bone" +26641,"Closed Treatment of Carpometacarpal Dislocation, Thumb, w/Manipulation" +26645,"Closed Treatment of Carpometacarpal Fracture Dislocation, Thumb (Bennett fracture), w/Manipulation" +26650,"Percutaneous Skeletal Fixation of Carpometacarpal Fracture Dislocation, Thumb (Bennett fracture), w/Manipulation" +26665,"Open Treatment of Carpometacarpal Fracture Dislocation, Thumb (Bennett fracture), Includes Internal Fixation, when Performed" +26670,"Closed Treatment of Carpometacarpal Dislocation, Other than Thumb, w/Manipulation, Each Joint; w/o Anesthesia" +26675,"Closed Treatment of Carpometacarpal Dislocation, Other than Thumb, w/Manipulation, Each Joint; Requiring Anesthesia" +26676,"Percutaneous Skeletal Fixation of Carpometacarpal Dislocation, Other Than Thumb, w/Manipulation, Each Joint" +26685,"Open Treatment of Carpometacarpal Dislocation, Other than Thumb; Includes Internal Fixation, when Performed, Each Joint" +26686,"Open Treatment of Carpometacarpal Dislocation, Other than Thumb; Complex, Multiple, or Delayed Reduction" +26700,"Closed Treatment of Metacarpophalangeal Dislocation, Single, w/Manipulation; w/Out Anesthesia" +26705,Cltx Metacarpophalangeal Dlslc w/Manj w/Anes +26706,"Percutaneous Skeletal Fixation of Metacarpophalangeal Dislocation, Single, w/Manipulation" +26715,"Open Treatment of Metacarpophalangeal Dislocation, Single, Includes Internal Fixation, When Performed" +26720,"Closed Treatment of Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb; w/Out Manipulation, Each" +26725,"Closed Treatment of Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb; w/Manipulation, w/ or w/Out Skin or Skeletal Traction, Each" +26727,"Percutaneous Skeletal Fixation of Unstable Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb, w/Manipulation, Each" +26735,"Open Treatment of Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb, Includes Internal Fixation, when Performed, Each" +26740,"Closed Treatment of Articular Fracture, Involving Metacarpophalangeal or Interphalangeal Joint; w/Out Manipulation, Each" +26742,"Closed Treatment of Articular Fracture, Involving Metacarpophalangeal or Interphalangeal Joint; w/Manipulation, Each" +26746,"Open Treatment of Articular Fracture, Involving Metacarpophalangeal or Interphalangeal Joint, Includes Internal Fixation, when Performed, Each" +26750,"Closed Treatment of Distal Phalangeal Fracture, Finger or Thumb; w/Out Manipulation, Each" +26755,"Closed Treatment of Distal Phalangeal Fracture, Finger or Thumb; w/Manipulation, Each" +26756,"Percutaneous Skeletal Fixation of Distal Phalangeal Fracture, Finger or Thumb, Each" +26765,"Open Treatment of Distal Phalangeal Fracture, Finger or Thumb, Includes Internal Fixation, when Performed, Each" +26770,"Closed Treatment of Interphalangeal Joint Dislocation, Single, w/Manipulation; w/Out Anesthesia" +26775,"Closed Treatment of Interphalangeal Joint Dislocation, Single, w/Manipulation; Requiring Anesthesia" +26776,"Percutaneous Skeletal Fixation of Interphalangeal Joint Dislocation, Single, w/Manipulation" +26785,"Open Treatment of Interphalangeal Joint Dislocation, Includes Internal Fixation, when Performed, Single" +26820,"Fusion in Opposition, Thumb, w/Autogenous Graft" +26841,"Arthrodesis, Carpometacarpal Joint, Thumb, w/ or w/Out Internal Fixation" +26842,"Arthrodesis, Carpometacarpal Joint, Thumb, w/ or w/Out Internal Fixation; w/Autograft" +26843,"Arthrodesis, Carpometacarpal Joint, Digit, Other than Thumb, Each" +26844,"Arthrodesis, Carpometacarpal Joint, Digit, Other than Thumb, Each; w/Autograft" +26850,"Arthrodesis, Metacarpophalangeal Joint, w/ or w/Out Internal Fixation" +26852,"Arthrodesis, Mmetacarpophalangeal Joint, w/ or w/Out Internal Fixation; w/Autograft" +26860,Arthrodesis Interphalangeal jt w/ & w/Out Int Fixj +26861,"Arthrodesis, interphalangeal joint, w/ or w/Out Internal Fixation; Each Addtl Interphalangeal Joint" +26862,"Arthrodesis, Interphalangeal Joint, w/ or w/Out Internal Fixation; w/Autograft" +26863,"Arthrodesis, Interphalangeal Joint, w/ or w/Out Internal Fixation; w/Autograft, Each Addtl Joint" +26910,"Amputation, Metacarpal, w/Finger or Thumb (ray amputation), Single, w/ or w/Out Interosseous Transfer" +26951,"Amputation, Finger or Thumb, Primary or Secondary, Any Joint or Phalanx, Single, Including Neurectomies; w/Direct Closure" +26952,"Amputation, Finger or Thumb, Primary or Secondary, Any Joint or Phalanx, Single, Including Neurectomies; w/Local Advancement Flaps (V-Y, hood)" +26989,"Unlisted Procedure, Hands or Fingers" +26990,"Incision & Drainage, Pelvis or Hip Joint Area; Deep Abscess or Hematoma" +26991,"Incision & Drainage, Pelvis or Hip Joint Area; Infected Bursa" +26992,"Incision, Bone Cortex, Pelvis and/or Hip Joint (eg, osteomyelitis or bone abscess)" +27000,"Tenotomy, Adductor of Hip, Percutaneous" +27001,"Tenotomy, Adductor of Hip, Open" +27003,"Tenotomy, Adductor, Subcutaneous, Open, w/Obturator Neurectomy" +27005,"Tenotomy, Hip Flexor(s), Open" +27006,"Tenotomy, Abductors and/or Extensor(s) of hip, Open" +27025,"Fasciotomy, Hip or Thigh, Any Type" +27027,"Decompression Fasciotomy(ies), Pelvic (buttock) Compartment(s) (eg, gluteus medius-minimus, gluteus maximus, iliopsoas, and/or tensor fascia lata muscle), Unilateral" +27030,"Arthrotomy, Hip, w/Drainage (eg, infection)" +27033,"Arthrotomy, Hip, Including Exploration or Removal of Loose or Foreign Body" +27035,"Denervation, Hip Joint, Intrapelvic or Extrapelvic Intra-Articular Branches of Sciatic, Femoral, or Obturator Nerves" +27036,"Capsulectomy or Capsulotomy, Hip, w/ or w/o Excision of Heterotopic Bone, w/Release of Hip Flexor Muscles (ie, gluteus medius, gluteus minimus, tensor fascia latae, rectus femoris, sartorius, iliopsoas)" +27040,"Biopsy, Soft Tissue of Pelvis & Hip Area; Superficial" +27041,"Biopsy, Soft Tissue of Pelvis & Hip Area; Deep, Subfascial or Intramuscular" +27043,"Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subcutaneous; 3 cm or Greater" +27045,"Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subfascial (eg, intramuscular); 5 cm or Greater" +27047,"Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subcutaneous; Less than 3 cm" +27048,"Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subfascial (eg, intramuscular); Less than 5 cm" +27049,"Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Pelvis & Hip Area; Less than 5 cm" +27050,"Arthrotomy, w/Biopsy; Sacroiliac Joint" +27052,"Arthrotomy, w/Biopsy; Hip Joint" +27054,"Arthrotomy w/Synovectomy, Hip Joint" +27057,"Decompression fasciotomy(ies), pelvic (buttock) compartment(s) (eg, gluteus medius-minimus, gluteus maximus, iliopsoas, and/or tensor fascia lata muscle) with debridement of nonviable muscle, unilateral" +27059,"Radical resection of tumor (eg, sarcoma), soft tissue of pelvis and hip area; 5 cm or greater" +27060,Excision; Ischial Bursa +27062,Excision; Trochanteric Bursa or Calcification +27065,"Excision of Bone Cyst or Benign Tumor, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur; Superficial, Includes Autograft, when Performed" +27066,"Excision of Bone Cyst or Benign Tumor, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur; Deep (subfascial), Includes Autograft, when Performed" +27067,"Excision of Bone Cyst or Benign Tumor, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur; w/Autograft Requiring Separate Incision" +27070,"Partial Excision, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur, (craterization, saucerization) (eg, osteomyelitis or bone abscess); Superficial" +27071,"Partial Excision, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur, (craterization, saucerization) (eg, osteomyelitis or bone abscess); Deep (subfascial or intramuscular)" +27075,"Radical Resection of Tumor; Wing of Ilium, 1 Pubic or Ischial Ramus or Symphysis Pubis" +27076,"Radical Resection of Tumor; Ilium, Including Acetabulum, Both Pubic Rami, or Ischium & Acetabulum" +27077,"Radical Resection of Tumor; Innominate Bone, Total" +27078,Radical Resection of Tumor; Ischial Tuberosity & Greater Trochanter of Femur +27080,"Coccygectomy, Primary" +27086,"Removal of Foreign Body, Pelvis or Hip; Subcutaneous Tissue" +27087,"Removal of Foreign Body, Pelvis or Hip; Deep (subfascial or intramuscular)" +27090,Removal of Hip Prosthesis; (separate procedure) +27091,"Removal of Hip Prosthesis; Complicated, Including Total Hip Prosthesis, Methylmethacrylate w/ or w/Out Insertion of Spacer" +27093,Injection for Hip X-Ray +27095,Injection Procedure for Hip Arthrography; w/Anesthesia +27096,Sacroiliac Joint Injection (SIJ) +27097,"Release or Recession, Hamstring, Proximal" +27098,"Transfer, adductor to ischium" +27100,Transfer external oblique muscle to greater trochanter including fascial or tendon extension (graft) +27105,Transfer paraspinal muscle to hip (includes fascial or tendon extension graft) +27110,Transfer iliopsoas; to greater trochanter of femur +27111,Transfer iliopsoas; to femoral neck +27120,"Acetabuloplasty; (eg, Whitman, Colonna, Haygroves, or cup type)" +27122,"Acetabuloplasty; resection, femoral head (eg, Girdlestone procedure)" +27125,"Hemiarthroplasty, hip, partial (eg, femoral stem prosthesis, bipolar arthroplasty)" +27130,"Arthroplasty, acetabular and proximal femoral prosthetic replacement (total hip arthroplasty), with or without autograft or allograft" +27132,"Conversion of previous hip surgery to total hip arthroplasty, with or without autograft or allograft" +27134,"Revision of total hip arthroplasty; both components, with or without autograft or allograft" +27137,"Revision of total hip arthroplasty; acetabular component only, with or without autograft or allograft" +27138,"Revision of total hip arthroplasty; femoral component only, with or without allograft" +27140,Osteotomy and transfer of greater trochanter of femur (separate procedure) +27146,"Osteotomy, iliac, acetabular or innominate bone;" +27147,"Osteotomy, iliac, acetabular or innominate bone; with open reduction of hip" +27151,"Osteotomy, iliac, acetabular or innominate bone; with femoral osteotomy" +27156,"Osteotomy, iliac, acetabular or innominate bone; with femoral osteotomy and with open reduction of hip" +27158,"Osteotomy, pelvis, bilateral (eg, congenital malformation)" +27161,"Osteotomy, femoral neck (separate procedure)" +27165,"Osteotomy, intertrochanteric or subtrochanteric including internal or external fixation and/or cast" +27170,"Bone graft, femoral head, neck, intertrochanteric or subtrochanteric area (includes obtaining bone graft)" +27175,"Treatment of slipped femoral epiphysis; by traction, without reduction" +27176,"Treatment of slipped femoral epiphysis; by single or multiple pinning, in situ" +27177,Open treatment of slipped femoral epiphysis; single or multiple pinning or bone graft (includes obtaining graft) +27178,Open treatment of slipped femoral epiphysis; closed manipulation with single or multiple pinning +27179,Open treatment of slipped femoral epiphysis; osteoplasty of femoral neck (Heyman type procedure) +27181,Open treatment of slipped femoral epiphysis; osteotomy and internal fixation +27185,"Epiphyseal arrest by epiphysiodesis or stapling, greater trochanter of femur" +27187,"Prophylactic treatment (nailing, pinning, plating or wiring) with or without methylmethacrylate, femoral neck and proximal femur" +27193,"Closed treatment of pelvic ring fracture, dislocation, diastasis or subluxation; without manipulation" +27194,"Closed treatment of pelvic ring fracture, dislocation, diastasis or subluxation; with manipulation, requiring more than local anesthesia" +27200,Closed Treatment of Coccygeal Fracture +27202,Open Treatment of Coccygeal Fracture +27215,"Open treatment of iliac spine(s), tuberosity avulsion, or iliac wing fracture(s), unilateral, for pelvic bone fracture patterns that do not disrupt the pelvic ring, includes internal fixation, when performed" +27216,"Percutaneous skeletal fixation of posterior pelvic bone fracture and/or dislocation, for fracture patterns that disrupt the pelvic ring, unilateral (includes ipsilateral ilium, sacroiliac joint and/or sacrum)" +27217,"Open treatment of anterior pelvic bone fracture and/or dislocation for fracture patterns that disrupt the pelvic ring, unilateral, includes internal fixation, when performed (includes pubic symphysis and/or ipsilateral superior/inferior rami)" +27218,"Open treatment of posterior pelvic bone fracture and/or dislocation, for fracture patterns that disrupt the pelvic ring, unilateral, includes internal fixation, when performed (includes ipsilateral ilium, sacroiliac joint and/or sacrum)" +27220,Closed treatment of acetabulum (hip socket) fracture(s); without manipulation +27222,"Closed treatment of acetabulum (hip socket) fracture(s); with manipulation, with or without skeletal traction" +27226,"Open treatment of posterior or anterior acetabular wall fracture, with internal fixation" +27227,"Open treatment of acetabular fracture(s) involving anterior or posterior (one) column, or a fracture running transversely across the acetabulum, with internal fixation" +27228,"Open treatment of acetabular fracture(s) involving anterior and posterior (two) columns, includes T-fracture and both column fracture with complete articular detachment, or single column or transverse fracture with associated acetabular wall fracture, with internal fixation" +27230,"Closed treatment of femoral fracture, proximal end, neck; without manipulation" +27232,"Closed treatment of femoral fracture, proximal end, neck; with manipulation, with or without skeletal traction" +27235,"Percutaneous skeletal fixation of femoral fracture, proximal end, neck" +27236,"Open treatment of femoral fracture, proximal end, neck, internal fixation or prosthetic replacement" +27238,"Closed treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; without manipulation" +27240,"Closed treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; with manipulation, with or without skin or skeletal traction" +27244,"Treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; with plate/screw type implant, with or without cerclage" +27245,"Treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; with intramedullary implant, with or without interlocking screws and/or cerclage" +27246,"Closed treatment of greater trochanteric fracture, without manipulation" +27248,"Open treatment of greater trochanteric fracture, includes internal fixation, when performed" +27250,"Closed treatment of hip dislocation, traumatic; without anesthesia" +27252,"Closed treatment of hip dislocation, traumatic; requiring anesthesia" +27253,"Open treatment of hip dislocation, traumatic, without internal fixation" +27254,"Open treatment of hip dislocation, traumatic, with acetabular wall and femoral head fracture, with or without internal or external fixation" +27256,"Treatment of spontaneous hip dislocation (developmental, including congenital or pathological), by abduction, splint or traction; without anesthesia, without manipulation" +27257,"Treatment of spontaneous hip dislocation (developmental, including congenital or pathological), by abduction, splint or traction; with manipulation, requiring anesthesia" +27258,"Open treatment of spontaneous hip dislocation (developmental, including congenital or pathological), replacement of femoral head in acetabulum (including tenotomy, etc);" +27259,"Open treatment of spontaneous hip dislocation (developmental, including congenital or pathological), replacement of femoral head in acetabulum (including tenotomy, etc); with femoral shaft shortening" +27265,Closed treatment of post hip arthroplasty dislocation; without anesthesia +27266,Closed treatment of post hip arthroplasty dislocation; requiring regional or general anesthesia +27267,"Closed treatment of femoral fracture, proximal end, head; without manipulation" +27268,"Closed treatment of femoral fracture, proximal end, head; with manipulation" +27269,"Open treatment of femoral fracture, proximal end, head, includes internal fixation, when performed" +27275,"Manipulation, Hip Joint, Requiring General Anesthesia" +27279,"Arthrodesis, Sacroiliac Joint, Percutaneous or Minimally Invasive (indirect visualization), w/Image Guidance, Includes Obtaining Bone Graft when Performed, & Placement of Transfixing Device" +27280,"Arthrodesis, Open, Sacroiliac Joint, Including Obtaining Bone Graft, Including Instrumentation, when Performed" +27282,"Arthrodesis, symphysis pubis (including obtaining graft)" +27284,"Arthrodesis, hip joint (including obtaining graft);" +27286,"Arthrodesis, hip joint (including obtaining graft); with subtrochanteric osteotomy" +27290,Interpelviabdominal amputation (hindquarter amputation) +27295,Disarticulation of hip +27299,"Unlisted procedure, pelvis or hip joint" +27301,"Incision & Drainage, Deep Abscess, Bursa, or Hematoma, Thigh or Knee Region" +27303,"Incision, deep, with opening of Bone Cortex, Femur or Knee (eg, osteomyelitis or bone abscess)" +27305,"Fasciotomy, iliotibial (tenotomy), open" +27306,"Tenotomy, Percutaneous, Adductor or Hamstring; Single Tendon" +27307,"Tenotomy, Percutaneous, Adductor or Hamstring; Multiple Tendons" +27310,"Arthrotomy, Knee, w/Exploration, Drainage, or Removal of Foreign Body (eg, infection)" +27323,"Biopsy, Soft Tissue of Thigh or Knee Area; Superficial" +27324,"Biopsy, Soft Tissue of Thigh or Knee Area; Deep (subfascial or intramuscular)" +27325,"Neurectomy, Hamstring Muscle" +27326,"Neurectomy, Popliteal (gastrocnemius)" +27327,"Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subcutaneous; Less than 3 cm" +27328,"Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subfascial (eg, intramuscular); Less than 5 cm" +27329,"Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Thigh or Knee Area; Less than 5 cm" +27330,"Arthrotomy, Knee; w/Synovial Biopsy Only" +27331,"Arthrotomy, Knee; Including Joint Exploration, Biopsy, or Removal of Loose or Foreign Bodies" +27332,"Arthrotomy, w/Excision of Semilunar Cartilage (meniscectomy) Knee; Medial or Lateral" +27333,"Arthrotomy, w/Excision of Semilunar Cartilage (meniscectomy) Knee; Medial & Lateral" +27334,"Arthrotomy, w/Synovectomy, Knee; Anterior or Posterior" +27335,"Arthrotomy, w/Synovectomy, Knee; Anterior & Posterior Including Popliteal Area" +27337,"Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subcutaneous; 3 cm or Greater" +27339,"Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subfascial (eg, intramuscular); 5 cm or Greater" +27340,"Excision, Prepatellar Bursa" +27345,"Excision of Synovial Cyst of Popliteal Space (eg, Baker's cyst)" +27347,"Excision of Lesion of Meniscus or Capsule (eg, cyst, ganglion), Knee" +27350,Patellectomy or Hemipatellectomy +27355,Excision or Curettage of Bbone Cyst or Benign Tumor of Femur +27356,Excision or Curettage of Bone Cyst or Benign Tumor of Femur; w/Allograft +27357,Excision or Curettage of Bone Cyst or Benign Tumor of Femur; w/Autograft (includes obtaining graft) +27358,Excision or Curettage of Bone Cyst or Benign Tumor of Femur; w/Internal Fixation +27360,"Partial excision (craterization, saucerization, or diaphysectomy) bone, femur, proximal tibia and/or fibula (eg, osteomyelitis or bone abscess)" +27364,"Radical resection of tumor (eg, sarcoma), soft tissue of thigh or knee area; 5 cm or greater" +27365,"Radical resection of tumor, femur or knee" +27370,Injection of Contrast for Knee Arthrogram +27372,"Removal of Foreign Body, Deep, Thigh Region or Knee Area" +27380,Suture of Infrapatellar Tendon; Primary +27381,"Suture of Infrapatellar Tendon; Secondary Reconstruction, Including Fascial or Tendon Graft" +27385,Suture of Quadriceps or Hamstring Muscle Rupture; Primary +27386,"Suture of Quadriceps or Hamstring Muscle Rupture; Secondary Reconstruction, Including Fascial or Tendon Graft" +27390,"Tenotomy, open, hamstring, knee to hip; single tendon" +27391,"Tenotomy, open, hamstring, knee to hip; multiple tendons, 1 leg" +27392,"Tenotomy, open, hamstring, knee to hip; multiple tendons, bilateral" +27393,Lengthening of hamstring tendon; single tendon +27394,"Lengthening of hamstring tendon; multiple tendons, 1 leg" +27395,"Lengthening of hamstring tendon; multiple tendons, bilateral" +27396,"Transplant or transfer (with muscle redirection or rerouting), thigh (eg, extensor to flexor); single tendon" +27397,"Transplant or transfer (with muscle redirection or rerouting), thigh (eg, extensor to flexor); multiple tendons" +27400,"Transfer, tendon or muscle, hamstrings to femur (eg, Egger's type procedure)" +27403,"Arthrotomy w/Meniscus Repair, Knee" +27405,"Repair, primary, Torn Ligament and/or Capsule, Knee; Collateral" +27407,"Repair, Primary, Torn Ligament and/or Capsule, Knee; Cruciate" +27409,"Repair, Primary, Torn Ligament and/or Capsule, Knee; Collateral & Cruciate Ligaments" +27412,"Autologous Chondrocyte Implantation, Knee" +27415,"Osteochondral Allograft, Knee, Open" +27416,"Osteochondral Autograft(s), Knee, Open (eg, mosaicplasty" +27418,"Anterior tibial tubercleplasty (eg, Maquet type procedure)" +27420,"Reconstruction of Dislocating Patella; (eg, Hauser type procedure)" +27422,"Reconstruction of Dislocating Patella; w/Extensor Realignment and/or Muscle Advancement or Release (eg, Campbell, Goldwaite type procedure)" +27424,Reconstruction of Dislocating Patella; w/Patellectomy +27425,"Lateral Retinacular Release, Open" +27427,"Ligamentous Reconstruction (augmentation), Knee; Extra-Articular" +27428,"Ligamentous Reconstruction (augmentation), Knee; Intra-Articular (open)" +27429,"Ligamentous Reconstruction (augmentation), Knee; Intra-Articular (open) & Extra-Articular" +27430,"Quadricepsplasty (eg, Bennett or Thompson type)" +27435,"Capsulotomy, Posterior Capsular Release, Knee" +27437,"Arthroplasty, patella; without prosthesis" +27438,"Arthroplasty, patella; with prosthesis" +27440,"Arthroplasty, knee, tibial plateau;" +27441,"Arthroplasty, knee, tibial plateau; with debridement and partial synovectomy" +27442,"Arthroplasty, femoral condyles or tibial plateau(s), knee;" +27443,"Arthroplasty, femoral condyles or tibial plateau(s), knee; with debridement and partial synovectomy" +27445,"Arthroplasty, knee, hinge prosthesis (eg, Walldius type)" +27446,"Arthroplasty, knee, condyle and plateau; medial OR lateral compartment" +27447,"Arthroplasty, knee, condyle and plateau; medial AND lateral compartments with or without patella resurfacing (total knee arthroplasty)" +27448,"Osteotomy, femur, shaft or supracondylar; without fixation" +27450,"Osteotomy, femur, shaft or supracondylar; with fixation" +27454,"Osteotomy, multiple, with realignment on intramedullary rod, femoral shaft (eg, Sofield type procedure)" +27455,"Osteotomy, proximal tibia, including fibular excision or osteotomy (includes correction of genu varus [bowleg] or genu valgus [knock-knee]); before epiphyseal closure" +27457,"Osteotomy, proximal tibia, including fibular excision or osteotomy (includes correction of genu varus [bowleg] or genu valgus [knock-knee]); after epiphyseal closure" +27465,"Osteoplasty, femur; shortening (excluding 64876)" +27466,"Osteoplasty, femur; lengthening" +27468,"Osteoplasty, femur; combined, lengthening and shortening with femoral segment transfer" +27470,"Repair, nonunion or malunion, femur, distal to head and neck; without graft (eg, compression technique)" +27472,"Repair, nonunion or malunion, femur, distal to head and neck; with iliac or other autogenous bone graft (includes obtaining graft)" +27475,"Arrest, epiphyseal, any method (eg, epiphysiodesis); distal femur" +27477,"Arrest, epiphyseal, any method (eg, epiphysiodesis); tibia and fibula, proximal" +27479,"Arrest, epiphyseal, any method (eg, epiphysiodesis); combined distal femur, proximal tibia and fibula" +27485,"Arrest, hemiepiphyseal, distal femur or proximal tibia or fibula (eg, genu varus or valgus)" +27486,"Revision of total knee arthroplasty, with or without allograft; 1 component" +27487,"Revision of total knee arthroplasty, with or without allograft; femoral and entire tibial component" +27488,"Removal of prosthesis, including total knee prosthesis, methylmethacrylate with or without insertion of spacer, knee" +27495,"Prophylactic Treatment (nailing, pinning, plating, or wiring) w/ or w/o Methylmethacrylate, Femur" +27496,"Decompression fasciotomy, thigh and/or knee, 1 compartment (flexor or extensor or adductor);" +27497,"Decompression fasciotomy, thigh and/or knee, 1 compartment (flexor or extensor or adductor); with debridement of nonviable muscle and/or nerve" +27498,"Decompression fasciotomy, thigh and/or knee, multiple compartments;" +27499,"Decompression fasciotomy, thigh and/or knee, multiple compartments; with debridement of nonviable muscle and/or nerve" +27500,"Closed treatment of femoral shaft fracture, without manipulation" +27501,"Closed treatment of supracondylar or transcondylar femoral fracture with or without intercondylar extension, without manipulation" +27502,"Closed treatment of femoral shaft fracture, with manipulation, with or without skin or skeletal traction" +27503,"Closed treatment of supracondylar or transcondylar femoral fracture with or without intercondylar extension, with manipulation, with or without skin or skeletal traction" +27506,"Open treatment of femoral shaft fracture, with or without external fixation, with insertion of intramedullary implant, with or without cerclage and/or locking screws" +27507,"Open treatment of femoral shaft fracture with plate/screws, with or without cerclage" +27508,"Closed treatment of femoral fracture, distal end, medial or lateral condyle, without manipulation" +27509,"Percutaneous skeletal fixation of femoral fracture, distal end, medial or lateral condyle, or supracondylar or transcondylar, with or without intercondylar extension, or distal femoral epiphyseal separation" +27510,"Closed treatment of femoral fracture, distal end, medial or lateral condyle, with manipulation" +27511,"Open treatment of femoral supracondylar or transcondylar fracture without intercondylar extension, includes internal fixation, when performed" +27513,"Open treatment of femoral supracondylar or transcondylar fracture with intercondylar extension, includes internal fixation, when performed" +27514,"Open treatment of femoral fracture, distal end, medial or lateral condyle, includes internal fixation, when performed" +27516,Closed treatment of distal femoral epiphyseal separation; without manipulation +27517,"Closed treatment of distal femoral epiphyseal separation; with manipulation, with or without skin or skeletal traction" +27519,"Open treatment of distal femoral epiphyseal separation, includes internal fixation, when performed" +27520,"Closed Treatment of Patellar Fracture, w/Out Manipulation" +27524,"Open Treatment of Patellar Fracture, w/Internal Fixation and/or Partial or Complete Patellectomy & Soft Tissue Repair" +27530,"Closed Treatment of Tibial Fracture, Proximal (plateau); w/Out Manipulation" +27532,"Closed Treatment of Tibial Fracture, Proximal (plateau); w/ or w/Out Manipulation, w/Skeletal Traction" +27535,"Open treatment of tibial fracture, proximal (plateau); unicondylar, includes internal fixation, when performed" +27536,"Open treatment of tibial fracture, proximal (plateau); bicondylar, with or without internal fixation" +27538,"Closed Treatment of Intercondylar Spine(s) and/or Tuberosity Fracture(s) of Knee, w/ or w/Out Manipulation" +27540,"Open treatment of intercondylar spine(s) and/or tuberosity fracture(s) of the knee, includes internal fixation, when performed" +27550,Closed Treatment of Knee Dislocation; w/Out Anesthesia +27552,Closed Treatment of Knee Dislocation; Requiring Anesthesia +27556,"Open treatment of knee dislocation, includes internal fixation, when performed; without primary ligamentous repair or augmentation/reconstruction" +27557,"Open treatment of knee dislocation, includes internal fixation, when performed; with primary ligamentous repair" +27558,"Open treatment of knee dislocation, includes internal fixation, when performed; with primary ligamentous repair, with augmentation/reconstruction" +27560,Closed Treatment of Patellar Dislocation; w/Out Anesthesia +27562,Closed Treatment of Patellar Dislocation; Requiring Anesthesia +27566,"Open treatment of patellar dislocation, with or without partial or total patellectomy" +27570,Manipulation of Knee Joint Under General Anesthesia +27580,"Arthrodesis, Knee, Any Technique" +27590,"Amputation, thigh, through femur, any level;" +27591,"Amputation, thigh, through femur, any level; immediate fitting technique including first cast" +27592,"Amputation, thigh, through femur, any level; open, circular (guillotine)" +27594,"Amputation, thigh, through femur, any level; secondary closure or scar revision" +27596,"Amputation, thigh, through femur, any level; re-amputation" +27598,Disarticulation at knee +27599,"Unlisted procedure, femur or knee" +27600,"Decompression fasciotomy, leg; anterior and/or lateral compartments only" +27601,"Decompression fasciotomy, leg; posterior compartment(s) only" +27602,"Decompression fasciotomy, leg; anterior and/or lateral, and posterior compartment(s)" +27603,"Incision & Drainage, Leg or Ankle; Deep Abscess or Hematoma" +27604,Incisions & Drainage Leg/Ankle Infected Bursa +27605,"Tenotomy, Percutaneous, Achilles Tendon; Local Anesthesia" +27606,"Tenotomy, Percutaneous, Achilles Tendon; General Anesthesia" +27607,"Incision (eg, osteomyelitis or bone abscess), Leg or Ankle" +27610,"Arthrotomy, Ankle, Including Exploration, Drainage, or Removal of Foreign Body" +27612,"Arthrotomy, Posterior Capsular Release, Ankle, w/ or w/Out Achilles Tendon Lengthening" +27613,Biopsy Soft Tissue Leg/Ankle Area Superficial +27614,"Biopsy, Soft Tissue of Leg or Ankle Area; Deep (subfascial or intramuscular)" +27615,"Radical resection of tumor (eg, sarcoma), soft tissue of leg or ankle area; less than 5 cm" +27616,"Radical resection of tumor (eg, sarcoma), soft tissue of leg or ankle area; 5 cm or greater" +27618,"Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subcutaneous; Less than 3 cm" +27619,"Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subfascial (eg, intramuscular); Less than 5 cm" +27620,"Arthrotomy, Ankle, w/Joint Exploration, w/ or w/Out Biopsy, w/or w/Out Removal of Loose or Foreign Body" +27625,Arthrotomy Ankle for Synovectomy +27626,"Arthrotomy, w/Synovectomy, Ankle; Including Tenosynovectomy" +27630,"Excision of Lesion of Tendon Sheath or Capsule (eg, cyst or ganglion), Leg and/or Ankle" +27632,"Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subcutaneous; 3 cm or Greater" +27634,"Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subfascial (eg, intramuscular); 5 cm or Greater" +27635,"Excision or Curettage of Bone Cyst or Benign Tumor, Tibia or Fibula" +27637,"Excision or Curettage of Bone Cyst or Benign Tumor, Tibia or Fibula; w/Autograft" +27638,"Excision or Curettage of Bone Cyst or Benign Tumor, Tibia or Fibula; w/Allograft" +27640,"Partial Excision (craterization, saucerization, or diaphysectomy), Bone (eg, osteomyelitis); Tibia" +27641,"Partial Excision (craterization, saucerization, or diaphysectomy), Bone (eg, osteomyelitis); Fibula" +27645,Radical resection of tumor; tibia +27646,Radical resection of tumor; fibula +27647,Radical resection of tumor; talus or calcaneus +27648,Injection Procedure for Ankle Arthrography +27650,Achilles Tendon Primary Repair +27652,Achilles Tendon Primary w/Graft +27654,"Repair, Secondary, Achilles Tendon, w/ or w/Out Graft" +27656,"Repair, Fascial Defect of Leg" +27658,Repair Flexor Tendon Leg Primary w/Out Graft Each +27659,Rpr Flexor Tendon Leg Secondary w/Out Graft +27664,"Repair, Extensor Tendon, Leg; Primary, w/Out Graft, Each Tendon" +27665,"Repair, Extensor Tendon, Leg; Secondary, w/ or w/Out Graft, Each Tendon" +27675,Repair Dislocating Peroneal Tendon +27676,"Repair, Dislocating Peroneal Tendons; w/Fibular Osteotomy" +27680,"Tenolysis, Flexor or Extensor Tendon, Leg and/or Ankle; Single, Each Tendon" +27681,"Tenolysis, Flexor or Extensor Tendon, Leg and/or Ankle; Multiple Tendons" +27685,Achilles Lengthening +27686,"Lengthening or Shortening of Tendon, Leg or Ankle; Multiple Tendons, Each" +27687,Gastrocnemius Recession +27690,"Transfer or Transplant of Single Tendon (with muscle redirection or rerouting); Superficial (eg, anterior tibial extensors into midfoot)" +27691,"Transfer or Transplant of Single Tendon (with muscle redirection or rerouting); Deep (eg, anterior tibial or posterior tibial through interosseous space, flexor digitorum longus, flexor hallucis longus, or peroneal tendon to midfoot or hindfoot)" +27692,Transfer or Transplant of Single Tendon (with muscle redirection or rerouting); Each Addtl Tendon +27695,"Repair, Primary, Disrupted Ligament, Ankle; Collateral" +27696,"Repair, Primary, Disrupted Ligament, Ankle; Both Collateral Ligaments" +27698,Lateral Ankle Stabilization Procedure +27700,"Arthroplasty, ankle;" +27702,"Arthroplasty, ankle; with implant (total ankle)" +27703,"Arthroplasty, ankle; revision, total ankle" +27704,Removal of ankle implant +27705,Osteotomy; Tibia +27707,Osteotomy; Fibula +27709,Osteotomy; Tibia & Fibula +27712,"Osteotomy; Multiple, w/Realignment on Intramedullary Rod (eg, Sofield type procedure)" +27715,"Osteoplasty, tibia and fibula, lengthening or shortening" +27720,"Repair of nonunion or malunion, tibia; without graft, (eg, compression technique)" +27722,"Repair of nonunion or malunion, tibia; with sliding graft" +27724,"Repair of nonunion or malunion, tibia; with iliac or other autograft (includes obtaining graft)" +27725,"Repair of nonunion or malunion, tibia; by synostosis, with fibula, any method" +27726,Repair of fibula nonunion and/or malunion with internal fixation +27727,"Repair of congenital pseudarthrosis, tibia" +27730,"Arrest, epiphyseal (epiphysiodesis), open; distal tibia" +27732,"Arrest, epiphyseal (epiphysiodesis), open; distal fibula" +27734,"Arrest, epiphyseal (epiphysiodesis), open; distal tibia and fibula" +27740,"Arrest, epiphyseal (epiphysiodesis), any method, combined, proximal and distal tibia and fibula;" +27742,"Arrest, epiphyseal (epiphysiodesis), any method, combined, proximal and distal tibia and fibula; and distal femur" +27745,"Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/o Methylmethacrylate, Tibia" +27750,Closed Treatment of Tibial Shaft Fracture (with or without fibular fracture); w/Out Manipulation +27752,"Closed Treatment of Tibial Shaft Fracture (with or without fibular fracture); w/Manipulation, w/ or w/Out Skeletal Traction" +27756,"Percutaneous Skeletal Fixation of Tibial Shaft Fracture (with or without fibular fracture) (eg, pins or screws)" +27758,"Open treatment of tibial shaft fracture (with or without fibular fracture), with plate/screws, with or without cerclage" +27759,"Treatment of tibial shaft fracture (with or without fibular fracture) by intramedullary implant, with or without interlocking screws and/or cerclage" +27760,Closed Treatment of Medial Malleolus Fracture; w/Out Manipulation +27762,"Closed Treatment of Medial Malleolus Fracture; w/Manipulation, w/ or w/Out Skin or Skeletal Traction" +27766,"Open Treatment of Medial Malleolus Fracture, Includes Internal Fixation, when Performed" +27767,Closed Treatment of Posterior Malleolus Fracture; w/Out Manipulation +27768,Closed Treatment of Posterior Malleolus Fracture; w/Manipulation +27769,"Open Treatment of Posterior Malleolus Fracture, Includes Internal Fixation, when Performed" +27780,Closed Treatment of Proximal Fibula or Shaft Fracture; w/Out Manipulation +27781,Closed Treatment of Proximal Fibula or Shaft Fracture; w/Manipulation +27784,"Open Treatment of Proximal Fibula or Shaft Fracture, Includes Internal Fixation, when Performed" +27786,Closed Treatment of Distal Fibular Fracture (lateral malleolus); w/Out Manipulation +27788,Closed Treatment of Distal Fibular Fracture (lateral malleolus); w/Manipulation +27792,Open tx Distal Fib fx (Lat Malleolus) w & w/Out Int Fix +27808,"Closed Treatment of Bimalleolar Ankle Fracture (eg, lateral and medial malleoli, or lateral and posterior malleoli or medial and posterior malleoli); w/Out Manipulation" +27810,"Closed Treatment of Bimalleolar Ankle Fracture (eg, lateral and medial malleoli, or lateral and posterior malleoli or medial and posterior malleoli); w/Manipulation" +27814,"Open treatment of bimalleolar ankle fracture (eg, lateral and medial malleoli, or lateral and posterior malleoli, or medial and posterior malleoli), includes internal fixation, when performed" +27816,Closed Treatment of Trimalleolar Ankle Fracture; w/Out Manipulation +27818,Closed Treatment of Trimalleolar Ankle Fracture; w/Manipulation +27822,"Open treatment of trimalleolar ankle fracture, includes internal fixation, when performed, medial and/or lateral malleolus; without Fixation of Posterior Lip" +27823,"Open treatment of trimalleolar ankle fracture, includes internal fixation, when performed, medial and/or lateral malleolus; with fixation of posterior lip" +27824,"Closed Treatment of Fracture of Weight Bearing Articular Portion of Distal Tibia (eg, pilon or tibial plafond), W/ or w/Out Anesthesia; w/Out Manipulation" +27825,"Closed Treatment of Fracture of Weight Bearing Articular Portion of Distal Tibia (eg, pilon or tibial plafond), w/ or w/Out Anesthesia; w/Skeletal Traction and/or Requiring Manipulation" +27826,"Open treatment of fracture of weight bearing articular Surface/Portion of Distal Tibia (eg, pilon or tibial plafond), w/Internal Fixation, when Performed; of Fibula Only" +27827,"Open treatment of fracture of weight bearing articular surface/portion of distal tibia (eg, pilon or tibial plafond), with internal fixation, when performed; of tibia only" +27828,"Open treatment of fracture of weight bearing articular surface/portion of distal tibia (eg, pilon or tibial plafond), with internal fixation, when performed; of both tibia and fibula" +27829,"Open treatment of distal tibiofibular joint (syndesmosis) disruption, includes internal fixation, when performed" +27830,Closed Treatment of Proximal Tibiofibular Joint Dislocation; w/Out Anesthesia +27831,Closed Treatment of Proximal Tibiofibular Joint Dislocation; Requiring Anesthesia +27832,"Open treatment of proximal tibiofibular joint dislocation, includes internal fixation, when performed, or with excision of proximal fibula" +27840,Closed Treatment of Ankle Dislocation; w/Out Anesthesia +27842,"Closed Treatment of Ankle Dislocation; Requiring Anesthesia, w/ or w/Out Percutaneous Skeletal Fixation" +27846,"Open treatment of ankle dislocation, with or without percutaneous skeletal fixation; without repair or internal fixation" +27848,"Open treatment of ankle dislocation, with or without percutaneous skeletal fixation; with repair or internal or external fixation" +27860,Manipulation of Ankle Under General Anesthesia +27870,"Arthrodesis, Ankle, Open" +27871,"Arthrodesis, Tibiofibular Joint, Proximal or Distal" +27880,"Amputation, leg, through tibia and fibula;" +27881,"Amputation, leg, through tibia and fibula; with immediate fitting technique including application of first cast" +27882,"Amputation, leg, through tibia and fibula; open, circular (guillotine)" +27884,"Amputation, leg, through tibia and fibula; secondary closure or scar revision" +27886,"Amputation, leg, through tibia and fibula; re-amputation" +27888,"Amputation, ankle, through malleoli of tibia and fibula (eg, Syme, Pirogoff type procedures), with plastic closure and resection of nerves" +27889,Ankle disarticulation +27892,"Decompression fasciotomy, leg; anterior and/or lateral compartments only, with debridement of nonviable muscle and/or nerve" +27893,"Decompression fasciotomy, leg; posterior compartment(s) only, with debridement of nonviable muscle and/or nerve" +27894,"Decompression fasciotomy, leg; anterior and/or lateral, and posterior compartment(s), with debridement of nonviable muscle and/or nerve" +27899,"Unlisted procedure, leg or ankle" +28001,Drainage of Bursa Foot +28002,"Incision and drainage below fascia, with or without tendon sheath involvement, foot; single bursal space" +28003,"Incision and drainage below fascia, with or without tendon sheath involvement, foot; multiple areas" +28005,"Incision, bone cortex (eg, osteomyelitis or bone abscess), foot" +28008,"Fasciotomy, foot and/or toe" +28010,"Tenotomy, Percutaneous, Toe; Single Tendon" +28011,"Tenotomy, Percutaneous, Toe; Multiple Tendons" +28020,"Arthrotomy, Including Exploration, Drainage, or Removal of Loose or Foreign Body; Intertarsal or Tarsometatarsal Joint" +28022,"Arthrotomy, Including Exploration, Drainage, or Removal of Loose or Foreign Body; Metatarsophalangeal Joint" +28024,"Arthrotomy, Including Exploration, Drainage, or Removal of Loose or Foreign Body; Interphalangeal Joint" +28035,Decompression of Tibia Nerve +28039,"Excision, Tumor, Soft Tissue of Foot or Toe, Subcutaneous; 1.5 cm or Greater" +28041,"Excision, Tumor, Soft Tissue of Foot or Toe, Subfascial (eg, intramuscular); 1.5 cm or Greater" +28043,Excision Tumor Subcutaneous of the Foot Less than 1.5 cm +28045,"Excision, Tumor, Soft Tissue of Foot or Toe, Subfascial (eg, intramuscular); Less than 1.5 cm" +28046,"Radical resection of tumor (eg, sarcoma), soft tissue of foot or toe; less than 3 cm" +28047,"Radical resection of tumor (eg, sarcoma), soft tissue of foot or toe; 3 cm or greater" +28050,Arthrotomy w/Biopsy; Intertarsal or Tarsometatarsal Joint +28052,Arthrotomy Metatarsophalangeal Joint +28054,Arthrotomy w/Biopsy; interphalangeal Joint +28055,"Neurectomy, Intrinsic Musculature of Foot" +28060,"Fasciectomy, Plantar Fascia; Partial" +28062,"Fasciectomy, Plantar Fascia; Radical" +28070,"Synovectomy; Intertarsal or Tarsometatarsal Joint, Each" +28072,"Synovectomy; Metatarsophalangeal Joint, Each" +28080,Excision of Morton's Neuroma +28086,"Synovectomy, Tendon Sheath, Foot; Flexor" +28088,"Synovectomy, Tendon Sheath, Foot; Extensor" +28090,Exc Lesion Tendon Sheath/Capsule w/Synvct Foot +28092,Excision Synovial/Gangln Cyst Toe +28100,"Excision or Curettage of Bone Cyst or Benign Tumor, Talus or Calcaneus" +28102,"Excision or Curettage of Bone Cyst or Benign Tumor, Talus or Calcaneus; w/Iliac or Other Autograft" +28103,"Excision or Curettage of Bone Cyst or Benign Tumor, Talus or Calcaneus; w/Allograft" +28104,Excision Bone Cyst Metatarsals +28106,"Excision or Curettage of Bone Cyst or Benign Tumor, Tarsal or Metatarsal, Except Talus or Calcaneus; w/Iliac or Other Autograft" +28107,"Excision or Curettage of Bone Cyst or Benign Tumor, Tarsal or Metatarsal, Except Talus or Calcaneus; w/Allograft" +28108,Excision Bone Cyst Phalanges +28110,Bunionette Ostectomy +28111,"Ostectomy, Complete Excision; First Metatarsal Head" +28112,"Ostectomy, Complete Excision; Other Metatarsal Head (second, third or fourth)" +28113,Ostectomy Complete 5th Meta Head +28114,"Ostectomy, Complete Excision; all Metatarsal Heads, w/Partial Proximal Phalangectomy, Excluding First Metatarsal (eg, Clayton type procedure)" +28116,"Ostectomy, Excision of Tarsal Coalition" +28118,"Ostectomy, Calcaneus" +28119,Ostectomy Heel Spur +28120,Partial Excision Bone Talus/Calcaneus +28122,"Partial Excision (craterization, saucerization, sequestrectomy, or diaphysectomy) Bone (eg, osteomyelitis or bossing); Tarsal or Metatarsal Bone, Except Talus or Calcaneus" +28124,Excision Partial Phalanx of Toe +28126,"Resection, Partial or Complete, Phalangeal Base, Each Toe" +28130,Talectomy (astragalectomy) +28140,Metatarsectomy +28150,"Phalangectomy, Toe, Each Toe" +28153,Resection Condyle Distal End Phalanx Each Toe +28160,Hemiphalangectomy/Interphalangeal Joint Exc Toe +28171,Resection of Tumor or Bone Tarsal +28173,Radical Resection of Tumor; Metatarsal +28175,Resecion Bone Phalanx +28190,"Removal, Foreign Body, Foot; Subq" +28192,"Removal of foreign body, foot; deep" +28193,Removal Foreign Body Foot Complicated +28200,Repair of Foot Tendon +28202,"Repair, Tendon, Flexor, Foot; Secondary w/Free Graft, Each Tendon" +28208,"Repair Tendon, Extensor, Foot" +28210,"Repair, Tendon, Extensor, Foot; Secondary w/Free Graft, Each Tendon" +28220,"Tenolysis, Flexor, Foot; Single Tendon" +28222,"Tenolysis, Flexor, Foot; Multiple Tendons" +28225,"Tenolysis, Extensor, Foot; Single Tendon" +28226,"Tenolysis, Extensor, Foot; Multiple Tendons" +28230,"Tenotomy, Open, Tendon Flexor; Foot, Single or mMultiple Tendon(s)" +28232,"Flexor Tenotomy (Open) of Toe, Single Tendon" +28234,Tenotomy Open Extensor Foot/Toe Each Tendon +28238,"Reconstruction (advancement), Posterior Tibial Tendon w/Excision of Accessory Tarsal Navicular Bone (eg, Kidner type procedure)" +28240,"Tenotomy, Lengthening, or Release, Abductor Hallucis Muscle" +28250,"Division of Plantar Fascia and Muscle (eg, Steindler stripping)" +28260,"Capsulotomy, Midfoot; Medial Release Only" +28261,"Capsulotomy, Midfoot; w/Tendon Lengthening" +28262,Capsul Midfoot w/Pst Talotibl Capsul & Tdn Length +28264,"Capsulotomy, Midtarsal (eg, Heyman type procedure)" +28270,"Capsulotomy; Metatarsophalangeal Joint, w/ or w/Out Tenorrhaphy, Each Joint" +28272,"Capsulotomy; Interphalangeal Joint, Each Joint" +28280,Syndactylization Toes +28285,Repair of Hammertoe +28286,"Correction, Cock-Up Fifth Toe, w/Plastic Skin Closure (eg, Ruiz-Mora type procedure)" +28288,Ostc Ortl Exostc/Condylc Metar Head +28289,Hallux Rigidus w/Cheilectomy +28290,Corrj Hallux Valgus w/ & w/Out Sesmdc Smpl Exostectomy +28292,Correction of Bunion +28293,Corrj Hallux Valgus w/ & w/Out Sesmdc Rescj jt w/Implt +28294,"Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; w/Tendon Transplants (eg, Joplin type procedure)" +28296,Austin Bunionectomy- Modified +28297,"Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; Lapidus-Type Procedure" +28298,"Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; by Phalanx Osteotomy" +28299,"Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; by Double Osteotomy" +28300,"Osteotomy; Calcaneus (eg, Dwyer or Chambers type procedure), w/ or w/Out Internal Fixation" +28302,Osteotomy; Talus +28304,"Osteotomy, Tarsal Bones, Other than Calcaneus or Talus" +28305,"Osteotomy, Tarsal Bones, Other than Calcaneus or Talus; w/Autograft" +28306,Metatarsal Osteotomy (1st Only) +28307,"Osteotomy, w/ or w/Out Lengthening, Shortening or Angular Correction, Metatarsal; First Metatarsal w/Autograft" +28308,Metatarsal Osteotomy (Except 1st) +28309,"Osteotomy, w/ or w/Out Lengthening, Shortening or Angular Correction, Metatarsal; Multiple (eg, Swanson type cavus foot procedure)" +28310,"Osteotomy, Shortening, Angular or Rotational Correction; Proximal Phalanx, First Toe" +28312,"Osteotomy, Shortening, Angular or Rotational Correction; Other Phalanges, Any Toe" +28313,"Reconstruction, Angular Deformity of Toe, Soft Tissue Procedures Only (eg, overlapping second toe, fifth toe, curly toes)" +28315,Removal of Sesamoid Bone First Toe +28320,"Repair, Nonunion or Malunion; Tarsal Bones" +28322,"Repair, Nonunion or Malunion; Metatarsal, w/ or w/Out Bone Graft" +28340,"Reconstruction, Toe, Macrodactyly; Soft Tissue Resection" +28341,"Reconstruction, Toe, Macrodactyly; Requiring Bone Resection" +28344,"Reconstruction, Toe(s); Polydactyly" +28345,"Reconstruction, Toe(s); Syndactyly, w/ or w/Out Skin Graft(s), Each Web" +28360,"Reconstruction, Cleft Foot" +28400,Closed Treatment of Calcaneal Fracture; w/Out Manipulation +28405,Closed Treatment of Calcaneal Fracture; w/Manipulation +28406,"Percutaneous Skeletal Fixation of Calcaneal Fracture, w/Manipulation" +28415,"Open Treatment of Calcaneal Fracture, Includes Internal Fixation, when Performed" +28420,"Open Treatment of Calcaneal Fracture, Includes Internal Fixation, when Performed; w/Primary Iliac or Other Autogenous Bone Graft" +28430,Closed Treatment of Talus Fracture; w/Out Manipulation +28435,Closed Treatment of Talus Fracture; w/Manipulation +28436,"Percutaneous Skeletal Fixation of Talus Fracture, w/Manipulation" +28445,"Open Treatment of Talus Fracture, Includes Internal Fixation, when Performed" +28446,"Open Osteochondral Autograft, Talus" +28450,"Treatment of Tarsal bone Fracture (except talus and calcaneus); w/Out Manipulation, Each" +28455,"Treatment of Tarsal bone Fracture (except talus and calcaneus); w/Manipulation, Each" +28456,"Percutaneous Skeletal Fixation of Tarsal Bone Fracture (except talus and calcaneus), w/Manipulation, Each" +28465,"Open Treatment of Tarsal Bone Fracture (except talus and calcaneus), Includes Internal Fixation, when Performed, Each" +28470,"Closed Treatment of Metatarsal Fracture; w/Out Manipulation, Each" +28475,"Closed Treatment of Metatarsal Fracture; w/Manipulation, Each" +28476,"Percutaneous Skeletal Fixation of Metatarsal Fracture, w/Manipulation, Each" +28485,Fracture Metatarsal Open w/Fixation +28490,"Closed Treatment of Fracture Great Toe, Phalanx or Phalanges; w/Out Manipulation" +28495,"Closed Treatment of Fracture Great Toe, Phalanx or Phalanges; w/Manipulation" +28496,"Percutaneous Skeletal Fixation of Fracture Great toe, Phalanx or Phalanges, w/Manipulation" +28505,"Open Treatment of Fracture, Great Toe, Phalanx or Phalanges, Includes Internal Fixation, when Performed" +28510,"Closed Treatment of Fracture, Phalanx or Phalanges, Other than Great Toe; w/Out Manipulation, Each" +28515,"Closed Treatment of Fracture, Phalanx or Phalanges, Other than Great Toe; w/Manipulation, Each" +28525,Open Treatment Fracture Phalanx/Phalanges Not Great Toe +30130,"Excision Inferior Turbinate, pPrtial or Complete, Any Method" +30140,"Submucous Resection Inferior Turbinate, Partial or Complete, Any Method" +30150,Rhinectomy; Partial +30160,Rhinectomy; Total +30200,"Injection Into Turbinate(s), Therapeutic" +30210,Displacement Therapy (Proetz type) +30220,"Insertion, Nasal Septal Prosthesis (button)" +30300,Remove Nasal Foreign Body +30310,"Removal Foreign Body, Intranasal; Requiring General Anesthesia" +30320,"Removal Foreign Body, Intranasal; by Lateral Rhinotomy" +30400,"Rhinoplasty, Primary; Lateral & Alar Cartilages and/or Elevation of Nasal Tip" +30410,"Rhinoplasty, Primary; Complete, External Parts Including Bony Pyramid, Lateral & Alar Aartilages, and/or Elevation of Nasal Tip" +30420,"Rhinoplasty, Primary; Including Major Septal Repair" +30430,"Rhinoplasty, Secondary; Minor Revision (small amount of nasal tip work)" +30435,"Rhinoplasty, Secondary; Intermediate Revision (bony work with osteotomies)" +30450,"Rhinoplasty, Secondary; Major Revision (nasal tip work and osteotomies)" +30460,"Rhinoplasty for Nasal Deformity Secondary to Congenital Cleft Lip and/or Palate, Including Columellar Lengthening; Tip Only" +30462,"Rhinoplasty for Nasal Deformity Secondary to Congenital Cleft Lip and/or Palate, Including Columellar Lengthening; Tip, Septum, Osteotomies" +30465,"Repair of Nasal Vestibular Stenosis (eg, spreader grafting, lateral nasal wall reconstruction)" +30520,"Septoplasty or Submucous Resection, w/ or w/Out Cartilage Scoring, Contouring or Replacement w/Graft" +30540,Repair Choanal Atresia; Intranasal +30545,Repair Choanal Atresia; Transpalatine +30560,Release of Nasal Adhesions +30580,Repair Fistula; Oromaxillary +30600,Repair Fistula; Oronasal +30620,Septal or Other Intranasal Dermatoplasty +30630,Repair Nasal Septal Perforations +30801,"Ablation, Soft Tissue of Inferior Turbinates, Unilateral or Bilateral, Any Method (eg, electrocautery, radiofrequency ablation, or tissue volume reduction); Superficial" +30802,"Ablation, Soft Tissue of iInferior Turbinates, Unilateral or Bilateral, Any Method (eg, electrocautery, radiofrequency ablation, or tissue volume reduction); Intramural (ie, submucosal)" +30901,Nasal Hemor +30903,Nasal Hemor-Complex +31254,"Nasal/Sinus Endoscopy, Surgical; w/Ethmoidectomy, Partial (anterior)" +31255,"Nasal/Sinus Endoscopy, Surgical; w/Ethmoidectomy, Total (anterior and posterior)" +31256,"Nasal/Sinus Endoscopy, Surgical, w/Maxillary Antrostomy" +31267,"Nasal/Sinus Endoscopy, Surgical, w/Maxillary Antrostomy; w/Removal of Tissue From Maxillary Sinus" +31276,"Nasal/Sinus Endoscopy, Surgical w/Frontal Sinus Exploration, w/ or w/o Removal of Tissue From Frontal Sinus" +31287,"Nasal/Sinus Endoscopy, Surgical, w/Sphenoidotomy" +31288,"Nasal/Sinus Endoscopy, Surgical, w/Sphenoidotomy; w/Removal of Tissue From the Sphenoid Sinus" +31290,"Nasal/Sinus Endoscopy, Surgical, w/Repair of Cerebrospinal Fluid Leak; Ethmoid Region" +31291,"Nasal/Sinus Endoscopy, Surgical, w/Repair of Cerebrospinal Fluid Leak; Sphenoid Region" +31292,"Nasal/Sinus Endoscopy, Surgical; w/Medial or Inferior Orbital Wall Decompression" +31293,"Nasal/Sinus Endoscopy, Surgical; w/Medial Orbital Wall & Inferior Orbital Wall Decompression" +31294,"Nasal/Sinus Endoscopy, Surgical; w/Optic Nerve Decompression" +31295,"Nasal/Sinus Endoscopy, Surgical; w/Dilation of Maxillary Sinus Ostium (eg, balloon dilation), Transnasal or via Canine Fossa" +31296,"Nasal/Sinus Endoscopy, Surgical; w/Dilation of Frontal Sinus Ostium (eg, balloon dilation)" +31297,"Nasal/Sinus Endoscopy, Surgical; w/Dilation of Sphenoid Sinus Ostium (eg, balloon dilation)" +31299,"Unlisted Procedure, Accessory Sinuses" +31300,"Laryngotomy (thyrotomy, laryngofissure); w/Removal of Tumor or Laryngocele, Cordectomy" +31320,"Laryngotomy (thyrotomy, laryngofissure); Diagnostic" +31360,"Laryngectomy; Total, w/o Tadical Neck Dissection" +31365,"Laryngectomy; Total, w/Radical Neck Dissection" +31367,"Laryngectomy; Subtotal Supraglottic, w/Out Radical Neck Dissection" +31368,"Laryngectomy; Subtotal Supraglottic, w/Radical Neck Dissection" +31370,Partial Laryngectomy (hemilaryngectomy); Horizontal +31375,Partial Laryngectomy (hemilaryngectomy); Laterovertical +31380,Partial Laryngectomy (hemilaryngectomy); Anterovertical +31382,Partial Laryngectomy (hemilaryngectomy); Antero-Latero-Vertical +31390,"Pharyngolaryngectomy, w/Radical Neck Dissection; w/o Reconstruction" +31395,"Pharyngolaryngectomy, w/Radical Neck Dissection; w/Reconstruction" +31400,"Arytenoidectomy or Arytenoidopexy, External Approach" +31420,Epiglottidectomy +31500,"Intubation, Endotracheal, Emergency Procedure" +31502,Change of Windpipe Airway +31505,"Laryngoscopy, Indirect; Diagnostic" +31510,"Laryngoscopy, Indirect; w/Biopsy" +31511,Remove Foreign Body Larynx +31512,"Laryngoscopy, Indirect; w/Removal of Lesion" +31513,"Laryngoscopy, Indirect; w/Vocal Cord Injection" +31515,"Laryngoscopy Direct, w/ or w/Out Tracheoscopy; for Aspiration" +35905,Excision of infected graft; thorax +35907,Excision of infected graft; abdomen +36000,"Introduction of Needle or Intracatheter, Vein" +36002,"Injection Procedures (eg, thrombin) for Percutaneous Treatment of Extremity Pseudoaneurysm" +36005,Injection Procedure for Extremity Venography +36010,"Introduction of catheter, superior or inferior vena cava" +36011,"Selective catheter placement, venous system; first order branch (eg, renal vein, jugular vein)" +36012,"Selective catheter placement, venous system; second order, or more selective, branch (eg, left adrenal vein, petrosal sinus)" +36013,"Introduction of catheter, right heart or main pulmonary artery" +36014,"Selective catheter placement, left or right pulmonary artery" +36015,"Selective catheter placement, segmental or subsegmental pulmonary artery" +36100,"Introduction of needle or intracatheter, carotid or vertebral artery" +36120,Introduction of needle or intracatheter; retrograde brachial artery +36140,Introduction of needle or intracatheter; extremity artery +36147,"Introduction of needle and/or catheter, arteriovenous shunt created for dialysis (graft/fistula); initial access with complete radiological evaluation of dialysis access, including fluoroscopy, image documentation and report (includes access of shunt, injection[s] of contrast, and all necessary imaging from the arterial anastomosis and adjacent artery through entire venous outflow including the inferior or superior vena cava)" +36148,"Introduction of needle and/or catheter, arteriovenous shunt created for dialysis (graft/fistula); additional access for therapeutic intervention (List separately in addition to code for primary procedure)" +36160,"Introduction of needle or intracatheter, aortic, translumbar" +36200,"Introduction of catheter, aorta" +36215,"Selective catheter placement, arterial system; each first order thoracic or brachiocephalic branch, within a vascular family" +36216,"Selective catheter placement, arterial system; initial second order thoracic or brachiocephalic branch, within a vascular family" +36217,"Selective catheter placement, arterial system; initial third order or more selective thoracic or brachiocephalic branch, within a vascular family" +36218,"Selective catheter placement, arterial system; additional second order, third order, and beyond, thoracic or brachiocephalic branch, within a vascular family (List in addition to code for initial second or third order vessel as appropriate)" +36221,"Non-selective catheter placement, thoracic aorta, with angiography of the extracranial carotid, vertebral, and/or intracranial vessels, unilateral or bilateral, and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed" +36222,"Selective catheter placement, common carotid or innominate artery, unilateral, any approach, with angiography of the ipsilateral extracranial carotid circulation and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed" +36223,"Selective catheter placement, common carotid or innominate artery, unilateral, any approach, with angiography of the ipsilateral intracranial carotid circulation and all associated radiological supervision and interpretation, includes angiography of the extracranial carotid and cervicocerebral arch, when performed" +36224,"Selective catheter placement, internal carotid artery, unilateral, with angiography of the ipsilateral intracranial carotid circulation and all associated radiological supervision and interpretation, includes angiography of the extracranial carotid and cervicocerebral arch, when performed" +36225,"Selective catheter placement, subclavian or innominate artery, unilateral, with angiography of the ipsilateral vertebral circulation and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed" +36226,"Selective catheter placement, vertebral artery, unilateral, with angiography of the ipsilateral vertebral circulation and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed" +36227,"Selective catheter placement, external carotid artery, unilateral, with angiography of the ipsilateral external carotid circulation and all associated radiological supervision and interpretation (List separately in addition to code for primary procedure)" +36228,"Selective catheter placement, each intracranial branch of the internal carotid or vertebral arteries, unilateral, with angiography of the selected vessel circulation and all associated radiological supervision and interpretation (eg, middle cerebral artery, posterior inferior cerebellar artery) (List separately in addition to code for primary procedure)" +36245,"Selective catheter placement, arterial system; each first order abdominal, pelvic, or lower extremity artery branch, within a vascular family" +36246,"Selective catheter placement, arterial system; initial second order abdominal, pelvic, or lower extremity artery branch, within a vascular family" +36247,"Selective catheter placement, arterial system; initial third order or more selective abdominal, pelvic, or lower extremity artery branch, within a vascular family" +36248,"Selective catheter placement, arterial system; additional second order, third order, and beyond, abdominal, pelvic, or lower extremity artery branch, within a vascular family (List in addition to code for initial second or third order vessel as appropriate)" +36251,"Selective catheter placement (first-order), main renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture and catheter placement(s), fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; unilateral" +36252,"Selective catheter placement (first-order), main renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture and catheter placement(s), fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; bilateral" +36253,"Superselective catheter placement (one or more second order or higher renal artery branches) renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture, catheterization, fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; unilateral" +36254,"Superselective catheter placement (one or more second order or higher renal artery branches) renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture, catheterization, fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; bilateral" +36260,"Insertion of implantable intra-arterial infusion pump (eg, for chemotherapy of liver)" +37181,"Venous anastomosis, open; splenorenal, distal (selective decompression of esophagogastric varices, any technique)" +37182,"Insertion of transvenous intrahepatic portosystemic shunt(s) (TIPS) (includes venous access, hepatic and portal vein catheterization, portography with hemodynamic evaluation, intrahepatic tract formation/dilatation, stent placement and all associated imaging guidance and documentation)" +37183,"Revision of transvenous intrahepatic portosystemic shunt(s) (TIPS) (includes venous access, hepatic and portal vein catheterization, portography with hemodynamic evaluation, intrahepatic tract recanulization/dilatation, stent placement and all associated imaging guidance and documentation)" +37184,"Primary percutaneous transluminal mechanical thrombectomy, noncoronary, arterial or arterial bypass graft, including fluoroscopic guidance and intraprocedural pharmacological thrombolytic injection(s); initial vessel" +37185,"Primary percutaneous transluminal mechanical thrombectomy, noncoronary, arterial or arterial bypass graft, including fluoroscopic guidance and intraprocedural pharmacological thrombolytic injection(s); second and all subsequent vessel(s) within the same vascular family (List separately in addition to code for primary mechanical thrombectomy procedure)" +37186,"Secondary percutaneous transluminal thrombectomy (eg, nonprimary mechanical, snare basket, suction technique), noncoronary, arterial or arterial bypass graft, including fluoroscopic guidance and intraprocedural pharmacological thrombolytic injections, provided in conjunction with another percutaneous intervention other than primary mechanical thrombectomy (List separately in addition to code for primary procedure)" +37187,"Percutaneous transluminal mechanical thrombectomy, vein(s), including intraprocedural pharmacological thrombolytic injections and fluoroscopic guidance" +37188,"Percutaneous transluminal mechanical thrombectomy, vein(s), including intraprocedural pharmacological thrombolytic injections and fluoroscopic guidance, repeat treatment on subsequent day during course of thrombolytic therapy" +37191,"Insertion of intravascular vena cava filter, endovascular approach including vascular access, vessel selection, and radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance (ultrasound and fluoroscopy), when performed" +37192,"Repositioning of intravascular vena cava filter, endovascular approach including vascular access, vessel selection, and radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance (ultrasound and fluoroscopy), when performed" +37193,"Retrieval (removal) of intravascular vena cava filter, endovascular approach including vascular access, vessel selection, and radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance (ultrasound and fluoroscopy), when performed" +37195,"Thrombolysis, cerebral, by intravenous infusion" +37197,"Transcatheter retrieval, percutaneous, of intravascular foreign body (eg, fractured venous or arterial catheter), includes radiological supervision and interpretation, and imaging guidance (ultrasound or fluoroscopy), when performed" +37200,Transcatheter biopsy +37202,"Transcatheter therapy, infusion other than for thrombolysis, any type (eg, spasmolytic, vasoconstrictive)" +37211,"Transcatheter therapy, arterial infusion for thrombolysis other than coronary, any method, including radiological supervision and interpretation, initial treatment day" +37212,"Transcatheter therapy, venous infusion for thrombolysis, any method, including radiological supervision and interpretation, initial treatment day" +37213,"Transcatheter therapy, arterial or venous infusion for thrombolysis other than coronary, any method, including radiological supervision and interpretation, continued treatment on subsequent day during course of thrombolytic therapy, including follow-up catheter contrast injection, position change, or exchange, when performed;" +37214,"Transcatheter therapy, arterial or venous infusion for thrombolysis other than coronary, any method, including radiological supervision and interpretation, continued treatment on subsequent day during course of thrombolytic therapy, including follow-up catheter contrast injection, position change, or exchange, when performed; cessation of thrombolysis including removal of catheter and vessel closure by any method" +37215,"Transcatheter placement of intravascular stent(s), cervical carotid artery, open or percutaneous, including angioplasty, when performed, and radiological supervision and interpretation; with distal embolic protection" +37216,"Transcatheter placement of intravascular stent(s), cervical carotid artery, open or percutaneous, including angioplasty, when performed, and radiological supervision and interpretation; without distal embolic protection" +37217,"Transcatheter placement of intravascular stent(s), intrathoracic common carotid artery or innominate artery by retrograde treatment, open ipsilateral cervical carotid artery exposure, including angioplasty, when performed, and radiological supervision and interpretation" +37218,"Transcatheter placement of intravascular stent(s), intrathoracic common carotid artery or innominate artery, open or percutaneous antegrade approach, including angioplasty, when performed, and radiological supervision and interpretation" +37220,"Revascularization, endovascular, open or percutaneous, iliac artery, unilateral, initial vessel; with transluminal angioplasty" +37221,"Revascularization, endovascular, open or percutaneous, iliac artery, unilateral, initial vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed" +37222,"Revascularization, endovascular, open or percutaneous, iliac artery, each additional ipsilateral iliac vessel; with transluminal angioplasty (List separately in addition to code for primary procedure)" +37223,"Revascularization, endovascular, open or percutaneous, iliac artery, each additional ipsilateral iliac vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)" +37224,"Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with transluminal angioplasty" +37225,"Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with atherectomy, includes angioplasty within the same vessel, when performed" +37226,"Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed" +37227,"Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with transluminal stent placement(s) and atherectomy, includes angioplasty within the same vessel, when performed" +37228,"Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with transluminal angioplasty" +37229,"Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with atherectomy, includes angioplasty within the same vessel, when performed" +37230,"Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed" +37231,"Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with transluminal stent placement(s) and atherectomy, includes angioplasty within the same vessel, when performed" +37232,"Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with transluminal angioplasty (List separately in addition to code for primary procedure)" +37233,"Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with atherectomy, includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)" +37234,"Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)" +37235,"Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with transluminal stent placement(s) and atherectomy, includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)" +37236,"Transcatheter placement of an intravascular stent(s) (except lower extremity artery(s) for occlusive disease, cervical carotid, extracranial vertebral or intrathoracic carotid, intracranial, or coronary), open or percutaneous, including radiological supervision and interpretation and including all angioplasty within the same vessel, when performed; initial artery" +37237,"Transcatheter placement of an intravascular stent(s) (except lower extremity artery(s) for occlusive disease, cervical carotid, extracranial vertebral or intrathoracic carotid, intracranial, or coronary), open or percutaneous, including radiological supervision and interpretation and including all angioplasty within the same vessel, when performed; each additional artery (List separately in addition to code for primary procedure)" +37238,"Transcatheter placement of an intravascular stent(s), open or percutaneous, including radiological supervision and interpretation and including angioplasty within the same vessel, when performed; initial vein" +37239,"Transcatheter placement of an intravascular stent(s), open or percutaneous, including radiological supervision and interpretation and including angioplasty within the same vessel, when performed; each additional vein (List separately in addition to code for primary procedure)" +37241,"Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; venous, other than hemorrhage (eg, congenital or acquired venous malformations, venous and capillary hemangiomas, varices, varicoceles)" +37242,"Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; arterial, other than hemorrhage or tumor (eg, congenital or acquired arterial malformations, arteriovenous malformations, arteriovenous fistulas, aneurysms, pseudoaneurysms)" +37243,"Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; for tumors, organ ischemia, or infarction" +37244,"Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; for arterial or venous hemorrhage or lymphatic extravasation" +37250,Intravascular ultrasound (non-coronary vessel) during diagnostic evaluation and/or therapeutic intervention; initial vessel (List separately in addition to code for primary procedure) +37251,Intravascular ultrasound (non-coronary vessel) during diagnostic evaluation and/or therapeutic intervention; each additional vessel (List separately in addition to code for primary procedure) +37500,"Vascular endoscopy, surgical, with ligation of perforator veins, subfascial (SEPS)" +37501,Unlisted vascular endoscopy procedure +37565,"Ligation, internal jugular vein" +37600,Ligation; external carotid artery +37605,Ligation; internal or common carotid artery +37606,"Ligation; internal or common carotid artery, with gradual occlusion, as with Selverstone or Crutchfield clamp" +37607,Ligation or banding of angioaccess arteriovenous fistula +39400,"Mediastinoscopy, includes biopsy(ies), when performed" +39499,"Unlisted procedure, mediastinum" +39501,"Repair, laceration of diaphragm, any approach" +39503,"Repair, neonatal diaphragmatic hernia, with or without chest tube insertion and with or without creation of ventral hernia" +39540,"Repair, diaphragmatic hernia (other than neonatal), traumatic; acute" +39541,"Repair, diaphragmatic hernia (other than neonatal), traumatic; chronic" +39545,"Imbrication of diaphragm for eventration, transthoracic or transabdominal, paralytic or nonparalytic" +39560,"Resection, diaphragm; with simple repair (eg, primary suture)" +39561,"Resection, diaphragm; with complex repair (eg, prosthetic material, local muscle flap)" +39599,"Unlisted procedure, diaphragm" +40490,Biopsy of Lip +40500,"Vermilionectomy (lip shave), w/Mucosal Advancement" +40510,Excision of Lip; Transverse Wedge Excision w/Primary Closure +40520,Excision of Lip; V-Excision w/Primary Direct Linear Closure +40525,"Excision of Lip; Full Thickness, Reconstruction w/Local Flap (eg, Estlander or fan)" +40527,"Excision of Lip; Full Thickness, Reconstruction w/Cross Lip Flap (Abbe-Estlander)" +40530,"Resection of Lip, More Than One-Fourth, w/Out Reconstruction" +40650,"Repair Lip, Full Thickness; Vermilion Only" +40652,"Repair Lip, Full Thickness; Up to Half Vertical Height" +40654,"Repair Lip, Full Thickness; Over One-Half Vertical Height, or Complex" +40700,"Plastic Repair of Cleft Lip/Nasal Deformity; Primary, Partial or Complete, Unilateral" +40701,"Plastic Repair of Cleft Lip/Nasal Deformity; Primary Bilateral, 1-Stage Procedure" +40702,"Plastic Repair of Cleft Lip/Nasal Deformity; Primary Bilateral, 1 of 2 Stages" +40720,"Plastic Repair of Cleft Lip/Nasal Deformity; Secondary, by Recreation of Defect & Reclosure" +40761,"Plastic Repair of Cleft Lip/Nasal Deformity; w/Cross Lip Pedicle Flap (Abbe-Estlander type), Including Sectioning & Inserting of Pedicle" +40799,"Unlisted Procedure, Lips" +40800,"Drainage of Abscess, Cyst, Hematoma, Vestibule of Mouth; Simple" +40801,"Drainage of Abscess, Cyst, Hematoma, Vestibule of Mouth; Complicated" +40804,"Removal of Embedded Foreign Body, Vestibule of Mouth; Simple" +40805,"Removal of Embedded Foreign Body, Vestibule of Mouth; Complicated" +40806,Incision of Labial Frenum (frenotomy) +40808,"Biopsy, Vestibule of Mouth" +40810,"Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; w/Out Repair" +40812,"Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; w/Simple Repair" +40814,"Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; w/Complex Repair" +40816,"Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; Complex, w/Excision of Underlying Muscle" +40818,Excision of Mucosa of Vestibule of Mouth as Donor Graft +40819,"Excision of Frenum, Labial or Buccal (frenumectomy, frenulectomy, frenectomy)" +40820,"Destruction of Lesion or Scar of Vestibule of Mouth by Physical Methods (eg, laser, thermal, cryo, chemical)" +40830,"Closure of Laceration, Vestibule of Mouth; 2.5 cm or Less" +40831,"Closure of Laceration, Vestibule of Mouth; Over 2.5 cm or Complex" +40840,Vestibuloplasty; Anterior +40842,"Vestibuloplasty; Posterior, Unilateral" +40843,"Vestibuloplasty; Posterior, Bilateral" +40844,Vestibuloplasty; Entire Arch +40845,"Vestibuloplasty; Complex (including ridge extension, muscle repositioning)" +40899,"Unlisted Procedure, Vestibule of Mouth" +41000,"Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Lingual" +41005,"Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Sublingual, Superficial" +41006,"Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Sublingual, Deep, Supramylohyoid" +41007,"Intraoral Incision & Rrainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Submental Space" +41008,"Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Submandibular Space" +41009,"Intraoral Incision and Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Masticator Space" +41010,Incision of Lingual Frenum (frenotomy) +41015,"Extraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Sublingual" +41016,"Extraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Submental" +41017,"Extraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Submandibular" +41018,"Extraoral Incision and Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Masticator Space" +41019,"Placement of Needles, Catheters, or Other Device(s) Into the Head and/or Neck Region (percutaneous, transoral, or transnasal) for Subsequent Interstitial Radioelement Application" +41100,Biopsy of Tongue; Anterior Two-Thirds +43229,"Esophagoscopy, Flexible, Transoral; w/Ablation of Tumor(s), Polyp(s), or Other Lesion(s) (includes pre- and post-dilation and guide wire passage, when performed)" +43231,"Esophagoscopy, Flexible, Transoral; w/Endoscopic Ultrasound Examination" +43232,"Esophagoscopy, Flexible, Transoral; w/Transendoscopic Ultrasound-Guided Intramural or Transmural Fine Needle Aspiration/Biopsy(s)" +43233,"Esophagogastroduodenoscopy, Flexible, Transoral; w/Dilation of Esophagus w/Balloon (30 mm diameter or larger) (includes fluoroscopic guidance, when performed)" +43235,"Esophagogastroduodenoscopy, Flexible, Transoral; Diagnostic, Including Collection of Specimen(s) by Brushing or Washing, When Performed" +43236,"Esophagogastroduodenoscopy, Flexible, Transoral; w/Directed Submucosal Injection(s), Any Substance" +43237,"Esophagogastroduodenoscopy, flexible, transoral; with endoscopic ultrasound examination limited to the esophagus, stomach or duodenum, and adjacent structures" +43238,"Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic ultrasound-guided intramural or transmural fine needle aspiration/biopsy(s), (includes endoscopic ultrasound examination limited to the esophagus, stomach or duodenum, and adjacent structures)" +43239,"Esophagogastroduodenoscopy, flexible, transoral; with biopsy, single or multiple" +43240,"Esophagogastroduodenoscopy, flexible, transoral; with transmural drainage of pseudocyst (includes placement of transmural drainage catheter[s]/stent[s], when performed, and endoscopic ultrasound, when performed)" +43241,"Esophagogastroduodenoscopy, flexible, transoral; with insertion of intraluminal tube or catheter" +43242,"Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic ultrasound-guided intramural or transmural fine needle aspiration/biopsy(s) (includes endoscopic ultrasound examination of the esophagus, stomach, and either the duodenum or a surgically altered stomach where the jejunum is examined distal to the anastomosis)" +43243,"Esophagogastroduodenoscopy, flexible, transoral; with injection sclerosis of esophageal/gastric varices" +43244,"Esophagogastroduodenoscopy, flexible, transoral; with band ligation of esophageal/gastric varices" +43245,"Esophagogastroduodenoscopy, flexible, transoral; with dilation of gastric/duodenal stricture(s) (eg, balloon, bougie)" +43246,"Esophagogastroduodenoscopy, flexible, transoral; with directed placement of percutaneous gastrostomy tube" +43247,"Esophagogastroduodenoscopy, flexible, transoral; with removal of foreign body(s)" +43248,"Esophagogastroduodenoscopy, flexible, transoral; with insertion of guide wire followed by passage of dilator(s) through esophagus over guide wire" +43249,"Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic balloon dilation of esophagus (less than 30 mm diameter)" +43250,"Esophagogastroduodenoscopy, flexible, transoral; with removal of tumor(s), polyp(s), or other lesion(s) by hot biopsy forceps" +43251,"Esophagogastroduodenoscopy, flexible, transoral; with removal of tumor(s), polyp(s), or other lesion(s) by snare technique" +43252,"Esophagogastroduodenoscopy, flexible, transoral; with optical endomicroscopy" +43253,"Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic ultrasound-guided transmural injection of diagnostic or therapeutic substance(s) (eg, anesthetic, neurolytic agent) or fiducial marker(s) (includes endoscopic ultrasound examination of the esophagus, stomach, and either the duodenum or a surgically altered stomach where the jejunum is examined distal to the anastomosis)" +43254,"Esophagogastroduodenoscopy, flexible, transoral; with endoscopic mucosal resection" +43255,"Esophagogastroduodenoscopy, flexible, transoral; with control of bleeding, any method" +43257,"Esophagogastroduodenoscopy, flexible, transoral; with delivery of thermal energy to the muscle of lower esophageal sphincter and/or gastric cardia, for treatment of gastroesophageal reflux disease" +43259,"Esophagogastroduodenoscopy, flexible, transoral; with endoscopic ultrasound examination, including the esophagus, stomach, and either the duodenum or a surgically altered stomach where the jejunum is examined distal to the anastomosis" +43260,"Endoscopic retrograde cholangiopancreatography (ERCP); diagnostic, including collection of specimen(s) by brushing or washing, when performed (separate procedure)" +43261,"Endoscopic retrograde cholangiopancreatography (ERCP); with biopsy, single or multiple" +43262,Endoscopic retrograde cholangiopancreatography (ERCP); with sphincterotomy/papillotomy +43263,Endoscopic retrograde cholangiopancreatography (ERCP); with pressure measurement of sphincter of Oddi +43264,Endoscopic retrograde cholangiopancreatography (ERCP); with removal of calculi/debris from biliary/pancreatic duct(s) +43265,"Endoscopic retrograde cholangiopancreatography (ERCP); with destruction of calculi, any method (eg, mechanical, electrohydraulic, lithotripsy)" +43266,"Esophagogastroduodenoscopy, flexible, transoral; with placement of endoscopic stent (includes pre- and post-dilation and guide wire passage, when performed)" +43270,"Esophagogastroduodenoscopy, flexible, transoral; with ablation of tumor(s), polyp(s), or other lesion(s) (includes pre- and post-dilation and guide wire passage, when performed)" +43273,Endoscopic cannulation of papilla with direct visualization of pancreatic/common bile duct(s) (List separately in addition to code(s) for primary procedure) +43274,"Endoscopic retrograde cholangiopancreatography (ERCP); with placement of endoscopic stent into biliary or pancreatic duct, including pre- and post-dilation and guide wire passage, when performed, including sphincterotomy, when performed, each stent" +43275,Endoscopic retrograde cholangiopancreatography (ERCP); with removal of foreign body(s) or stent(s) from biliary/pancreatic duct(s) +43276,"Endoscopic retrograde cholangiopancreatography (ERCP); with removal and exchange of stent(s), biliary or pancreatic duct, including pre- and post-dilation and guide wire passage, when performed, including sphincterotomy, when performed, each stent exchanged" +43277,"Endoscopic retrograde cholangiopancreatography (ERCP); with trans-endoscopic balloon dilation of biliary/pancreatic duct(s) or of ampulla (sphincteroplasty), including sphincterotomy, when performed, each duct" +43278,"Endoscopic retrograde cholangiopancreatography (ERCP); with ablation of tumor(s), polyp(s), or other lesion(s), including pre- and post-dilation and guide wire passage, when performed" +43279,"Laparoscopy, surgical, esophagomyotomy (Heller type), with fundoplasty, when performed" +43280,"Laparoscopy, surgical, esophagogastric fundoplasty (eg, Nissen, Toupet procedures)" +43281,"Laparoscopy, surgical, repair of paraesophageal hernia, includes fundoplasty, when performed; without implantation of mesh" +43282,"Laparoscopy, surgical, repair of paraesophageal hernia, includes fundoplasty, when performed; with implantation of mesh" +43283,"Laparoscopy, surgical, esophageal lengthening procedure (eg, Collis gastroplasty or wedge gastroplasty) (List separately in addition to code for primary procedure)" +43289,"Unlisted laparoscopy procedure, esophagus" +43300,"Esophagoplasty (plastic repair or reconstruction), cervical approach; without repair of tracheoesophageal fistula" +43305,"Esophagoplasty (plastic repair or reconstruction), cervical approach; with repair of tracheoesophageal fistula" +43310,"Esophagoplasty (plastic repair or reconstruction), thoracic approach; without repair of tracheoesophageal fistula" +43312,"Esophagoplasty (plastic repair or reconstruction), thoracic approach; with repair of tracheoesophageal fistula" +43313,"Esophagoplasty for congenital defect (plastic repair or reconstruction), thoracic approach; without repair of congenital tracheoesophageal fistula" +43314,"Esophagoplasty for congenital defect (plastic repair or reconstruction), thoracic approach; with repair of congenital tracheoesophageal fistula" +43320,"Esophagogastrostomy (cardioplasty), with or without vagotomy and pyloroplasty, transabdominal or transthoracic approach" +43325,Esophagogastric fundoplasty; with fundic patch (Thal-Nissen procedure) +43327,Esophagogastric fundoplasty partial or complete; laparotomy +43328,Esophagogastric fundoplasty partial or complete; thoracotomy +43330,Esophagomyotomy (Heller type); abdominal approach +43331,Esophagomyotomy (Heller type); thoracic approach +43332,"Repair, paraesophageal hiatal hernia (including fundoplication), via laparotomy, except neonatal; without implantation of mesh or other prosthesis" +43333,"Repair, paraesophageal hiatal hernia (including fundoplication), via laparotomy, except neonatal; with implantation of mesh or other prosthesis" +43334,"Repair, paraesophageal hiatal hernia (including fundoplication), via thoracotomy, except neonatal; without implantation of mesh or other prosthesis" +43335,"Repair, paraesophageal hiatal hernia (including fundoplication), via thoracotomy, except neonatal; with implantation of mesh or other prosthesis" +43336,"Repair, paraesophageal hiatal hernia, (including fundoplication), via thoracoabdominal incision, except neonatal; without implantation of mesh or other prosthesis" +43337,"Repair, paraesophageal hiatal hernia, (including fundoplication), via thoracoabdominal incision, except neonatal; with implantation of mesh or other prosthesis" +43338,"Esophageal lengthening procedure (eg, Collis gastroplasty or wedge gastroplasty) (List separately in addition to code for primary procedure)" +43340,Esophagojejunostomy (without total gastrectomy); abdominal approach +43341,Esophagojejunostomy (without total gastrectomy); thoracic approach +43351,"Esophagostomy, fistulization of esophagus, external; thoracic approach" +43352,"Esophagostomy, fistulization of esophagus, external; cervical approach" +43360,"Gastrointestinal reconstruction for previous esophagectomy, for obstructing esophageal lesion or fistula, or for previous esophageal exclusion; with stomach, with or without pyloroplasty" +43361,"Gastrointestinal reconstruction for previous esophagectomy, for obstructing esophageal lesion or fistula, or for previous esophageal exclusion; with colon interposition or small intestine reconstruction, including intestine mobilization, preparation, and anastomosis(es)" +43400,"Ligation, direct, esophageal varices" +43401,"Transection of esophagus with repair, for esophageal varices" +43405,Ligation or stapling at gastroesophageal junction for pre-existing esophageal perforation +43410,Suture of esophageal wound or injury; cervical approach +43415,Suture of esophageal wound or injury; transthoracic or transabdominal approach +43420,Closure of esophagostomy or fistula; cervical approach +43425,Closure of esophagostomy or fistula; transthoracic or transabdominal approach +43450,"Dilation of esophagus, by unguided sound or bougie, single or multiple passes" +43453,"Dilation of esophagus, over guide wire" +43460,"Esophagogastric tamponade, with balloon (Sengstaken type)" +43496,Free jejunum transfer with microvascular anastomosis +43499,"Unlisted procedure, esophagus" +43500,Gastrotomy; with exploration or foreign body removal +43501,Gastrotomy; with suture repair of bleeding ulcer +43502,"Gastrotomy; with suture repair of pre-existing esophagogastric laceration (eg, Mallory-Weiss)" +43510,"Gastrotomy; with esophageal dilation and insertion of permanent intraluminal tube (eg, Celestin or Mousseaux-Barbin)" +43520,"Pyloromyotomy, cutting of pyloric muscle (Fredet-Ramstedt type operation)" +43605,"Biopsy of stomach, by laparotomy" +43610,"Excision, local; ulcer or benign tumor of stomach" +43611,"Excision, local; malignant tumor of stomach" +43620,"Gastrectomy, total; with esophagoenterostomy" +43621,"Gastrectomy, total; with Roux-en-Y reconstruction" +43622,"Gastrectomy, total; with formation of intestinal pouch, any type" +43631,"Gastrectomy, partial, distal; with gastroduodenostomy" +43632,"Gastrectomy, partial, distal; with gastrojejunostomy" +43633,"Gastrectomy, partial, distal; with Roux-en-Y reconstruction" +43634,"Gastrectomy, partial, distal; with formation of intestinal pouch" +43635,Vagotomy when performed with partial distal gastrectomy (List separately in addition to code[s] for primary procedure) +43640,"Vagotomy including pyloroplasty, with or without gastrostomy; truncal or selective" +43641,"Vagotomy including pyloroplasty, with or without gastrostomy; parietal cell (highly selective)" +43644,"Laparoscopy, surgical, gastric restrictive procedure; with gastric bypass and Roux-en-Y gastroenterostomy (roux limb 150 cm or less)" +43645,"Laparoscopy, surgical, gastric restrictive procedure; with gastric bypass and small intestine reconstruction to limit absorption" +43647,"Laparoscopy, surgical; implantation or replacement of gastric neurostimulator electrodes, antrum" +43648,"Laparoscopy, surgical; revision or removal of gastric neurostimulator electrodes, antrum" +43651,"Laparoscopy, surgical; transection of vagus nerves, truncal" +43652,"Laparoscopy, surgical; transection of vagus nerves, selective or highly selective" +43653,"Laparoscopy, surgical; gastrostomy, without construction of gastric tube (eg, Stamm procedure) (separate procedure)" +43659,"Unlisted laparoscopy procedure, stomach" +57555,"Excision of Cervical Stump, Vaginal Approach; w/Anterior and/or Posterior Repair" +57556,"Excision of Cervical Stump, Vaginal Approach; w/Repair of Enterocele" +57558,Dilation & Curettage of Cervical Stump +57700,"Cerclage of Uterine Cervix, Nonobstetrical" +57720,"Trachelorrhaphy, Plastic Repair of Uterine Cervix, Vaginal Approach" +57800,"Dilation of Cervical Canal, Instrumental" +58100,"Endometrial Sampling (biopsy) w/ or w/Out Endocervical Sampling (biopsy), w/Out Cervical Dilation, Any Method" +58110,Endometrial Sampling (biopsy) Performed in Conjunction w/Colposcopy +58120,"Dilation & Curettage, Diagnostic and/or Therapeutic (nonobstetrical)" +58140,"Myomectomy, Excision of Fibroid Tumor(s) of Uterus, 1 to 4 Intramural Myoma(s) w/Total Weight of 250 g or Less and/or Removal of Surface Myomas; Abdominal Approach" +58145,"Myomectomy, Excision of Fibroid Tumor(s) of Uterus, 1 to 4 Intramural Myoma(s) w/Total Weight of 250 g or Less and/or Removal of Surface Myomas; Vaginal Approach" +58146,"Myomectomy, Excision of Fibroid Tumor(s) of Uterus, 5 or More Intramural Myomas and/or Intramural Myomas w/Total Weight Greater Than 250 g, Abdominal Approach" +58150,"Total abdominal hysterectomy (corpus and cervix), with or without removal of tube(s), with or without removal of ovary(s);" +58152,"Total abdominal hysterectomy (corpus and cervix), with or without removal of tube(s), with or without removal of ovary(s); with colpo-urethrocystopexy (eg, Marshall-Marchetti-Krantz, Burch)" +58180,"Supracervical abdominal hysterectomy (subtotal hysterectomy), with or without removal of tube(s), with or without removal of ovary(s)" +58200,"Total abdominal hysterectomy, including partial vaginectomy, with para-aortic and pelvic lymph node sampling, with or without removal of tube(s), with or without removal of ovary(s)" +58210,"Radical abdominal hysterectomy, with bilateral total pelvic lymphadenectomy and para-aortic lymph node sampling (biopsy), with or without removal of tube(s), with or without removal of ovary(s)" +58240,"Pelvic exenteration for gynecologic malignancy, with total abdominal hysterectomy or cervicectomy, with or without removal of tube(s), with or without removal of ovary(s), with removal of bladder and ureteral transplantations, and/or abdominoperineal resection of rectum and colon and colostomy, or any combination thereof" +58260,"Vaginal Hysterectomy, for Uterus 250 g or Less" +59120,"Surgical treatment of ectopic pregnancy; tubal or ovarian, requiring salpingectomy and/or oophorectomy, abdominal or vaginal approach" +59121,"Surgical treatment of ectopic pregnancy; tubal or ovarian, without salpingectomy and/or oophorectomy" +59130,Surgical treatment of ectopic pregnancy; abdominal pregnancy +59135,"Surgical treatment of ectopic pregnancy; interstitial, uterine pregnancy requiring total hysterectomy" +59136,"Surgical treatment of ectopic pregnancy; interstitial, uterine pregnancy with partial resection of uterus" +59140,"Surgical treatment of ectopic pregnancy; cervical, with evacuation" +59150,Laparoscopic treatment of ectopic pregnancy; without salpingectomy and/or oophorectomy +59151,Laparoscopic treatment of ectopic pregnancy; with salpingectomy and/or oophorectomy +59160,"Curettage, postpartum" +59200,"Insertion of cervical dilator (eg, laminaria, prostaglandin) (separate procedure)" +59300,"Episiotomy or vaginal repair, by other than attending" +59320,"Cerclage of cervix, during pregnancy; vaginal" +59325,"Cerclage of cervix, during pregnancy; abdominal" +59350,Hysterorrhaphy of ruptured uterus +59400,"Routine obstetric care including antepartum care, vaginal delivery (with or without episiotomy, and/or forceps) and postpartum care" +59409,Vaginal delivery only (with or without episiotomy and/or forceps); +59410,Vaginal delivery only (with or without episiotomy and/or forceps); including postpartum care +59412,"External cephalic version, with or without tocolysis" +59414,Delivery of placenta (separate procedure) +59425,Antepartum care only; 4-6 visits +59426,Antepartum care only; 7 or more visits +59430,Postpartum care only (separate procedure) +59510,"Routine obstetric care including antepartum care, cesarean delivery, and postpartum care" +59514,Cesarean delivery only; +59515,Cesarean delivery only; including postpartum care +59525,Subtotal or total hysterectomy after cesarean delivery (List separately in addition to code for primary procedure) +59610,"Routine obstetric care including antepartum care, vaginal delivery (with or without episiotomy, and/or forceps) and postpartum care, after previous cesarean delivery" +59612,"Vaginal delivery only, after previous cesarean delivery (with or without episiotomy and/or forceps);" +59614,"Vaginal delivery only, after previous cesarean delivery (with or without episiotomy and/or forceps); including postpartum care" +59618,"Routine obstetric care including antepartum care, cesarean delivery, and postpartum care, following attempted vaginal delivery after previous cesarean delivery" +59620,"Cesarean delivery only, following attempted vaginal delivery after previous cesarean delivery;" +59622,"Cesarean delivery only, following attempted vaginal delivery after previous cesarean delivery; including postpartum care" +59812,"Treatment of Incomplete Abortion, Any Trimester, Completed Surgically" +59820,"Treatment of Missed Abortion, Completed Surgically; First Trimester" +59821,"Treatment of Missed Abortion, Completed Surgically; Second Trimester" +59830,"Treatment of Septic Abortion, Completed Surgically" +59840,"Induced Abortion, by Dilation & Curettage" +59841,"Induced Abortion, by Dilation & Evacuation" +59850,"Induced Abortion, by 1 or More Intra-Amniotic Injections (amniocentesis-injections), Including Hospital Admission & Visits, Delivery of Fetus & Secundines" +59851,"Induced Abortion, by 1 or More Intra-Amniotic Injections (amniocentesis-injections), iIncluding Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Dilation & Curettage and/or Evacuation" +59852,"Induced Abortion, by 1 or More Intra-Amniotic Injections (amniocentesis-injections), Including Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Hysterotomy (failed intra-amniotic injection)" +59855,"Induced Abortion, by 1 or More Vaginal Suppositories (eg, prostaglandin) w/ or w/Out Cervical Dilation (eg, laminaria), Including Hospital Admission & Visits, Delivery of Fetus & Secundines" +59856,"Induced Abortion, by 1 or More Vaginal Suppositories (eg, prostaglandin) w/ or w/Out cervical dilation (eg, laminaria), Including Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Dilation & Curettage and/or Evacuation" +59857,"Induced Abortion, by 1 or More Vaginal Suppositories (eg, prostaglandin) w/ or w/Out Cervical Dilation (eg, laminaria), Including Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Hysterotomy (failed medical evacuation)" +59866,Multifetal Pregnancy Reduction(s) (MPR) +59870,Uterine Evacuation & Curettage for Hydatidiform Mole +59871,Removal of cerclage suture under anesthesia (other than local) +59897,"Unlisted Fetal Invasive Procedure, Including Ultrasound Guidance, When Performed" +59898,"Unlisted laparoscopy procedure, maternity care and delivery" +59899,"Unlisted procedure, maternity care and delivery" +60000,"Incision & Drainage of Thyroglossal Duct Cyst, Infected" +60100,Biopsy Thyroid Per Core Needle +60200,"Excision of Cyst or Adenoma of Thyroid, or Transection of Isthmus" +60210,"Partial Thyroid Lobectomy, Unilateral; w/ or w/Out Isthmusectomy" +60212,"Partial Thyroid Lobectomy, Unilateral; w/Contralateral Subtotal Lobectomy, Including Isthmusectomy" +60220,"Total Thyroid Lobectomy, Unilateral; w/ or w/Out Isthmusectomy" +60225,"Total Thyroid Lobectomy, Unilateral; w/Contralateral Subtotal Lobectomy, Including Isthmusectomy" +60240,"Thyroidectomy, Total or Complete" +60252,"Thyroidectomy, Total or Subtotal for Malignancy; w/Limited Neck Dissection" +60254,"Thyroidectomy, Total or Subtotal for Malignancy; w/Radical Neck Dissection" +60260,"Thyroidectomy, Removal of All Remaining Thyroid tissue Following Previous Removal of a Portion of Thyroid" +60270,"Thyroidectomy, Including Substernal Thyroid; Sternal Split or Transthoracic Approach" +60271,"Thyroidectomy, Including Substernal Thyroid; Cervical Approach" +60280,Excision of Thyroglossal Duct Cyst or Sinus +60281,Excision of Thyroglossal Duct Cyst or Sinus; Recurrent +61305,"Craniectomy or craniotomy, exploratory; infratentorial (posterior fossa)" +61312,"Craniectomy or craniotomy for evacuation of hematoma, supratentorial; extradural or subdural" +61313,"Craniectomy or craniotomy for evacuation of hematoma, supratentorial; intracerebral" +61314,"Craniectomy or craniotomy for evacuation of hematoma, infratentorial; extradural or subdural" +61315,"Craniectomy or craniotomy for evacuation of hematoma, infratentorial; intracerebellar" +61316,Incision and subcutaneous placement of cranial bone graft (List separately in addition to code for primary procedure) +61320,"Craniectomy or craniotomy, drainage of intracranial abscess; supratentorial" +61321,"Craniectomy or craniotomy, drainage of intracranial abscess; infratentorial" +61322,"Craniectomy or craniotomy, decompressive, with or without duraplasty, for treatment of intracranial hypertension, without evacuation of associated intraparenchymal hematoma; without lobectomy" +61323,"Craniectomy or craniotomy, decompressive, with or without duraplasty, for treatment of intracranial hypertension, without evacuation of associated intraparenchymal hematoma; with lobectomy" +61330,"Decompression of orbit only, transcranial approach" +61332,Exploration of orbit (transcranial approach); with biopsy +61333,Exploration of orbit (transcranial approach); with removal of lesion +61340,"Subtemporal cranial decompression (pseudotumor cerebri, slit ventricle syndrome)" +61343,"Craniectomy, suboccipital with cervical laminectomy for decompression of medulla and spinal cord, with or without dural graft (eg, Arnold-Chiari malformation)" +61345,"Other cranial decompression, posterior fossa" +61450,"Craniectomy, subtemporal, for section, compression, or decompression of sensory root of gasserian ganglion" +61458,"Craniectomy, suboccipital; for exploration or decompression of cranial nerves" +61460,"Craniectomy, suboccipital; for section of 1 or more cranial nerves" +61480,"Craniectomy, suboccipital; for mesencephalic tractotomy or pedunculotomy" +61500,Craniectomy; with excision of tumor or other bone lesion of skull +61501,Craniectomy; for osteomyelitis +61510,"Craniectomy, trephination, bone flap craniotomy; for excision of brain tumor, supratentorial, except meningioma" +61512,"Craniectomy, trephination, bone flap craniotomy; for excision of meningioma, supratentorial" +61514,"Craniectomy, trephination, bone flap craniotomy; for excision of brain abscess, supratentorial" +61516,"Craniectomy, trephination, bone flap craniotomy; for excision or fenestration of cyst, supratentorial" +61517,Implantation of brain intracavitary chemotherapy agent (List separately in addition to code for primary procedure) +61518,"Craniectomy for excision of brain tumor, infratentorial or posterior fossa; except meningioma, cerebellopontine angle tumor, or midline tumor at base of skull" +61519,"Craniectomy for excision of brain tumor, infratentorial or posterior fossa; meningioma" +61520,"Craniectomy for excision of brain tumor, infratentorial or posterior fossa; cerebellopontine angle tumor" +61521,"Craniectomy for excision of brain tumor, infratentorial or posterior fossa; midline tumor at base of skull" +61522,"Craniectomy, infratentorial or posterior fossa; for excision of brain abscess" +61524,"Craniectomy, infratentorial or posterior fossa; for excision or fenestration of cyst" +61526,"Craniectomy, bone flap craniotomy, transtemporal (mastoid) for excision of cerebellopontine angle tumor;" +61530,"Craniectomy, bone flap craniotomy, transtemporal (mastoid) for excision of cerebellopontine angle tumor; combined with middle/posterior fossa craniotomy/craniectomy" +61531,Subdural implantation of strip electrodes through 1 or more burr or trephine hole(s) for long-term seizure monitoring +61533,"Craniotomy with elevation of bone flap; for subdural implantation of an electrode array, for long-term seizure monitoring" +61534,Craniotomy with elevation of bone flap; for excision of epileptogenic focus without electrocorticography during surgery +61535,"Craniotomy with elevation of bone flap; for removal of epidural or subdural electrode array, without excision of cerebral tissue (separate procedure)" +61536,"Craniotomy with elevation of bone flap; for excision of cerebral epileptogenic focus, with electrocorticography during surgery (includes removal of electrode array)" +61537,"Craniotomy with elevation of bone flap; for lobectomy, temporal lobe, without electrocorticography during surgery" +61538,"Craniotomy with elevation of bone flap; for lobectomy, temporal lobe, with electrocorticography during surgery" +61539,"Craniotomy with elevation of bone flap; for lobectomy, other than temporal lobe, partial or total, with electrocorticography during surgery" +61540,"Craniotomy with elevation of bone flap; for lobectomy, other than temporal lobe, partial or total, without electrocorticography during surgery" +61541,Craniotomy with elevation of bone flap; for transection of corpus callosum +61686,"Surgery of intracranial arteriovenous malformation; infratentorial, complex" +61690,"Surgery of intracranial arteriovenous malformation; dural, simple" +61692,"Surgery of intracranial arteriovenous malformation; dural, complex" +61697,"Surgery of complex intracranial aneurysm, intracranial approach; carotid circulation" +61698,"Surgery of complex intracranial aneurysm, intracranial approach; vertebrobasilar circulation" +61700,"Surgery of simple intracranial aneurysm, intracranial approach; carotid circulation" +61702,"Surgery of simple intracranial aneurysm, intracranial approach; vertebrobasilar circulation" +61703,"Surgery of intracranial aneurysm, cervical approach by application of occluding clamp to cervical carotid artery (Selverstone-Crutchfield type)" +61705,"Surgery of aneurysm, vascular malformation or carotid-cavernous fistula; by intracranial and cervical occlusion of carotid artery" +61708,"Surgery of aneurysm, vascular malformation or carotid-cavernous fistula; by intracranial electrothrombosis" +61710,"Surgery of aneurysm, vascular malformation or carotid-cavernous fistula; by intra-arterial embolization, injection procedure, or balloon catheter" +61711,"Anastomosis, arterial, extracranial-intracranial (eg, middle cerebral/cortical) arteries" +61720,"Creation of lesion by stereotactic method, including burr hole(s) and localizing and recording techniques, single or multiple stages; globus pallidus or thalamus" +61735,"Creation of lesion by stereotactic method, including burr hole(s) and localizing and recording techniques, single or multiple stages; subcortical structure(s) other than globus pallidus or thalamus" +61750,"Stereotactic biopsy, aspiration, or excision, including burr hole(s), for intracranial lesion;" +61751,"Stereotactic biopsy, aspiration, or excision, including burr hole(s), for intracranial lesion; with computed tomography and/or magnetic resonance guidance" +61760,Stereotactic implantation of depth electrodes into the cerebrum for long-term seizure monitoring +61770,"Stereotactic localization, including burr hole(s), with insertion of catheter(s) or probe(s) for placement of radiation source" +61781,"Stereotactic computer-assisted (navigational) procedure; cranial, intradural (List separately in addition to code for primary procedure)" +61782,"Stereotactic computer-assisted (navigational) procedure; cranial, extradural (List separately in addition to code for primary procedure)" +61783,Stereotactic computer-assisted (navigational) procedure; spinal (List separately in addition to code for primary procedure) +61790,"Creation of lesion by stereotactic method, percutaneous, by neurolytic agent (eg, alcohol, thermal, electrical, radiofrequency); gasserian ganglion" +61791,"Creation of lesion by stereotactic method, percutaneous, by neurolytic agent (eg, alcohol, thermal, electrical, radiofrequency); trigeminal medullary tract" +61796,"Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); 1 simple cranial lesion" +61797,"Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); each additional cranial lesion, simple (List separately in addition to code for primary procedure)" +61798,"Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); 1 complex cranial lesion" +61799,"Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); each additional cranial lesion, complex (List separately in addition to code for primary procedure)" +61800,Application of stereotactic headframe for stereotactic radiosurgery (List separately in addition to code for primary procedure) +61850,"Twist drill or burr hole(s) for implantation of neurostimulator electrodes, cortical" +61860,"Craniectomy or craniotomy for implantation of neurostimulator electrodes, cerebral, cortical" +61863,"Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), without use of intraoperative microelectrode recording; first array" +61864,"Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), without use of intraoperative microelectrode recording; each additional array (List separately in addition to primary procedure)" +61867,"Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), with use of intraoperative microelectrode recording; first array" +61868,"Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), with use of intraoperative microelectrode recording; each additional array (List separately in addition to primary procedure)" +61870,"Craniectomy for implantation of neurostimulator electrodes, cerebellar, cortical" +61880,Revision or removal of intracranial neurostimulator electrodes +61885,"Insertion or replacement of cranial neurostimulator pulse generator or receiver, direct or inductive coupling; with connection to a single electrode array" +61886,"Insertion or replacement of cranial neurostimulator pulse generator or receiver, direct or inductive coupling; with connection to 2 or more electrode arrays" +61888,Revision or removal of cranial neurostimulator pulse generator or receiver +62000,"Elevation of depressed skull fracture; simple, extradural" +62005,"Elevation of depressed skull fracture; compound or comminuted, extradural" +62010,Elevation of depressed skull fracture; with repair of dura and/or debridement of brain +62100,"Craniotomy for repair of dural/cerebrospinal fluid leak, including surgery for rhinorrhea/otorrhea" +62115,"Reduction of craniomegalic skull (eg, treated hydrocephalus); not requiring bone grafts or cranioplasty" +62117,"Reduction of craniomegalic skull (eg, treated hydrocephalus); requiring craniotomy and reconstruction with or without bone graft (includes obtaining grafts)" +62120,"Repair of encephalocele, skull vault, including cranioplasty" +62121,"Craniotomy for repair of encephalocele, skull base" +62140,Cranioplasty for skull defect; up to 5 cm diameter +62141,Cranioplasty for skull defect; larger than 5 cm diameter +62142,Removal of bone flap or prosthetic plate of skull +62143,Replacement of bone flap or prosthetic plate of skull +62145,Cranioplasty for skull defect with reparative brain surgery +62146,Cranioplasty with autograft (includes obtaining bone grafts); up to 5 cm diameter +62147,Cranioplasty with autograft (includes obtaining bone grafts); larger than 5 cm diameter +62148,Incision and retrieval of subcutaneous cranial bone graft for cranioplasty (List separately in addition to code for primary procedure) +62160,"Neuroendoscopy, intracranial, for placement or replacement of ventricular catheter and attachment to shunt system or external drainage (List separately in addition to code for primary procedure)" +62161,"Neuroendoscopy, intracranial; with dissection of adhesions, fenestration of septum pellucidum or intraventricular cysts (including placement, replacement, or removal of ventricular catheter)" +62162,"Neuroendoscopy, intracranial; with fenestration or excision of colloid cyst, including placement of external ventricular catheter for drainage" +62163,"Neuroendoscopy, intracranial; with retrieval of foreign body" +62164,"Neuroendoscopy, intracranial; with excision of brain tumor, including placement of external ventricular catheter for drainage" +62165,"Neuroendoscopy, intracranial; with excision of pituitary tumor, transnasal or trans-sphenoidal approach" +62180,Ventriculocisternostomy (Torkildsen type operation) +62190,"Creation of shunt; subarachnoid/subdural-atrial, -jugular, -auricular" +62192,"Creation of shunt; subarachnoid/subdural-peritoneal, -pleural, other terminus" +62194,"Replacement or irrigation, subarachnoid/subdural catheter" +62200,"Ventriculocisternostomy, third ventricle;" +62201,"Ventriculocisternostomy, third ventricle; stereotactic, neuroendoscopic method" +62220,"Creation of shunt; ventriculo-atrial, -jugular, -auricular" +62223,"Creation of shunt; ventriculo-peritoneal, -pleural, other terminus" +62225,"Replacement or irrigation, ventricular catheter" +62230,"Replacement or revision of cerebrospinal fluid shunt, obstructed valve, or distal catheter in shunt system" +62252,Reprogramming of programmable cerebrospinal shunt +62256,Removal of complete cerebrospinal fluid shunt system; without replacement +62258,Removal of complete cerebrospinal fluid shunt system; with replacement by similar or other shunt at same operation +62263,"Percutaneous Lysis of Epidural Adhesions Using Solution Injection (eg, hypertonic saline, enzyme) or Mechanical Means (eg, catheter) Including Radiologic Localization (includes contrast when administered), Multiple Adhesiolysis Sessions; 2 or More Days" +62264,"Percutaneous Lysis of Epidural Adhesions Using Solution Injection (eg, hypertonic saline, enzyme) or Mechanical Means (eg, catheter) Including Radiologic Localization (includes contrast when administered), Multiple Adhesiolysis Sessions; 1 Day" +62267,"Percutaneous Aspiration Within the Nucleus Pulposus, Intervertebral Disc, or Paravertebral Tissue For Diagnostic Purposes" +62268,"Percutaneous Aspiration, Spinal Cord Cyst or Syrinx" +62269,"Biopsy of Spinal Ccord, Percutaneous Needle" +62270,Spinal Fluid Tap Diagnostic +62272,Spinal Fluid Tap Therapeutic +62273,Injection Lumbar EPI Blood or Clot Patch +62280,"Injection/infusion of neurolytic substance (eg, alcohol, phenol, iced saline solutions), with or without other therapeutic substance; subarachnoid" +62281,"Injection/infusion of neurolytic substance (eg, alcohol, phenol, iced saline solutions), with or without other therapeutic substance; epidural, cervical or thoracic" +62282,"Injection/infusion of neurolytic substance (eg, alcohol, phenol, iced saline solutions), with or without other therapeutic substance; epidural, lumbar, sacral (caudal)" +62284,"Injection Procedure for Myelography and/or Computed Tomography, Lumbar" +62287,"Decompression procedure, percutaneous, of nucleus pulposus of intervertebral disc, any method utilizing needle based technique to remove disc material under fluoroscopic imaging or other form of indirect visualization, with the use of an endoscope, with discography and/or epidural injection(s) at the treated level(s), when performed, single or multiple levels, lumbar" +62290,Injection Discography Each Level Lumbar +62291,Injection Discography Each Level Cervical/Thoracic +62292,"Injection Procedure for Chemonucleolysis, Including Discography, Intervertebral Disc, Single or Multiple Levels, Lumbar" +62294,"Injection Procedure, Arterial, for Occlusion of Arteriovenous Malformation, Spinal" +62302,Myelography Lumbar +62303,Myelography Thoracic +62304,Myelography Lumbosacral +62305,Myelography 2 or More Regions +62310,Injection Epidural w/ & w/Out Contrast Cervical/Thoracic +62311,Injection Epidural w/ & w/Out Contrast Lumbar/Sacral +62318,"Injection(s), Including Indwelling Catheter Placement, Continuous Infusion or Intermittent Bolus, of Diagnostic or Therapeutic Substance(s) (including anesthetic, antispasmodic, opioid, steroid, other solution), Not Including Neurolytic Substances, Includes Contrast for Localization When Performed, Epidural or Subarachnoid; Cervical or Thoracic" +62319,"Injection(s), Including Indwelling Catheter Placement, Continuous Infusion or Intermittent Bolus, of Diagnostic or Therapeutic Substance(s) (including anesthetic, antispasmodic, opioid, steroid, other solution), Not Including Neurolytic Substances, Includes Contrast for Localization When Performed, Epidural or Subarachnoid; Lumbar or Sacral (caudal)" +62350,"Implantation, Revision or Repositioning of Tunneled Intrathecal or Epidural Catheter, for Long-Term Medication Administration via an External Pump or Implantable Reservoir/Infusion Pump; w/Out Laminectomy" +62351,"Implantation, Revision or Repositioning of Tunneled Intrathecal or Epidural Catheter, for Long-Term Medication Administration via an External Pump or Implantable Reservoir/Infusion Pump; w/Laminectomy" +62355,Removal of Previously Implanted Intrathecal or Epidural Catheter +64400,"Injection, Anesthetic Agent; Trigeminal Nerve, Any Division or Branch" +64402,"Injection, Anesthetic Agent; Facial Nerve" +64405,Injection Anesthetic Agent Facial Nerve +64408,"Injection, Anesthetic Agent; Vagus Nerve" +64410,"Injection, Anesthetic Agent; Phrenic Nerve" +64412,"Injection, Anesthetic Agent; Spinal Accessory Nerve" +64413,"Injection, Anesthetic Agent; Cervical Plexus" +64415,"Injection, Anesthetic Agent; Brachial Plexus, Single" +64416,"Injection, Anesthetic Agent; Brachial Plexus, Continuous Infusion by Catheter (including catheter placement)" +64417,"Injection, Anesthetic Agent; Axillary Nerve" +64418,"Injection, Anesthetic Agent; Suprascapular Nerve" +64420,Injection Intercostal Nerve +64421,"Injection, Anesthetic Agent; Intercostal Nerves, Multiple, Regional Block" +64425,"Injection, Anesthetic Agent; Ilioinguinal, Iliohypogastric Nerves" +64430,"Injection, Anesthetic Agent; Pudendal Nerve" +64435,"Injection, Anesthetic Agent; Paracervical (uterine) Nerve" +64445,"Injection, Anesthetic Agent; Sciatic Nerve, Single" +64446,"Injection, Anesthetic Agent; Sciatic Nerve, Continuous Infusion by Catheter (including catheter placement)" +64447,"Injection, Anesthetic Agent; Femoral Nerve, Single" +64448,"Injection, Anesthetic Agent; Femoral Nerve, Continuous Infusion by Catheter (including catheter placement)" +64449,"Injection, Anesthetic Agent; Lumbar Plexus, Posterior Approach, Continuous Infusion by Catheter (including catheter placement)" +64450,Injection Anesthesia Peripheral Nerve +64455,"Injection(s), Anesthetic Agent and/or Steroid, Plantar Common Digital Nerve(s) (eg, Morton's neuroma)" +64479,Injection Epidural Cervical +64480,"Injection(s), Anesthetic Agent and/or Steroid, Transforaminal Epidural, w/Imaging Guidance (fluoroscopy or CT); Cervical or Thoracic, Each Addtl Level" +64483,Injection Epidural Lumbar +64484,"Injection(s), Anesthetic Agent and/or Steroid, Transforaminal Epidural, w/Imaging Guidance (fluoroscopy or CT); Lumbar or Sacral, Each Addtl Level" +64486,"Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Unilateral; by Injection(s) (includes imaging guidance, when performed)" +64487,"Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Unilateral; by Continuous Infusion(s) (includes imaging guidance, when performed)" +64488,"Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Bilateral; by Injections (includes imaging guidance, when performed)" +64489,"Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Bilateral; by Continuous Infusions (includes imaging guidance, when performed)" +64490,"Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Cervical or Thoracic; Single Level" +64491,Injection Paravertebral CT Add On +64492,"Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Cervical or Thoracic; Third & Any Addtl Level(s)" +64493,Injection Paravertebral +64494,"Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Lumbar or Sacral; Second Level" +64495,"Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Lumbar or Sacral; Third & Any Addtl Level(s)" +64505,"Injection, Anesthetic Agent; Sphenopalatine Ganglion" +64508,"Injection, Anesthetic Agent; Carotid Sinus" +64510,Injcection Anesthetic Stellate Ganglion +64517,"Injection, Anesthetic Agent; Superior Hypogastric Plexus" +64520,"Injection, Anesthetic Agent; Lumbar or Thoracic (paravertebral sympathetic)" +64530,Injection Anesthetic Celiac Plexus +64550,Application of Surface (transcutaneous) Neurostimulator +64553,Percutaneous Implantation of Neurostimulator Electrode Array; Cranial Nerve +64555,Percutaneous Implantation of Neurostimulator Electrode Array; Peripheral Nerve (excludes sacral nerve) +64561,"Percutaneous Implantation of Neurostimulator Electrode Array; Sacral Nerve (transforaminal placement) Including Image Guidance, if Performed" +64565,Percutaneous Implantation of Neurostimulator Electrode Array; Neuromuscular +64566,"Posterior Tibial Neurostimulation, Percutaneous Needle Electrode, Single Treatment, Includes Programming" +64568,"Incision for Implantation of Cranial Nerve (eg, vagus nerve) Neurostimulator Electrode Array & Pulse Generator" +64569,"Revision or Replacement of Cranial Nerve (eg, vagus nerve) Neurostimulator Electrode Array, Including Connection to Existing Pulse Generator" +64570,"Removal of Cranial Nerve (eg, vagus nerve) Neurostimulator Electrode Array & Pulse Generator" +64575,Incision for Implantation of Neurostimulator Electrode Array; Peripheral Nerve (excludes sacral nerve) +64580,Incision for Implantation of Neurostimulator Electrode Array; Neuromuscular +64581,Incision for Implantation of Neurostimulator Electrode Array; Sacral Nerve (transforaminal placement) +64585,Revision or Removal of Peripheral Neurostimulator Electrode Array +64590,"Insertion or Replacement of Peripheral or Gastric Neurostimulator Pulse Generator or Receiver, Direct or Inductive Coupling" +64595,Revision or Removal of Peripheral or Gastric Neurostimulator Pulse Generator or Receiver +64600,"Destruction by Neurolytic Agent, Trigeminal Nerve; Supraorbital, Infraorbital, Mental, or Inferior Alveolar Branch" +64605,"Destruction by Neurolytic Agent, Trigeminal Nerve; Second & Third Division Branches at Foramen Ovale" +64610,"Destruction by Neurolytic Agent, Trigeminal Nerve; Second & Third Division Branches at Foramen Ovale Under Radiologic Monitoring" +64611,"Chemodenervation of Parotid & Submandibular Salivary Glands, Bilateral" +64612,"Chemodenervation of Muscle(s); Muscle(s) Innervated by Facial Nerve, Unilateral (eg, for blepharospasm, hemifacial spasm)" +64615,"Chemodenervation of Muscle(s); Muscle(s) Innervated by Facial, Trigeminal, Cervical Spinal & Accessory Nerves, Bilateral (eg, for chronic migraine)" +64616,"Chemodenervation of Muscle(s); Neck Muscle(s), Excluding Muscles of the Larynx, Unilateral (eg, for cervical dystonia, spasmodic torticollis)" +64617,"Chemodenervation of Muscle(s); Larynx, Unilateral, Percutaneous (eg, for spasmodic dysphonia), Includes Guidance by Needle Electromyography, When Performed" +64620,"Destruction by Neurolytic Agent, Intercostal Nerve" +64630,Destruction by Neurolytic Agent; Pudendal Nerve +64632,Destruction by Neurolytic Plantar Common Digital Nerve +64633,Destruction Neurolytic Paravertebral Cerv/Thoracic +64634,Destruction Neurolytic Paravertebral Cerv/Thor Addtl +64635,Destruction Neurolytic Paravertebral Limb/Sacral +64636,Destruction Neurolytic Paravertebral Limb/Sacral Addtl +64640,Destruction Neurologic Agent Peripheral Nerve +64642,Chemodenervation of One Extremity; 1-4 Muscle(s) +64643,"Chemodenervation of One Extremity; Each Addtl Extremity, 1-4 Muscle(s)" +64644,Chemodenervation of One Extremity; 5 or More Muscles +64645,"Chemodenervation of One Extremity; Each Addtl Extremity, 5 or More Muscles" +64646,Chemodenervation of Trunk Muscle(s); 1-5 Muscle(s) +64647,Chemodenervation of Trunk Muscle(s); 6 or More Muscles +64650,Chemodenervation of Eccrine Glands; Both Axillae +64653,"Chemodenervation of Eccrine Glands; Other Area(s) (eg, scalp, face, neck), Per Day" +64680,"Destruction by Neurolytic Agent, w/ or w/o Radiologic Monitoring; Celiac Plexus" +64681,"Destruction by Neurolytic Agent, w/ or w/o Radiologic Monitoring; Superior Hypogastric Plexus" +64702,"Neuroplasty; Digital, 1 or Both, Same Digit" +64704,Neuroplasty; Nerve of Hand or Foot +64708,"Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Other Than Specified" +64712,"Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Sciatic Nerve" +64713,"Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Brachial Plexus" +64714,"Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Lumbar Plexus" +64716,Neuroplasty and/or Transposition; Cranial Nerve +64718,Neuroplasty and/or Transposition; Ulnar Nerve at Elbow +64719,Neuroplasty and/or Transposition; Ulnar Nerve at Wrist +64721,Neuroplasty and/or Transposition; Median Nerve at Carpal Tunnel +64722,Decompression; Unspecified Nerve(s) +64726,Decompression; Plantar Digital Nerve +64727,"Internal Neurolysis, Requiring Use of Operating Microscope (Neuroplasty includes external neurolysis)" +64732,Transection or Avulsion of; Supraorbital Nerve +64734,Transection or Avulsion of; Infraorbital Nerve +64736,Transection or Avulsion of; Mental Nerve +64738,Transection or Avulsion of; Inferior Alveolar Nerve by Osteotomy +64740,Transection or Avulsion of; Lingual Nerve +64742,"Transection or Avulsion of; Facial Nerve, Differential or Complete" +64744,Transection or Avulsion of; Greater Occipital Nerve +64746,Transection or Avulsion of; Phrenic Nerve +64755,"Transection or Avulsion of; Vagus Nerves Limited to Proximal Stomach (selective proximal vagotomy, proximal gastric vagotomy, parietal cell vagotomy, supra- or highly selective vagotomy)" +64760,"Transection or Avulsion of; Vagus Nerve (vagotomy), Abdominal" +64763,"Transection or Avulsion of Obturator Nerve, Extrapelvic, w/ or w/Out Adductor Tenotomy" +64766,"Transection or Avulsion of Obturator Nerve, Intrapelvic, w/ or w/Out Adductor Tenotomy" +64771,"Transection or Avulsion of Other Cranial Nerve, Extradural" +64772,"Transection or Avulsion of Other Spinal Nerve, Extradural" +64774,"Excision of Neuroma; Cutaneous Nerve, Surgically Identifiable" +64776,"Excision of Neuroma; Digital Nerve, 1 or Both, Same Digit" +64778,"Excision of Neuroma; Digital Nerve, Each Addtl Digit" +64782,"Excision of Neuroma; Hand or Foot, Except Digital Nerve" +64783,"Excision of Neuroma; Hand or Foot, Each Addtl Nerve, Except Same Digit" +64784,"Excision of Neuroma; Major Peripheral Nerve, Except Sciatic" +64786,Excision of Neuroma; Sciatic Nerve +64787,Implantation of Nerve End Into Bone or Muscle +64788,Excision of Neurofibroma or Neurolemmoma; Cutaneous Nerve +64790,Excision of Neurofibroma or Neurolemmoma; Major Peripheral Nerve +64792,Excision of Neurofibroma or Neurolemmoma; Extensive (including malignant type) +64795,Biopsy of Nerve +64802,"Sympathectomy, Cervical" +64804,"Sympathectomy, Cervicothoracic" +64809,"Sympathectomy, Thoracolumbar" +64818,"Sympathectomy, Lumbar" +64820,"Sympathectomy; Digital Arteries, Each Digit" +64821,Sympathectomy; Radial Artery +64822,Sympathectomy; Ulnar Artery +64823,Sympathectomy; Superficial Palmar Arch +64831,"Suture of Digital Nerve, Hand or Foot; 1 Nerve" +64832,"Suture of Digital Nerve, Hand or Foot; Each Addtl Digital Nerve" +64834,"Suture of 1 Nerve; Hand or Foot, Common Sensory Nerve" +64835,Suture of 1 Nerve; Median Motor Thenar +64836,Suture of 1 Nerve; Ulnar Motor +64837,"Suture of Each Addtl Nerve, Hand or Foot" +64840,Suture of Posterior Tibial Nerve +64856,"Suture of Major Peripheral Nerve, Arm or Leg, Except Sciatic; Including Transposition" +64857,"Suture of Major Peripheral Nerve, Arm or Leg, Except Sciatic; w/Out Transposition" +64858,Suture of Sciatic Nerve +64859,Suture of Each Addtl Major Peripheral Nerve +64861,Suture of; Brachial Plexus +64862,Suture of; Lumbar Plexus +64864,Suture of Facial Nerve; Extracranial +64865,"Suture of Facial Nerve; Infratemporal, w/ or w/Out Grafting" +64866,Anastomosis; facial-spinal accessory +64868,Anastomosis; facial-hypoglossal +64872,Suture of nerve; requiring secondary or delayed suture (List separately in addition to code for primary neurorrhaphy) +64874,"Suture of nerve; requiring extensive mobilization, or transposition of nerve (List separately in addition to code for nerve suture)" +64876,Suture of nerve; requiring shortening of bone of extremity (List separately in addition to code for nerve suture) +64885,"Nerve graft (includes obtaining graft), head or neck; up to 4 cm in length" +64886,"Nerve graft (includes obtaining graft), head or neck; more than 4 cm length" +64890,"Nerve graft (includes obtaining graft), single strand, hand or foot; up to 4 cm length" +64891,"Nerve graft (includes obtaining graft), single strand, hand or foot; more than 4 cm length" +64892,"Nerve graft (includes obtaining graft), single strand, arm or leg; up to 4 cm length" +64893,"Nerve graft (includes obtaining graft), single strand, arm or leg; more than 4 cm length" +64895,"Nerve graft (includes obtaining graft), multiple strands (cable), hand or foot; up to 4 cm length" +64896,"Nerve graft (includes obtaining graft), multiple strands (cable), hand or foot; more than 4 cm length" +64897,"Nerve graft (includes obtaining graft), multiple strands (cable), arm or leg; up to 4 cm length" +64898,"Nerve graft (includes obtaining graft), multiple strands (cable), arm or leg; more than 4 cm length" +64901,"Nerve graft, each additional nerve; single strand (List separately in addition to code for primary procedure)" +64902,"Nerve graft, each additional nerve; multiple strands (cable) (List separately in addition to code for primary procedure)" +64905,Nerve pedicle transfer; first stage +64907,Nerve pedicle transfer; second stage +64910,"Nerve repair; with synthetic conduit or vein allograft (eg, nerve tube), each nerve" +64911,"Nerve repair; with autogenous vein graft (includes harvest of vein graft), each nerve" +64999,"Unlisted procedure, nervous system" +65091,Evisceration of Ocular Contents; w/Out Implant +65093,Evisceration of Ocular Contents; w/Implant +65101,Enucleation of Eye; w/Out Implant +65103,"Enucleation of Eye; w/Implant, Muscles Not Attached to Implant" +65105,"Enucleation of Eye; w/Implant, Muscles Attached to Implant" +65110,"Exenteration of orbit (does not include skin graft), removal of orbital contents; only" +65112,"Exenteration of orbit (does not include skin graft), removal of orbital contents; with therapeutic removal of bone" +65114,"Exenteration of orbit (does not include skin graft), removal of orbital contents; with muscle or myocutaneous flap" +65125,"Modification of Ocular Implant w/Placement or Replacement of Pegs (eg, drilling receptacle for prosthesis appendage)" +65130,"Insertion of Ocular Implant Secondary; After Evisceration, in Scleral Shell" +65135,"Insertion of Ocular Implant Secondary; After Enucleation, Muscles Not Attached to Implant" +65140,"Insertion of Ocular Implant Secondary; After Enucleation, Muscles Attached to Implant" +65150,Reinsertion of Ocular Implant; w/ or w/Out Conjunctival Graft +65155,Reinsertion of Ocular Implant; w/Use of Foreign Material for Reinforcement and/or Attachment of Muscles to Implant +65175,Removal of Ocular Implant +65205,"Removal of Foreign Body, External Eye; Conjunctival Superficial" +65210,"Removal of Foreign Body, External Eye; Conjunctival Embedded (includes concretions), Subconjunctival, or Scleral Nonperforating" +65220,"Removal of Foreign Body, External Eye; Corneal, w/Out Slit Lamp" +65222,"Removal of Foreign Body, External Eye; Corneal, w/Slit Lamp" +65235,"Removal of Foreign Body, Intraocular; From Anterior Chamber of Eye or Lens" +65260,"Removal of Foreign Body, Intraocular; From Posterior Segment, Magnetic Extraction, Anterior or Posterior Route" +65265,"Removal of Foreign Body, Intraocular; From Posterior Segment, Nonmagnetic Extraction" +65270,"Repair of Laceration; Conjunctiva, w/ or w/Out Nonperforating Laceration Sclera, Direct Closure" +65272,"Repair of Laceration; Conjunctiva, by Mobilization & Rearrangement, w/Out Hospitalization" +65273,"Repair of Laceration; Conjunctiva, by Mobilization & Rearrangement, w/Hospitalization" +65275,"Repair of Laceration; Cornea, Nonperforating, w/ or w/Out Removal Foreign Body" +65280,"Repair of Laceration; Cornea and/or Sclera, Perforating, Not Involving Uveal Tissue" +65285,"Repair of Laceration; Cornea and/or Sclera, Perforating, w/Reposition or Resection of Uveal Tissue" +65286,"Repair of Laceration; Application of Tissue Glue, Wounds of Cornea and/or Sclera" +65290,"Repair of Wound, Extraocular Muscle, Tendon and/or Tenon's Capsule" +65400,"Excision of Lesion, Cornea (keratectomy, lamellar, partial), Except Pterygium" +65410,Biopsy of Cornea +65420,Excision or Transposition of Pterygium; w/Out Graft +65426,Excision or Transposition of Pterygium; w/Graft +65430,"Scraping of Cornea, Diagnostic, for Smear and/or Culture" +65435,"Removal of Corneal Epithelium; w/ or w/Out Chemocauterization (abrasion, curettage)" +65436,"Removal of Corneal Epithelium; w/Application of Chelating Agent (eg, EDTA)" +65450,"Destruction of Lesion of Cornea by Cryotherapy, Photocoagulation or Thermocauterization" +65600,"Multiple Punctures of Anterior Cornea (eg, for corneal erosion, tattoo)" +65710,Keratoplasty (corneal transplant); Anterior Lamellar +65730,Keratoplasty (corneal transplant); Penetrating (except in aphakia or pseudophakia) +65750,Keratoplasty (corneal transplant); Penetrating (in aphakia) +65755,Keratoplasty (corneal transplant); Penetrating (in pseudophakia) +65756,Keratoplasty (corneal transplant); Endothelial +65757,Backbench Preparation of Corneal Endothelial Allograft Prior to Transplantation +65760,Keratomileusis +65765,Keratophakia +65767,Epikeratoplasty +65770,Keratoprosthesis +65771,Radial Keratotomy +65772,Corneal Relaxing Incision for Correction of Surgically Induced Astigmatism +65775,Corneal Wedge Resection for Correction of Surgically Induced Astigmatism +65778,Placement of Amniotic Membrane on the Ocular Surface; w/Out Sutures +65779,"Placement of Amniotic Membrane on the Ocular Surface; Single Layer, Sutured" +65780,"Ocular Surface Reconstruction; Amniotic Membrane Transplantation, Multiple Layers" +65781,"Ocular Surface Reconstruction; Limbal Stem Cell Allograft (eg, cadaveric or living donor)" +65782,Ocular Surface Reconstruction; Limbal Conjunctival Autograft +65800,Paracentesis of Anterior Chamber of Eye; w/Removal of Qqueous +65810,"Paracentesis of Anterior Chamber of Eye; w/Removal of Vitreous and/or Discission of Anterior Hyaloid Membrane, w/ or w/Out Air Injection" +65815,"Paracentesis of Anterior Chamber of Eye; w/Removal of Blood, w/ or w/Out Irrigation and/or Air Injection" +65820,Goniotomy +65850,Trabeculotomy ab Externo +65855,"Trabeculoplasty by Laser Surgery, 1 or More Sessions (defined treatment series)" +65860,"Severing Adhesions of Anterior Segment, Laser Technique" +65865,"Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Goniosynechiae" +65870,"Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Anterior Synechiae, Except Goniosynechiae" +65875,"Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Posterior Synechiae" +65880,"Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Corneovitreal Adhesions" +65900,"Removal of Epithelial Downgrowth, Anterior Chamber of Eye" +65920,"Removal of Implanted Material, Anterior Segment of Eye" +65930,"Removal of Blood Clot, Anterior Segment of Eye" +66020,"Injection, Anterior Chamber of Eye; Air or Liquid" +66030,"Injection, Anterior Chamber of Eye; Medication" +66130,"Excision of Lesion, Sclera" +66150,Fistulization of Sclera for Glaucoma; Trephination w/Iridectomy +66155,Fistulization of Sclera for Glaucoma; Thermocauterization w/Iridectomy +66160,"Fistulization of Sclera for Glaucoma; Sclerectomy w/Punch or Scissors, w/Iridectomy" +66170,Fistulization of Sclera for Glaucoma; Trabeculectomy ab Externo in Absence of Previous Surgery +66172,Fistulization of Sclera for Glaucoma; Trabeculectomy ab Externo w/Scarring From Previous Ocular Surgery or Trauma (includes injection of antifibrotic agents) +66174,Transluminal Dilation of Aqueous Outflow Canal; w/o Retention of Device or Stent +66175,Transluminal Dilation of Aqueous Outflow Canal; w/Retention of Device or Stent +66179,"Aqueous Shunt to Extraocular Equatorial Plate Reservoir, External Approach; w/Out Graft" +66180,"Aqueous Shunt to Extraocular Equatorial Plate Reservoir, External Approach; w/Graft" +66183,"Insertion of Anterior Segment Aqueous Drainage Device, w/Out Extraocular Reservoir, External Approach" +66184,Revision of Aqueous Shunt to Extraocular Equatorial Plate Reservoir; w/Out Graft +66185,Revision of Aqueous Shunt to Extraocular Equatorial Plate Reservoir; w/Graft +66220,Repair of Scleral Staphyloma; w/Out Graft +66225,Repair of Scleral Staphyloma; w/Graft +66250,"Revision or Repair of Operative Wound of Anterior Segment, Any Type, Early or Late, Major or Minor Procedure" +66500,Iridotomy by Stab Incision; Except Transfixion +66505,Iridotomy by Stab Incision; w/Transfixion as for Iris Bombe +66600,"Iridectomy, w/Corneoscleral or Corneal Section; for Removal of Lesion" +66605,"Iridectomy, w/Corneoscleral or Corneal Section; w/Cyclectomy" +66625,"Iridectomy, w/Corneoscleral or Corneal Section; Peripheral for Glaucoma" +66630,"Iridectomy, w/Corneoscleral or Corneal Section; Sector for Glaucoma" +66635,"Iridectomy, w/Corneoscleral or Corneal Section; Optical" +66680,"Repair of Iris, Ciliary Body (as for iridodialysis)" +66682,"Suture of Iris, Ciliary Body w/Retrieval of Suture Through Small Incision (eg, McCannel suture)" +66700,Ciliary Body Destruction; Diathermy +66710,"Ciliary Body Destruction; Cyclophotocoagulation, Transscleral" +66711,"Ciliary Body Destruction; Cyclophotocoagulation, Endoscopic" +66720,Ciliary Body Destruction; Cryotherapy +66740,Ciliary Body Destruction; Cyclodialysis +66761,"Iridotomy/Iridectomy by Laser Surgery (eg, for glaucoma) (per session)" +66762,"Iridoplasty by Photocoagulation (1 or more sessions) (eg, for improvement of vision, for widening of anterior chamber angle)" +66770,Destruction of Cyst or Lesion Iris or Ciliary Body (nonexcisional procedure) +66820,Discission of Secondary Membranous Cataract (opacified posterior lens capsule and/or anterior hyaloid); Stab Incision Technique (Ziegler or Wheeler knife) +66821,"Discission of Secondary Membranous Cataract (opacified posterior lens capsule and/or anterior hyaloid); Laser Surgery (eg, YAG laser) (1 or more stages)" +66825,"Repositioning of Intraocular Lens Prosthesis, Requiring an Incision" +66830,"Removal of Secondary Membranous Cataract (opacified posterior lens capsule and/or anterior hyaloid) w/Corneo-Scleral Section, w/ or w/Out Iridectomy (iridocapsulotomy, iridocapsulectomy)" +66840,"Removal of Lens Material; Aspiration Technique, 1 or More Stages" +66850,"Removal of Lens Material; Phacofragmentation Technique (mechanical or ultrasonic) (eg, phacoemulsification), w/Aspiration" +66852,"Removal of Lens Material; Pars Plana Approach, w/ or w/Out Vitrectomy" +66920,Removal of Lens mMterial; Intracapsular +66930,"Removal of Lens Material; Intracapsular, for Dislocated Lens" +66940,Removal of Lens Material; Extracapsular +66982,"Extracapsular Cataract Removal w/Insertion of Intraocular Lens Prosthesis (1-stage procedure), Manual or Mechanical Technique (eg, irrigation and aspiration or phacoemulsification), Complex, Requiring Devices or Techniques Not Generally Used in Routine Cataract Surgery (eg, iris expansion device, suture support for intraocular lens, or primary posterior capsulorrhexis) or Performed on Patients in the Amblyogenic Developmental Stage" +66983,Intracapsular Cataract Extraction w/Insertion of Intraocular Lens Prosthesis (1 stage procedure) +66984,"Extracapsular Cataract Removal w/Insertion of Intraocular Lens Prosthesis (1 stage procedure), Manual or Mechanical Technique (eg, irrigation and aspiration or phacoemulsification)" +66985,"Insertion of Intraocular Lens Prosthesis (secondary implant), Not Associated w/Concurrent Cataract Removal" +66986,Exchange of Intraocular Lens +66990,Use of Ophthalmic Endoscope +66999,"Unlisted procedure, anterior segment of eye" +67005,"Removal of Vitreous, Anterior Approach (open sky technique or limbal incision); Partial Removal" +67010,"Removal of Vitreous, Anterior Approach (open sky technique or limbal incision); Subtotal Removal w/Mechanical Vitrectomy" +67015,"Aspiration or Release of Vitreous, Subretinal or Choroidal Fluid, Pars Plana Approach (posterior sclerotomy)" +67025,"Injection of Vitreous Substitute, Pars Plana or Limbal Approach (fluid-gas exchange), w/ or w/Out Aspiration" +67027,"Implantation of Intravitreal Drug Delivery System (eg, ganciclovir implant), Includes Concomitant Removal of Vitreous" +67028,Intravitreal Injection of a Pharmacologic Agent +67030,"Discission of Vitreous Strands (without removal), Pars Plana Approach" +67031,"Severing of Vitreous Strands, Vitreous Face Adhesions, Sheets, Membranes or Opacities, Laser Surgery (1 or more stages)" +67036,"Vitrectomy, Mechanical, Pars Plana Approach" +67039,"Vitrectomy, Mechanical, Pars Plana Approach; w/Focal Endolaser Photocoagulation" +67040,"Vitrectomy, Mechanical, Pars Plana Approach; w/Endolaser Panretinal Photocoagulation" +67041,"Vitrectomy, Mechanical, Pars Plana Approach; w/Removal of Preretinal Cellular Membrane (eg, macular pucker)" +67042,"Vitrectomy, Mechanical, Pars Plana Approach; w/Removal of Internal Limiting Membrane of Retina (eg, for repair of macular hole, diabetic macular edema), Includes, if Performed, Intraocular Tamponade (ie, air, gas or silicone oil)" +67043,"Vitrectomy, Mechanical, Pars Plana Approach; w/Removal of Subretinal Membrane (eg, choroidal neovascularization), Includes, if Performed, Intraocular Tamponade (ie, air, gas or silicone oil) & Laser Photocoagulation" +67101,"Repair of Retinal Detachment, 1 or More Sessions; Cryotherapy or Diathermy, w/ or w/Out Drainage of Subretinal Fluid" +67105,"Repair of Retinal Detachment, 1 or More Sessions; Photocoagulation, w/ or w/Out Drainage of Subretinal Fluid" +67107,"Repair of Retinal Detachment; Scleral Buckling (such as lamellar scleral dissection, imbrication or encircling procedure), w/ or w/Out Implant, w/ or w/Out Cryotherapy, Photocoagulation, & Drainage of Subretinal Fluid" +67108,"Repair of Retinal Detachment; w/Vitrectomy, Any Method, w/ or w/Out Air or Gas Tamponade, Focal Endolaser Photocoagulation, Cryotherapy, Drainage of Subretinal Fluid, Scleral Buckling, and/or Removal of Lens by Same Technique" +67110,"Repair of Retinal Detachment; by Injection of Air or Other Gas (eg, pneumatic retinopexy)" +67112,"Repair of Retinal Detachment; by Scleral Buckling or Vitrectomy, on Patient Having Previous Ipsilateral Retinal Detachment Repair(s) Using Scleral Buckling or Vitrectomy Techniques" +67113,"Repair of Complex Retinal Detachment (eg, proliferative vitreoretinopathy, stage C-1 or greater, diabetic traction retinal detachment, retinopathy of prematurity, retinal tear of greater than 90 degrees), w/Vitrectomy & Membrane Peeling, May Include Air, Gas, or Silicone Oil Tamponade, Cryotherapy, Endolaser Photocoagulation, Drainage of Subretinal Fluid, Scleral Buckling, and/or Removal of Lens" +67115,Release of Encircling Material (posterior segment) +67120,"Removal of Implanted Material, Posterior Segment; Extraocular" +67121,"Removal of Implanted Material, Posterior Segment; Intraocular" +67141,"Prophylaxis of Retinal Detachment (eg, retinal break, lattice degeneration) w/o Drainage, 1 or More Sessions; Cryotherapy, Diathermy" +67145,"Prophylaxis of Retinal Detachment (eg, retinal break, lattice degeneration) w/o Drainage, 1 or More Sessions; Photocoagulation (laser or xenon arc)" +67208,"Destruction of Localized Lesion of Retina (eg, macular edema, tumors), 1 or More Sessions; Cryotherapy, Diathermy" +67210,"Destruction of Localized Lesion of Retina (eg, macular edema, tumors), 1 or More Sessions; Photocoagulation" +67218,"Destruction of Localized Lesion of Retina (eg, macular edema, tumors), 1 or More Sessions; Radiation by Implantation of Source (includes removal of source)" +67220,"Destruction of Localized Lesion of Choroid (eg, choroidal neovascularization); Photocoagulation (eg, laser), 1 or More Sessions" +67221,"Destruction of Localized Lesion of Choroid (eg, choroidal neovascularization); Photodynamic Therapy (includes intravenous infusion)" +67225,"Destruction of Localized Lesion of Choroid (eg, choroidal neovascularization); Photodynamic Therapy, Second eye, at Single Session" +67227,"Destruction of Extensive or Progressive Retinopathy (eg, diabetic retinopathy), 1 or More Sessions, Cryotherapy, Diathermy" +67228,"Treatment of Extensive or Progressive Retinopathy, 1 or More Sessions; (eg, diabetic retinopathy), Photocoagulation" +67229,"Treatment of Extensive or Progressive Retinopathy, 1 or More Sessions; Preterm Infant (less than 37 weeks gestation at birth), Performed From Birth Up to 1 Year of Age (eg, retinopathy of prematurity), Photocoagulation or Cryotherapy" +67250,Scleral Reinforcement; w/Out Graft +67255,Scleral Reinforcement; w/Graft +67299,"Unlisted Procedure, Posterior Segment" +67311,"Strabismus Surgery, Recession or Resection Procedure; 1 Horizontal Muscle" +67312,"Strabismus Surgery, Recession or Resection Procedure; 2 Horizontal Muscles" +67314,"Strabismus Surgery, Recession or Resection Procedure; 1 Vertical Muscle (excluding superior oblique)" +67316,"Strabismus Surgery, Recession or Resection Procedure; 2 or More Vertical Muscles (excluding superior oblique)" +67318,"Strabismus Surgery, Any Procedure, Superior Oblique Muscle" +67320,"Transposition Procedure (eg, for paretic extraocular muscle), Any Extraocular Muscle" +67331,Strabismus Surgery on Patient w/Previous Eye Surgery or Injury That Did Not Involve the Extraocular Muscles +67332,"Strabismus Surgery on Patient w/Scarring of Extraocular Muscles (eg, prior ocular injury, strabismus or retinal detachment surgery) or Restrictive Myopathy (eg, dysthyroid ophthalmopathy)" +67334,"Strabismus Surgery by Posterior Fixation Suture Technique, w/ or w/Out Muscle Recession" +67335,"Placement of Adjustable Suture(s) During Strabismus Surgery, Including Postoperative Adjustment(s) of Suture(s)" +67340,Strabismus Surgery Involving Exploration and/or Repair of Detached Extraocular Muscle(s) +67343,Release of Extensive Scar Tissue w/Out Detaching Extraocular Muscle +67345,Chemodenervation of Extraocular Muscle +67346,Biopsy of Extraocular Muscle +67399,"Unlisted Procedure, Extraocular Muscle" +67400,"Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); For Exploration, w/ or w/Out Biopsy" +67405,Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Drainage Only +67412,Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Removal of Lesion +67413,Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Removal of Foreign Body +67414,Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Removal of Bone For Decompression +67415,Fine Needle Aspiration of Orbital Contents +67420,"Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Removal of Lesion" +67430,"Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Removal of Foreign Body" +67440,"Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Drainage" +67445,"Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Removal of Bone For Decompression" +67450,"Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); For Exploration, w/ or w/Out Biopsy" +67500,Retrobulbar Injection; Medication +67505,Retrobulbar Injection; Alcohol +67515,Injection of Medication or Other Substance Into Tenon's Capsule +67550,Orbital Implant (implant outside muscle cone); Insertion +67560,Orbital Implant (implant outside muscle cone); Removal or Revision +67570,"Optic Nerve Decompression (eg, incision or fenestration of optic nerve sheath)" +67599,"Unlisted Procedure, Orbit" +68811,"Probing of Nasolacrimal Duct, w/ or w/Out Irrigation; Requiring General Anesthesia" +68815,"Probing of Nasolacrimal Duct, w/ or w/Out Irrigation; w/Insertion of Tube or Stent" +68816,"Probing of Nasolacrimal Duct, w/ or w/Out Irrigation; w/Transluminal Balloon Catheter Dilation" +68840,"Probing of Lacrimal Canaliculi, w/ or w/Out Irrigation" +68850,Injection of Contrast Medium for Dacryocystography +68899,"Unlisted Procedure, Lacrimal System" +69000,"Drainage External Ear, Abscess or Hematoma; Simple" +69005,"Drainage External Ear, Abscess or Hematoma; Complicated" +69020,"Drainage External Auditory Canal, Abscess" +69090,Ear Piercing +69100,Biopsy External Ear +69105,Biopsy External Auditory Canal +69110,"Excision External Ear; Partial, Simple Repair" +69120,Excision External Ear; Complete Amputation +69140,"Excision Exostosis(es), External Auditory Canal" +69145,"Excision Soft Tissue Lesion, External Auditory Canal" +69150,Radical Excision External Auditory Canal Lesion; w/Out Neck Dissection +69155,Radical Excision External Auditory Canal Lesion; w/Neck Dissection +69200,Removal Foreign Body From External Auditory Canal; w/Out General Anesthesia +69205,Removal Foreign Body From External Auditory Canal; w/General Anesthesia +69209,"Removal impacted cerumen using irrigation/lavage, unilateral" +69210,Remove Impacted Ear Wax +69220,Debridement Mastoid Cavity Simple +69222,Debridement Mastoid Cavity Complex +69300,"Otoplasty, Protruding Ear, w/ or w/Out Size Reduction" +69310,"Reconstruction of External Auditory Canal (meatoplasty) (eg, for stenosis due to injury, infection)" +69320,"Reconstruction External Auditory Canal For Congenital Atresia, Single Stage" +69399,"Unlisted Procedure, External Ear" +69405,"Eustachian Tube Catheterization, Transtympanic" +69420,Myringotomy Including Aspiration and/or Eustachian Tube Inflation +69421,Myringotomy Including Aspiration and/or Eustachian Tube Inflation Requiring General Anesthesia +69424,Ventilating Tube Removal Requiring General Anesthesia +69433,"Tympanostomy (requiring insertion of ventilating tube), Local or Topical Anesthesia" +69436,"Tympanostomy (requiring insertion of ventilating tube), General Anesthesia" +69440,Middle Ear Exploration Through Postauricular or Ear Canal Incision +69450,"Tympanolysis, Transcanal" +69501,Transmastoid Antrotomy (simple mastoidectomy) +69502,Mastoidectomy; Complete +69505,Mastoidectomy; Modified Radical +69511,Mastoidectomy; Radical +69530,Petrous Apicectomy Including Radical Mastoidectomy +69535,"Resection Temporal Bone, External Approach" +69540,Excision Aural Polyp +69550,Excision Aural Glomus Tumor; Transcanal +69552,Excision Aural Glomus Tumor; Transmastoid +69554,Excision Aural Glomus Tumor; Extended (extratemporal) +69601,Revision Mastoidectomy; Resulting in Complete Mastoidectomy +3281F,"Hemoglobin level less than 11 g/dL (CKD, ESRD)" +3284F,Intraocular pressure (IOP) reduced by a value of greater than or equal to 15% from the pre-intervention level (EC) +3285F,Intraocular pressure (IOP) reduced by a value less than 15% from the pre-intervention level (EC) +3288F,Falls risk assessment documented (GER) +3290F,Patient is D (Rh) negative and unsensitized (Pre-Cr) +3291F,Patient is D (Rh) positive or sensitized (Pre-Cr) +3292F,HIV testing ordered or documented and reviewed during the first or second prenatal visit (Pre-Cr) +3293F,ABO and Rh blood typing documented as performed (Pre-Cr) +3294F,Group B Streptococcus (GBS) screening documented as performed during week 35-37 gestation (Pre-Cr) +3300F,American Joint Committee on Cancer (AJCC) stage documented and reviewed (ONC) +3301F,Cancer stage documented in medical record as metastatic and reviewed (ONC) +3315F,Estrogen receptor (ER) or progesterone receptor (PR) positive breast cancer (ONC) +3316F,Estrogen receptor (ER) and progesterone receptor (PR) negative breast cancer (ONC) +3317F,Pathology report confirming malignancy documented in the medical record and reviewed prior to the initiation of chemotherapy (ONC) +3318F,Pathology report confirming malignancy documented in the medical record and reviewed prior to the initiation of radiation therapy (ONC) +3319F,"1 of the following diagnostic imaging studies ordered: chest x-ray, CT, Ultrasound, MRI, PET, or nuclear medicine scans (ML)" +3320F,"None of the following diagnostic imaging studies ordered: chest X-ray, CT, Ultrasound, MRI, PET, or nuclear medicine scans (ML)" +3321F,"AJCC Cancer Stage 0 or IA Melanoma, documented (ML)" +3322F,Melanoma greater than AJCC Stage 0 or IA (ML) +3323F,"Clinical tumor, node and metastases (TNM) staging documented and reviewed prior to surgery (Lung/Esop Cx)" +3324F,"MRI or CT scan ordered, reviewed or requested (EPI)" +3325F,Preoperative assessment of functional or medical indication(s) for surgery prior to the cataract surgery with intraocular lens placement (must be performed within 12 months prior to cataract surgery) (EC) +3328F,Performance status documented and reviewed within 2 weeks prior to surgery (Lung/Esop Cx) +3330F,Imaging study ordered (BkP) +3331F,Imaging study not ordered (BkP) +3340F,"Mammogram assessment category of ""incomplete: need additional imaging evaluation"" documented (RAD)" +3341F,"Mammogram assessment category of ""negative,"" documented (RAD)" +3342F,"Mammogram assessment category of ""benign,"" documented (RAD)" +3343F,"Mammogram assessment category of ""probably benign,"" documented (RAD)" +3344F,"Mammogram assessment category of ""suspicious,"" documented (RAD)" +3345F,"Mammogram assessment category of ""highly suggestive of malignancy,"" documented (RAD)" +3350F,"Mammogram assessment category of ""known biopsy proven malignancy,"" documented (RAD)" +3351F,Negative screen for depressive symptoms as categorized by using a standardized depression screening/assessment tool (MDD) +3352F,No significant depressive symptoms as categorized by using a standardized depression assessment tool (MDD) +3353F,Mild to moderate depressive symptoms as categorized by using a standardized depression screening/assessment tool (MDD) +3354F,Clinically significant depressive symptoms as categorized by using a standardized depression screening/assessment tool (MDD) +3370F,AJCC Breast Cancer Stage 0 documented (ONC) +3372F,"AJCC Breast Cancer Stage I: T1mic, T1a or T1b (tumor size 1 cm to 2 cm) documented (ONC) +3376F,AJCC Breast Cancer Stage II documented (ONC) +3378F,AJCC Breast Cancer Stage III documented (ONC) +3380F,AJCC Breast Cancer Stage IV documented (ONC) +3382F,"AJCC colon cancer, Stage 0 documented (ONC)" +3384F,"AJCC colon cancer, Stage I documented (ONC)" +3386F,"AJCC colon cancer, Stage II documented (ONC)" +3388F,"AJCC colon cancer, Stage III documented (ONC)" +3390F,"AJCC colon cancer, Stage IV documented (ONC)" +3394F,Quantitative HER2 immunohistochemistry (IHC) evaluation of breast cancer consistent with the scoring system defined in the ASCO/CAP guidelines (PATH) +3395F,"Quantitative non-HER2 immunohistochemistry (IHC) evaluation of breast cancer (eg, testing for estrogen or progesterone receptors [ER/PR]) performed (PATH)" +3450F,"Dyspnea screened, no dyspnea or mild dyspnea (Pall Cr)" +3451F,"Dyspnea screened, moderate or severe dyspnea (Pall Cr)" +3452F,Dyspnea not screened (Pall Cr) +3455F,TB screening performed and results interpreted within six months prior to initiation of first-time biologic disease modifying anti-rheumatic drug therapy for RA (RA) +3470F,"Rheumatoid arthritis (RA) disease activity, low (RA)" +3471F,"Rheumatoid arthritis (RA) disease activity, moderate (RA)" +3472F,"Rheumatoid arthritis (RA) disease activity, high (RA)" +3475F,"Disease prognosis for rheumatoid arthritis assessed, poor prognosis documented (RA)" +3476F,"Disease prognosis for rheumatoid arthritis assessed, good prognosis documented (RA)" +3490F,History of AIDS-defining condition (HIV) +3491F,HIV indeterminate (infants of undetermined HIV status born of HIV-infected mothers) (HIV) +3492F,History of nadir CD4+ cell count <350 cells/mm3 (HIV) +3493F,No history of nadir CD4+ cell count <350 cells/mm3 and no history of AIDS-defining condition (HIV) +3494F,CD4+ cell count <200 cells/mm3 (HIV) +3495F,CD4+ cell count 200 - 499 cells/mm3 (HIV) +3496F,CD4+ cell count >/=500 cells/mm3 (HIV) +3497F,CD4+ cell percentage <15% (HIV) +3498F,CD4+ cell percentage >/=15% (HIV) +3500F,CD4+ cell count or CD4+ cell percentage documented as performed (HIV) +3502F,HIV RNA viral load below limits of quantification (HIV) +3503F,HIV RNA viral load not below limits of quantification (HIV) +4271F,Patient receiving potent antiretroviral therapy for less than 6 months or not receiving potent antiretroviral therapy (HIV) +4274F,Influenza immunization administered or previously received (HIV) (P-ESRD) +4276F,Potent antiretroviral therapy prescribed (HIV) +4279F,Pneumocystis jiroveci pneumonia prophylaxis prescribed (HIV) +4280F,Pneumocystis jiroveci pneumonia prophylaxis prescribed within 3 months of low CD4+ cell count or percentage (HIV) +4290F,Patient screened for injection drug use (HIV) +4541F,"Patient offered treatment for pseudobulbar affect, sialorrhea, or ALS-related symptoms (ALS)" +4550F,Options for noninvasive respiratory support discussed with patient (ALS) +4551F,Nutritional support offered (ALS) +4552F,Patient offered referral to a speech language pathologist (ALS) +4553F,Patient offered assistance in planning for end of life issues (ALS) +4554F,Patient received inhalational anesthetic agent (Peri2) +4555F,Patient did not receive inhalational anesthetic agent (Peri2) +4556F,Patient exhibits 3 or more risk factors for post-operative nausea and vomiting (Peri2) +4557F,Patient does not exhibit 3 or more risk factors for post-operative nausea and vomiting (Peri2) +4558F,Patient received at least 2 prophylactic pharmacologic anti-emetic agents of different classes preoperatively and intraoperatively (Peri2) +4559F,At least 1 body temperature measurement equal to or greater than 35.5 degrees Celsius (or 95.9 degrees Fahrenheit) recorded within the 30 minutes immediately before or the 15 minutes immediately after anesthesia end time (Peri2) +4560F,Anesthesia technique did not involve general or neuraxial anesthesia (Peri2) +4561F,Patient has a coronary artery stent (Peri2) +4562F,Patient does not have a coronary artery stent (Peri2) +4563F,Patient received aspirin within 24 hours prior to anesthesia start time (Peri2) +5005F,Patient counseled on self-examination for new or changing moles (ML) +5010F,Findings of dilated macular or fundus exam communicated to the physician or other qualified health care professional managing the diabetes care (EC) +5015F,Documentation of communication that a fracture occurred and that the patient was or should be tested or treated for osteoporosis (OP) +5020F,Treatment summary report communicated to physician(s) or other qualified health care professional(s) managing continuing care and to the patient within 1 month of completing treatment (ONC) +5050F,Treatment plan communicated to provider(s) managing continuing care within 1 month of diagnosis (ML) +5060F,Findings from diagnostic mammogram communicated to practice managing patient's on-going care within 3 business days of exam interpretation (RAD) +5062F,Findings from diagnostic mammogram communicated to the patient within 5 days of exam interpretation (RAD) +5100F,Potential risk for fracture communicated to the referring physician or other qualified health care professional within 24 hours of completion of the imaging study (NUC_MED) +5200F,Consideration of referral for a neurological evaluation of appropriateness for surgical therapy for intractable epilepsy within the past 3 years (EPI) +5250F,Asthma discharge plan provided to patient (Asthma) +6005F,"Rationale (eg, severity of illness and safety) for level of care (eg, home, hospital) documented (CAP)" +6010F,"Dysphagia screening conducted prior to order for or receipt of any foods, fluids, or medication by mouth (STR)" +6015F,"Patient receiving or eligible to receive foods, fluids, or medication by mouth (STR)" +6020F,NPO (nothing by mouth) ordered (STR) +6030F,"All elements of maximal sterile barrier technique followed including: cap and mask and sterile gown and sterile gloves and a large sterile sheet and hand hygiene and 2% chlorhexidine for cutaneous antisepsis (or acceptable alternative antiseptics, per current guideline) (CRIT)" +6040F,"Use of appropriate radiation dose reduction devices OR manual techniques for appropriate moderation of exposure, documented (RAD)" +6045F,"Radiation exposure or exposure time in final report for procedure using fluoroscopy, documented (RAD)" +6070F,Patient queried and counseled about anti-epileptic drug (AED) side effects (EPI) +6080F,"Patient (or caregiver) queried about falls (Prkns, DSP)" +6090F,Patient (or caregiver) counseled about safety issues appropriate to patient's stage of disease (Prkns) +6100F,"Timeout to verify correct patient, correct site, and correct procedure, documented (PATH)" +6101F,Safety counseling for dementia provided (DEM) +0071T,"Focused ultrasound ablation of uterine leiomyomata, including MR guidance; total leiomyomata volume less than 200 cc of tissue" +0072T,"Focused ultrasound ablation of uterine leiomyomata, including MR guidance; total leiomyomata volume greater or equal to 200 cc of tissue" +0075T,"Transcatheter placement of extracranial vertebral artery stent(s), including radiologic supervision and interpretation, open or percutaneous; initial vessel" +0076T,"Transcatheter placement of extracranial vertebral artery stent(s), including radiologic supervision and interpretation, open or percutaneous; each additional vessel (List separately in addition to code for primary procedure)" +0085T,Breath test for heart transplant rejection +0095T,"Removal of total disc arthroplasty (artificial disc), anterior approach, each additional interspace, cervical (List separately in addition to code for primary procedure)" +0098T,"Revision including replacement of total disc arthroplasty (artificial disc), anterior approach, each additional interspace, cervical (List separately in addition to code for primary procedure)" +0099T,Implantation of intrastromal corneal ring segments +0100T,"Placement of a subconjunctival retinal prosthesis receiver and pulse generator, and implantation of intra-ocular retinal electrode array, with vitrectomy" +0101T,"Extracorporeal shock wave involving musculoskeletal system, not otherwise specified, high energy" +0102T,"Extracorporeal shock wave, high energy, performed by a physician, requiring anesthesia other than local, involving lateral humeral epicondyle" +0103T,"Holotranscobalamin, quantitative" +0106T,"Quantitative sensory testing (QST), testing and interpretation per extremity; using touch pressure stimuli to assess large diameter sensation" +0107T,"Quantitative sensory testing (QST), testing and interpretation per extremity; using vibration stimuli to assess large diameter fiber sensation" +0184T,"Excision of rectal tumor, transanal endoscopic microsurgical approach (ie, TEMS), including muscularis propria (ie, full thickness)" +0188T,"Remote real-time interactive video-conferenced critical care, evaluation and management of the critically ill or critically injured patient; first 30-74 minutes" +0189T,"Remote real-time interactive video-conferenced critical care, evaluation and management of the critically ill or critically injured patient; each additional 30 minutes (List separately in addition to code for primary service)" +0190T,Placement of intraocular radiation source applicator (List separately in addition to primary procedure) +0191T,"Insertion of anterior segment aqueous drainage device, without extraocular reservoir, internal approach, into the trabecular meshwork; initial insertion" +0195T,"Arthrodesis, pre-sacral interbody technique, disc space preparation, discectomy, without instrumentation, with image guidance, includes bone graft when performed; L5-S1 interspace" +0196T,"Arthrodesis, pre-sacral interbody technique, disc space preparation, discectomy, without instrumentation, with image guidance, includes bone graft when performed; L4-L5 interspace (List separately in addition to code for primary procedure)" +0198T,"Measurement of ocular blood flow by repetitive intraocular pressure sampling, with interpretation and report" +0200T,"Percutaneous sacral augmentation (sacroplasty), unilateral injection(s), including the use of a balloon or mechanical device, when used, 1 or more needles, includes imaging guidance and bone biopsy, when performed" +0201T,"Percutaneous sacral augmentation (sacroplasty), bilateral injections, including the use of a balloon or mechanical device, when used, 2 or more needles, includes imaging guidance and bone biopsy, when performed" +0202T,"Posterior vertebral joint(s) arthroplasty (eg, facet joint[s] replacement), including facetectomy, laminectomy, foraminotomy, and vertebral column fixation, injection of bone cement, when performed, including fluoroscopy, single level, lumbar spine" +0205T,"Intravascular catheter-based coronary vessel or graft spectroscopy (eg, infrared) during diagnostic evaluation and/or therapeutic intervention including imaging supervision, interpretation, and report, each vessel (List separately in addition to code for primary procedure)" +0206T,"Computerized database analysis of multiple cycles of digitized cardiac electrical data from two or more ECG leads, including transmission to a remote center, application of multiple nonlinear mathematical transformations, with coronary artery obstruction severity assessment" +0207T,"Evacuation of meibomian glands, automated, using heat and intermittent pressure, unilateral" +0208T,"Pure tone audiometry (threshold), automated; air only" +0209T,"Pure tone audiometry (threshold), automated; air and bone" +0210T,"Speech audiometry threshold, automated;" +0211T,"Speech audiometry threshold, automated; with speech recognition" +0212T,"Comprehensive audiometry threshold evaluation and speech recognition (0209T, 0211T combined), automated" +0213T,"Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, cervical or thoracic; single level" +0214T,"Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, cervical or thoracic; second level (List separately in addition to code for primary procedure)" +0215T,"Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, cervical or thoracic; third and any additional level(s) (List separately in addition to code for primary procedure)" +0216T,"Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, lumbar or sacral; single level" +0217T,"Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, lumbar or sacral; second level (List separately in addition to code for primary procedure)" +0218T,"Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, lumbar or sacral; third and any additional level(s) (List separately in addition to code for primary procedure)" +0219T,"Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; cervical" +0220T,"Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; thoracic" +0221T,"Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; lumbar" +0222T,"Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; each additional vertebral segment (List separately in addition to code for primary procedure)" +0223T,"Acoustic cardiography, including automated analysis of combined acoustic and electrical intervals; single, with interpretation and report" +0224T,"Acoustic cardiography, including automated analysis of combined acoustic and electrical intervals; multiple, including serial trended analysis and limited reprogramming of device parameter, AV or VV delays only, with interpretation and report" +0225T,"Acoustic cardiography, including automated analysis of combined acoustic and electrical intervals; multiple, including serial trended analysis and limited reprogramming of device parameter, AV and VV delays, with interpretation and report" +0228T,"Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, cervical or thoracic; single level" +0229T,"Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, cervical or thoracic; each additional level (List separately in addition to code for primary procedure)" +0230T,"Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, lumbar or sacral; single level" +0231T,"Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, lumbar or sacral; each additional level (List separately in addition to code for primary procedure)" +0232T,"Injection(s), platelet rich plasma, any site, including image guidance, harvesting and preparation when performed" +0233T,Skin advanced glycation endproducts (AGE) measurement by multi-wavelength fluorescent spectroscopy +0234T,"Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; renal artery" +0235T,"Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; visceral artery (except renal), each vessel" +0236T,"Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; abdominal aorta" +0237T,"Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; brachiocephalic trunk and branches, each vessel" +0238T,"Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; iliac artery, each vessel" +0240T,Esophageal motility (manometric study of the esophagus and/or gastroesophageal junction) study with interpretation and report; with high resolution esophageal pressure topography +0241T,"Esophageal motility (manometric study of the esophagus and/or gastroesophageal junction) study with interpretation and report; with stimulation or perfusion during high resolution esophageal pressure topography study (eg, stimulant, acid or alkali perfusion) (List separately in addition to code for primary procedure)" +0243T,"Intermittent measurement of wheeze rate for bronchodilator or bronchial-challenge diagnostic evaluation(s), with interpretation and report" +0244T,"Continuous measurement of wheeze rate during treatment assessment or during sleep for documentation of nocturnal wheeze and cough for diagnostic evaluation 3 to 24 hours, with interpretation and report" +0249T,"Ligation, hemorrhoidal vascular bundle(s), including ultrasound guidance" +0253T,"Insertion of anterior segment aqueous drainage device, without extraocular reservoir, internal approach, into the suprachoroidal space" +0254T,"Endovascular repair of iliac artery bifurcation (eg, aneurysm, pseudoaneurysm, arteriovenous malformation, trauma) using bifurcated endoprosthesis from the common iliac artery into both the external and internal iliac artery, unilateral;" +0255T,"Endovascular repair of iliac artery bifurcation (eg, aneurysm, pseudoaneurysm, arteriovenous malformation, trauma) using bifurcated endoprosthesis from the common iliac artery into both the external and internal iliac artery, unilateral; radiological supervision and interpretation" +0262T,"Implantation of catheter-delivered prosthetic pulmonary valve, endovascular approach" +0263T,"Intramuscular autologous bone marrow cell therapy, with preparation of harvested cells, multiple injections, one leg, including ultrasound guidance, if performed; complete procedure including unilateral or bilateral bone marrow harvest" +0264T,"Intramuscular autologous bone marrow cell therapy, with preparation of harvested cells, multiple injections, one leg, including ultrasound guidance, if performed; complete procedure excluding bone marrow harvest" +0265T,"Intramuscular autologous bone marrow cell therapy, with preparation of harvested cells, multiple injections, one leg, including ultrasound guidance, if performed; unilateral or bilateral bone marrow harvest only for intramuscular autologous bone marrow cell therapy" +0266T,"Implantation or replacement of carotid sinus baroreflex activation device; total system (includes generator placement, unilateral or bilateral lead placement, intra-operative interrogation, programming, and repositioning, when performed)" +0267T,"Implantation or replacement of carotid sinus baroreflex activation device; lead only, unilateral (includes intra-operative interrogation, programming, and repositioning, when performed)" +0268T,"Implantation or replacement of carotid sinus baroreflex activation device; pulse generator only (includes intra-operative interrogation, programming, and repositioning, when performed)" +0269T,"Revision or removal of carotid sinus baroreflex activation device; total system (includes generator placement, unilateral or bilateral lead placement, intra-operative interrogation, programming, and repositioning, when performed)" +0270T,"Revision or removal of carotid sinus baroreflex activation device; lead only, unilateral (includes intra-operative interrogation, programming, and repositioning, when performed)" +0271T,"Revision or removal of carotid sinus baroreflex activation device; pulse generator only (includes intra-operative interrogation, programming, and repositioning, when performed)" +0272T,"Interrogation device evaluation (in person), carotid sinus baroreflex activation system, including telemetric iterative communication with the implantable device to monitor device diagnostics and programmed therapy values, with interpretation and report (eg, battery status, lead impedance, pulse amplitude, pulse width, therapy frequency, pathway mode, burst mode, therapy start/stop times each day);" +0273T,"Interrogation device evaluation (in person), carotid sinus baroreflex activation system, including telemetric iterative communication with the implantable device to monitor device diagnostics and programmed therapy values, with interpretation and report (eg, battery status, lead impedance, pulse amplitude, pulse width, therapy frequency, pathway mode, burst mode, therapy start/stop times each day); with programming" +0274T,"Percutaneous laminotomy/laminectomy (interlaminar approach) for decompression of neural elements, (with or without ligamentous resection, discectomy, facetectomy and/or foraminotomy), any method, under indirect image guidance (eg, fluoroscopic, CT), with or without the use of an endoscope, single or multiple levels, unilateral or bilateral; cervical or thoracic" +0275T,"Percutaneous laminotomy/laminectomy (interlaminar approach) for decompression of neural elements, (with or without ligamentous resection, discectomy, facetectomy and/or foraminotomy), any method, under indirect image guidance (eg, fluoroscopic, CT), with or without the use of an endoscope, single or multiple levels, unilateral or bilateral; lumbar" +0278T,"Transcutaneous electrical modulation pain reprocessing (eg, scrambler therapy), each treatment session (includes placement of electrodes)" +0281T,"Percutaneous transcatheter closure of the left atrial appendage with implant, including fluoroscopy, transseptal puncture, catheter placement(s), left atrial angiography, left atrial appendage angiography, radiological supervision and interpretation" +0308T,Insertion of ocular telescope prosthesis including removal of crystalline lens +0309T,"Arthrodesis, pre-sacral interbody technique, including disc space preparation, discectomy, with posterior instrumentation, with image guidance, includes bone graft, when performed, lumbar, L4-L5 interspace (List separately in addition to code for primary procedure)" +0310T,"Motor function mapping using non-invasive navigated transcranial magnetic stimulation (nTMS) for therapeutic treatment planning, upper and lower extremity" +0311T,Non-invasive calculation and analysis of central arterial pressure waveforms with interpretation and report +0312T,"Vagus nerve blocking therapy (morbid obesity); laparoscopic implantation of neurostimulator electrode array, anterior and posterior vagal trunks adjacent to esophagogastric junction (EGJ), with implantation of pulse generator, includes programming" +0313T,"Vagus nerve blocking therapy (morbid obesity); laparoscopic revision or replacement of vagal trunk neurostimulator electrode array, including connection to existing pulse generator" +0314T,Vagus nerve blocking therapy (morbid obesity); laparoscopic removal of vagal trunk neurostimulator electrode array and pulse generator +0315T,Vagus nerve blocking therapy (morbid obesity); removal of pulse generator +0316T,Vagus nerve blocking therapy (morbid obesity); replacement of pulse generator +0317T,"Vagus nerve blocking therapy (morbid obesity); neurostimulator pulse generator electronic analysis, includes reprogramming when performed" +0329T,"Monitoring of intraocular pressure for 24 hours or longer, unilateral or bilateral, with interpretation and report" +0330T,"Tear film imaging, unilateral or bilateral, with interpretation and report" +0331T,"Myocardial sympathetic innervation imaging, planar qualitative and quantitative assessment;" +0332T,"Myocardial sympathetic innervation imaging, planar qualitative and quantitative assessment; with tomographic SPECT" +0333T,"Visual evoked potential, screening of visual acuity, automated" +0335T,Extra-osseous subtalar joint implant for talotarsal stabilization +0336T,"Laparoscopy, surgical, ablation of uterine fibroid(s), including intraoperative ultrasound guidance and monitoring, radiofrequency" +0337T,"Endothelial function assessment, using peripheral vascular response to reactive hyperemia, non-invasive (eg, brachial artery ultrasound, peripheral artery tonometry), unilateral or bilateral" +0338T,"Transcatheter renal sympathetic denervation, percutaneous approach including arterial puncture, selective catheter placement(s) renal artery(ies), fluoroscopy, contrast injection(s), intraprocedural roadmapping and radiological supervision and interpretation, including pressure gradient measurements, flush aortogram and diagnostic renal angiography when performed; unilateral" +0339T,"Transcatheter renal sympathetic denervation, percutaneous approach including arterial puncture, selective catheter placement(s) renal artery(ies), fluoroscopy, contrast injection(s), intraprocedural roadmapping and radiological supervision and interpretation, including pressure gradient measurements, flush aortogram and diagnostic renal angiography when performed; bilateral" +0340T,"Ablation, pulmonary tumor(s), including pleura or chest wall when involved by tumor extension, percutaneous, cryoablation, unilateral, includes imaging guidance" +0341T,"Quantitative pupillometry with interpretation and report, unilateral or bilateral" +0342T,Therapeutic apheresis with selective HDL delipidation and plasma reinfusion +0345T,Transcatheter mitral valve repair percutaneous approach via the coronary sinus +0346T,"Ultrasound, elastography (List separately in addition to code for primary procedure)" +0347T,Placement of interstitial device(s) in bone for radiostereometric analysis (RSA) +0348T,"Radiologic examination, radiostereometric analysis (RSA); spine, (includes cervical, thoracic and lumbosacral, when performed)" +0349T,"Radiologic examination, radiostereometric analysis (RSA); upper extremity(ies), (includes shoulder, elbow, and wrist, when performed)" +0350T,"Radiologic examination, radiostereometric analysis (RSA); lower extremity(ies), (includes hip, proximal femur, knee, and ankle, when performed)" +0351T,"Optical coherence tomography of breast or axillary lymph node, excised tissue, each specimen; real-time intraoperative" +0352T,"Optical coherence tomography of breast or axillary lymph node, excised tissue, each specimen; interpretation and report, real-time or referred" +0353T,"Optical coherence tomography of breast, surgical cavity; real-time intraoperative" +0354T,"Optical coherence tomography of breast, surgical cavity; interpretation and report, real-time or referred" +0355T,"Gastrointestinal tract imaging, intraluminal (eg, capsule endoscopy), colon, with interpretation and report" +0356T,"Insertion of drug-eluting implant (including punctal dilation and implant removal when performed) into lacrimal canaliculus, each" +0357T,Cryopreservation; immature oocyte(s) +0358T,"Bioelectrical impedance analysis whole body composition assessment, supine position, with interpretation and report" +0359T,"Behavior identification assessment, by the physician or other qualified health care professional, face-to-face with patient and caregiver(s), includes administration of standardized and non-standardized tests, detailed behavioral history, patient observation and caregiver interview, interpretation of test results, discussion of findings and recommendations with the primary guardian(s)/caregiver(s), and preparation of report" +0360T,"Observational behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by one technician; first 30 minutes of technician time, face-to-face with the patient" +0361T,"Observational behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by one technician; each additional 30 minutes of technician time, face-to-face with the patient (List separately in addition to code for primary service)" +0362T,"Exposure behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by physician or other qualified health care professional with the assistance of one or more technicians; first 30 minutes of technician(s) time, face-to-face with the patient" +0363T,"Exposure behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by physician or other qualified health care professional with the assistance of one or more technicians; each additional 30 minutes of technician(s) time, face-to-face with the patient (List separately in addition to code for primary procedure)" +0364T,"Adaptive behavior treatment by protocol, administered by technician, face-to-face with one patient; first 30 minutes of technician time" +0365T,"Adaptive behavior treatment by protocol, administered by technician, face-to-face with one patient; each additional 30 minutes of technician time (List separately in addition to code for primary procedure)" +0366T,"Group adaptive behavior treatment by protocol, administered by technician, face-to-face with two or more patients; first 30 minutes of technician time" +73552,"X-Ray Femur, 2 Views" +74018,"Radiologic Examination, abdomen" +77067,"Screening Mammography, Bilateral (2-view study of each breast), w/Computer-Aided Detection (CAD) When Performed" +80306,"Drug test(s), presumptive, any number of drug classes, any number of devices or procedures (eg, immunoassay); read by instrument assisted direct optical observation (eg, dipsticks, cups, cards, cartridges), includes sample validation when performed, per date of service" +87620,"HPV Detection by DNA or RNA, Direct Probe Technique" +87621,"HPV Detection by DNA or RNA, Amplified Probe Technique" +87622,HPV Quantification +90470,"H1N1 Immunization Administration (intramuscular, intranasal), w/Counseling When Performed" +90620," Meningococcal Recombinant Protein & Outer Membrane Vesicle Vaccine, Serogroup B (MenB), 2 Dose Schedule, for Intramuscular Use" +90621,"Meningococcal Recombinant Lipoprotein Vaccine, Serogroup B (MenB), 3 Dose Schedule, for Intramuscular Use" +90697,"Diphtheria, Tetanus Toxoids, Acellular Pertussis Vaccine, Inactivated Poliovirus Vaccine, Haemophilus Influenzae Type B PRP-OMP Conjugate Vaccine, & Hepatitis B Vaccine (DTaP-IPV-Hib-HepB), for Intramuscular Use" +99177,"Instrument-Based Ocular Screening (eg, photoscreening, automated-refraction), Bilateral; w/On-Site Analysis" +0403T,"Preventive Behavior Change, Intensive Program of Prevention of Diabetes Using a Standardized Diabetes Prevention Program Curriculum, Provided to Individuals in a Group Setting, Minimum 60 min, per Day" +A0021,"Ambulance Service, Outside State Per Mile, Transport (medicaid only)" +A0080,"Non-Emergency Transportation, Per Mile -Vehicle Provided by Volunteer (individual or organization), w/No Vested Interest" +A0090,"Non-Emergency Transportation, Per Mile -Vehicle Provided by Individual (family member, self, neighbor) w/Vested Interest" +A0100,Non-Emergency Transportation; Taxi +A0110,"Non-Emergency Transportation & Bus, Intra/Inter State Carrier" +A0120,"Non-Emergency Transportation: Mini-Bus, Mountain Area Transports/Other Transportation Systems" +A0130,Non-Emergency Transportation: Wheel-Chair Van +A0140,Non-Emergency Transportation & Air Travel (private or commercial) Intra/Inter State +A0160,Non-Emergency Transportation: Per Mile -Case Worker/Social Worker +A0170,"Transportation Ancillary: Parking Fees, Tolls, Other" +A0420,Ambulance Waiting 1/2 hr +A0422,Ambulance 02 Life Sustaining +A0424,Extra Ambulance Attendant +A0425,Ground Mileage +A0426,Als 1 +A0427,"Ambulance Service, Advanced Life Support, Emergency Transport, Level 1 (als1-emergency)" +A0428,"Basic Life Support, Non-Emergency Transport, Ambulance" +A0429,"Ambulance Service, Basic Life Support, Emergency Transport (bls-emergency)" +A0430,"Ambulance Service, Conventional Air Services, Transport, One Way (fixed wing)" +A0431,"Ambulance Service, Conventional Air Services, Transport, One Way (rotary wing)" +A0432,Pi Volunteer Ambulance Company +A0433,"Advanced Life Support, Level 2 (als 2)" +A0434,Specialty Care Transport (sct) +A0435,"Fixed Wing Air Mileage, per Statute Mile" +A0436,"Rotary Wing Air Mileage, per Statute Mile" +A0800,Ambulance Transportation 7pm-7am +A0888,Non Covered Ambulance Mileage +A0998,"Ambulance Response/Treatment, No Transport" +A0999,Unlisted Ambulance Service +A4206,1cc Sterile Syringe & Needle +A4207,2cc Sterile Syringe & Needle +A4208,3cc Sterile Syringe & Needle +A4209,5+cc Sterile Syringe & Needle +A4210,Non-Needle Injection Device +A4211,Supplies for Self-Administered Injections +A4212,Non Coring Needle or Stylet +A4213,20+cc Sterile Syringe Only +A4215,Sterile Needle +A4216,"Sterile Water/Saline, 10 ml" +A4217,"Sterile Water/Saline, 500 ml" +A4258,Spring Powered Lancet Device Each +A4259,Lancets Per Box of 100 +A4260,Levonorgestrel Implant +A4261,Cervical Cap Contraceptive +A4262,Temporary Tear Duct Plug +A4263,Permanent Tear Duct Plug +A4264,Intratubal Occlusion Device +A4265,Paraffin +A4266,Diaphragm +A4267,Male Condom +A4268,Female Condom +A4269,Spermicide +A4270,Disposable Endoscope Sheath +A4280,Breast Prosthesis Adhesive Attachment +A4281,Replacement Breast Pump Tube +A4282,Replacement Breast Pump Adapter +A4283,Replacement Breast Pump Cap +A4284,Replacement Breast Pump Shield +A4285,Replacement Breast Pump Bottle +A4286,Replacement Breastpump Lock Ring +A4290,Sacral Nerve Stimulation Test Lead +A4300,Catheter Implantable Vasc Access Portal +A4301,Implantable Access Syst Perc +A4305,Drug Delivery System >=50 ml +A4306,Drug Delivery System <=50 ml +A4310,Insertion Tray w/Out Bag & Catheter +A4311,Catheter w/Out Bag 2-Way Latex +A4312,Catheter w/Out Bag 2-Way Silicone +A4313,Catheter w/Bag 3-Way +A4314,Catheter w/Drainage 2-Way Latex +A4315,Catheter w/Drainage 2-Way Silicone +A4316,Catheter w/Drainage 3-Way +A4320,Irrigation Tray +A4321,Catheter Therapeutic Irrigation Agent +A4322,Irrigation Syringe +A4324,Male External Catheter w/Adhesive Coating +A4325,Male External Catheter w/Adhesive Strip +A4326,Male External Catheter w/Integral Collection Chamber +A4327,Female Urinary Collection Device Cup +A4328,Female Urinary Collection Device Pouch +A4330,Stool Collection Pouch +A4331,Extension Drainage Tubing +A4332,Lube Sterile Packet +A4333,Urinary Catheter Anchoring Device +A4334,Urinary Catheter Leg Strap +A4335,Incontinence Supply +A4336,Urethral Insert +A4337,Incontinent Rectal Insert +A4338,Indwelling Catheter Latex +A4340,Indwelling Catheter Special +A4344,Catheter Indwelling Foley 2 Way Silicone +A4346,"Indwelling Catheter; Foley Type, Three Way for Continuous Irrigation, Each" +A4347,"Male External Catheter w/ or w/Out Adhesive, w/ & w/Out Anti-Reflux" +A4348,Male External Catheter Extended Wear +A4349,Disposable Male External Catheter +A4351,Straight Tip Urine Catheter +A4352,Coude Tip Urinary Catheter +A4353,Intermittent Urinary Catheter +A4354,Catheter Insertion Tray w/Bag w/Out Catheter +A4355,Bladder Irrigation Tubing +A4356,External Urethral Clamp or Compression Device +A4357,Bedside Drainage Bag +A4358,"Urinary Drainage Bag, Leg or Abdomen" +A4359,Urinary Suspensory w/Out Leg Bag +A4360,Disposable External Urethral Device w/Pad/Pouch +A4361,Ostomy Face Plate +A4362,Solid Skin Barrier 4x4 +A4363,"Ostomy Clamp, Replacement" +A4364,"Adhesive, Liquid or Equal, Per oz" +A4365,Adhesive Remover Wipes +A4366,Ostomy Vent + + + +A4390,"Ostomy Drainable Pouch w/Extended Wear Barrier, w/Convexity" +A4391,Ostomy Urinary Pouch w/Extended Wear Barrier Attached +A4392,"Ostomy Urinary Pouch w/Attached Wear Barrier, w/Built-In Convexity" +A4393,Ostomy Urinary Pouch w/Extended Barrier Convexity +A4394,"Ostomy Deodorant for Pouch, Per Liquid Ounce" +A4395,"Ostomy Solid Deodorant for Pouch, Per Tablet" +A4396,Ostomy Peristomal Hernia Support Belt +A4397,Irrigation Supply Sleeve +A4398,Ostomy Irrigation Bag +A4399,Ostomy Irrigation Cone/Catheter +A4400,Ostomy Irrigation Set +A4402,Lubricant Per Ounce +A4404,Ostomy Ring +A4405,"Ostomy Skin Barrier, Non-Pectin Based Paste" +A4406,"Ostomy Skin Barrier, Pectin Based Paste" +A4407,"Ostomy Skin Barrier w/Flange, Extended Wear, w/Built-In Convexity, <=4x4""" +A4408,"Ostomy Skin Barrier w/Flange, Extended Wear, w/Built-In Convexity, >4x4""" +A4409,"Ostomy Skin Barrier w/Flange, Extended Wear, w/Out Built-In Convexity, <=4x4""" +A4410,"Ostomy Skin Barrier w/Flange, Extended Wear, w/Out Built-In Convexity, >4x4""" +A4411,"Ostomy Skin Barrier, Solid, Extended Wear w/Built-In Convexity =4x4""" +A4412,"Ostomy Drainable Pouch, High Output, w/Out Filter" +A4413,"Ostomy Drainable Pouch, High Output, w/Filter" +A4414,"Ostomy Skin Barrier w/Flange, w/Out Built-In Convexity<=4x4""" +A4415,"Ostomy Skin Barrier w/Flange, w/Out Built-In Convexity >4x4""" +A4416,"Ostomy Pouch, Closed, w/Barrier w/Filter" +A4417,"Ostomy Pouch, Closed, w/Barrier, w/Built-In Convexity, w/Filter" +A4418,"Ostomy Pouch, closed w/Out Barrier, w/Filter" +A4419,"Ostomy Pouch, Closed, for Barrier w/Non-Locking Flange, w/Filter" +A4420,"Ostomy Pouch, Closed, for Barrier w/Locking Flange" +A4421,Ostomy Miscellaneous Supply +A4422,"Ostomy Pouch, Absorbent Material" +A4423,"Ostomy Pouch, Closed, for Barrier w/Locking Flange, w/Filter" +A4424,"Ostomy Drainable Pouch, w/Barrier, w/Filter" +A4425,"Ostomy Drainable Pouch for Barrier w/Non-Locking Flange, w/Filter" +A4426,Ostomy Drainable Pouch for Barrier w/Locking Flange +A4427,Ostomy Drainable Pouch for Barrier w/Locking Flange w/Filter +A4428,"Ostomy Urinary Pouch w/Extended Wear Barrier, w/Faucet, w/Valve" +A4429,"Ostomy Urinary Pouch w/Barrier, w/Built-In Convexity, w/Faucet, w/Valve" +A4430,"Ostomy Urinary Pouch w/Extended Wear Barrier, w/Built-In Convexity, w/Faucet, w/Valve" +A4431,"Ostomy Urinary Pouch w/Barrier, w/Faucet, w/Valve" +A4432,"Ostomy Urinary Pouch for Barrier w/Non-Locking Flange, w/Faucet, w/Valve" +A4433,Ostomy Urinary Pouch for Barrier w/Locking Flange +A4434,"Ostomy Urinary Pouch for Barrier w/Locking Flange, w/Faucet, w/Valve" +A4435,"Ostomy Drainable Pouch, High Output, w/Extended Wear Barrier" +A4529,"Child Diaper, Small/Medium" +A4530,"Child Diaper, Large" +A4531,"Child Brief, Small/Medium" +A4532,"Child Brief, Large" +A4533,Youth Diaper +A4534,Youth Brief +A4535,Disposable Liner/Shield for Incontinence +A4536,"Protective Underwear, Washable, Any Size" +A4537,"Under Pad Reusable, Any Size" +A4538,Reusable Diaper from Diaper Service +A4550,Surgical Trays +A4554,Disposable Underpads +A4555,"Electrode/Transducer w/Electrical Stimulation Device for Cancer Treatment, Replacement Only" +A4556,Electrodes Per Pair +A4557,Lead Wires Per Pair +A4558,Conductive Gel or Paste Per oz +A4559,Coupling Gel or Paste Per oz +A4561,"Pessary Rubber, Any Type" +A4562,"Pessary, Non Rubber, Any Type" +A4565,Slings +A4566,"Shoulder Sling or Vest Design, Abduction Restrainer, w/ or w/out Swathe Control, Prefabricated, w/Fitting & Adjustment" +A4570,Splint +A4575,"Hyperbaric o2 Chamber, Disposable" +A4580,Cast Supplies +A4590,Special Casting Material +A4595,"Electrical Stimulator Supplies, 2 Lead" +A4600,"Sleeve, Intermittent Limb Compression Device, Replacement" +A4601,"Lithium ion Battery, Rechargeable, Non-Prosthetic Use, Replacement" +A4602,"Replace Lithium Battery 1.5v, for External Infusion Pump" +A4604,Tubing w/Heating Element for Use w/Positive Airway Pressure Device + + + +A4633,Replacement Bulb for Ultraviolet Light Therapy System +A4634,"Replacement Bulb, Tabletop Therapy Light Box" +A4635,Replacement Underarm Crutch Pad +A4636,"Replacement Handgrip for Cane, Crutch, or Walker" +A4637,"Replacement Tip, Cane, Crutch, Walker" +A4638,Replacement Battery for Patient Ear Pulse Generator +A4639,Replacement Pad for Infrared Heating Pad System +A4640,Replacement Pad for Patient Alternating Pressure Pad +A4641,"Radiopharmaceutical, Diagnosis, Not Classified" +A4642,"Indium in-111 Satumomab Pendetide, Diagnostic, Per Study Dose, up to 6 Millicuries" +A4643,High Dose Contrast MRI +A4644,Contrast 100-199 MGs Iodine +A4645,Contrast 200-299 MGs Iodine +A4646,Contrast 300-399 MGs Iodine +A4647,"Paramagnetic Contrast Material, Gadolinium" +A4648,Implantable Tissue Marker +A4649,Surgical Supply; Miscellaneous +A4714,"Treated Water (deionized, distilled, or reverse osmosis) for Peritoneal Dialysis, per Gallon" +A4719,"""y set"" Tubing for Peritoneal Dialysis" +A4720,"Dialysate Solution, Any Concentration of Dextrose, Fluid Volume Greater than 249cc, But Less Than or Equal to 999cc, for Peritoneal Dialysis" +A6447,"Conforming Bandage, Non-Elastic, Knitted/Woven, Sterile, Width >=5""/yd" +A6448,"Light Compression Bandage, Elastic, Knitted/Woven, Width<3""/yd" +A6449,"Light Compression Bandage, Elastic, Knitted/Woven, Width>=3"" <5""/yd" +A6450,"Light Compression Bandage, Elastic, Knitted/Woven, Width>=5""/yd" +A6451,"Moderate Compression Bandage, Elastic, Knitted/Woven, 1.25-1.34 Resistance, Width>=3""<5""/yd" +A6452,"High Compression Bandage, Elastic, Knitted/Woven, 1.35 Resistance, Width>=3""<5""yd" +A6453,"Self-Adherent Bandage, Elastic, Non-Knitted/Woven, Width<3""/yd" +A6454,"Self-Adherent Bandage, Elastic, Non-Knitted/Woven, Width>=3"" <5""/yd" +A6455,"Self-Adherent Bandage, Elastic, Non-Knitted/Woven, Width>=5""/yd" +A6456,"Zinc Paste Bandage, Non-Elastic, Knitted/Woven, Width>=3""<5""/yd" +A6457,Tubular Dressing +A6550,"Wound Care Set, for Negative Pressure Wound Therapy Electrical Pump, w/All Supplies & Accessories" +A6551,"Canister Set for Negative Pressure Wound Therapy Electrical Pump, Stationary or Portable, Each" +A7000,"Canister, Disposable, Used w/Suction Pump, Each" +A7001,"Canister, Non-Disposable, Used w/Suction Pump, Each" +A7002,"Tubing, Used w/Suction Pump, Each" +C9202,"Injection, Suspension of Microspheres of Human Serum Albumin w/Octafluoropropane, per 3 ml" +C9203,"Injection, Perflexane Lipid Microspheres, per 10 ml Vial" +C9205,"Injection, Oxaliplatin, per 5 mg" +C9206,"Collagen-Glycosaminoglycan Bilayer Matrix, per CM2" +C9207,"Injection, Bortezomib, per 3.5 mg" +C9208,"Injection, Agalsidase Beta, per 1 mg" +C9236,"Injection, Eculizumab, 10 mg" +C9237,"Injection, Lanreotide Acetate, 1 mg" +C9238,"Injection, Levetiracetam, 10 mg" +L7902,"Tension Ring, for Vacuum Erection Device, Any Type, Replacement" +L8000,"Breast Prosthesis, Mastectomy Bra, w/out Integrated Breast Prosthesis Form, Any Type" +L8001,"Breast Prosthesis, Mastectomy Bra, w/Integrated Breast Prosthesis Form, Unilateral" +L8002,"Breast Prosthesis, Mastectomy Bra, w/Integrated Breast Prosthesis Form, Bilateral" +L8150,"Gradient Compression Stocking, Thigh Length, 40-50 MMHG, Each" +L8160,"Gradient Compression Stocking, Full Length/Chap Style, 18-30 MMHG, Each" +L8170,"Gradient Compression Stocking, Full Length/Chap Style, 30-40 MMHG, Each" +L8180,"Gradient Compression Stocking, Full Length/Chap Style, 40-50 MMHG, Each" +S9368,"Home Infusion Therapy, Total Parenteral Nutrition (tpn); More Than Three Liters Per Day, Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment Including Standard tpn Formula, Per Diem" +S9370,"Home Therapy, Intermittent Anti-Emetic Injection Therapy; Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem" +S9372,"Home Therapy; Intermittent Anticoagulant Injection Therapy; Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem" +S9373,"Home Infusion Therapy, Hydration Therapy; Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem" +S9374,"Home Infusion Therapy, Hydration Therapy; One Liter Per Day, Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem" + + + +V5260,"Hearing Aid, Digital, Binaural, ITE" +V5261,"Hearing Aid, Digital, Binaural, BTE" +V5262,"Hearing Aid, Disposable, Any Type, Monaural" +V5263,"Hearing Aid, Disposable, Any Type, Binaural" +V5264,"Ear Mold/Insert, Not Disposable, Any Type" +V5265,"Ear Mold/Insert, Disposable, Any Type" +V5266,Battery for Use in Hearing Device +V5267,"Hearing Aid/Assistive Listening Service/Supplies/Accessories, Not Specified" +V5268,"Assistive Listening Device, Telephone Amplifier, Any Type" +V5269,"Assistive Listening Device, Alerting, Any Type" +V5270,"Assistive Listening Device, Television Amplifier, Any Type" +V5271,"Assistive Listening Device, Television Caption Decoder" +V5272,"Assistive Listening Device, TDD" +V5273,"Assistive Listening Device, for use w/Cochlear Implant" +V5274,"Assistive Listening Device, Not Specified" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5281,"Assistive Listening Device, Personal FM/DM System, Monaural, (1 receiver, transmitter, microphone), Any Type" +V5282,"Assistive Listening Device, Personal FM/DM System, Binaural, (2 receivers, transmitter, microphone), Any Type" +V5283,"Assistive Listening Device, Personal FM/D Neck, Loop Induction Receiver" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5275,"Ear Impression, Sach" +V5284,"Assistive Listening Device, Personal FM/DM, Ear Level Receiver" +V5285,"Assistive Listening Device, Personal FM/DM, Direct Audio Input Receiver" +V5286,"Assistive Listening Device, Personal Blue Tooth FM/DM Receiver" +V5287,"Assistive Listening Device, Personal FM/DM Receiver, Not Specified" +V5288,"Assistive Listening Device, Personal FM/DM Transmitter Assistive Listening Device" +V5289,"Assistive Listening Device, Personal FM/DM Adapter/Boot Coupling Device for Receiver, Any Type" +V5290,"Assistive Listening Device, Transmitter Microphone, Any Type" +V5298,"Hearing Aid, Not Classified" +V5299,"Hearing Service, Miscellaneous" +V5336,Repair/Modification of Augmentative Communicative System/Device +V5362,Speech Screening +V5363,Language Screening +V5364,Dysphagia Screening +V5364,Dysphagia Screening +90587,"Dengue vaccine, quadrivalent, live, 3 dose schedule, for subcutaneous use" +V5364,Dysphagia Screening +V5364,Dysphagia Screening +90673,"Influenza virus vaccine, trivalent (RIV3), derived from recombinant DNA, hemagglutinin (HA) protein only, preservative and antibiotic free, for intramuscular use" +V5364,Dysphagia Screening +V5364,Dysphagia Screening +90674,"Influenza virus vaccine, quadrivalent (ccIIV4), derived from cell cultures, subunit, preservative and antibiotic free, 0.5 mL dosage, for intramuscular use" +V5364,Dysphagia Screening +V5364,Dysphagia Screening + + + + + +90682,"Influenza virus vaccine, quadrivalent (RIV4), derived from recombinant DNA, hemagglutinin (HA) protein only, preservative and antibiotic free, for intramuscular use" +90689,"Influenza virus vaccine, quadrivalent (IIV4), inactivated, adjuvanted, preservative free, 0.25 mL dosage, for intramuscular use" +90750,"Zoster (shingles) vaccine (HZV), recombinant, subunit, adjuvanted, for intramuscular use" +90756,"Influenza virus vaccine, quadrivalent (ccIIV4), derived from cell cultures, subunit, antibiotic free, 0.5 mL dosage, for intramuscular use" +97161,"Physical therapy evaluation: low complexity, requiring these components: A history with no personal factors and/or comorbidities that impact the plan of care; An examination of body system(s) using standardized tests and measures addressing 1-2 elements from any of the following: body structures and functions, activity limitations, and/or participation restrictions; A clinical presentation with stable and/or uncomplicated characteristics; and Clinical decision making of low complexity using standardized patient assessment instrument and/or measurable assessment of functional outcome. Typically, 20 minutes are spent face-to-face with the patient and/or family." +97162,"Physical therapy evaluation: moderate complexity, requiring these components: A history of present problem with 1-2 personal factors and/or comorbidities that impact the plan of care; An examination of body systems using standardized tests and measures in addressing a total of 3 or more elements from any of the following: body structures and functions, activity limitations, and/or participation restrictions; An evolving clinical presentation with changing characteristics; and Clinical decision making of moderate complexity using standardized patient assessment instrument and/or measurable assessment of functional outcome. Typically, 30 minutes are spent face-to-face with the patient and/or family." +97163,"Physical therapy evaluation: high complexity, requiring these components: A history of present problem with 3 or more personal factors and/or comorbidities that impact the plan of care; An examination of body systems using standardized tests and measures addressing a total of 4 or more elements from any of the following: body structures and functions, activity limitations, and/or participation restrictions; A clinical presentation with unstable and unpredictable characteristics; and Clinical decision making of high complexity using standardized patient assessment instrument and/or measurable assessment of functional outcome. Typically, 45 minutes are spent face-to-face with the patient and/or family." +30555,BioTe Intial Labs - Male diff --git a/phpTest_20/app/load.php b/phpTest_20/app/load.php new file mode 100644 index 0000000..b27bd59 --- /dev/null +++ b/phpTest_20/app/load.php @@ -0,0 +1,9 @@ +render('template_load'); + +?> \ No newline at end of file diff --git a/phpTest_20/app/login.php b/phpTest_20/app/login.php new file mode 100644 index 0000000..30d02c0 --- /dev/null +++ b/phpTest_20/app/login.php @@ -0,0 +1,26 @@ + prepare($sql); +$query -> execute(); +$results = $query -> fetchAll(PDO::FETCH_OBJ); + +if($query -> rowCount() > 0) { + + foreach($results as $result) { + $users=$result -> email; + } + $_SESSION['userLog']=$users; + $res="window.location.replace('app/load.php');"; + + }else{ + $res='$("#msnResp").html("
Invalid username or password
".'
"'.");"; +} + +echo $res; + +?> \ No newline at end of file diff --git a/phpTest_20/app/logout.php b/phpTest_20/app/logout.php new file mode 100644 index 0000000..a964ae0 --- /dev/null +++ b/phpTest_20/app/logout.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/phpTest_20/componente/bitcoin.png b/phpTest_20/componente/bitcoin.png new file mode 100644 index 0000000..9e69330 Binary files /dev/null and b/phpTest_20/componente/bitcoin.png differ diff --git a/phpTest_20/componente/composer.json b/phpTest_20/componente/composer.json new file mode 100644 index 0000000..53ef418 --- /dev/null +++ b/phpTest_20/componente/composer.json @@ -0,0 +1,22 @@ +{ + "name": "ruthb/componente", + "description": "Returns ecommerce example", + "type": "project", + "require": { + "guzzlehttp/guzzle": "7.4" + }, + "license": "MIT", + "autoload": { + "psr-4": { + "Ruthb\\Componente\\": "src/" + } + }, + "repositories": [{ + "type": "path", + "url": "phpTest_20/componente" + }], + "authors": [{ + "name": "Ruthbri", + "email": "Ruthbri@gmail.com" + }] +} \ No newline at end of file diff --git a/phpTest_20/componente/composer.lock b/phpTest_20/componente/composer.lock new file mode 100644 index 0000000..3e7ba68 --- /dev/null +++ b/phpTest_20/componente/composer.lock @@ -0,0 +1,613 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "fc09a0d5a368e1f0af410f94ec80d9c2", + "packages": [ + { + "name": "guzzlehttp/guzzle", + "version": "7.4.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/868b3571a039f0ebc11ac8f344f4080babe2cb94", + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.8.3 || ^2.1", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-curl": "*", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.4-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.4.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2021-10-18T09:52:00+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2021-10-22T20:56:57+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/83260bb50b8fc753c72d14dc1621a2dac31877ee", + "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.8 || ^9.3.10" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2022-06-09T08:26:02+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, + "time": "2019-04-30T12:38:16+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:53:40+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/phpTest_20/componente/ecommerce.php b/phpTest_20/componente/ecommerce.php new file mode 100644 index 0000000..c2d9992 --- /dev/null +++ b/phpTest_20/componente/ecommerce.php @@ -0,0 +1,593 @@ + + + + Web Merchant + + + + + + + + + + + + + + + + +
+

Web Merchant

+ +
+
+
+
+ +

Producto 1

+

Price $: 50

+ +
+
+

Added to Car

+ +
+
+
+
+ +

Producto 2

+

Price $: 60

+ +
+
+

Added to Car

+ +
+
+
+
+ +

Producto 3

+

Price $: 80

+ +
+
+

Added to Car

+ +
+
+
+
+ +

Producto 4

+

Price $: 30

+ +
+
+

Added to Car

+ +
+
+
+
+ +
+ + + + + + + + + + + + diff --git a/phpTest_20/componente/vendor/autoload.php b/phpTest_20/componente/vendor/autoload.php new file mode 100644 index 0000000..efb45a3 --- /dev/null +++ b/phpTest_20/componente/vendor/autoload.php @@ -0,0 +1,12 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + /** @var ?string */ + private $vendorDir; + + // PSR-4 + /** + * @var array[] + * @psalm-var array> + */ + private $prefixLengthsPsr4 = array(); + /** + * @var array[] + * @psalm-var array> + */ + private $prefixDirsPsr4 = array(); + /** + * @var array[] + * @psalm-var array + */ + private $fallbackDirsPsr4 = array(); + + // PSR-0 + /** + * @var array[] + * @psalm-var array> + */ + private $prefixesPsr0 = array(); + /** + * @var array[] + * @psalm-var array + */ + private $fallbackDirsPsr0 = array(); + + /** @var bool */ + private $useIncludePath = false; + + /** + * @var string[] + * @psalm-var array + */ + private $classMap = array(); + + /** @var bool */ + private $classMapAuthoritative = false; + + /** + * @var bool[] + * @psalm-var array + */ + private $missingClasses = array(); + + /** @var ?string */ + private $apcuPrefix; + + /** + * @var self[] + */ + private static $registeredLoaders = array(); + + /** + * @param ?string $vendorDir + */ + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + } + + /** + * @return string[] + */ + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + /** + * @return array[] + * @psalm-return array> + */ + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + /** + * @return array[] + * @psalm-return array + */ + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + /** + * @return array[] + * @psalm-return array + */ + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + /** + * @return string[] Array of classname => path + * @psalm-return array + */ + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param string[] $classMap Class to filename map + * @psalm-param array $classMap + * + * @return void + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void + */ + public function add($prefix, $paths, $prepend = false) + { + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + (array) $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + (array) $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = (array) $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + (array) $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + (array) $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + (array) $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + (array) $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 base directories + * + * @return void + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + * + * @return void + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + * + * @return void + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + * + * @return void + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + * + * @return void + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return true|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + includeFile($file); + + return true; + } + + return null; + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders indexed by their corresponding vendor directories. + * + * @return self[] + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + /** + * @param string $class + * @param string $ext + * @return string|false + */ + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + * @private + */ +function includeFile($file) +{ + include $file; +} diff --git a/phpTest_20/componente/vendor/composer/InstalledVersions.php b/phpTest_20/componente/vendor/composer/InstalledVersions.php new file mode 100644 index 0000000..c6b54af --- /dev/null +++ b/phpTest_20/componente/vendor/composer/InstalledVersions.php @@ -0,0 +1,352 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer; + +use Composer\Autoload\ClassLoader; +use Composer\Semver\VersionParser; + +/** + * This class is copied in every Composer installed project and available to all + * + * See also https://getcomposer.org/doc/07-runtime.md#installed-versions + * + * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final + */ +class InstalledVersions +{ + /** + * @var mixed[]|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null + */ + private static $installed; + + /** + * @var bool|null + */ + private static $canGetVendors; + + /** + * @var array[] + * @psalm-var array}> + */ + private static $installedByVendor = array(); + + /** + * Returns a list of all package names which are present, either by being installed, replaced or provided + * + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackages() + { + $packages = array(); + foreach (self::getInstalled() as $installed) { + $packages[] = array_keys($installed['versions']); + } + + if (1 === \count($packages)) { + return $packages[0]; + } + + return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); + } + + /** + * Returns a list of all package names with a specific type e.g. 'library' + * + * @param string $type + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackagesByType($type) + { + $packagesByType = array(); + + foreach (self::getInstalled() as $installed) { + foreach ($installed['versions'] as $name => $package) { + if (isset($package['type']) && $package['type'] === $type) { + $packagesByType[] = $name; + } + } + } + + return $packagesByType; + } + + /** + * Checks whether the given package is installed + * + * This also returns true if the package name is provided or replaced by another package + * + * @param string $packageName + * @param bool $includeDevRequirements + * @return bool + */ + public static function isInstalled($packageName, $includeDevRequirements = true) + { + foreach (self::getInstalled() as $installed) { + if (isset($installed['versions'][$packageName])) { + return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); + } + } + + return false; + } + + /** + * Checks whether the given package satisfies a version constraint + * + * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: + * + * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') + * + * @param VersionParser $parser Install composer/semver to have access to this class and functionality + * @param string $packageName + * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package + * @return bool + */ + public static function satisfies(VersionParser $parser, $packageName, $constraint) + { + $constraint = $parser->parseConstraints($constraint); + $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + + return $provided->matches($constraint); + } + + /** + * Returns a version constraint representing all the range(s) which are installed for a given package + * + * It is easier to use this via isInstalled() with the $constraint argument if you need to check + * whether a given version of a package is installed, and not just whether it exists + * + * @param string $packageName + * @return string Version constraint usable with composer/semver + */ + public static function getVersionRanges($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + $ranges = array(); + if (isset($installed['versions'][$packageName]['pretty_version'])) { + $ranges[] = $installed['versions'][$packageName]['pretty_version']; + } + if (array_key_exists('aliases', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); + } + if (array_key_exists('replaced', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); + } + if (array_key_exists('provided', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); + } + + return implode(' || ', $ranges); + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['version'])) { + return null; + } + + return $installed['versions'][$packageName]['version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getPrettyVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['pretty_version'])) { + return null; + } + + return $installed['versions'][$packageName]['pretty_version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference + */ + public static function getReference($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['reference'])) { + return null; + } + + return $installed['versions'][$packageName]['reference']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. + */ + public static function getInstallPath($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @return array + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} + */ + public static function getRootPackage() + { + $installed = self::getInstalled(); + + return $installed[0]['root']; + } + + /** + * Returns the raw installed.php data for custom implementations + * + * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. + * @return array[] + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} + */ + public static function getRawData() + { + @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = include __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + + return self::$installed; + } + + /** + * Returns the raw data of all installed.php which are currently loaded for custom implementations + * + * @return array[] + * @psalm-return list}> + */ + public static function getAllRawData() + { + return self::getInstalled(); + } + + /** + * Lets you reload the static array from another file + * + * This is only useful for complex integrations in which a project needs to use + * this class but then also needs to execute another project's autoloader in process, + * and wants to ensure both projects have access to their version of installed.php. + * + * A typical case would be PHPUnit, where it would need to make sure it reads all + * the data it needs from this class, then call reload() with + * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure + * the project in which it runs can then also use this class safely, without + * interference between PHPUnit's dependencies and the project's dependencies. + * + * @param array[] $data A vendor/composer/installed.php data set + * @return void + * + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data + */ + public static function reload($data) + { + self::$installed = $data; + self::$installedByVendor = array(); + } + + /** + * @return array[] + * @psalm-return list}> + */ + private static function getInstalled() + { + if (null === self::$canGetVendors) { + self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); + } + + $installed = array(); + + if (self::$canGetVendors) { + foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + if (isset(self::$installedByVendor[$vendorDir])) { + $installed[] = self::$installedByVendor[$vendorDir]; + } elseif (is_file($vendorDir.'/composer/installed.php')) { + $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; + if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { + self::$installed = $installed[count($installed) - 1]; + } + } + } + } + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = require __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + $installed[] = self::$installed; + + return $installed; + } +} diff --git a/phpTest_20/componente/vendor/composer/LICENSE b/phpTest_20/componente/vendor/composer/LICENSE new file mode 100644 index 0000000..f27399a --- /dev/null +++ b/phpTest_20/componente/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/phpTest_20/componente/vendor/composer/autoload_classmap.php b/phpTest_20/componente/vendor/composer/autoload_classmap.php new file mode 100644 index 0000000..0fb0a2c --- /dev/null +++ b/phpTest_20/componente/vendor/composer/autoload_classmap.php @@ -0,0 +1,10 @@ + $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/phpTest_20/componente/vendor/composer/autoload_files.php b/phpTest_20/componente/vendor/composer/autoload_files.php new file mode 100644 index 0000000..4470736 --- /dev/null +++ b/phpTest_20/componente/vendor/composer/autoload_files.php @@ -0,0 +1,13 @@ + $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', + 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', + '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', + '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', +); diff --git a/phpTest_20/componente/vendor/composer/autoload_namespaces.php b/phpTest_20/componente/vendor/composer/autoload_namespaces.php new file mode 100644 index 0000000..15a2ff3 --- /dev/null +++ b/phpTest_20/componente/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($baseDir . '/src'), + 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'), + 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), + 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), + 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), + 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), +); diff --git a/phpTest_20/componente/vendor/composer/autoload_real.php b/phpTest_20/componente/vendor/composer/autoload_real.php new file mode 100644 index 0000000..81aa533 --- /dev/null +++ b/phpTest_20/componente/vendor/composer/autoload_real.php @@ -0,0 +1,57 @@ +register(true); + + $includeFiles = \Composer\Autoload\ComposerStaticInit545540a927dea1d64a05aba9abb7ed85::$files; + foreach ($includeFiles as $fileIdentifier => $file) { + composerRequire545540a927dea1d64a05aba9abb7ed85($fileIdentifier, $file); + } + + return $loader; + } +} + +/** + * @param string $fileIdentifier + * @param string $file + * @return void + */ +function composerRequire545540a927dea1d64a05aba9abb7ed85($fileIdentifier, $file) +{ + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + + require $file; + } +} diff --git a/phpTest_20/componente/vendor/composer/autoload_static.php b/phpTest_20/componente/vendor/composer/autoload_static.php new file mode 100644 index 0000000..f39b29b --- /dev/null +++ b/phpTest_20/componente/vendor/composer/autoload_static.php @@ -0,0 +1,75 @@ + __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', + 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', + '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', + '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', + ); + + public static $prefixLengthsPsr4 = array ( + 'R' => + array ( + 'Ruthb\\Componente\\' => 17, + ), + 'P' => + array ( + 'Psr\\Http\\Message\\' => 17, + 'Psr\\Http\\Client\\' => 16, + ), + 'G' => + array ( + 'GuzzleHttp\\Psr7\\' => 16, + 'GuzzleHttp\\Promise\\' => 19, + 'GuzzleHttp\\' => 11, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'Ruthb\\Componente\\' => + array ( + 0 => __DIR__ . '/../..' . '/src', + ), + 'Psr\\Http\\Message\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-message/src', + 1 => __DIR__ . '/..' . '/psr/http-factory/src', + ), + 'Psr\\Http\\Client\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-client/src', + ), + 'GuzzleHttp\\Psr7\\' => + array ( + 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', + ), + 'GuzzleHttp\\Promise\\' => + array ( + 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src', + ), + 'GuzzleHttp\\' => + array ( + 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src', + ), + ); + + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInit545540a927dea1d64a05aba9abb7ed85::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit545540a927dea1d64a05aba9abb7ed85::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit545540a927dea1d64a05aba9abb7ed85::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/phpTest_20/componente/vendor/composer/installed.json b/phpTest_20/componente/vendor/composer/installed.json new file mode 100644 index 0000000..f6c754f --- /dev/null +++ b/phpTest_20/componente/vendor/composer/installed.json @@ -0,0 +1,624 @@ +{ + "packages": [ + { + "name": "guzzlehttp/guzzle", + "version": "7.4.0", + "version_normalized": "7.4.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/868b3571a039f0ebc11ac8f344f4080babe2cb94", + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.8.3 || ^2.1", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-curl": "*", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "time": "2021-10-18T09:52:00+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.4-dev" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.4.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "install-path": "../guzzlehttp/guzzle" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.1", + "version_normalized": "1.5.1.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "time": "2021-10-22T20:56:57+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "install-path": "../guzzlehttp/promises" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.3.0", + "version_normalized": "2.3.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/83260bb50b8fc753c72d14dc1621a2dac31877ee", + "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.8 || ^9.3.10" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "time": "2022-06-09T08:26:02+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "install-path": "../guzzlehttp/psr7" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "version_normalized": "1.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "time": "2020-06-29T06:28:15+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "install-path": "../psr/http-client" + }, + { + "name": "psr/http-factory", + "version": "1.0.1", + "version_normalized": "1.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0" + }, + "time": "2019-04-30T12:38:16+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, + "install-path": "../psr/http-factory" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "version_normalized": "1.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "time": "2016-08-06T14:39:51+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "install-path": "../psr/http-message" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "version_normalized": "3.0.3.0", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "time": "2019-03-08T08:55:37+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "install-path": "../ralouphie/getallheaders" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.1", + "version_normalized": "2.5.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "time": "2022-01-02T09:53:40+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "install-path": "../symfony/deprecation-contracts" + } + ], + "dev": true, + "dev-package-names": [] +} diff --git a/phpTest_20/componente/vendor/composer/installed.php b/phpTest_20/componente/vendor/composer/installed.php new file mode 100644 index 0000000..5692a95 --- /dev/null +++ b/phpTest_20/componente/vendor/composer/installed.php @@ -0,0 +1,113 @@ + array( + 'name' => 'ruthb/componente', + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, + 'type' => 'project', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev' => true, + ), + 'versions' => array( + 'guzzlehttp/guzzle' => array( + 'pretty_version' => '7.4.0', + 'version' => '7.4.0.0', + 'reference' => '868b3571a039f0ebc11ac8f344f4080babe2cb94', + 'type' => 'library', + 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'guzzlehttp/promises' => array( + 'pretty_version' => '1.5.1', + 'version' => '1.5.1.0', + 'reference' => 'fe752aedc9fd8fcca3fe7ad05d419d32998a06da', + 'type' => 'library', + 'install_path' => __DIR__ . '/../guzzlehttp/promises', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'guzzlehttp/psr7' => array( + 'pretty_version' => '2.3.0', + 'version' => '2.3.0.0', + 'reference' => '83260bb50b8fc753c72d14dc1621a2dac31877ee', + 'type' => 'library', + 'install_path' => __DIR__ . '/../guzzlehttp/psr7', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-client' => array( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-client', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-client-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'psr/http-factory' => array( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-factory', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-factory-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'psr/http-message' => array( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-message', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-message-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'ralouphie/getallheaders' => array( + 'pretty_version' => '3.0.3', + 'version' => '3.0.3.0', + 'reference' => '120b605dfeb996808c31b6477290a714d356e822', + 'type' => 'library', + 'install_path' => __DIR__ . '/../ralouphie/getallheaders', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'ruthb/componente' => array( + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, + 'type' => 'project', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'symfony/deprecation-contracts' => array( + 'pretty_version' => 'v2.5.1', + 'version' => '2.5.1.0', + 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66', + 'type' => 'library', + 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', + 'aliases' => array(), + 'dev_requirement' => false, + ), + ), +); diff --git a/phpTest_20/componente/vendor/composer/platform_check.php b/phpTest_20/componente/vendor/composer/platform_check.php new file mode 100644 index 0000000..a8b98d5 --- /dev/null +++ b/phpTest_20/componente/vendor/composer/platform_check.php @@ -0,0 +1,26 @@ += 70205)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.5". You are running ' . PHP_VERSION . '.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + } + } + trigger_error( + 'Composer detected issues in your platform: ' . implode(' ', $issues), + E_USER_ERROR + ); +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/CHANGELOG.md b/phpTest_20/componente/vendor/guzzlehttp/guzzle/CHANGELOG.md new file mode 100644 index 0000000..c3acb77 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/CHANGELOG.md @@ -0,0 +1,1479 @@ +# Change Log + +Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version. + +## 7.4.0 - 2021-10-18 + +### Added + +- Support PHP 8.1 [#2929](https://github.com/guzzle/guzzle/pull/2929), [#2939](https://github.com/guzzle/guzzle/pull/2939) +- Support `psr/log` version 2 and 3 [#2943](https://github.com/guzzle/guzzle/pull/2943) + +### Fixed + +- Make sure we always call `restore_error_handler()` [#2915](https://github.com/guzzle/guzzle/pull/2915) +- Fix progress parameter type compatibility between the cURL and stream handlers [#2936](https://github.com/guzzle/guzzle/pull/2936) +- Throw `InvalidArgumentException` when an incorrect `headers` array is provided [#2916](https://github.com/guzzle/guzzle/pull/2916), [#2942](https://github.com/guzzle/guzzle/pull/2942) + +### Changed + +- Be more strict with types [#2914](https://github.com/guzzle/guzzle/pull/2914), [#2917](https://github.com/guzzle/guzzle/pull/2917), [#2919](https://github.com/guzzle/guzzle/pull/2919), [#2945](https://github.com/guzzle/guzzle/pull/2945) + +## 7.3.0 - 2021-03-23 + +### Added + +- Support for DER and P12 certificates [#2413](https://github.com/guzzle/guzzle/pull/2413) +- Support the cURL (http://) scheme for StreamHandler proxies [#2850](https://github.com/guzzle/guzzle/pull/2850) +- Support for `guzzlehttp/psr7:^2.0` [#2878](https://github.com/guzzle/guzzle/pull/2878) + +### Fixed + +- Handle exceptions on invalid header consistently between PHP versions and handlers [#2872](https://github.com/guzzle/guzzle/pull/2872) + +## 7.2.0 - 2020-10-10 + +### Added + +- Support for PHP 8 [#2712](https://github.com/guzzle/guzzle/pull/2712), [#2715](https://github.com/guzzle/guzzle/pull/2715), [#2789](https://github.com/guzzle/guzzle/pull/2789) +- Support passing a body summarizer to the http errors middleware [#2795](https://github.com/guzzle/guzzle/pull/2795) + +### Fixed + +- Handle exceptions during response creation [#2591](https://github.com/guzzle/guzzle/pull/2591) +- Fix CURLOPT_ENCODING not to be overwritten [#2595](https://github.com/guzzle/guzzle/pull/2595) +- Make sure the Request always has a body object [#2804](https://github.com/guzzle/guzzle/pull/2804) + +### Changed + +- The `TooManyRedirectsException` has a response [#2660](https://github.com/guzzle/guzzle/pull/2660) +- Avoid "functions" from dependencies [#2712](https://github.com/guzzle/guzzle/pull/2712) + +### Deprecated + +- Using environment variable GUZZLE_CURL_SELECT_TIMEOUT [#2786](https://github.com/guzzle/guzzle/pull/2786) + +## 7.1.1 - 2020-09-30 + +### Fixed + +- Incorrect EOF detection for response body streams on Windows. + +### Changed + +- We dont connect curl `sink` on HEAD requests. +- Removed some PHP 5 workarounds + +## 7.1.0 - 2020-09-22 + +### Added + +- `GuzzleHttp\MessageFormatterInterface` + +### Fixed + +- Fixed issue that caused cookies with no value not to be stored. +- On redirects, we allow all safe methods like GET, HEAD and OPTIONS. +- Fixed logging on empty responses. +- Make sure MessageFormatter::format returns string + +### Deprecated + +- All functions in `GuzzleHttp` has been deprecated. Use static methods on `Utils` instead. +- `ClientInterface::getConfig()` +- `Client::getConfig()` +- `Client::__call()` +- `Utils::defaultCaBundle()` +- `CurlFactory::LOW_CURL_VERSION_NUMBER` + +## 7.0.1 - 2020-06-27 + +* Fix multiply defined functions fatal error [#2699](https://github.com/guzzle/guzzle/pull/2699) + +## 7.0.0 - 2020-06-27 + +No changes since 7.0.0-rc1. + +## 7.0.0-rc1 - 2020-06-15 + +### Changed + +* Use error level for logging errors in Middleware [#2629](https://github.com/guzzle/guzzle/pull/2629) +* Disabled IDN support by default and require ext-intl to use it [#2675](https://github.com/guzzle/guzzle/pull/2675) + +## 7.0.0-beta2 - 2020-05-25 + +### Added + +* Using `Utils` class instead of functions in the `GuzzleHttp` namespace. [#2546](https://github.com/guzzle/guzzle/pull/2546) +* `ClientInterface::MAJOR_VERSION` [#2583](https://github.com/guzzle/guzzle/pull/2583) + +### Changed + +* Avoid the `getenv` function when unsafe [#2531](https://github.com/guzzle/guzzle/pull/2531) +* Added real client methods [#2529](https://github.com/guzzle/guzzle/pull/2529) +* Avoid functions due to global install conflicts [#2546](https://github.com/guzzle/guzzle/pull/2546) +* Use Symfony intl-idn polyfill [#2550](https://github.com/guzzle/guzzle/pull/2550) +* Adding methods for HTTP verbs like `Client::get()`, `Client::head()`, `Client::patch()` etc [#2529](https://github.com/guzzle/guzzle/pull/2529) +* `ConnectException` extends `TransferException` [#2541](https://github.com/guzzle/guzzle/pull/2541) +* Updated the default User Agent to "GuzzleHttp/7" [#2654](https://github.com/guzzle/guzzle/pull/2654) + +### Fixed + +* Various intl icu issues [#2626](https://github.com/guzzle/guzzle/pull/2626) + +### Removed + +* Pool option `pool_size` [#2528](https://github.com/guzzle/guzzle/pull/2528) + +## 7.0.0-beta1 - 2019-12-30 + +The diff might look very big but 95% of Guzzle users will be able to upgrade without modification. +Please see [the upgrade document](UPGRADING.md) that describes all BC breaking changes. + +### Added + +* Implement PSR-18 and dropped PHP 5 support [#2421](https://github.com/guzzle/guzzle/pull/2421) [#2474](https://github.com/guzzle/guzzle/pull/2474) +* PHP 7 types [#2442](https://github.com/guzzle/guzzle/pull/2442) [#2449](https://github.com/guzzle/guzzle/pull/2449) [#2466](https://github.com/guzzle/guzzle/pull/2466) [#2497](https://github.com/guzzle/guzzle/pull/2497) [#2499](https://github.com/guzzle/guzzle/pull/2499) +* IDN support for redirects [2424](https://github.com/guzzle/guzzle/pull/2424) + +### Changed + +* Dont allow passing null as third argument to `BadResponseException::__construct()` [#2427](https://github.com/guzzle/guzzle/pull/2427) +* Use SAPI constant instead of method call [#2450](https://github.com/guzzle/guzzle/pull/2450) +* Use native function invocation [#2444](https://github.com/guzzle/guzzle/pull/2444) +* Better defaults for PHP installations with old ICU lib [2454](https://github.com/guzzle/guzzle/pull/2454) +* Added visibility to all constants [#2462](https://github.com/guzzle/guzzle/pull/2462) +* Dont allow passing `null` as URI to `Client::request()` and `Client::requestAsync()` [#2461](https://github.com/guzzle/guzzle/pull/2461) +* Widen the exception argument to throwable [#2495](https://github.com/guzzle/guzzle/pull/2495) + +### Fixed + +* Logging when Promise rejected with a string [#2311](https://github.com/guzzle/guzzle/pull/2311) + +### Removed + +* Class `SeekException` [#2162](https://github.com/guzzle/guzzle/pull/2162) +* `RequestException::getResponseBodySummary()` [#2425](https://github.com/guzzle/guzzle/pull/2425) +* `CookieJar::getCookieValue()` [#2433](https://github.com/guzzle/guzzle/pull/2433) +* `uri_template()` and `UriTemplate` [#2440](https://github.com/guzzle/guzzle/pull/2440) +* Request options `save_to` and `exceptions` [#2464](https://github.com/guzzle/guzzle/pull/2464) + +## 6.5.2 - 2019-12-23 + +* idn_to_ascii() fix for old PHP versions [#2489](https://github.com/guzzle/guzzle/pull/2489) + +## 6.5.1 - 2019-12-21 + +* Better defaults for PHP installations with old ICU lib [#2454](https://github.com/guzzle/guzzle/pull/2454) +* IDN support for redirects [#2424](https://github.com/guzzle/guzzle/pull/2424) + +## 6.5.0 - 2019-12-07 + +* Improvement: Added support for reset internal queue in MockHandler. [#2143](https://github.com/guzzle/guzzle/pull/2143) +* Improvement: Added support to pass arbitrary options to `curl_multi_init`. [#2287](https://github.com/guzzle/guzzle/pull/2287) +* Fix: Gracefully handle passing `null` to the `header` option. [#2132](https://github.com/guzzle/guzzle/pull/2132) +* Fix: `RetryMiddleware` did not do exponential delay between retires due unit mismatch. [#2132](https://github.com/guzzle/guzzle/pull/2132) +* Fix: Prevent undefined offset when using array for ssl_key options. [#2348](https://github.com/guzzle/guzzle/pull/2348) +* Deprecated `ClientInterface::VERSION` + +## 6.4.1 - 2019-10-23 + +* No `guzzle.phar` was created in 6.4.0 due expired API token. This release will fix that +* Added `parent::__construct()` to `FileCookieJar` and `SessionCookieJar` + +## 6.4.0 - 2019-10-23 + +* Improvement: Improved error messages when using curl < 7.21.2 [#2108](https://github.com/guzzle/guzzle/pull/2108) +* Fix: Test if response is readable before returning a summary in `RequestException::getResponseBodySummary()` [#2081](https://github.com/guzzle/guzzle/pull/2081) +* Fix: Add support for GUZZLE_CURL_SELECT_TIMEOUT environment variable [#2161](https://github.com/guzzle/guzzle/pull/2161) +* Improvement: Added `GuzzleHttp\Exception\InvalidArgumentException` [#2163](https://github.com/guzzle/guzzle/pull/2163) +* Improvement: Added `GuzzleHttp\_current_time()` to use `hrtime()` if that function exists. [#2242](https://github.com/guzzle/guzzle/pull/2242) +* Improvement: Added curl's `appconnect_time` in `TransferStats` [#2284](https://github.com/guzzle/guzzle/pull/2284) +* Improvement: Make GuzzleException extend Throwable wherever it's available [#2273](https://github.com/guzzle/guzzle/pull/2273) +* Fix: Prevent concurrent writes to file when saving `CookieJar` [#2335](https://github.com/guzzle/guzzle/pull/2335) +* Improvement: Update `MockHandler` so we can test transfer time [#2362](https://github.com/guzzle/guzzle/pull/2362) + +## 6.3.3 - 2018-04-22 + +* Fix: Default headers when decode_content is specified + + +## 6.3.2 - 2018-03-26 + +* Fix: Release process + + +## 6.3.1 - 2018-03-26 + +* Bug fix: Parsing 0 epoch expiry times in cookies [#2014](https://github.com/guzzle/guzzle/pull/2014) +* Improvement: Better ConnectException detection [#2012](https://github.com/guzzle/guzzle/pull/2012) +* Bug fix: Malformed domain that contains a "/" [#1999](https://github.com/guzzle/guzzle/pull/1999) +* Bug fix: Undefined offset when a cookie has no first key-value pair [#1998](https://github.com/guzzle/guzzle/pull/1998) +* Improvement: Support PHPUnit 6 [#1953](https://github.com/guzzle/guzzle/pull/1953) +* Bug fix: Support empty headers [#1915](https://github.com/guzzle/guzzle/pull/1915) +* Bug fix: Ignore case during header modifications [#1916](https://github.com/guzzle/guzzle/pull/1916) + ++ Minor code cleanups, documentation fixes and clarifications. + + +## 6.3.0 - 2017-06-22 + +* Feature: force IP resolution (ipv4 or ipv6) [#1608](https://github.com/guzzle/guzzle/pull/1608), [#1659](https://github.com/guzzle/guzzle/pull/1659) +* Improvement: Don't include summary in exception message when body is empty [#1621](https://github.com/guzzle/guzzle/pull/1621) +* Improvement: Handle `on_headers` option in MockHandler [#1580](https://github.com/guzzle/guzzle/pull/1580) +* Improvement: Added SUSE Linux CA path [#1609](https://github.com/guzzle/guzzle/issues/1609) +* Improvement: Use class reference for getting the name of the class instead of using hardcoded strings [#1641](https://github.com/guzzle/guzzle/pull/1641) +* Feature: Added `read_timeout` option [#1611](https://github.com/guzzle/guzzle/pull/1611) +* Bug fix: PHP 7.x fixes [#1685](https://github.com/guzzle/guzzle/pull/1685), [#1686](https://github.com/guzzle/guzzle/pull/1686), [#1811](https://github.com/guzzle/guzzle/pull/1811) +* Deprecation: BadResponseException instantiation without a response [#1642](https://github.com/guzzle/guzzle/pull/1642) +* Feature: Added NTLM auth [#1569](https://github.com/guzzle/guzzle/pull/1569) +* Feature: Track redirect HTTP status codes [#1711](https://github.com/guzzle/guzzle/pull/1711) +* Improvement: Check handler type during construction [#1745](https://github.com/guzzle/guzzle/pull/1745) +* Improvement: Always include the Content-Length if there's a body [#1721](https://github.com/guzzle/guzzle/pull/1721) +* Feature: Added convenience method to access a cookie by name [#1318](https://github.com/guzzle/guzzle/pull/1318) +* Bug fix: Fill `CURLOPT_CAPATH` and `CURLOPT_CAINFO` properly [#1684](https://github.com/guzzle/guzzle/pull/1684) +* Improvement: Use `\GuzzleHttp\Promise\rejection_for` function instead of object init [#1827](https://github.com/guzzle/guzzle/pull/1827) + + ++ Minor code cleanups, documentation fixes and clarifications. + +## 6.2.3 - 2017-02-28 + +* Fix deprecations with guzzle/psr7 version 1.4 + +## 6.2.2 - 2016-10-08 + +* Allow to pass nullable Response to delay callable +* Only add scheme when host is present +* Fix drain case where content-length is the literal string zero +* Obfuscate in-URL credentials in exceptions + +## 6.2.1 - 2016-07-18 + +* Address HTTP_PROXY security vulnerability, CVE-2016-5385: + https://httpoxy.org/ +* Fixing timeout bug with StreamHandler: + https://github.com/guzzle/guzzle/pull/1488 +* Only read up to `Content-Length` in PHP StreamHandler to avoid timeouts when + a server does not honor `Connection: close`. +* Ignore URI fragment when sending requests. + +## 6.2.0 - 2016-03-21 + +* Feature: added `GuzzleHttp\json_encode` and `GuzzleHttp\json_decode`. + https://github.com/guzzle/guzzle/pull/1389 +* Bug fix: Fix sleep calculation when waiting for delayed requests. + https://github.com/guzzle/guzzle/pull/1324 +* Feature: More flexible history containers. + https://github.com/guzzle/guzzle/pull/1373 +* Bug fix: defer sink stream opening in StreamHandler. + https://github.com/guzzle/guzzle/pull/1377 +* Bug fix: do not attempt to escape cookie values. + https://github.com/guzzle/guzzle/pull/1406 +* Feature: report original content encoding and length on decoded responses. + https://github.com/guzzle/guzzle/pull/1409 +* Bug fix: rewind seekable request bodies before dispatching to cURL. + https://github.com/guzzle/guzzle/pull/1422 +* Bug fix: provide an empty string to `http_build_query` for HHVM workaround. + https://github.com/guzzle/guzzle/pull/1367 + +## 6.1.1 - 2015-11-22 + +* Bug fix: Proxy::wrapSync() now correctly proxies to the appropriate handler + https://github.com/guzzle/guzzle/commit/911bcbc8b434adce64e223a6d1d14e9a8f63e4e4 +* Feature: HandlerStack is now more generic. + https://github.com/guzzle/guzzle/commit/f2102941331cda544745eedd97fc8fd46e1ee33e +* Bug fix: setting verify to false in the StreamHandler now disables peer + verification. https://github.com/guzzle/guzzle/issues/1256 +* Feature: Middleware now uses an exception factory, including more error + context. https://github.com/guzzle/guzzle/pull/1282 +* Feature: better support for disabled functions. + https://github.com/guzzle/guzzle/pull/1287 +* Bug fix: fixed regression where MockHandler was not using `sink`. + https://github.com/guzzle/guzzle/pull/1292 + +## 6.1.0 - 2015-09-08 + +* Feature: Added the `on_stats` request option to provide access to transfer + statistics for requests. https://github.com/guzzle/guzzle/pull/1202 +* Feature: Added the ability to persist session cookies in CookieJars. + https://github.com/guzzle/guzzle/pull/1195 +* Feature: Some compatibility updates for Google APP Engine + https://github.com/guzzle/guzzle/pull/1216 +* Feature: Added support for NO_PROXY to prevent the use of a proxy based on + a simple set of rules. https://github.com/guzzle/guzzle/pull/1197 +* Feature: Cookies can now contain square brackets. + https://github.com/guzzle/guzzle/pull/1237 +* Bug fix: Now correctly parsing `=` inside of quotes in Cookies. + https://github.com/guzzle/guzzle/pull/1232 +* Bug fix: Cusotm cURL options now correctly override curl options of the + same name. https://github.com/guzzle/guzzle/pull/1221 +* Bug fix: Content-Type header is now added when using an explicitly provided + multipart body. https://github.com/guzzle/guzzle/pull/1218 +* Bug fix: Now ignoring Set-Cookie headers that have no name. +* Bug fix: Reason phrase is no longer cast to an int in some cases in the + cURL handler. https://github.com/guzzle/guzzle/pull/1187 +* Bug fix: Remove the Authorization header when redirecting if the Host + header changes. https://github.com/guzzle/guzzle/pull/1207 +* Bug fix: Cookie path matching fixes + https://github.com/guzzle/guzzle/issues/1129 +* Bug fix: Fixing the cURL `body_as_string` setting + https://github.com/guzzle/guzzle/pull/1201 +* Bug fix: quotes are no longer stripped when parsing cookies. + https://github.com/guzzle/guzzle/issues/1172 +* Bug fix: `form_params` and `query` now always uses the `&` separator. + https://github.com/guzzle/guzzle/pull/1163 +* Bug fix: Adding a Content-Length to PHP stream wrapper requests if not set. + https://github.com/guzzle/guzzle/pull/1189 + +## 6.0.2 - 2015-07-04 + +* Fixed a memory leak in the curl handlers in which references to callbacks + were not being removed by `curl_reset`. +* Cookies are now extracted properly before redirects. +* Cookies now allow more character ranges. +* Decoded Content-Encoding responses are now modified to correctly reflect + their state if the encoding was automatically removed by a handler. This + means that the `Content-Encoding` header may be removed an the + `Content-Length` modified to reflect the message size after removing the + encoding. +* Added a more explicit error message when trying to use `form_params` and + `multipart` in the same request. +* Several fixes for HHVM support. +* Functions are now conditionally required using an additional level of + indirection to help with global Composer installations. + +## 6.0.1 - 2015-05-27 + +* Fixed a bug with serializing the `query` request option where the `&` + separator was missing. +* Added a better error message for when `body` is provided as an array. Please + use `form_params` or `multipart` instead. +* Various doc fixes. + +## 6.0.0 - 2015-05-26 + +* See the UPGRADING.md document for more information. +* Added `multipart` and `form_params` request options. +* Added `synchronous` request option. +* Added the `on_headers` request option. +* Fixed `expect` handling. +* No longer adding default middlewares in the client ctor. These need to be + present on the provided handler in order to work. +* Requests are no longer initiated when sending async requests with the + CurlMultiHandler. This prevents unexpected recursion from requests completing + while ticking the cURL loop. +* Removed the semantics of setting `default` to `true`. This is no longer + required now that the cURL loop is not ticked for async requests. +* Added request and response logging middleware. +* No longer allowing self signed certificates when using the StreamHandler. +* Ensuring that `sink` is valid if saving to a file. +* Request exceptions now include a "handler context" which provides handler + specific contextual information. +* Added `GuzzleHttp\RequestOptions` to allow request options to be applied + using constants. +* `$maxHandles` has been removed from CurlMultiHandler. +* `MultipartPostBody` is now part of the `guzzlehttp/psr7` package. + +## 5.3.0 - 2015-05-19 + +* Mock now supports `save_to` +* Marked `AbstractRequestEvent::getTransaction()` as public. +* Fixed a bug in which multiple headers using different casing would overwrite + previous headers in the associative array. +* Added `Utils::getDefaultHandler()` +* Marked `GuzzleHttp\Client::getDefaultUserAgent` as deprecated. +* URL scheme is now always lowercased. + +## 6.0.0-beta.1 + +* Requires PHP >= 5.5 +* Updated to use PSR-7 + * Requires immutable messages, which basically means an event based system + owned by a request instance is no longer possible. + * Utilizing the [Guzzle PSR-7 package](https://github.com/guzzle/psr7). + * Removed the dependency on `guzzlehttp/streams`. These stream abstractions + are available in the `guzzlehttp/psr7` package under the `GuzzleHttp\Psr7` + namespace. +* Added middleware and handler system + * Replaced the Guzzle event and subscriber system with a middleware system. + * No longer depends on RingPHP, but rather places the HTTP handlers directly + in Guzzle, operating on PSR-7 messages. + * Retry logic is now encapsulated in `GuzzleHttp\Middleware::retry`, which + means the `guzzlehttp/retry-subscriber` is now obsolete. + * Mocking responses is now handled using `GuzzleHttp\Handler\MockHandler`. +* Asynchronous responses + * No longer supports the `future` request option to send an async request. + Instead, use one of the `*Async` methods of a client (e.g., `requestAsync`, + `getAsync`, etc.). + * Utilizing `GuzzleHttp\Promise` instead of React's promise library to avoid + recursion required by chaining and forwarding react promises. See + https://github.com/guzzle/promises + * Added `requestAsync` and `sendAsync` to send request asynchronously. + * Added magic methods for `getAsync()`, `postAsync()`, etc. to send requests + asynchronously. +* Request options + * POST and form updates + * Added the `form_fields` and `form_files` request options. + * Removed the `GuzzleHttp\Post` namespace. + * The `body` request option no longer accepts an array for POST requests. + * The `exceptions` request option has been deprecated in favor of the + `http_errors` request options. + * The `save_to` request option has been deprecated in favor of `sink` request + option. +* Clients no longer accept an array of URI template string and variables for + URI variables. You will need to expand URI templates before passing them + into a client constructor or request method. +* Client methods `get()`, `post()`, `put()`, `patch()`, `options()`, etc. are + now magic methods that will send synchronous requests. +* Replaced `Utils.php` with plain functions in `functions.php`. +* Removed `GuzzleHttp\Collection`. +* Removed `GuzzleHttp\BatchResults`. Batched pool results are now returned as + an array. +* Removed `GuzzleHttp\Query`. Query string handling is now handled using an + associative array passed into the `query` request option. The query string + is serialized using PHP's `http_build_query`. If you need more control, you + can pass the query string in as a string. +* `GuzzleHttp\QueryParser` has been replaced with the + `GuzzleHttp\Psr7\parse_query`. + +## 5.2.0 - 2015-01-27 + +* Added `AppliesHeadersInterface` to make applying headers to a request based + on the body more generic and not specific to `PostBodyInterface`. +* Reduced the number of stack frames needed to send requests. +* Nested futures are now resolved in the client rather than the RequestFsm +* Finishing state transitions is now handled in the RequestFsm rather than the + RingBridge. +* Added a guard in the Pool class to not use recursion for request retries. + +## 5.1.0 - 2014-12-19 + +* Pool class no longer uses recursion when a request is intercepted. +* The size of a Pool can now be dynamically adjusted using a callback. + See https://github.com/guzzle/guzzle/pull/943. +* Setting a request option to `null` when creating a request with a client will + ensure that the option is not set. This allows you to overwrite default + request options on a per-request basis. + See https://github.com/guzzle/guzzle/pull/937. +* Added the ability to limit which protocols are allowed for redirects by + specifying a `protocols` array in the `allow_redirects` request option. +* Nested futures due to retries are now resolved when waiting for synchronous + responses. See https://github.com/guzzle/guzzle/pull/947. +* `"0"` is now an allowed URI path. See + https://github.com/guzzle/guzzle/pull/935. +* `Query` no longer typehints on the `$query` argument in the constructor, + allowing for strings and arrays. +* Exceptions thrown in the `end` event are now correctly wrapped with Guzzle + specific exceptions if necessary. + +## 5.0.3 - 2014-11-03 + +This change updates query strings so that they are treated as un-encoded values +by default where the value represents an un-encoded value to send over the +wire. A Query object then encodes the value before sending over the wire. This +means that even value query string values (e.g., ":") are url encoded. This +makes the Query class match PHP's http_build_query function. However, if you +want to send requests over the wire using valid query string characters that do +not need to be encoded, then you can provide a string to Url::setQuery() and +pass true as the second argument to specify that the query string is a raw +string that should not be parsed or encoded (unless a call to getQuery() is +subsequently made, forcing the query-string to be converted into a Query +object). + +## 5.0.2 - 2014-10-30 + +* Added a trailing `\r\n` to multipart/form-data payloads. See + https://github.com/guzzle/guzzle/pull/871 +* Added a `GuzzleHttp\Pool::send()` convenience method to match the docs. +* Status codes are now returned as integers. See + https://github.com/guzzle/guzzle/issues/881 +* No longer overwriting an existing `application/x-www-form-urlencoded` header + when sending POST requests, allowing for customized headers. See + https://github.com/guzzle/guzzle/issues/877 +* Improved path URL serialization. + + * No longer double percent-encoding characters in the path or query string if + they are already encoded. + * Now properly encoding the supplied path to a URL object, instead of only + encoding ' ' and '?'. + * Note: This has been changed in 5.0.3 to now encode query string values by + default unless the `rawString` argument is provided when setting the query + string on a URL: Now allowing many more characters to be present in the + query string without being percent encoded. See https://tools.ietf.org/html/rfc3986#appendix-A + +## 5.0.1 - 2014-10-16 + +Bugfix release. + +* Fixed an issue where connection errors still returned response object in + error and end events event though the response is unusable. This has been + corrected so that a response is not returned in the `getResponse` method of + these events if the response did not complete. https://github.com/guzzle/guzzle/issues/867 +* Fixed an issue where transfer statistics were not being populated in the + RingBridge. https://github.com/guzzle/guzzle/issues/866 + +## 5.0.0 - 2014-10-12 + +Adding support for non-blocking responses and some minor API cleanup. + +### New Features + +* Added support for non-blocking responses based on `guzzlehttp/guzzle-ring`. +* Added a public API for creating a default HTTP adapter. +* Updated the redirect plugin to be non-blocking so that redirects are sent + concurrently. Other plugins like this can now be updated to be non-blocking. +* Added a "progress" event so that you can get upload and download progress + events. +* Added `GuzzleHttp\Pool` which implements FutureInterface and transfers + requests concurrently using a capped pool size as efficiently as possible. +* Added `hasListeners()` to EmitterInterface. +* Removed `GuzzleHttp\ClientInterface::sendAll` and marked + `GuzzleHttp\Client::sendAll` as deprecated (it's still there, just not the + recommended way). + +### Breaking changes + +The breaking changes in this release are relatively minor. The biggest thing to +look out for is that request and response objects no longer implement fluent +interfaces. + +* Removed the fluent interfaces (i.e., `return $this`) from requests, + responses, `GuzzleHttp\Collection`, `GuzzleHttp\Url`, + `GuzzleHttp\Query`, `GuzzleHttp\Post\PostBody`, and + `GuzzleHttp\Cookie\SetCookie`. This blog post provides a good outline of + why I did this: https://ocramius.github.io/blog/fluent-interfaces-are-evil/. + This also makes the Guzzle message interfaces compatible with the current + PSR-7 message proposal. +* Removed "functions.php", so that Guzzle is truly PSR-4 compliant. Except + for the HTTP request functions from function.php, these functions are now + implemented in `GuzzleHttp\Utils` using camelCase. `GuzzleHttp\json_decode` + moved to `GuzzleHttp\Utils::jsonDecode`. `GuzzleHttp\get_path` moved to + `GuzzleHttp\Utils::getPath`. `GuzzleHttp\set_path` moved to + `GuzzleHttp\Utils::setPath`. `GuzzleHttp\batch` should now be + `GuzzleHttp\Pool::batch`, which returns an `objectStorage`. Using functions.php + caused problems for many users: they aren't PSR-4 compliant, require an + explicit include, and needed an if-guard to ensure that the functions are not + declared multiple times. +* Rewrote adapter layer. + * Removing all classes from `GuzzleHttp\Adapter`, these are now + implemented as callables that are stored in `GuzzleHttp\Ring\Client`. + * Removed the concept of "parallel adapters". Sending requests serially or + concurrently is now handled using a single adapter. + * Moved `GuzzleHttp\Adapter\Transaction` to `GuzzleHttp\Transaction`. The + Transaction object now exposes the request, response, and client as public + properties. The getters and setters have been removed. +* Removed the "headers" event. This event was only useful for changing the + body a response once the headers of the response were known. You can implement + a similar behavior in a number of ways. One example might be to use a + FnStream that has access to the transaction being sent. For example, when the + first byte is written, you could check if the response headers match your + expectations, and if so, change the actual stream body that is being + written to. +* Removed the `asArray` parameter from + `GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header + value as an array, then use the newly added `getHeaderAsArray()` method of + `MessageInterface`. This change makes the Guzzle interfaces compatible with + the PSR-7 interfaces. +* `GuzzleHttp\Message\MessageFactory` no longer allows subclasses to add + custom request options using double-dispatch (this was an implementation + detail). Instead, you should now provide an associative array to the + constructor which is a mapping of the request option name mapping to a + function that applies the option value to a request. +* Removed the concept of "throwImmediately" from exceptions and error events. + This control mechanism was used to stop a transfer of concurrent requests + from completing. This can now be handled by throwing the exception or by + cancelling a pool of requests or each outstanding future request individually. +* Updated to "GuzzleHttp\Streams" 3.0. + * `GuzzleHttp\Stream\StreamInterface::getContents()` no longer accepts a + `maxLen` parameter. This update makes the Guzzle streams project + compatible with the current PSR-7 proposal. + * `GuzzleHttp\Stream\Stream::__construct`, + `GuzzleHttp\Stream\Stream::factory`, and + `GuzzleHttp\Stream\Utils::create` no longer accept a size in the second + argument. They now accept an associative array of options, including the + "size" key and "metadata" key which can be used to provide custom metadata. + +## 4.2.2 - 2014-09-08 + +* Fixed a memory leak in the CurlAdapter when reusing cURL handles. +* No longer using `request_fulluri` in stream adapter proxies. +* Relative redirects are now based on the last response, not the first response. + +## 4.2.1 - 2014-08-19 + +* Ensuring that the StreamAdapter does not always add a Content-Type header +* Adding automated github releases with a phar and zip + +## 4.2.0 - 2014-08-17 + +* Now merging in default options using a case-insensitive comparison. + Closes https://github.com/guzzle/guzzle/issues/767 +* Added the ability to automatically decode `Content-Encoding` response bodies + using the `decode_content` request option. This is set to `true` by default + to decode the response body if it comes over the wire with a + `Content-Encoding`. Set this value to `false` to disable decoding the + response content, and pass a string to provide a request `Accept-Encoding` + header and turn on automatic response decoding. This feature now allows you + to pass an `Accept-Encoding` header in the headers of a request but still + disable automatic response decoding. + Closes https://github.com/guzzle/guzzle/issues/764 +* Added the ability to throw an exception immediately when transferring + requests in parallel. Closes https://github.com/guzzle/guzzle/issues/760 +* Updating guzzlehttp/streams dependency to ~2.1 +* No longer utilizing the now deprecated namespaced methods from the stream + package. + +## 4.1.8 - 2014-08-14 + +* Fixed an issue in the CurlFactory that caused setting the `stream=false` + request option to throw an exception. + See: https://github.com/guzzle/guzzle/issues/769 +* TransactionIterator now calls rewind on the inner iterator. + See: https://github.com/guzzle/guzzle/pull/765 +* You can now set the `Content-Type` header to `multipart/form-data` + when creating POST requests to force multipart bodies. + See https://github.com/guzzle/guzzle/issues/768 + +## 4.1.7 - 2014-08-07 + +* Fixed an error in the HistoryPlugin that caused the same request and response + to be logged multiple times when an HTTP protocol error occurs. +* Ensuring that cURL does not add a default Content-Type when no Content-Type + has been supplied by the user. This prevents the adapter layer from modifying + the request that is sent over the wire after any listeners may have already + put the request in a desired state (e.g., signed the request). +* Throwing an exception when you attempt to send requests that have the + "stream" set to true in parallel using the MultiAdapter. +* Only calling curl_multi_select when there are active cURL handles. This was + previously changed and caused performance problems on some systems due to PHP + always selecting until the maximum select timeout. +* Fixed a bug where multipart/form-data POST fields were not correctly + aggregated (e.g., values with "&"). + +## 4.1.6 - 2014-08-03 + +* Added helper methods to make it easier to represent messages as strings, + including getting the start line and getting headers as a string. + +## 4.1.5 - 2014-08-02 + +* Automatically retrying cURL "Connection died, retrying a fresh connect" + errors when possible. +* cURL implementation cleanup +* Allowing multiple event subscriber listeners to be registered per event by + passing an array of arrays of listener configuration. + +## 4.1.4 - 2014-07-22 + +* Fixed a bug that caused multi-part POST requests with more than one field to + serialize incorrectly. +* Paths can now be set to "0" +* `ResponseInterface::xml` now accepts a `libxml_options` option and added a + missing default argument that was required when parsing XML response bodies. +* A `save_to` stream is now created lazily, which means that files are not + created on disk unless a request succeeds. + +## 4.1.3 - 2014-07-15 + +* Various fixes to multipart/form-data POST uploads +* Wrapping function.php in an if-statement to ensure Guzzle can be used + globally and in a Composer install +* Fixed an issue with generating and merging in events to an event array +* POST headers are only applied before sending a request to allow you to change + the query aggregator used before uploading +* Added much more robust query string parsing +* Fixed various parsing and normalization issues with URLs +* Fixing an issue where multi-valued headers were not being utilized correctly + in the StreamAdapter + +## 4.1.2 - 2014-06-18 + +* Added support for sending payloads with GET requests + +## 4.1.1 - 2014-06-08 + +* Fixed an issue related to using custom message factory options in subclasses +* Fixed an issue with nested form fields in a multi-part POST +* Fixed an issue with using the `json` request option for POST requests +* Added `ToArrayInterface` to `GuzzleHttp\Cookie\CookieJar` + +## 4.1.0 - 2014-05-27 + +* Added a `json` request option to easily serialize JSON payloads. +* Added a `GuzzleHttp\json_decode()` wrapper to safely parse JSON. +* Added `setPort()` and `getPort()` to `GuzzleHttp\Message\RequestInterface`. +* Added the ability to provide an emitter to a client in the client constructor. +* Added the ability to persist a cookie session using $_SESSION. +* Added a trait that can be used to add event listeners to an iterator. +* Removed request method constants from RequestInterface. +* Fixed warning when invalid request start-lines are received. +* Updated MessageFactory to work with custom request option methods. +* Updated cacert bundle to latest build. + +4.0.2 (2014-04-16) +------------------ + +* Proxy requests using the StreamAdapter now properly use request_fulluri (#632) +* Added the ability to set scalars as POST fields (#628) + +## 4.0.1 - 2014-04-04 + +* The HTTP status code of a response is now set as the exception code of + RequestException objects. +* 303 redirects will now correctly switch from POST to GET requests. +* The default parallel adapter of a client now correctly uses the MultiAdapter. +* HasDataTrait now initializes the internal data array as an empty array so + that the toArray() method always returns an array. + +## 4.0.0 - 2014-03-29 + +* For information on changes and upgrading, see: + https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 +* Added `GuzzleHttp\batch()` as a convenience function for sending requests in + parallel without needing to write asynchronous code. +* Restructured how events are added to `GuzzleHttp\ClientInterface::sendAll()`. + You can now pass a callable or an array of associative arrays where each + associative array contains the "fn", "priority", and "once" keys. + +## 4.0.0.rc-2 - 2014-03-25 + +* Removed `getConfig()` and `setConfig()` from clients to avoid confusion + around whether things like base_url, message_factory, etc. should be able to + be retrieved or modified. +* Added `getDefaultOption()` and `setDefaultOption()` to ClientInterface +* functions.php functions were renamed using snake_case to match PHP idioms +* Added support for `HTTP_PROXY`, `HTTPS_PROXY`, and + `GUZZLE_CURL_SELECT_TIMEOUT` environment variables +* Added the ability to specify custom `sendAll()` event priorities +* Added the ability to specify custom stream context options to the stream + adapter. +* Added a functions.php function for `get_path()` and `set_path()` +* CurlAdapter and MultiAdapter now use a callable to generate curl resources +* MockAdapter now properly reads a body and emits a `headers` event +* Updated Url class to check if a scheme and host are set before adding ":" + and "//". This allows empty Url (e.g., "") to be serialized as "". +* Parsing invalid XML no longer emits warnings +* Curl classes now properly throw AdapterExceptions +* Various performance optimizations +* Streams are created with the faster `Stream\create()` function +* Marked deprecation_proxy() as internal +* Test server is now a collection of static methods on a class + +## 4.0.0-rc.1 - 2014-03-15 + +* See https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 + +## 3.8.1 - 2014-01-28 + +* Bug: Always using GET requests when redirecting from a 303 response +* Bug: CURLOPT_SSL_VERIFYHOST is now correctly set to false when setting `$certificateAuthority` to false in + `Guzzle\Http\ClientInterface::setSslVerification()` +* Bug: RedirectPlugin now uses strict RFC 3986 compliance when combining a base URL with a relative URL +* Bug: The body of a request can now be set to `"0"` +* Sending PHP stream requests no longer forces `HTTP/1.0` +* Adding more information to ExceptionCollection exceptions so that users have more context, including a stack trace of + each sub-exception +* Updated the `$ref` attribute in service descriptions to merge over any existing parameters of a schema (rather than + clobbering everything). +* Merging URLs will now use the query string object from the relative URL (thus allowing custom query aggregators) +* Query strings are now parsed in a way that they do no convert empty keys with no value to have a dangling `=`. + For example `foo&bar=baz` is now correctly parsed and recognized as `foo&bar=baz` rather than `foo=&bar=baz`. +* Now properly escaping the regular expression delimiter when matching Cookie domains. +* Network access is now disabled when loading XML documents + +## 3.8.0 - 2013-12-05 + +* Added the ability to define a POST name for a file +* JSON response parsing now properly walks additionalProperties +* cURL error code 18 is now retried automatically in the BackoffPlugin +* Fixed a cURL error when URLs contain fragments +* Fixed an issue in the BackoffPlugin retry event where it was trying to access all exceptions as if they were + CurlExceptions +* CURLOPT_PROGRESS function fix for PHP 5.5 (69fcc1e) +* Added the ability for Guzzle to work with older versions of cURL that do not support `CURLOPT_TIMEOUT_MS` +* Fixed a bug that was encountered when parsing empty header parameters +* UriTemplate now has a `setRegex()` method to match the docs +* The `debug` request parameter now checks if it is truthy rather than if it exists +* Setting the `debug` request parameter to true shows verbose cURL output instead of using the LogPlugin +* Added the ability to combine URLs using strict RFC 3986 compliance +* Command objects can now return the validation errors encountered by the command +* Various fixes to cache revalidation (#437 and 29797e5) +* Various fixes to the AsyncPlugin +* Cleaned up build scripts + +## 3.7.4 - 2013-10-02 + +* Bug fix: 0 is now an allowed value in a description parameter that has a default value (#430) +* Bug fix: SchemaFormatter now returns an integer when formatting to a Unix timestamp + (see https://github.com/aws/aws-sdk-php/issues/147) +* Bug fix: Cleaned up and fixed URL dot segment removal to properly resolve internal dots +* Minimum PHP version is now properly specified as 5.3.3 (up from 5.3.2) (#420) +* Updated the bundled cacert.pem (#419) +* OauthPlugin now supports adding authentication to headers or query string (#425) + +## 3.7.3 - 2013-09-08 + +* Added the ability to get the exception associated with a request/command when using `MultiTransferException` and + `CommandTransferException`. +* Setting `additionalParameters` of a response to false is now honored when parsing responses with a service description +* Schemas are only injected into response models when explicitly configured. +* No longer guessing Content-Type based on the path of a request. Content-Type is now only guessed based on the path of + an EntityBody. +* Bug fix: ChunkedIterator can now properly chunk a \Traversable as well as an \Iterator. +* Bug fix: FilterIterator now relies on `\Iterator` instead of `\Traversable`. +* Bug fix: Gracefully handling malformed responses in RequestMediator::writeResponseBody() +* Bug fix: Replaced call to canCache with canCacheRequest in the CallbackCanCacheStrategy of the CachePlugin +* Bug fix: Visiting XML attributes first before visiting XML children when serializing requests +* Bug fix: Properly parsing headers that contain commas contained in quotes +* Bug fix: mimetype guessing based on a filename is now case-insensitive + +## 3.7.2 - 2013-08-02 + +* Bug fix: Properly URL encoding paths when using the PHP-only version of the UriTemplate expander + See https://github.com/guzzle/guzzle/issues/371 +* Bug fix: Cookie domains are now matched correctly according to RFC 6265 + See https://github.com/guzzle/guzzle/issues/377 +* Bug fix: GET parameters are now used when calculating an OAuth signature +* Bug fix: Fixed an issue with cache revalidation where the If-None-Match header was being double quoted +* `Guzzle\Common\AbstractHasDispatcher::dispatch()` now returns the event that was dispatched +* `Guzzle\Http\QueryString::factory()` now guesses the most appropriate query aggregator to used based on the input. + See https://github.com/guzzle/guzzle/issues/379 +* Added a way to add custom domain objects to service description parsing using the `operation.parse_class` event. See + https://github.com/guzzle/guzzle/pull/380 +* cURL multi cleanup and optimizations + +## 3.7.1 - 2013-07-05 + +* Bug fix: Setting default options on a client now works +* Bug fix: Setting options on HEAD requests now works. See #352 +* Bug fix: Moving stream factory before send event to before building the stream. See #353 +* Bug fix: Cookies no longer match on IP addresses per RFC 6265 +* Bug fix: Correctly parsing header parameters that are in `<>` and quotes +* Added `cert` and `ssl_key` as request options +* `Host` header can now diverge from the host part of a URL if the header is set manually +* `Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor` was rewritten to change from using SimpleXML to XMLWriter +* OAuth parameters are only added via the plugin if they aren't already set +* Exceptions are now thrown when a URL cannot be parsed +* Returning `false` if `Guzzle\Http\EntityBody::getContentMd5()` fails +* Not setting a `Content-MD5` on a command if calculating the Content-MD5 fails via the CommandContentMd5Plugin + +## 3.7.0 - 2013-06-10 + +* See UPGRADING.md for more information on how to upgrade. +* Requests now support the ability to specify an array of $options when creating a request to more easily modify a + request. You can pass a 'request.options' configuration setting to a client to apply default request options to + every request created by a client (e.g. default query string variables, headers, curl options, etc.). +* Added a static facade class that allows you to use Guzzle with static methods and mount the class to `\Guzzle`. + See `Guzzle\Http\StaticClient::mount`. +* Added `command.request_options` to `Guzzle\Service\Command\AbstractCommand` to pass request options to requests + created by a command (e.g. custom headers, query string variables, timeout settings, etc.). +* Stream size in `Guzzle\Stream\PhpStreamRequestFactory` will now be set if Content-Length is returned in the + headers of a response +* Added `Guzzle\Common\Collection::setPath($path, $value)` to set a value into an array using a nested key + (e.g. `$collection->setPath('foo/baz/bar', 'test'); echo $collection['foo']['bar']['bar'];`) +* ServiceBuilders now support storing and retrieving arbitrary data +* CachePlugin can now purge all resources for a given URI +* CachePlugin can automatically purge matching cached items when a non-idempotent request is sent to a resource +* CachePlugin now uses the Vary header to determine if a resource is a cache hit +* `Guzzle\Http\Message\Response` now implements `\Serializable` +* Added `Guzzle\Cache\CacheAdapterFactory::fromCache()` to more easily create cache adapters +* `Guzzle\Service\ClientInterface::execute()` now accepts an array, single command, or Traversable +* Fixed a bug in `Guzzle\Http\Message\Header\Link::addLink()` +* Better handling of calculating the size of a stream in `Guzzle\Stream\Stream` using fstat() and caching the size +* `Guzzle\Common\Exception\ExceptionCollection` now creates a more readable exception message +* Fixing BC break: Added back the MonologLogAdapter implementation rather than extending from PsrLog so that older + Symfony users can still use the old version of Monolog. +* Fixing BC break: Added the implementation back in for `Guzzle\Http\Message\AbstractMessage::getTokenizedHeader()`. + Now triggering an E_USER_DEPRECATED warning when used. Use `$message->getHeader()->parseParams()`. +* Several performance improvements to `Guzzle\Common\Collection` +* Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: + createRequest, head, delete, put, patch, post, options, prepareRequest +* Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` +* Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` +* Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to + `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a + resource, string, or EntityBody into the $options parameter to specify the download location of the response. +* Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a + default `array()` +* Added `Guzzle\Stream\StreamInterface::isRepeatable` +* Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use + $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or + $client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))`. +* Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use $client->getConfig()->getPath('request.options/headers')`. +* Removed `Guzzle\Http\ClientInterface::expandTemplate()` +* Removed `Guzzle\Http\ClientInterface::setRequestFactory()` +* Removed `Guzzle\Http\ClientInterface::getCurlMulti()` +* Removed `Guzzle\Http\Message\RequestInterface::canCache` +* Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect` +* Removed `Guzzle\Http\Message\RequestInterface::isRedirect` +* Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. +* You can now enable E_USER_DEPRECATED warnings to see if you are using a deprecated method by setting + `Guzzle\Common\Version::$emitWarnings` to true. +* Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use + `$request->getResponseBody()->isRepeatable()` instead. +* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use + `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use + `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +* Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. +* Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. +* Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated +* Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. + These will work through Guzzle 4.0 +* Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use [request.options][params]. +* Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. +* Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use $client->getConfig()->getPath('request.options/headers')`. +* Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. +* Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. +* Marked `Guzzle\Common\Collection::inject()` as deprecated. +* Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest');` +* CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a + CacheStorageInterface. These two objects and interface will be removed in a future version. +* Always setting X-cache headers on cached responses +* Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin +* `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface + $request, Response $response);` +* `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` +* `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` +* Added `CacheStorageInterface::purge($url)` +* `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin + $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, + CanCacheStrategyInterface $canCache = null)` +* Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` + +## 3.6.0 - 2013-05-29 + +* ServiceDescription now implements ToArrayInterface +* Added command.hidden_params to blacklist certain headers from being treated as additionalParameters +* Guzzle can now correctly parse incomplete URLs +* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. +* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution +* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). +* Specific header implementations can be created for complex headers. When a message creates a header, it uses a + HeaderFactory which can map specific headers to specific header classes. There is now a Link header and + CacheControl header implementation. +* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate +* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() +* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in + Guzzle\Http\Curl\RequestMediator +* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. +* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface +* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() +* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() +* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). +* All response header helper functions return a string rather than mixing Header objects and strings inconsistently +* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle + directly via interfaces +* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist + but are a no-op until removed. +* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a + `Guzzle\Service\Command\ArrayCommandInterface`. +* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response + on a request while the request is still being transferred +* The ability to case-insensitively search for header values +* Guzzle\Http\Message\Header::hasExactHeader +* Guzzle\Http\Message\Header::raw. Use getAll() +* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object + instead. +* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess +* Added the ability to cast Model objects to a string to view debug information. + +## 3.5.0 - 2013-05-13 + +* Bug: Fixed a regression so that request responses are parsed only once per oncomplete event rather than multiple times +* Bug: Better cleanup of one-time events across the board (when an event is meant to fire once, it will now remove + itself from the EventDispatcher) +* Bug: `Guzzle\Log\MessageFormatter` now properly writes "total_time" and "connect_time" values +* Bug: Cloning an EntityEnclosingRequest now clones the EntityBody too +* Bug: Fixed an undefined index error when parsing nested JSON responses with a sentAs parameter that reference a + non-existent key +* Bug: All __call() method arguments are now required (helps with mocking frameworks) +* Deprecating Response::getRequest() and now using a shallow clone of a request object to remove a circular reference + to help with refcount based garbage collection of resources created by sending a request +* Deprecating ZF1 cache and log adapters. These will be removed in the next major version. +* Deprecating `Response::getPreviousResponse()` (method signature still exists, but it's deprecated). Use the + HistoryPlugin for a history. +* Added a `responseBody` alias for the `response_body` location +* Refactored internals to no longer rely on Response::getRequest() +* HistoryPlugin can now be cast to a string +* HistoryPlugin now logs transactions rather than requests and responses to more accurately keep track of the requests + and responses that are sent over the wire +* Added `getEffectiveUrl()` and `getRedirectCount()` to Response objects + +## 3.4.3 - 2013-04-30 + +* Bug fix: Fixing bug introduced in 3.4.2 where redirect responses are duplicated on the final redirected response +* Added a check to re-extract the temp cacert bundle from the phar before sending each request + +## 3.4.2 - 2013-04-29 + +* Bug fix: Stream objects now work correctly with "a" and "a+" modes +* Bug fix: Removing `Transfer-Encoding: chunked` header when a Content-Length is present +* Bug fix: AsyncPlugin no longer forces HEAD requests +* Bug fix: DateTime timezones are now properly handled when using the service description schema formatter +* Bug fix: CachePlugin now properly handles stale-if-error directives when a request to the origin server fails +* Setting a response on a request will write to the custom request body from the response body if one is specified +* LogPlugin now writes to php://output when STDERR is undefined +* Added the ability to set multiple POST files for the same key in a single call +* application/x-www-form-urlencoded POSTs now use the utf-8 charset by default +* Added the ability to queue CurlExceptions to the MockPlugin +* Cleaned up how manual responses are queued on requests (removed "queued_response" and now using request.before_send) +* Configuration loading now allows remote files + +## 3.4.1 - 2013-04-16 + +* Large refactoring to how CurlMulti handles work. There is now a proxy that sits in front of a pool of CurlMulti + handles. This greatly simplifies the implementation, fixes a couple bugs, and provides a small performance boost. +* Exceptions are now properly grouped when sending requests in parallel +* Redirects are now properly aggregated when a multi transaction fails +* Redirects now set the response on the original object even in the event of a failure +* Bug fix: Model names are now properly set even when using $refs +* Added support for PHP 5.5's CurlFile to prevent warnings with the deprecated @ syntax +* Added support for oauth_callback in OAuth signatures +* Added support for oauth_verifier in OAuth signatures +* Added support to attempt to retrieve a command first literally, then ucfirst, the with inflection + +## 3.4.0 - 2013-04-11 + +* Bug fix: URLs are now resolved correctly based on https://tools.ietf.org/html/rfc3986#section-5.2. #289 +* Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289 +* Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263 +* Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264. +* Bug fix: Added `number` type to service descriptions. +* Bug fix: empty parameters are removed from an OAuth signature +* Bug fix: Revalidating a cache entry prefers the Last-Modified over the Date header +* Bug fix: Fixed "array to string" error when validating a union of types in a service description +* Bug fix: Removed code that attempted to determine the size of a stream when data is written to the stream +* Bug fix: Not including an `oauth_token` if the value is null in the OauthPlugin. +* Bug fix: Now correctly aggregating successful requests and failed requests in CurlMulti when a redirect occurs. +* The new default CURLOPT_TIMEOUT setting has been increased to 150 seconds so that Guzzle works on poor connections. +* Added a feature to EntityEnclosingRequest::setBody() that will automatically set the Content-Type of the request if + the Content-Type can be determined based on the entity body or the path of the request. +* Added the ability to overwrite configuration settings in a client when grabbing a throwaway client from a builder. +* Added support for a PSR-3 LogAdapter. +* Added a `command.after_prepare` event +* Added `oauth_callback` parameter to the OauthPlugin +* Added the ability to create a custom stream class when using a stream factory +* Added a CachingEntityBody decorator +* Added support for `additionalParameters` in service descriptions to define how custom parameters are serialized. +* The bundled SSL certificate is now provided in the phar file and extracted when running Guzzle from a phar. +* You can now send any EntityEnclosingRequest with POST fields or POST files and cURL will handle creating bodies +* POST requests using a custom entity body are now treated exactly like PUT requests but with a custom cURL method. This + means that the redirect behavior of POST requests with custom bodies will not be the same as POST requests that use + POST fields or files (the latter is only used when emulating a form POST in the browser). +* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest + +## 3.3.1 - 2013-03-10 + +* Added the ability to create PHP streaming responses from HTTP requests +* Bug fix: Running any filters when parsing response headers with service descriptions +* Bug fix: OauthPlugin fixes to allow for multi-dimensional array signing, and sorting parameters before signing +* Bug fix: Removed the adding of default empty arrays and false Booleans to responses in order to be consistent across + response location visitors. +* Bug fix: Removed the possibility of creating configuration files with circular dependencies +* RequestFactory::create() now uses the key of a POST file when setting the POST file name +* Added xmlAllowEmpty to serialize an XML body even if no XML specific parameters are set + +## 3.3.0 - 2013-03-03 + +* A large number of performance optimizations have been made +* Bug fix: Added 'wb' as a valid write mode for streams +* Bug fix: `Guzzle\Http\Message\Response::json()` now allows scalar values to be returned +* Bug fix: Fixed bug in `Guzzle\Http\Message\Response` where wrapping quotes were stripped from `getEtag()` +* BC: Removed `Guzzle\Http\Utils` class +* BC: Setting a service description on a client will no longer modify the client's command factories. +* BC: Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using + the 'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' +* BC: `Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getSteamType()` are no longer converted to + lowercase +* Operation parameter objects are now lazy loaded internally +* Added ErrorResponsePlugin that can throw errors for responses defined in service description operations' errorResponses +* Added support for instantiating responseType=class responseClass classes. Classes must implement + `Guzzle\Service\Command\ResponseClassInterface` +* Added support for additionalProperties for top-level parameters in responseType=model responseClasses. These + additional properties also support locations and can be used to parse JSON responses where the outermost part of the + JSON is an array +* Added support for nested renaming of JSON models (rename sentAs to name) +* CachePlugin + * Added support for stale-if-error so that the CachePlugin can now serve stale content from the cache on error + * Debug headers can now added to cached response in the CachePlugin + +## 3.2.0 - 2013-02-14 + +* CurlMulti is no longer reused globally. A new multi object is created per-client. This helps to isolate clients. +* URLs with no path no longer contain a "/" by default +* Guzzle\Http\QueryString does no longer manages the leading "?". This is now handled in Guzzle\Http\Url. +* BadResponseException no longer includes the full request and response message +* Adding setData() to Guzzle\Service\Description\ServiceDescriptionInterface +* Adding getResponseBody() to Guzzle\Http\Message\RequestInterface +* Various updates to classes to use ServiceDescriptionInterface type hints rather than ServiceDescription +* Header values can now be normalized into distinct values when multiple headers are combined with a comma separated list +* xmlEncoding can now be customized for the XML declaration of a XML service description operation +* Guzzle\Http\QueryString now uses Guzzle\Http\QueryAggregator\QueryAggregatorInterface objects to add custom value + aggregation and no longer uses callbacks +* The URL encoding implementation of Guzzle\Http\QueryString can now be customized +* Bug fix: Filters were not always invoked for array service description parameters +* Bug fix: Redirects now use a target response body rather than a temporary response body +* Bug fix: The default exponential backoff BackoffPlugin was not giving when the request threshold was exceeded +* Bug fix: Guzzle now takes the first found value when grabbing Cache-Control directives + +## 3.1.2 - 2013-01-27 + +* Refactored how operation responses are parsed. Visitors now include a before() method responsible for parsing the + response body. For example, the XmlVisitor now parses the XML response into an array in the before() method. +* Fixed an issue where cURL would not automatically decompress responses when the Accept-Encoding header was sent +* CURLOPT_SSL_VERIFYHOST is never set to 1 because it is deprecated (see 5e0ff2ef20f839e19d1eeb298f90ba3598784444) +* Fixed a bug where redirect responses were not chained correctly using getPreviousResponse() +* Setting default headers on a client after setting the user-agent will not erase the user-agent setting + +## 3.1.1 - 2013-01-20 + +* Adding wildcard support to Guzzle\Common\Collection::getPath() +* Adding alias support to ServiceBuilder configs +* Adding Guzzle\Service\Resource\CompositeResourceIteratorFactory and cleaning up factory interface + +## 3.1.0 - 2013-01-12 + +* BC: CurlException now extends from RequestException rather than BadResponseException +* BC: Renamed Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCache() to canCacheRequest() and added CanCacheResponse() +* Added getData to ServiceDescriptionInterface +* Added context array to RequestInterface::setState() +* Bug: Removing hard dependency on the BackoffPlugin from Guzzle\Http +* Bug: Adding required content-type when JSON request visitor adds JSON to a command +* Bug: Fixing the serialization of a service description with custom data +* Made it easier to deal with exceptions thrown when transferring commands or requests in parallel by providing + an array of successful and failed responses +* Moved getPath from Guzzle\Service\Resource\Model to Guzzle\Common\Collection +* Added Guzzle\Http\IoEmittingEntityBody +* Moved command filtration from validators to location visitors +* Added `extends` attributes to service description parameters +* Added getModels to ServiceDescriptionInterface + +## 3.0.7 - 2012-12-19 + +* Fixing phar detection when forcing a cacert to system if null or true +* Allowing filename to be passed to `Guzzle\Http\Message\Request::setResponseBody()` +* Cleaning up `Guzzle\Common\Collection::inject` method +* Adding a response_body location to service descriptions + +## 3.0.6 - 2012-12-09 + +* CurlMulti performance improvements +* Adding setErrorResponses() to Operation +* composer.json tweaks + +## 3.0.5 - 2012-11-18 + +* Bug: Fixing an infinite recursion bug caused from revalidating with the CachePlugin +* Bug: Response body can now be a string containing "0" +* Bug: Using Guzzle inside of a phar uses system by default but now allows for a custom cacert +* Bug: QueryString::fromString now properly parses query string parameters that contain equal signs +* Added support for XML attributes in service description responses +* DefaultRequestSerializer now supports array URI parameter values for URI template expansion +* Added better mimetype guessing to requests and post files + +## 3.0.4 - 2012-11-11 + +* Bug: Fixed a bug when adding multiple cookies to a request to use the correct glue value +* Bug: Cookies can now be added that have a name, domain, or value set to "0" +* Bug: Using the system cacert bundle when using the Phar +* Added json and xml methods to Response to make it easier to parse JSON and XML response data into data structures +* Enhanced cookie jar de-duplication +* Added the ability to enable strict cookie jars that throw exceptions when invalid cookies are added +* Added setStream to StreamInterface to actually make it possible to implement custom rewind behavior for entity bodies +* Added the ability to create any sort of hash for a stream rather than just an MD5 hash + +## 3.0.3 - 2012-11-04 + +* Implementing redirects in PHP rather than cURL +* Added PECL URI template extension and using as default parser if available +* Bug: Fixed Content-Length parsing of Response factory +* Adding rewind() method to entity bodies and streams. Allows for custom rewinding of non-repeatable streams. +* Adding ToArrayInterface throughout library +* Fixing OauthPlugin to create unique nonce values per request + +## 3.0.2 - 2012-10-25 + +* Magic methods are enabled by default on clients +* Magic methods return the result of a command +* Service clients no longer require a base_url option in the factory +* Bug: Fixed an issue with URI templates where null template variables were being expanded + +## 3.0.1 - 2012-10-22 + +* Models can now be used like regular collection objects by calling filter, map, etc. +* Models no longer require a Parameter structure or initial data in the constructor +* Added a custom AppendIterator to get around a PHP bug with the `\AppendIterator` + +## 3.0.0 - 2012-10-15 + +* Rewrote service description format to be based on Swagger + * Now based on JSON schema + * Added nested input structures and nested response models + * Support for JSON and XML input and output models + * Renamed `commands` to `operations` + * Removed dot class notation + * Removed custom types +* Broke the project into smaller top-level namespaces to be more component friendly +* Removed support for XML configs and descriptions. Use arrays or JSON files. +* Removed the Validation component and Inspector +* Moved all cookie code to Guzzle\Plugin\Cookie +* Magic methods on a Guzzle\Service\Client now return the command un-executed. +* Calling getResult() or getResponse() on a command will lazily execute the command if needed. +* Now shipping with cURL's CA certs and using it by default +* Added previousResponse() method to response objects +* No longer sending Accept and Accept-Encoding headers on every request +* Only sending an Expect header by default when a payload is greater than 1MB +* Added/moved client options: + * curl.blacklist to curl.option.blacklist + * Added ssl.certificate_authority +* Added a Guzzle\Iterator component +* Moved plugins from Guzzle\Http\Plugin to Guzzle\Plugin +* Added a more robust backoff retry strategy (replaced the ExponentialBackoffPlugin) +* Added a more robust caching plugin +* Added setBody to response objects +* Updating LogPlugin to use a more flexible MessageFormatter +* Added a completely revamped build process +* Cleaning up Collection class and removing default values from the get method +* Fixed ZF2 cache adapters + +## 2.8.8 - 2012-10-15 + +* Bug: Fixed a cookie issue that caused dot prefixed domains to not match where popular browsers did + +## 2.8.7 - 2012-09-30 + +* Bug: Fixed config file aliases for JSON includes +* Bug: Fixed cookie bug on a request object by using CookieParser to parse cookies on requests +* Bug: Removing the path to a file when sending a Content-Disposition header on a POST upload +* Bug: Hardening request and response parsing to account for missing parts +* Bug: Fixed PEAR packaging +* Bug: Fixed Request::getInfo +* Bug: Fixed cases where CURLM_CALL_MULTI_PERFORM return codes were causing curl transactions to fail +* Adding the ability for the namespace Iterator factory to look in multiple directories +* Added more getters/setters/removers from service descriptions +* Added the ability to remove POST fields from OAuth signatures +* OAuth plugin now supports 2-legged OAuth + +## 2.8.6 - 2012-09-05 + +* Added the ability to modify and build service descriptions +* Added the use of visitors to apply parameters to locations in service descriptions using the dynamic command +* Added a `json` parameter location +* Now allowing dot notation for classes in the CacheAdapterFactory +* Using the union of two arrays rather than an array_merge when extending service builder services and service params +* Ensuring that a service is a string before doing strpos() checks on it when substituting services for references + in service builder config files. +* Services defined in two different config files that include one another will by default replace the previously + defined service, but you can now create services that extend themselves and merge their settings over the previous +* The JsonLoader now supports aliasing filenames with different filenames. This allows you to alias something like + '_default' with a default JSON configuration file. + +## 2.8.5 - 2012-08-29 + +* Bug: Suppressed empty arrays from URI templates +* Bug: Added the missing $options argument from ServiceDescription::factory to enable caching +* Added support for HTTP responses that do not contain a reason phrase in the start-line +* AbstractCommand commands are now invokable +* Added a way to get the data used when signing an Oauth request before a request is sent + +## 2.8.4 - 2012-08-15 + +* Bug: Custom delay time calculations are no longer ignored in the ExponentialBackoffPlugin +* Added the ability to transfer entity bodies as a string rather than streamed. This gets around curl error 65. Set `body_as_string` in a request's curl options to enable. +* Added a StreamInterface, EntityBodyInterface, and added ftell() to Guzzle\Common\Stream +* Added an AbstractEntityBodyDecorator and a ReadLimitEntityBody decorator to transfer only a subset of a decorated stream +* Stream and EntityBody objects will now return the file position to the previous position after a read required operation (e.g. getContentMd5()) +* Added additional response status codes +* Removed SSL information from the default User-Agent header +* DELETE requests can now send an entity body +* Added an EventDispatcher to the ExponentialBackoffPlugin and added an ExponentialBackoffLogger to log backoff retries +* Added the ability of the MockPlugin to consume mocked request bodies +* LogPlugin now exposes request and response objects in the extras array + +## 2.8.3 - 2012-07-30 + +* Bug: Fixed a case where empty POST requests were sent as GET requests +* Bug: Fixed a bug in ExponentialBackoffPlugin that caused fatal errors when retrying an EntityEnclosingRequest that does not have a body +* Bug: Setting the response body of a request to null after completing a request, not when setting the state of a request to new +* Added multiple inheritance to service description commands +* Added an ApiCommandInterface and added `getParamNames()` and `hasParam()` +* Removed the default 2mb size cutoff from the Md5ValidatorPlugin so that it now defaults to validating everything +* Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles + +## 2.8.2 - 2012-07-24 + +* Bug: Query string values set to 0 are no longer dropped from the query string +* Bug: A Collection object is no longer created each time a call is made to `Guzzle\Service\Command\AbstractCommand::getRequestHeaders()` +* Bug: `+` is now treated as an encoded space when parsing query strings +* QueryString and Collection performance improvements +* Allowing dot notation for class paths in filters attribute of a service descriptions + +## 2.8.1 - 2012-07-16 + +* Loosening Event Dispatcher dependency +* POST redirects can now be customized using CURLOPT_POSTREDIR + +## 2.8.0 - 2012-07-15 + +* BC: Guzzle\Http\Query + * Query strings with empty variables will always show an equal sign unless the variable is set to QueryString::BLANK (e.g. ?acl= vs ?acl) + * Changed isEncodingValues() and isEncodingFields() to isUrlEncoding() + * Changed setEncodeValues(bool) and setEncodeFields(bool) to useUrlEncoding(bool) + * Changed the aggregation functions of QueryString to be static methods + * Can now use fromString() with querystrings that have a leading ? +* cURL configuration values can be specified in service descriptions using `curl.` prefixed parameters +* Content-Length is set to 0 before emitting the request.before_send event when sending an empty request body +* Cookies are no longer URL decoded by default +* Bug: URI template variables set to null are no longer expanded + +## 2.7.2 - 2012-07-02 + +* BC: Moving things to get ready for subtree splits. Moving Inflection into Common. Moving Guzzle\Http\Parser to Guzzle\Parser. +* BC: Removing Guzzle\Common\Batch\Batch::count() and replacing it with isEmpty() +* CachePlugin now allows for a custom request parameter function to check if a request can be cached +* Bug fix: CachePlugin now only caches GET and HEAD requests by default +* Bug fix: Using header glue when transferring headers over the wire +* Allowing deeply nested arrays for composite variables in URI templates +* Batch divisors can now return iterators or arrays + +## 2.7.1 - 2012-06-26 + +* Minor patch to update version number in UA string +* Updating build process + +## 2.7.0 - 2012-06-25 + +* BC: Inflection classes moved to Guzzle\Inflection. No longer static methods. Can now inject custom inflectors into classes. +* BC: Removed magic setX methods from commands +* BC: Magic methods mapped to service description commands are now inflected in the command factory rather than the client __call() method +* Verbose cURL options are no longer enabled by default. Set curl.debug to true on a client to enable. +* Bug: Now allowing colons in a response start-line (e.g. HTTP/1.1 503 Service Unavailable: Back-end server is at capacity) +* Guzzle\Service\Resource\ResourceIteratorApplyBatched now internally uses the Guzzle\Common\Batch namespace +* Added Guzzle\Service\Plugin namespace and a PluginCollectionPlugin +* Added the ability to set POST fields and files in a service description +* Guzzle\Http\EntityBody::factory() now accepts objects with a __toString() method +* Adding a command.before_prepare event to clients +* Added BatchClosureTransfer and BatchClosureDivisor +* BatchTransferException now includes references to the batch divisor and transfer strategies +* Fixed some tests so that they pass more reliably +* Added Guzzle\Common\Log\ArrayLogAdapter + +## 2.6.6 - 2012-06-10 + +* BC: Removing Guzzle\Http\Plugin\BatchQueuePlugin +* BC: Removing Guzzle\Service\Command\CommandSet +* Adding generic batching system (replaces the batch queue plugin and command set) +* Updating ZF cache and log adapters and now using ZF's composer repository +* Bug: Setting the name of each ApiParam when creating through an ApiCommand +* Adding result_type, result_doc, deprecated, and doc_url to service descriptions +* Bug: Changed the default cookie header casing back to 'Cookie' + +## 2.6.5 - 2012-06-03 + +* BC: Renaming Guzzle\Http\Message\RequestInterface::getResourceUri() to getResource() +* BC: Removing unused AUTH_BASIC and AUTH_DIGEST constants from +* BC: Guzzle\Http\Cookie is now used to manage Set-Cookie data, not Cookie data +* BC: Renaming methods in the CookieJarInterface +* Moving almost all cookie logic out of the CookiePlugin and into the Cookie or CookieJar implementations +* Making the default glue for HTTP headers ';' instead of ',' +* Adding a removeValue to Guzzle\Http\Message\Header +* Adding getCookies() to request interface. +* Making it easier to add event subscribers to HasDispatcherInterface classes. Can now directly call addSubscriber() + +## 2.6.4 - 2012-05-30 + +* BC: Cleaning up how POST files are stored in EntityEnclosingRequest objects. Adding PostFile class. +* BC: Moving ApiCommand specific functionality from the Inspector and on to the ApiCommand +* Bug: Fixing magic method command calls on clients +* Bug: Email constraint only validates strings +* Bug: Aggregate POST fields when POST files are present in curl handle +* Bug: Fixing default User-Agent header +* Bug: Only appending or prepending parameters in commands if they are specified +* Bug: Not requiring response reason phrases or status codes to match a predefined list of codes +* Allowing the use of dot notation for class namespaces when using instance_of constraint +* Added any_match validation constraint +* Added an AsyncPlugin +* Passing request object to the calculateWait method of the ExponentialBackoffPlugin +* Allowing the result of a command object to be changed +* Parsing location and type sub values when instantiating a service description rather than over and over at runtime + +## 2.6.3 - 2012-05-23 + +* [BC] Guzzle\Common\FromConfigInterface no longer requires any config options. +* [BC] Refactoring how POST files are stored on an EntityEnclosingRequest. They are now separate from POST fields. +* You can now use an array of data when creating PUT request bodies in the request factory. +* Removing the requirement that HTTPS requests needed a Cache-Control: public directive to be cacheable. +* [Http] Adding support for Content-Type in multipart POST uploads per upload +* [Http] Added support for uploading multiple files using the same name (foo[0], foo[1]) +* Adding more POST data operations for easier manipulation of POST data. +* You can now set empty POST fields. +* The body of a request is only shown on EntityEnclosingRequest objects that do not use POST files. +* Split the Guzzle\Service\Inspector::validateConfig method into two methods. One to initialize when a command is created, and one to validate. +* CS updates + +## 2.6.2 - 2012-05-19 + +* [Http] Better handling of nested scope requests in CurlMulti. Requests are now always prepares in the send() method rather than the addRequest() method. + +## 2.6.1 - 2012-05-19 + +* [BC] Removing 'path' support in service descriptions. Use 'uri'. +* [BC] Guzzle\Service\Inspector::parseDocBlock is now protected. Adding getApiParamsForClass() with cache. +* [BC] Removing Guzzle\Common\NullObject. Use https://github.com/mtdowling/NullObject if you need it. +* [BC] Removing Guzzle\Common\XmlElement. +* All commands, both dynamic and concrete, have ApiCommand objects. +* Adding a fix for CurlMulti so that if all of the connections encounter some sort of curl error, then the loop exits. +* Adding checks to EntityEnclosingRequest so that empty POST files and fields are ignored. +* Making the method signature of Guzzle\Service\Builder\ServiceBuilder::factory more flexible. + +## 2.6.0 - 2012-05-15 + +* [BC] Moving Guzzle\Service\Builder to Guzzle\Service\Builder\ServiceBuilder +* [BC] Executing a Command returns the result of the command rather than the command +* [BC] Moving all HTTP parsing logic to Guzzle\Http\Parsers. Allows for faster C implementations if needed. +* [BC] Changing the Guzzle\Http\Message\Response::setProtocol() method to accept a protocol and version in separate args. +* [BC] Moving ResourceIterator* to Guzzle\Service\Resource +* [BC] Completely refactored ResourceIterators to iterate over a cloned command object +* [BC] Moved Guzzle\Http\UriTemplate to Guzzle\Http\Parser\UriTemplate\UriTemplate +* [BC] Guzzle\Guzzle is now deprecated +* Moving Guzzle\Common\Guzzle::inject to Guzzle\Common\Collection::inject +* Adding Guzzle\Version class to give version information about Guzzle +* Adding Guzzle\Http\Utils class to provide getDefaultUserAgent() and getHttpDate() +* Adding Guzzle\Curl\CurlVersion to manage caching curl_version() data +* ServiceDescription and ServiceBuilder are now cacheable using similar configs +* Changing the format of XML and JSON service builder configs. Backwards compatible. +* Cleaned up Cookie parsing +* Trimming the default Guzzle User-Agent header +* Adding a setOnComplete() method to Commands that is called when a command completes +* Keeping track of requests that were mocked in the MockPlugin +* Fixed a caching bug in the CacheAdapterFactory +* Inspector objects can be injected into a Command object +* Refactoring a lot of code and tests to be case insensitive when dealing with headers +* Adding Guzzle\Http\Message\HeaderComparison for easy comparison of HTTP headers using a DSL +* Adding the ability to set global option overrides to service builder configs +* Adding the ability to include other service builder config files from within XML and JSON files +* Moving the parseQuery method out of Url and on to QueryString::fromString() as a static factory method. + +## 2.5.0 - 2012-05-08 + +* Major performance improvements +* [BC] Simplifying Guzzle\Common\Collection. Please check to see if you are using features that are now deprecated. +* [BC] Using a custom validation system that allows a flyweight implementation for much faster validation. No longer using Symfony2 Validation component. +* [BC] No longer supporting "{{ }}" for injecting into command or UriTemplates. Use "{}" +* Added the ability to passed parameters to all requests created by a client +* Added callback functionality to the ExponentialBackoffPlugin +* Using microtime in ExponentialBackoffPlugin to allow more granular backoff strategies. +* Rewinding request stream bodies when retrying requests +* Exception is thrown when JSON response body cannot be decoded +* Added configurable magic method calls to clients and commands. This is off by default. +* Fixed a defect that added a hash to every parsed URL part +* Fixed duplicate none generation for OauthPlugin. +* Emitting an event each time a client is generated by a ServiceBuilder +* Using an ApiParams object instead of a Collection for parameters of an ApiCommand +* cache.* request parameters should be renamed to params.cache.* +* Added the ability to set arbitrary curl options on requests (disable_wire, progress, etc.). See CurlHandle. +* Added the ability to disable type validation of service descriptions +* ServiceDescriptions and ServiceBuilders are now Serializable diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/LICENSE b/phpTest_20/componente/vendor/guzzlehttp/guzzle/LICENSE new file mode 100644 index 0000000..fd2375d --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/LICENSE @@ -0,0 +1,27 @@ +The MIT License (MIT) + +Copyright (c) 2011 Michael Dowling +Copyright (c) 2012 Jeremy Lindblom +Copyright (c) 2014 Graham Campbell +Copyright (c) 2015 Márk Sági-Kazár +Copyright (c) 2015 Tobias Schultze +Copyright (c) 2016 Tobias Nyholm +Copyright (c) 2016 George Mponos + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/README.md b/phpTest_20/componente/vendor/guzzlehttp/guzzle/README.md new file mode 100644 index 0000000..0025aa7 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/README.md @@ -0,0 +1,94 @@ +![Guzzle](.github/logo.png?raw=true) + +# Guzzle, PHP HTTP client + +[![Latest Version](https://img.shields.io/github/release/guzzle/guzzle.svg?style=flat-square)](https://github.com/guzzle/guzzle/releases) +[![Build Status](https://img.shields.io/github/workflow/status/guzzle/guzzle/CI?label=ci%20build&style=flat-square)](https://github.com/guzzle/guzzle/actions?query=workflow%3ACI) +[![Total Downloads](https://img.shields.io/packagist/dt/guzzlehttp/guzzle.svg?style=flat-square)](https://packagist.org/packages/guzzlehttp/guzzle) + +Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and +trivial to integrate with web services. + +- Simple interface for building query strings, POST requests, streaming large + uploads, streaming large downloads, using HTTP cookies, uploading JSON data, + etc... +- Can send both synchronous and asynchronous requests using the same interface. +- Uses PSR-7 interfaces for requests, responses, and streams. This allows you + to utilize other PSR-7 compatible libraries with Guzzle. +- Supports PSR-18 allowing interoperability between other PSR-18 HTTP Clients. +- Abstracts away the underlying HTTP transport, allowing you to write + environment and transport agnostic code; i.e., no hard dependency on cURL, + PHP streams, sockets, or non-blocking event loops. +- Middleware system allows you to augment and compose client behavior. + +```php +$client = new \GuzzleHttp\Client(); +$response = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle'); + +echo $response->getStatusCode(); // 200 +echo $response->getHeaderLine('content-type'); // 'application/json; charset=utf8' +echo $response->getBody(); // '{"id": 1420053, "name": "guzzle", ...}' + +// Send an asynchronous request. +$request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org'); +$promise = $client->sendAsync($request)->then(function ($response) { + echo 'I completed! ' . $response->getBody(); +}); + +$promise->wait(); +``` + +## Help and docs + +We use GitHub issues only to discuss bugs and new features. For support please refer to: + +- [Documentation](http://guzzlephp.org/) +- [Stack Overflow](http://stackoverflow.com/questions/tagged/guzzle) +- [#guzzle](https://app.slack.com/client/T0D2S9JCT/CE6UAAKL4) channel on [PHP-HTTP Slack](http://slack.httplug.io/) +- [Gitter](https://gitter.im/guzzle/guzzle) + + +## Installing Guzzle + +The recommended way to install Guzzle is through +[Composer](https://getcomposer.org/). + +```bash +composer require guzzlehttp/guzzle +``` + + +## Version Guidance + +| Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version | +|---------|------------|---------------------|--------------|---------------------|---------------------|-------|-------------| +| 3.x | EOL | `guzzle/guzzle` | `Guzzle` | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >= 5.3.3 | +| 4.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A | No | >= 5.4 | +| 5.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >= 5.4 | +| 6.x | Security fixes | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >= 5.5 | +| 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >= 7.2 | + +[guzzle-3-repo]: https://github.com/guzzle/guzzle3 +[guzzle-4-repo]: https://github.com/guzzle/guzzle/tree/4.x +[guzzle-5-repo]: https://github.com/guzzle/guzzle/tree/5.3 +[guzzle-6-repo]: https://github.com/guzzle/guzzle/tree/6.5 +[guzzle-7-repo]: https://github.com/guzzle/guzzle +[guzzle-3-docs]: http://guzzle3.readthedocs.org +[guzzle-5-docs]: http://docs.guzzlephp.org/en/5.3/ +[guzzle-6-docs]: http://docs.guzzlephp.org/en/6.5/ +[guzzle-7-docs]: http://docs.guzzlephp.org/en/latest/ + + +## Security + +If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/guzzle/security/policy) for more information. + +## License + +Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. + +## For Enterprise + +Available as part of the Tidelift Subscription + +The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-guzzle?utm_source=packagist-guzzlehttp-guzzle&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/UPGRADING.md b/phpTest_20/componente/vendor/guzzlehttp/guzzle/UPGRADING.md new file mode 100644 index 0000000..45417a7 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/UPGRADING.md @@ -0,0 +1,1253 @@ +Guzzle Upgrade Guide +==================== + +6.0 to 7.0 +---------- + +In order to take advantage of the new features of PHP, Guzzle dropped the support +of PHP 5. The minimum supported PHP version is now PHP 7.2. Type hints and return +types for functions and methods have been added wherever possible. + +Please make sure: +- You are calling a function or a method with the correct type. +- If you extend a class of Guzzle; update all signatures on methods you override. + +#### Other backwards compatibility breaking changes + +- Class `GuzzleHttp\UriTemplate` is removed. +- Class `GuzzleHttp\Exception\SeekException` is removed. +- Classes `GuzzleHttp\Exception\BadResponseException`, `GuzzleHttp\Exception\ClientException`, + `GuzzleHttp\Exception\ServerException` can no longer be initialized with an empty + Response as argument. +- Class `GuzzleHttp\Exception\ConnectException` now extends `GuzzleHttp\Exception\TransferException` + instead of `GuzzleHttp\Exception\RequestException`. +- Function `GuzzleHttp\Exception\ConnectException::getResponse()` is removed. +- Function `GuzzleHttp\Exception\ConnectException::hasResponse()` is removed. +- Constant `GuzzleHttp\ClientInterface::VERSION` is removed. Added `GuzzleHttp\ClientInterface::MAJOR_VERSION` instead. +- Function `GuzzleHttp\Exception\RequestException::getResponseBodySummary` is removed. + Use `\GuzzleHttp\Psr7\get_message_body_summary` as an alternative. +- Function `GuzzleHttp\Cookie\CookieJar::getCookieValue` is removed. +- Request option `exception` is removed. Please use `http_errors`. +- Request option `save_to` is removed. Please use `sink`. +- Pool option `pool_size` is removed. Please use `concurrency`. +- We now look for environment variables in the `$_SERVER` super global, due to thread safety issues with `getenv`. We continue to fallback to `getenv` in CLI environments, for maximum compatibility. +- The `get`, `head`, `put`, `post`, `patch`, `delete`, `getAsync`, `headAsync`, `putAsync`, `postAsync`, `patchAsync`, and `deleteAsync` methods are now implemented as genuine methods on `GuzzleHttp\Client`, with strong typing. The original `__call` implementation remains unchanged for now, for maximum backwards compatibility, but won't be invoked under normal operation. +- The `log` middleware will log the errors with level `error` instead of `notice` +- Support for international domain names (IDN) is now disabled by default, and enabling it requires installing ext-intl, linked against a modern version of the C library (ICU 4.6 or higher). + +#### Native functions calls + +All internal native functions calls of Guzzle are now prefixed with a slash. This +change makes it impossible for method overloading by other libraries or applications. +Example: + +```php +// Before: +curl_version(); + +// After: +\curl_version(); +``` + +For the full diff you can check [here](https://github.com/guzzle/guzzle/compare/6.5.4..master). + +5.0 to 6.0 +---------- + +Guzzle now uses [PSR-7](https://www.php-fig.org/psr/psr-7/) for HTTP messages. +Due to the fact that these messages are immutable, this prompted a refactoring +of Guzzle to use a middleware based system rather than an event system. Any +HTTP message interaction (e.g., `GuzzleHttp\Message\Request`) need to be +updated to work with the new immutable PSR-7 request and response objects. Any +event listeners or subscribers need to be updated to become middleware +functions that wrap handlers (or are injected into a +`GuzzleHttp\HandlerStack`). + +- Removed `GuzzleHttp\BatchResults` +- Removed `GuzzleHttp\Collection` +- Removed `GuzzleHttp\HasDataTrait` +- Removed `GuzzleHttp\ToArrayInterface` +- The `guzzlehttp/streams` dependency has been removed. Stream functionality + is now present in the `GuzzleHttp\Psr7` namespace provided by the + `guzzlehttp/psr7` package. +- Guzzle no longer uses ReactPHP promises and now uses the + `guzzlehttp/promises` library. We use a custom promise library for three + significant reasons: + 1. React promises (at the time of writing this) are recursive. Promise + chaining and promise resolution will eventually blow the stack. Guzzle + promises are not recursive as they use a sort of trampolining technique. + Note: there has been movement in the React project to modify promises to + no longer utilize recursion. + 2. Guzzle needs to have the ability to synchronously block on a promise to + wait for a result. Guzzle promises allows this functionality (and does + not require the use of recursion). + 3. Because we need to be able to wait on a result, doing so using React + promises requires wrapping react promises with RingPHP futures. This + overhead is no longer needed, reducing stack sizes, reducing complexity, + and improving performance. +- `GuzzleHttp\Mimetypes` has been moved to a function in + `GuzzleHttp\Psr7\mimetype_from_extension` and + `GuzzleHttp\Psr7\mimetype_from_filename`. +- `GuzzleHttp\Query` and `GuzzleHttp\QueryParser` have been removed. Query + strings must now be passed into request objects as strings, or provided to + the `query` request option when creating requests with clients. The `query` + option uses PHP's `http_build_query` to convert an array to a string. If you + need a different serialization technique, you will need to pass the query + string in as a string. There are a couple helper functions that will make + working with query strings easier: `GuzzleHttp\Psr7\parse_query` and + `GuzzleHttp\Psr7\build_query`. +- Guzzle no longer has a dependency on RingPHP. Due to the use of a middleware + system based on PSR-7, using RingPHP and it's middleware system as well adds + more complexity than the benefits it provides. All HTTP handlers that were + present in RingPHP have been modified to work directly with PSR-7 messages + and placed in the `GuzzleHttp\Handler` namespace. This significantly reduces + complexity in Guzzle, removes a dependency, and improves performance. RingPHP + will be maintained for Guzzle 5 support, but will no longer be a part of + Guzzle 6. +- As Guzzle now uses a middleware based systems the event system and RingPHP + integration has been removed. Note: while the event system has been removed, + it is possible to add your own type of event system that is powered by the + middleware system. + - Removed the `Event` namespace. + - Removed the `Subscriber` namespace. + - Removed `Transaction` class + - Removed `RequestFsm` + - Removed `RingBridge` + - `GuzzleHttp\Subscriber\Cookie` is now provided by + `GuzzleHttp\Middleware::cookies` + - `GuzzleHttp\Subscriber\HttpError` is now provided by + `GuzzleHttp\Middleware::httpError` + - `GuzzleHttp\Subscriber\History` is now provided by + `GuzzleHttp\Middleware::history` + - `GuzzleHttp\Subscriber\Mock` is now provided by + `GuzzleHttp\Handler\MockHandler` + - `GuzzleHttp\Subscriber\Prepare` is now provided by + `GuzzleHttp\PrepareBodyMiddleware` + - `GuzzleHttp\Subscriber\Redirect` is now provided by + `GuzzleHttp\RedirectMiddleware` +- Guzzle now uses `Psr\Http\Message\UriInterface` (implements in + `GuzzleHttp\Psr7\Uri`) for URI support. `GuzzleHttp\Url` is now gone. +- Static functions in `GuzzleHttp\Utils` have been moved to namespaced + functions under the `GuzzleHttp` namespace. This requires either a Composer + based autoloader or you to include functions.php. +- `GuzzleHttp\ClientInterface::getDefaultOption` has been renamed to + `GuzzleHttp\ClientInterface::getConfig`. +- `GuzzleHttp\ClientInterface::setDefaultOption` has been removed. +- The `json` and `xml` methods of response objects has been removed. With the + migration to strictly adhering to PSR-7 as the interface for Guzzle messages, + adding methods to message interfaces would actually require Guzzle messages + to extend from PSR-7 messages rather then work with them directly. + +## Migrating to middleware + +The change to PSR-7 unfortunately required significant refactoring to Guzzle +due to the fact that PSR-7 messages are immutable. Guzzle 5 relied on an event +system from plugins. The event system relied on mutability of HTTP messages and +side effects in order to work. With immutable messages, you have to change your +workflow to become more about either returning a value (e.g., functional +middlewares) or setting a value on an object. Guzzle v6 has chosen the +functional middleware approach. + +Instead of using the event system to listen for things like the `before` event, +you now create a stack based middleware function that intercepts a request on +the way in and the promise of the response on the way out. This is a much +simpler and more predictable approach than the event system and works nicely +with PSR-7 middleware. Due to the use of promises, the middleware system is +also asynchronous. + +v5: + +```php +use GuzzleHttp\Event\BeforeEvent; +$client = new GuzzleHttp\Client(); +// Get the emitter and listen to the before event. +$client->getEmitter()->on('before', function (BeforeEvent $e) { + // Guzzle v5 events relied on mutation + $e->getRequest()->setHeader('X-Foo', 'Bar'); +}); +``` + +v6: + +In v6, you can modify the request before it is sent using the `mapRequest` +middleware. The idiomatic way in v6 to modify the request/response lifecycle is +to setup a handler middleware stack up front and inject the handler into a +client. + +```php +use GuzzleHttp\Middleware; +// Create a handler stack that has all of the default middlewares attached +$handler = GuzzleHttp\HandlerStack::create(); +// Push the handler onto the handler stack +$handler->push(Middleware::mapRequest(function (RequestInterface $request) { + // Notice that we have to return a request object + return $request->withHeader('X-Foo', 'Bar'); +})); +// Inject the handler into the client +$client = new GuzzleHttp\Client(['handler' => $handler]); +``` + +## POST Requests + +This version added the [`form_params`](http://guzzle.readthedocs.org/en/latest/request-options.html#form_params) +and `multipart` request options. `form_params` is an associative array of +strings or array of strings and is used to serialize an +`application/x-www-form-urlencoded` POST request. The +[`multipart`](http://guzzle.readthedocs.org/en/latest/request-options.html#multipart) +option is now used to send a multipart/form-data POST request. + +`GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add +POST files to a multipart/form-data request. + +The `body` option no longer accepts an array to send POST requests. Please use +`multipart` or `form_params` instead. + +The `base_url` option has been renamed to `base_uri`. + +4.x to 5.0 +---------- + +## Rewritten Adapter Layer + +Guzzle now uses [RingPHP](http://ringphp.readthedocs.org/en/latest) to send +HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor +is still supported, but it has now been renamed to `handler`. Instead of +passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP +`callable` that follows the RingPHP specification. + +## Removed Fluent Interfaces + +[Fluent interfaces were removed](https://ocramius.github.io/blog/fluent-interfaces-are-evil/) +from the following classes: + +- `GuzzleHttp\Collection` +- `GuzzleHttp\Url` +- `GuzzleHttp\Query` +- `GuzzleHttp\Post\PostBody` +- `GuzzleHttp\Cookie\SetCookie` + +## Removed functions.php + +Removed "functions.php", so that Guzzle is truly PSR-4 compliant. The following +functions can be used as replacements. + +- `GuzzleHttp\json_decode` -> `GuzzleHttp\Utils::jsonDecode` +- `GuzzleHttp\get_path` -> `GuzzleHttp\Utils::getPath` +- `GuzzleHttp\Utils::setPath` -> `GuzzleHttp\set_path` +- `GuzzleHttp\Pool::batch` -> `GuzzleHttp\batch`. This function is, however, + deprecated in favor of using `GuzzleHttp\Pool::batch()`. + +The "procedural" global client has been removed with no replacement (e.g., +`GuzzleHttp\get()`, `GuzzleHttp\post()`, etc.). Use a `GuzzleHttp\Client` +object as a replacement. + +## `throwImmediately` has been removed + +The concept of "throwImmediately" has been removed from exceptions and error +events. This control mechanism was used to stop a transfer of concurrent +requests from completing. This can now be handled by throwing the exception or +by cancelling a pool of requests or each outstanding future request +individually. + +## headers event has been removed + +Removed the "headers" event. This event was only useful for changing the +body a response once the headers of the response were known. You can implement +a similar behavior in a number of ways. One example might be to use a +FnStream that has access to the transaction being sent. For example, when the +first byte is written, you could check if the response headers match your +expectations, and if so, change the actual stream body that is being +written to. + +## Updates to HTTP Messages + +Removed the `asArray` parameter from +`GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header +value as an array, then use the newly added `getHeaderAsArray()` method of +`MessageInterface`. This change makes the Guzzle interfaces compatible with +the PSR-7 interfaces. + +3.x to 4.0 +---------- + +## Overarching changes: + +- Now requires PHP 5.4 or greater. +- No longer requires cURL to send requests. +- Guzzle no longer wraps every exception it throws. Only exceptions that are + recoverable are now wrapped by Guzzle. +- Various namespaces have been removed or renamed. +- No longer requiring the Symfony EventDispatcher. A custom event dispatcher + based on the Symfony EventDispatcher is + now utilized in `GuzzleHttp\Event\EmitterInterface` (resulting in significant + speed and functionality improvements). + +Changes per Guzzle 3.x namespace are described below. + +## Batch + +The `Guzzle\Batch` namespace has been removed. This is best left to +third-parties to implement on top of Guzzle's core HTTP library. + +## Cache + +The `Guzzle\Cache` namespace has been removed. (Todo: No suitable replacement +has been implemented yet, but hoping to utilize a PSR cache interface). + +## Common + +- Removed all of the wrapped exceptions. It's better to use the standard PHP + library for unrecoverable exceptions. +- `FromConfigInterface` has been removed. +- `Guzzle\Common\Version` has been removed. The VERSION constant can be found + at `GuzzleHttp\ClientInterface::VERSION`. + +### Collection + +- `getAll` has been removed. Use `toArray` to convert a collection to an array. +- `inject` has been removed. +- `keySearch` has been removed. +- `getPath` no longer supports wildcard expressions. Use something better like + JMESPath for this. +- `setPath` now supports appending to an existing array via the `[]` notation. + +### Events + +Guzzle no longer requires Symfony's EventDispatcher component. Guzzle now uses +`GuzzleHttp\Event\Emitter`. + +- `Symfony\Component\EventDispatcher\EventDispatcherInterface` is replaced by + `GuzzleHttp\Event\EmitterInterface`. +- `Symfony\Component\EventDispatcher\EventDispatcher` is replaced by + `GuzzleHttp\Event\Emitter`. +- `Symfony\Component\EventDispatcher\Event` is replaced by + `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in + `GuzzleHttp\Event\EventInterface`. +- `AbstractHasDispatcher` has moved to a trait, `HasEmitterTrait`, and + `HasDispatcherInterface` has moved to `HasEmitterInterface`. Retrieving the + event emitter of a request, client, etc. now uses the `getEmitter` method + rather than the `getDispatcher` method. + +#### Emitter + +- Use the `once()` method to add a listener that automatically removes itself + the first time it is invoked. +- Use the `listeners()` method to retrieve a list of event listeners rather than + the `getListeners()` method. +- Use `emit()` instead of `dispatch()` to emit an event from an emitter. +- Use `attach()` instead of `addSubscriber()` and `detach()` instead of + `removeSubscriber()`. + +```php +$mock = new Mock(); +// 3.x +$request->getEventDispatcher()->addSubscriber($mock); +$request->getEventDispatcher()->removeSubscriber($mock); +// 4.x +$request->getEmitter()->attach($mock); +$request->getEmitter()->detach($mock); +``` + +Use the `on()` method to add a listener rather than the `addListener()` method. + +```php +// 3.x +$request->getEventDispatcher()->addListener('foo', function (Event $event) { /* ... */ } ); +// 4.x +$request->getEmitter()->on('foo', function (Event $event, $name) { /* ... */ } ); +``` + +## Http + +### General changes + +- The cacert.pem certificate has been moved to `src/cacert.pem`. +- Added the concept of adapters that are used to transfer requests over the + wire. +- Simplified the event system. +- Sending requests in parallel is still possible, but batching is no longer a + concept of the HTTP layer. Instead, you must use the `complete` and `error` + events to asynchronously manage parallel request transfers. +- `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`. +- `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`. +- QueryAggregators have been rewritten so that they are simply callable + functions. +- `GuzzleHttp\StaticClient` has been removed. Use the functions provided in + `functions.php` for an easy to use static client instance. +- Exceptions in `GuzzleHttp\Exception` have been updated to all extend from + `GuzzleHttp\Exception\TransferException`. + +### Client + +Calling methods like `get()`, `post()`, `head()`, etc. no longer create and +return a request, but rather creates a request, sends the request, and returns +the response. + +```php +// 3.0 +$request = $client->get('/'); +$response = $request->send(); + +// 4.0 +$response = $client->get('/'); + +// or, to mirror the previous behavior +$request = $client->createRequest('GET', '/'); +$response = $client->send($request); +``` + +`GuzzleHttp\ClientInterface` has changed. + +- The `send` method no longer accepts more than one request. Use `sendAll` to + send multiple requests in parallel. +- `setUserAgent()` has been removed. Use a default request option instead. You + could, for example, do something like: + `$client->setConfig('defaults/headers/User-Agent', 'Foo/Bar ' . $client::getDefaultUserAgent())`. +- `setSslVerification()` has been removed. Use default request options instead, + like `$client->setConfig('defaults/verify', true)`. + +`GuzzleHttp\Client` has changed. + +- The constructor now accepts only an associative array. You can include a + `base_url` string or array to use a URI template as the base URL of a client. + You can also specify a `defaults` key that is an associative array of default + request options. You can pass an `adapter` to use a custom adapter, + `batch_adapter` to use a custom adapter for sending requests in parallel, or + a `message_factory` to change the factory used to create HTTP requests and + responses. +- The client no longer emits a `client.create_request` event. +- Creating requests with a client no longer automatically utilize a URI + template. You must pass an array into a creational method (e.g., + `createRequest`, `get`, `put`, etc.) in order to expand a URI template. + +### Messages + +Messages no longer have references to their counterparts (i.e., a request no +longer has a reference to it's response, and a response no loger has a +reference to its request). This association is now managed through a +`GuzzleHttp\Adapter\TransactionInterface` object. You can get references to +these transaction objects using request events that are emitted over the +lifecycle of a request. + +#### Requests with a body + +- `GuzzleHttp\Message\EntityEnclosingRequest` and + `GuzzleHttp\Message\EntityEnclosingRequestInterface` have been removed. The + separation between requests that contain a body and requests that do not + contain a body has been removed, and now `GuzzleHttp\Message\RequestInterface` + handles both use cases. +- Any method that previously accepts a `GuzzleHttp\Response` object now accept a + `GuzzleHttp\Message\ResponseInterface`. +- `GuzzleHttp\Message\RequestFactoryInterface` has been renamed to + `GuzzleHttp\Message\MessageFactoryInterface`. This interface is used to create + both requests and responses and is implemented in + `GuzzleHttp\Message\MessageFactory`. +- POST field and file methods have been removed from the request object. You + must now use the methods made available to `GuzzleHttp\Post\PostBodyInterface` + to control the format of a POST body. Requests that are created using a + standard `GuzzleHttp\Message\MessageFactoryInterface` will automatically use + a `GuzzleHttp\Post\PostBody` body if the body was passed as an array or if + the method is POST and no body is provided. + +```php +$request = $client->createRequest('POST', '/'); +$request->getBody()->setField('foo', 'bar'); +$request->getBody()->addFile(new PostFile('file_key', fopen('/path/to/content', 'r'))); +``` + +#### Headers + +- `GuzzleHttp\Message\Header` has been removed. Header values are now simply + represented by an array of values or as a string. Header values are returned + as a string by default when retrieving a header value from a message. You can + pass an optional argument of `true` to retrieve a header value as an array + of strings instead of a single concatenated string. +- `GuzzleHttp\PostFile` and `GuzzleHttp\PostFileInterface` have been moved to + `GuzzleHttp\Post`. This interface has been simplified and now allows the + addition of arbitrary headers. +- Custom headers like `GuzzleHttp\Message\Header\Link` have been removed. Most + of the custom headers are now handled separately in specific + subscribers/plugins, and `GuzzleHttp\Message\HeaderValues::parseParams()` has + been updated to properly handle headers that contain parameters (like the + `Link` header). + +#### Responses + +- `GuzzleHttp\Message\Response::getInfo()` and + `GuzzleHttp\Message\Response::setInfo()` have been removed. Use the event + system to retrieve this type of information. +- `GuzzleHttp\Message\Response::getRawHeaders()` has been removed. +- `GuzzleHttp\Message\Response::getMessage()` has been removed. +- `GuzzleHttp\Message\Response::calculateAge()` and other cache specific + methods have moved to the CacheSubscriber. +- Header specific helper functions like `getContentMd5()` have been removed. + Just use `getHeader('Content-MD5')` instead. +- `GuzzleHttp\Message\Response::setRequest()` and + `GuzzleHttp\Message\Response::getRequest()` have been removed. Use the event + system to work with request and response objects as a transaction. +- `GuzzleHttp\Message\Response::getRedirectCount()` has been removed. Use the + Redirect subscriber instead. +- `GuzzleHttp\Message\Response::isSuccessful()` and other related methods have + been removed. Use `getStatusCode()` instead. + +#### Streaming responses + +Streaming requests can now be created by a client directly, returning a +`GuzzleHttp\Message\ResponseInterface` object that contains a body stream +referencing an open PHP HTTP stream. + +```php +// 3.0 +use Guzzle\Stream\PhpStreamRequestFactory; +$request = $client->get('/'); +$factory = new PhpStreamRequestFactory(); +$stream = $factory->fromRequest($request); +$data = $stream->read(1024); + +// 4.0 +$response = $client->get('/', ['stream' => true]); +// Read some data off of the stream in the response body +$data = $response->getBody()->read(1024); +``` + +#### Redirects + +The `configureRedirects()` method has been removed in favor of a +`allow_redirects` request option. + +```php +// Standard redirects with a default of a max of 5 redirects +$request = $client->createRequest('GET', '/', ['allow_redirects' => true]); + +// Strict redirects with a custom number of redirects +$request = $client->createRequest('GET', '/', [ + 'allow_redirects' => ['max' => 5, 'strict' => true] +]); +``` + +#### EntityBody + +EntityBody interfaces and classes have been removed or moved to +`GuzzleHttp\Stream`. All classes and interfaces that once required +`GuzzleHttp\EntityBodyInterface` now require +`GuzzleHttp\Stream\StreamInterface`. Creating a new body for a request no +longer uses `GuzzleHttp\EntityBody::factory` but now uses +`GuzzleHttp\Stream\Stream::factory` or even better: +`GuzzleHttp\Stream\create()`. + +- `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface` +- `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream` +- `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream` +- `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream` +- `Guzzle\Http\IoEmittyinEntityBody` has been removed. + +#### Request lifecycle events + +Requests previously submitted a large number of requests. The number of events +emitted over the lifecycle of a request has been significantly reduced to make +it easier to understand how to extend the behavior of a request. All events +emitted during the lifecycle of a request now emit a custom +`GuzzleHttp\Event\EventInterface` object that contains context providing +methods and a way in which to modify the transaction at that specific point in +time (e.g., intercept the request and set a response on the transaction). + +- `request.before_send` has been renamed to `before` and now emits a + `GuzzleHttp\Event\BeforeEvent` +- `request.complete` has been renamed to `complete` and now emits a + `GuzzleHttp\Event\CompleteEvent`. +- `request.sent` has been removed. Use `complete`. +- `request.success` has been removed. Use `complete`. +- `error` is now an event that emits a `GuzzleHttp\Event\ErrorEvent`. +- `request.exception` has been removed. Use `error`. +- `request.receive.status_line` has been removed. +- `curl.callback.progress` has been removed. Use a custom `StreamInterface` to + maintain a status update. +- `curl.callback.write` has been removed. Use a custom `StreamInterface` to + intercept writes. +- `curl.callback.read` has been removed. Use a custom `StreamInterface` to + intercept reads. + +`headers` is a new event that is emitted after the response headers of a +request have been received before the body of the response is downloaded. This +event emits a `GuzzleHttp\Event\HeadersEvent`. + +You can intercept a request and inject a response using the `intercept()` event +of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and +`GuzzleHttp\Event\ErrorEvent` event. + +See: http://docs.guzzlephp.org/en/latest/events.html + +## Inflection + +The `Guzzle\Inflection` namespace has been removed. This is not a core concern +of Guzzle. + +## Iterator + +The `Guzzle\Iterator` namespace has been removed. + +- `Guzzle\Iterator\AppendIterator`, `Guzzle\Iterator\ChunkedIterator`, and + `Guzzle\Iterator\MethodProxyIterator` are nice, but not a core requirement of + Guzzle itself. +- `Guzzle\Iterator\FilterIterator` is no longer needed because an equivalent + class is shipped with PHP 5.4. +- `Guzzle\Iterator\MapIterator` is not really needed when using PHP 5.5 because + it's easier to just wrap an iterator in a generator that maps values. + +For a replacement of these iterators, see https://github.com/nikic/iter + +## Log + +The LogPlugin has moved to https://github.com/guzzle/log-subscriber. The +`Guzzle\Log` namespace has been removed. Guzzle now relies on +`Psr\Log\LoggerInterface` for all logging. The MessageFormatter class has been +moved to `GuzzleHttp\Subscriber\Log\Formatter`. + +## Parser + +The `Guzzle\Parser` namespace has been removed. This was previously used to +make it possible to plug in custom parsers for cookies, messages, URI +templates, and URLs; however, this level of complexity is not needed in Guzzle +so it has been removed. + +- Cookie: Cookie parsing logic has been moved to + `GuzzleHttp\Cookie\SetCookie::fromString`. +- Message: Message parsing logic for both requests and responses has been moved + to `GuzzleHttp\Message\MessageFactory::fromMessage`. Message parsing is only + used in debugging or deserializing messages, so it doesn't make sense for + Guzzle as a library to add this level of complexity to parsing messages. +- UriTemplate: URI template parsing has been moved to + `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL + URI template library if it is installed. +- Url: URL parsing is now performed in `GuzzleHttp\Url::fromString` (previously + it was `Guzzle\Http\Url::factory()`). If custom URL parsing is necessary, + then developers are free to subclass `GuzzleHttp\Url`. + +## Plugin + +The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`. +Several plugins are shipping with the core Guzzle library under this namespace. + +- `GuzzleHttp\Subscriber\Cookie`: Replaces the old CookiePlugin. Cookie jar + code has moved to `GuzzleHttp\Cookie`. +- `GuzzleHttp\Subscriber\History`: Replaces the old HistoryPlugin. +- `GuzzleHttp\Subscriber\HttpError`: Throws errors when a bad HTTP response is + received. +- `GuzzleHttp\Subscriber\Mock`: Replaces the old MockPlugin. +- `GuzzleHttp\Subscriber\Prepare`: Prepares the body of a request just before + sending. This subscriber is attached to all requests by default. +- `GuzzleHttp\Subscriber\Redirect`: Replaces the RedirectPlugin. + +The following plugins have been removed (third-parties are free to re-implement +these if needed): + +- `GuzzleHttp\Plugin\Async` has been removed. +- `GuzzleHttp\Plugin\CurlAuth` has been removed. +- `GuzzleHttp\Plugin\ErrorResponse\ErrorResponsePlugin` has been removed. This + functionality should instead be implemented with event listeners that occur + after normal response parsing occurs in the guzzle/command package. + +The following plugins are not part of the core Guzzle package, but are provided +in separate repositories: + +- `Guzzle\Http\Plugin\BackoffPlugin` has been rewritten to be much simpler + to build custom retry policies using simple functions rather than various + chained classes. See: https://github.com/guzzle/retry-subscriber +- `Guzzle\Http\Plugin\Cache\CachePlugin` has moved to + https://github.com/guzzle/cache-subscriber +- `Guzzle\Http\Plugin\Log\LogPlugin` has moved to + https://github.com/guzzle/log-subscriber +- `Guzzle\Http\Plugin\Md5\Md5Plugin` has moved to + https://github.com/guzzle/message-integrity-subscriber +- `Guzzle\Http\Plugin\Mock\MockPlugin` has moved to + `GuzzleHttp\Subscriber\MockSubscriber`. +- `Guzzle\Http\Plugin\Oauth\OauthPlugin` has moved to + https://github.com/guzzle/oauth-subscriber + +## Service + +The service description layer of Guzzle has moved into two separate packages: + +- http://github.com/guzzle/command Provides a high level abstraction over web + services by representing web service operations using commands. +- http://github.com/guzzle/guzzle-services Provides an implementation of + guzzle/command that provides request serialization and response parsing using + Guzzle service descriptions. + +## Stream + +Stream have moved to a separate package available at +https://github.com/guzzle/streams. + +`Guzzle\Stream\StreamInterface` has been given a large update to cleanly take +on the responsibilities of `Guzzle\Http\EntityBody` and +`Guzzle\Http\EntityBodyInterface` now that they have been removed. The number +of methods implemented by the `StreamInterface` has been drastically reduced to +allow developers to more easily extend and decorate stream behavior. + +## Removed methods from StreamInterface + +- `getStream` and `setStream` have been removed to better encapsulate streams. +- `getMetadata` and `setMetadata` have been removed in favor of + `GuzzleHttp\Stream\MetadataStreamInterface`. +- `getWrapper`, `getWrapperData`, `getStreamType`, and `getUri` have all been + removed. This data is accessible when + using streams that implement `GuzzleHttp\Stream\MetadataStreamInterface`. +- `rewind` has been removed. Use `seek(0)` for a similar behavior. + +## Renamed methods + +- `detachStream` has been renamed to `detach`. +- `feof` has been renamed to `eof`. +- `ftell` has been renamed to `tell`. +- `readLine` has moved from an instance method to a static class method of + `GuzzleHttp\Stream\Stream`. + +## Metadata streams + +`GuzzleHttp\Stream\MetadataStreamInterface` has been added to denote streams +that contain additional metadata accessible via `getMetadata()`. +`GuzzleHttp\Stream\StreamInterface::getMetadata` and +`GuzzleHttp\Stream\StreamInterface::setMetadata` have been removed. + +## StreamRequestFactory + +The entire concept of the StreamRequestFactory has been removed. The way this +was used in Guzzle 3 broke the actual interface of sending streaming requests +(instead of getting back a Response, you got a StreamInterface). Streaming +PHP requests are now implemented through the `GuzzleHttp\Adapter\StreamAdapter`. + +3.6 to 3.7 +---------- + +### Deprecations + +- You can now enable E_USER_DEPRECATED warnings to see if you are using any deprecated methods.: + +```php +\Guzzle\Common\Version::$emitWarnings = true; +``` + +The following APIs and options have been marked as deprecated: + +- Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->getResponseBody()->isRepeatable()` instead. +- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +- Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. +- Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. +- Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated +- Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. +- Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. +- Marked `Guzzle\Common\Collection::inject()` as deprecated. +- Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use + `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` or + `$client->setDefaultOption('auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` + +3.7 introduces `request.options` as a parameter for a client configuration and as an optional argument to all creational +request methods. When paired with a client's configuration settings, these options allow you to specify default settings +for various aspects of a request. Because these options make other previous configuration options redundant, several +configuration options and methods of a client and AbstractCommand have been deprecated. + +- Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption('headers')`. +- Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption('headers/{header_name}', 'value')`. +- Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('params/{param_name}', 'value')` +- Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. These will work through Guzzle 4.0 + + $command = $client->getCommand('foo', array( + 'command.headers' => array('Test' => '123'), + 'command.response_body' => '/path/to/file' + )); + + // Should be changed to: + + $command = $client->getCommand('foo', array( + 'command.request_options' => array( + 'headers' => array('Test' => '123'), + 'save_as' => '/path/to/file' + ) + )); + +### Interface changes + +Additions and changes (you will need to update any implementations or subclasses you may have created): + +- Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: + createRequest, head, delete, put, patch, post, options, prepareRequest +- Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` +- Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` +- Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to + `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a + resource, string, or EntityBody into the $options parameter to specify the download location of the response. +- Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a + default `array()` +- Added `Guzzle\Stream\StreamInterface::isRepeatable` +- Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. + +The following methods were removed from interfaces. All of these methods are still available in the concrete classes +that implement them, but you should update your code to use alternative methods: + +- Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use + `$client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or + `$client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))` or + `$client->setDefaultOption('headers/{header_name}', 'value')`. or + `$client->setDefaultOption('headers', array('header_name' => 'value'))`. +- Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('request.options/headers')`. +- Removed `Guzzle\Http\ClientInterface::expandTemplate()`. This is an implementation detail. +- Removed `Guzzle\Http\ClientInterface::setRequestFactory()`. This is an implementation detail. +- Removed `Guzzle\Http\ClientInterface::getCurlMulti()`. This is a very specific implementation detail. +- Removed `Guzzle\Http\Message\RequestInterface::canCache`. Use the CachePlugin. +- Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`. Use the HistoryPlugin. +- Removed `Guzzle\Http\Message\RequestInterface::isRedirect`. Use the HistoryPlugin. + +### Cache plugin breaking changes + +- CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a + CacheStorageInterface. These two objects and interface will be removed in a future version. +- Always setting X-cache headers on cached responses +- Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin +- `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface + $request, Response $response);` +- `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` +- `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` +- Added `CacheStorageInterface::purge($url)` +- `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin + $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, + CanCacheStrategyInterface $canCache = null)` +- Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` + +3.5 to 3.6 +---------- + +* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. +* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution +* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). + For example, setHeader() first removes the header using unset on a HeaderCollection and then calls addHeader(). + Keeping the Host header and URL host in sync is now handled by overriding the addHeader method in Request. +* Specific header implementations can be created for complex headers. When a message creates a header, it uses a + HeaderFactory which can map specific headers to specific header classes. There is now a Link header and + CacheControl header implementation. +* Moved getLinks() from Response to just be used on a Link header object. + +If you previously relied on Guzzle\Http\Message\Header::raw(), then you will need to update your code to use the +HeaderInterface (e.g. toArray(), getAll(), etc.). + +### Interface changes + +* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate +* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() +* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in + Guzzle\Http\Curl\RequestMediator +* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. +* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface +* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() + +### Removed deprecated functions + +* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() +* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). + +### Deprecations + +* The ability to case-insensitively search for header values +* Guzzle\Http\Message\Header::hasExactHeader +* Guzzle\Http\Message\Header::raw. Use getAll() +* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object + instead. + +### Other changes + +* All response header helper functions return a string rather than mixing Header objects and strings inconsistently +* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle + directly via interfaces +* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist + but are a no-op until removed. +* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a + `Guzzle\Service\Command\ArrayCommandInterface`. +* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response + on a request while the request is still being transferred +* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess + +3.3 to 3.4 +---------- + +Base URLs of a client now follow the rules of https://tools.ietf.org/html/rfc3986#section-5.2.2 when merging URLs. + +3.2 to 3.3 +---------- + +### Response::getEtag() quote stripping removed + +`Guzzle\Http\Message\Response::getEtag()` no longer strips quotes around the ETag response header + +### Removed `Guzzle\Http\Utils` + +The `Guzzle\Http\Utils` class was removed. This class was only used for testing. + +### Stream wrapper and type + +`Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getStreamType()` are no longer converted to lowercase. + +### curl.emit_io became emit_io + +Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using the +'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' + +3.1 to 3.2 +---------- + +### CurlMulti is no longer reused globally + +Before 3.2, the same CurlMulti object was reused globally for each client. This can cause issue where plugins added +to a single client can pollute requests dispatched from other clients. + +If you still wish to reuse the same CurlMulti object with each client, then you can add a listener to the +ServiceBuilder's `service_builder.create_client` event to inject a custom CurlMulti object into each client as it is +created. + +```php +$multi = new Guzzle\Http\Curl\CurlMulti(); +$builder = Guzzle\Service\Builder\ServiceBuilder::factory('/path/to/config.json'); +$builder->addListener('service_builder.create_client', function ($event) use ($multi) { + $event['client']->setCurlMulti($multi); +} +}); +``` + +### No default path + +URLs no longer have a default path value of '/' if no path was specified. + +Before: + +```php +$request = $client->get('http://www.foo.com'); +echo $request->getUrl(); +// >> http://www.foo.com/ +``` + +After: + +```php +$request = $client->get('http://www.foo.com'); +echo $request->getUrl(); +// >> http://www.foo.com +``` + +### Less verbose BadResponseException + +The exception message for `Guzzle\Http\Exception\BadResponseException` no longer contains the full HTTP request and +response information. You can, however, get access to the request and response object by calling `getRequest()` or +`getResponse()` on the exception object. + +### Query parameter aggregation + +Multi-valued query parameters are no longer aggregated using a callback function. `Guzzle\Http\Query` now has a +setAggregator() method that accepts a `Guzzle\Http\QueryAggregator\QueryAggregatorInterface` object. This object is +responsible for handling the aggregation of multi-valued query string variables into a flattened hash. + +2.8 to 3.x +---------- + +### Guzzle\Service\Inspector + +Change `\Guzzle\Service\Inspector::fromConfig` to `\Guzzle\Common\Collection::fromConfig` + +**Before** + +```php +use Guzzle\Service\Inspector; + +class YourClient extends \Guzzle\Service\Client +{ + public static function factory($config = array()) + { + $default = array(); + $required = array('base_url', 'username', 'api_key'); + $config = Inspector::fromConfig($config, $default, $required); + + $client = new self( + $config->get('base_url'), + $config->get('username'), + $config->get('api_key') + ); + $client->setConfig($config); + + $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); + + return $client; + } +``` + +**After** + +```php +use Guzzle\Common\Collection; + +class YourClient extends \Guzzle\Service\Client +{ + public static function factory($config = array()) + { + $default = array(); + $required = array('base_url', 'username', 'api_key'); + $config = Collection::fromConfig($config, $default, $required); + + $client = new self( + $config->get('base_url'), + $config->get('username'), + $config->get('api_key') + ); + $client->setConfig($config); + + $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); + + return $client; + } +``` + +### Convert XML Service Descriptions to JSON + +**Before** + +```xml + + + + + + Get a list of groups + + + Uses a search query to get a list of groups + + + + Create a group + + + + + Delete a group by ID + + + + + + + Update a group + + + + + + +``` + +**After** + +```json +{ + "name": "Zendesk REST API v2", + "apiVersion": "2012-12-31", + "description":"Provides access to Zendesk views, groups, tickets, ticket fields, and users", + "operations": { + "list_groups": { + "httpMethod":"GET", + "uri": "groups.json", + "summary": "Get a list of groups" + }, + "search_groups":{ + "httpMethod":"GET", + "uri": "search.json?query=\"{query} type:group\"", + "summary": "Uses a search query to get a list of groups", + "parameters":{ + "query":{ + "location": "uri", + "description":"Zendesk Search Query", + "type": "string", + "required": true + } + } + }, + "create_group": { + "httpMethod":"POST", + "uri": "groups.json", + "summary": "Create a group", + "parameters":{ + "data": { + "type": "array", + "location": "body", + "description":"Group JSON", + "filters": "json_encode", + "required": true + }, + "Content-Type":{ + "type": "string", + "location":"header", + "static": "application/json" + } + } + }, + "delete_group": { + "httpMethod":"DELETE", + "uri": "groups/{id}.json", + "summary": "Delete a group", + "parameters":{ + "id":{ + "location": "uri", + "description":"Group to delete by ID", + "type": "integer", + "required": true + } + } + }, + "get_group": { + "httpMethod":"GET", + "uri": "groups/{id}.json", + "summary": "Get a ticket", + "parameters":{ + "id":{ + "location": "uri", + "description":"Group to get by ID", + "type": "integer", + "required": true + } + } + }, + "update_group": { + "httpMethod":"PUT", + "uri": "groups/{id}.json", + "summary": "Update a group", + "parameters":{ + "id": { + "location": "uri", + "description":"Group to update by ID", + "type": "integer", + "required": true + }, + "data": { + "type": "array", + "location": "body", + "description":"Group JSON", + "filters": "json_encode", + "required": true + }, + "Content-Type":{ + "type": "string", + "location":"header", + "static": "application/json" + } + } + } +} +``` + +### Guzzle\Service\Description\ServiceDescription + +Commands are now called Operations + +**Before** + +```php +use Guzzle\Service\Description\ServiceDescription; + +$sd = new ServiceDescription(); +$sd->getCommands(); // @returns ApiCommandInterface[] +$sd->hasCommand($name); +$sd->getCommand($name); // @returns ApiCommandInterface|null +$sd->addCommand($command); // @param ApiCommandInterface $command +``` + +**After** + +```php +use Guzzle\Service\Description\ServiceDescription; + +$sd = new ServiceDescription(); +$sd->getOperations(); // @returns OperationInterface[] +$sd->hasOperation($name); +$sd->getOperation($name); // @returns OperationInterface|null +$sd->addOperation($operation); // @param OperationInterface $operation +``` + +### Guzzle\Common\Inflection\Inflector + +Namespace is now `Guzzle\Inflection\Inflector` + +### Guzzle\Http\Plugin + +Namespace is now `Guzzle\Plugin`. Many other changes occur within this namespace and are detailed in their own sections below. + +### Guzzle\Http\Plugin\LogPlugin and Guzzle\Common\Log + +Now `Guzzle\Plugin\Log\LogPlugin` and `Guzzle\Log` respectively. + +**Before** + +```php +use Guzzle\Common\Log\ClosureLogAdapter; +use Guzzle\Http\Plugin\LogPlugin; + +/** @var \Guzzle\Http\Client */ +$client; + +// $verbosity is an integer indicating desired message verbosity level +$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $verbosity = LogPlugin::LOG_VERBOSE); +``` + +**After** + +```php +use Guzzle\Log\ClosureLogAdapter; +use Guzzle\Log\MessageFormatter; +use Guzzle\Plugin\Log\LogPlugin; + +/** @var \Guzzle\Http\Client */ +$client; + +// $format is a string indicating desired message format -- @see MessageFormatter +$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $format = MessageFormatter::DEBUG_FORMAT); +``` + +### Guzzle\Http\Plugin\CurlAuthPlugin + +Now `Guzzle\Plugin\CurlAuth\CurlAuthPlugin`. + +### Guzzle\Http\Plugin\ExponentialBackoffPlugin + +Now `Guzzle\Plugin\Backoff\BackoffPlugin`, and other changes. + +**Before** + +```php +use Guzzle\Http\Plugin\ExponentialBackoffPlugin; + +$backoffPlugin = new ExponentialBackoffPlugin($maxRetries, array_merge( + ExponentialBackoffPlugin::getDefaultFailureCodes(), array(429) + )); + +$client->addSubscriber($backoffPlugin); +``` + +**After** + +```php +use Guzzle\Plugin\Backoff\BackoffPlugin; +use Guzzle\Plugin\Backoff\HttpBackoffStrategy; + +// Use convenient factory method instead -- see implementation for ideas of what +// you can do with chaining backoff strategies +$backoffPlugin = BackoffPlugin::getExponentialBackoff($maxRetries, array_merge( + HttpBackoffStrategy::getDefaultFailureCodes(), array(429) + )); +$client->addSubscriber($backoffPlugin); +``` + +### Known Issues + +#### [BUG] Accept-Encoding header behavior changed unintentionally. + +(See #217) (Fixed in 09daeb8c666fb44499a0646d655a8ae36456575e) + +In version 2.8 setting the `Accept-Encoding` header would set the CURLOPT_ENCODING option, which permitted cURL to +properly handle gzip/deflate compressed responses from the server. In versions affected by this bug this does not happen. +See issue #217 for a workaround, or use a version containing the fix. diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/composer.json b/phpTest_20/componente/vendor/guzzlehttp/guzzle/composer.json new file mode 100644 index 0000000..5d2025b --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/composer.json @@ -0,0 +1,98 @@ +{ + "name": "guzzlehttp/guzzle", + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "framework", + "http", + "rest", + "web service", + "curl", + "client", + "HTTP client", + "PSR-7", + "PSR-18" + ], + "license": "MIT", + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "require": { + "php": "^7.2.5 || ^8.0", + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.8.3 || ^2.1", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "ext-curl": "*", + "bamarni/composer-bin-plugin": "^1.4.1", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "config": { + "preferred-install": "dist", + "sort-packages": true + }, + "extra": { + "branch-alias": { + "dev-master": "7.4-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "autoload-dev": { + "psr-4": { + "GuzzleHttp\\Tests\\": "tests/" + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/BodySummarizer.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/BodySummarizer.php new file mode 100644 index 0000000..6eca94e --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/BodySummarizer.php @@ -0,0 +1,28 @@ +truncateAt = $truncateAt; + } + + /** + * Returns a summarized message body. + */ + public function summarize(MessageInterface $message): ?string + { + return $this->truncateAt === null + ? \GuzzleHttp\Psr7\Message::bodySummary($message) + : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php new file mode 100644 index 0000000..3e02e03 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php @@ -0,0 +1,13 @@ + 'http://www.foo.com/1.0/', + * 'timeout' => 0, + * 'allow_redirects' => false, + * 'proxy' => '192.168.16.1:10' + * ]); + * + * Client configuration settings include the following options: + * + * - handler: (callable) Function that transfers HTTP requests over the + * wire. The function is called with a Psr7\Http\Message\RequestInterface + * and array of transfer options, and must return a + * GuzzleHttp\Promise\PromiseInterface that is fulfilled with a + * Psr7\Http\Message\ResponseInterface on success. + * If no handler is provided, a default handler will be created + * that enables all of the request options below by attaching all of the + * default middleware to the handler. + * - base_uri: (string|UriInterface) Base URI of the client that is merged + * into relative URIs. Can be a string or instance of UriInterface. + * - **: any request option + * + * @param array $config Client configuration settings. + * + * @see \GuzzleHttp\RequestOptions for a list of available request options. + */ + public function __construct(array $config = []) + { + if (!isset($config['handler'])) { + $config['handler'] = HandlerStack::create(); + } elseif (!\is_callable($config['handler'])) { + throw new InvalidArgumentException('handler must be a callable'); + } + + // Convert the base_uri to a UriInterface + if (isset($config['base_uri'])) { + $config['base_uri'] = Psr7\Utils::uriFor($config['base_uri']); + } + + $this->configureDefaults($config); + } + + /** + * @param string $method + * @param array $args + * + * @return PromiseInterface|ResponseInterface + * + * @deprecated Client::__call will be removed in guzzlehttp/guzzle:8.0. + */ + public function __call($method, $args) + { + if (\count($args) < 1) { + throw new InvalidArgumentException('Magic request methods require a URI and optional options array'); + } + + $uri = $args[0]; + $opts = $args[1] ?? []; + + return \substr($method, -5) === 'Async' + ? $this->requestAsync(\substr($method, 0, -5), $uri, $opts) + : $this->request($method, $uri, $opts); + } + + /** + * Asynchronously send an HTTP request. + * + * @param array $options Request options to apply to the given + * request and to the transfer. See \GuzzleHttp\RequestOptions. + */ + public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface + { + // Merge the base URI into the request URI if needed. + $options = $this->prepareDefaults($options); + + return $this->transfer( + $request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), + $options + ); + } + + /** + * Send an HTTP request. + * + * @param array $options Request options to apply to the given + * request and to the transfer. See \GuzzleHttp\RequestOptions. + * + * @throws GuzzleException + */ + public function send(RequestInterface $request, array $options = []): ResponseInterface + { + $options[RequestOptions::SYNCHRONOUS] = true; + return $this->sendAsync($request, $options)->wait(); + } + + /** + * The HttpClient PSR (PSR-18) specify this method. + * + * @inheritDoc + */ + public function sendRequest(RequestInterface $request): ResponseInterface + { + $options[RequestOptions::SYNCHRONOUS] = true; + $options[RequestOptions::ALLOW_REDIRECTS] = false; + $options[RequestOptions::HTTP_ERRORS] = false; + + return $this->sendAsync($request, $options)->wait(); + } + + /** + * Create and send an asynchronous HTTP request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string $method HTTP method + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions. + */ + public function requestAsync(string $method, $uri = '', array $options = []): PromiseInterface + { + $options = $this->prepareDefaults($options); + // Remove request modifying parameter because it can be done up-front. + $headers = $options['headers'] ?? []; + $body = $options['body'] ?? null; + $version = $options['version'] ?? '1.1'; + // Merge the URI into the base URI. + $uri = $this->buildUri(Psr7\Utils::uriFor($uri), $options); + if (\is_array($body)) { + throw $this->invalidBody(); + } + $request = new Psr7\Request($method, $uri, $headers, $body, $version); + // Remove the option so that they are not doubly-applied. + unset($options['headers'], $options['body'], $options['version']); + + return $this->transfer($request, $options); + } + + /** + * Create and send an HTTP request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string $method HTTP method. + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions. + * + * @throws GuzzleException + */ + public function request(string $method, $uri = '', array $options = []): ResponseInterface + { + $options[RequestOptions::SYNCHRONOUS] = true; + return $this->requestAsync($method, $uri, $options)->wait(); + } + + /** + * Get a client configuration option. + * + * These options include default request options of the client, a "handler" + * (if utilized by the concrete client), and a "base_uri" if utilized by + * the concrete client. + * + * @param string|null $option The config option to retrieve. + * + * @return mixed + * + * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0. + */ + public function getConfig(?string $option = null) + { + return $option === null + ? $this->config + : ($this->config[$option] ?? null); + } + + private function buildUri(UriInterface $uri, array $config): UriInterface + { + if (isset($config['base_uri'])) { + $uri = Psr7\UriResolver::resolve(Psr7\Utils::uriFor($config['base_uri']), $uri); + } + + if (isset($config['idn_conversion']) && ($config['idn_conversion'] !== false)) { + $idnOptions = ($config['idn_conversion'] === true) ? \IDNA_DEFAULT : $config['idn_conversion']; + $uri = Utils::idnUriConvert($uri, $idnOptions); + } + + return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri; + } + + /** + * Configures the default options for a client. + */ + private function configureDefaults(array $config): void + { + $defaults = [ + 'allow_redirects' => RedirectMiddleware::$defaultSettings, + 'http_errors' => true, + 'decode_content' => true, + 'verify' => true, + 'cookies' => false, + 'idn_conversion' => false, + ]; + + // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set. + + // We can only trust the HTTP_PROXY environment variable in a CLI + // process due to the fact that PHP has no reliable mechanism to + // get environment variables that start with "HTTP_". + if (\PHP_SAPI === 'cli' && ($proxy = Utils::getenv('HTTP_PROXY'))) { + $defaults['proxy']['http'] = $proxy; + } + + if ($proxy = Utils::getenv('HTTPS_PROXY')) { + $defaults['proxy']['https'] = $proxy; + } + + if ($noProxy = Utils::getenv('NO_PROXY')) { + $cleanedNoProxy = \str_replace(' ', '', $noProxy); + $defaults['proxy']['no'] = \explode(',', $cleanedNoProxy); + } + + $this->config = $config + $defaults; + + if (!empty($config['cookies']) && $config['cookies'] === true) { + $this->config['cookies'] = new CookieJar(); + } + + // Add the default user-agent header. + if (!isset($this->config['headers'])) { + $this->config['headers'] = ['User-Agent' => Utils::defaultUserAgent()]; + } else { + // Add the User-Agent header if one was not already set. + foreach (\array_keys($this->config['headers']) as $name) { + if (\strtolower($name) === 'user-agent') { + return; + } + } + $this->config['headers']['User-Agent'] = Utils::defaultUserAgent(); + } + } + + /** + * Merges default options into the array. + * + * @param array $options Options to modify by reference + */ + private function prepareDefaults(array $options): array + { + $defaults = $this->config; + + if (!empty($defaults['headers'])) { + // Default headers are only added if they are not present. + $defaults['_conditional'] = $defaults['headers']; + unset($defaults['headers']); + } + + // Special handling for headers is required as they are added as + // conditional headers and as headers passed to a request ctor. + if (\array_key_exists('headers', $options)) { + // Allows default headers to be unset. + if ($options['headers'] === null) { + $defaults['_conditional'] = []; + unset($options['headers']); + } elseif (!\is_array($options['headers'])) { + throw new InvalidArgumentException('headers must be an array'); + } + } + + // Shallow merge defaults underneath options. + $result = $options + $defaults; + + // Remove null values. + foreach ($result as $k => $v) { + if ($v === null) { + unset($result[$k]); + } + } + + return $result; + } + + /** + * Transfers the given request and applies request options. + * + * The URI of the request is not modified and the request options are used + * as-is without merging in default options. + * + * @param array $options See \GuzzleHttp\RequestOptions. + */ + private function transfer(RequestInterface $request, array $options): PromiseInterface + { + $request = $this->applyOptions($request, $options); + /** @var HandlerStack $handler */ + $handler = $options['handler']; + + try { + return P\Create::promiseFor($handler($request, $options)); + } catch (\Exception $e) { + return P\Create::rejectionFor($e); + } + } + + /** + * Applies the array of request options to a request. + */ + private function applyOptions(RequestInterface $request, array &$options): RequestInterface + { + $modify = [ + 'set_headers' => [], + ]; + + if (isset($options['headers'])) { + if (array_keys($options['headers']) === range(0, count($options['headers']) - 1)) { + throw new InvalidArgumentException('The headers array must have header name as keys.'); + } + $modify['set_headers'] = $options['headers']; + unset($options['headers']); + } + + if (isset($options['form_params'])) { + if (isset($options['multipart'])) { + throw new InvalidArgumentException('You cannot use ' + . 'form_params and multipart at the same time. Use the ' + . 'form_params option if you want to send application/' + . 'x-www-form-urlencoded requests, and the multipart ' + . 'option to send multipart/form-data requests.'); + } + $options['body'] = \http_build_query($options['form_params'], '', '&'); + unset($options['form_params']); + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); + $options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded'; + } + + if (isset($options['multipart'])) { + $options['body'] = new Psr7\MultipartStream($options['multipart']); + unset($options['multipart']); + } + + if (isset($options['json'])) { + $options['body'] = Utils::jsonEncode($options['json']); + unset($options['json']); + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); + $options['_conditional']['Content-Type'] = 'application/json'; + } + + if (!empty($options['decode_content']) + && $options['decode_content'] !== true + ) { + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Accept-Encoding'], $options['_conditional']); + $modify['set_headers']['Accept-Encoding'] = $options['decode_content']; + } + + if (isset($options['body'])) { + if (\is_array($options['body'])) { + throw $this->invalidBody(); + } + $modify['body'] = Psr7\Utils::streamFor($options['body']); + unset($options['body']); + } + + if (!empty($options['auth']) && \is_array($options['auth'])) { + $value = $options['auth']; + $type = isset($value[2]) ? \strtolower($value[2]) : 'basic'; + switch ($type) { + case 'basic': + // Ensure that we don't have the header in different case and set the new value. + $modify['set_headers'] = Psr7\Utils::caselessRemove(['Authorization'], $modify['set_headers']); + $modify['set_headers']['Authorization'] = 'Basic ' + . \base64_encode("$value[0]:$value[1]"); + break; + case 'digest': + // @todo: Do not rely on curl + $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_DIGEST; + $options['curl'][\CURLOPT_USERPWD] = "$value[0]:$value[1]"; + break; + case 'ntlm': + $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_NTLM; + $options['curl'][\CURLOPT_USERPWD] = "$value[0]:$value[1]"; + break; + } + } + + if (isset($options['query'])) { + $value = $options['query']; + if (\is_array($value)) { + $value = \http_build_query($value, '', '&', \PHP_QUERY_RFC3986); + } + if (!\is_string($value)) { + throw new InvalidArgumentException('query must be a string or array'); + } + $modify['query'] = $value; + unset($options['query']); + } + + // Ensure that sink is not an invalid value. + if (isset($options['sink'])) { + // TODO: Add more sink validation? + if (\is_bool($options['sink'])) { + throw new InvalidArgumentException('sink must not be a boolean'); + } + } + + $request = Psr7\Utils::modifyRequest($request, $modify); + if ($request->getBody() instanceof Psr7\MultipartStream) { + // Use a multipart/form-data POST if a Content-Type is not set. + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); + $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' + . $request->getBody()->getBoundary(); + } + + // Merge in conditional headers if they are not present. + if (isset($options['_conditional'])) { + // Build up the changes so it's in a single clone of the message. + $modify = []; + foreach ($options['_conditional'] as $k => $v) { + if (!$request->hasHeader($k)) { + $modify['set_headers'][$k] = $v; + } + } + $request = Psr7\Utils::modifyRequest($request, $modify); + // Don't pass this internal value along to middleware/handlers. + unset($options['_conditional']); + } + + return $request; + } + + /** + * Return an InvalidArgumentException with pre-set message. + */ + private function invalidBody(): InvalidArgumentException + { + return new InvalidArgumentException('Passing in the "body" request ' + . 'option as an array to send a request is not supported. ' + . 'Please use the "form_params" request option to send a ' + . 'application/x-www-form-urlencoded request, or the "multipart" ' + . 'request option to send a multipart/form-data request.'); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/ClientInterface.php new file mode 100644 index 0000000..6aaee61 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/ClientInterface.php @@ -0,0 +1,84 @@ +request('GET', $uri, $options); + } + + /** + * Create and send an HTTP HEAD request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function head($uri, array $options = []): ResponseInterface + { + return $this->request('HEAD', $uri, $options); + } + + /** + * Create and send an HTTP PUT request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function put($uri, array $options = []): ResponseInterface + { + return $this->request('PUT', $uri, $options); + } + + /** + * Create and send an HTTP POST request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function post($uri, array $options = []): ResponseInterface + { + return $this->request('POST', $uri, $options); + } + + /** + * Create and send an HTTP PATCH request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function patch($uri, array $options = []): ResponseInterface + { + return $this->request('PATCH', $uri, $options); + } + + /** + * Create and send an HTTP DELETE request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function delete($uri, array $options = []): ResponseInterface + { + return $this->request('DELETE', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string $method HTTP method + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + abstract public function requestAsync(string $method, $uri, array $options = []): PromiseInterface; + + /** + * Create and send an asynchronous HTTP GET request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function getAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('GET', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP HEAD request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function headAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('HEAD', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP PUT request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function putAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('PUT', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP POST request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function postAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('POST', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP PATCH request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function patchAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('PATCH', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP DELETE request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function deleteAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('DELETE', $uri, $options); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php new file mode 100644 index 0000000..d6757c6 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php @@ -0,0 +1,313 @@ +strictMode = $strictMode; + + foreach ($cookieArray as $cookie) { + if (!($cookie instanceof SetCookie)) { + $cookie = new SetCookie($cookie); + } + $this->setCookie($cookie); + } + } + + /** + * Create a new Cookie jar from an associative array and domain. + * + * @param array $cookies Cookies to create the jar from + * @param string $domain Domain to set the cookies to + */ + public static function fromArray(array $cookies, string $domain): self + { + $cookieJar = new self(); + foreach ($cookies as $name => $value) { + $cookieJar->setCookie(new SetCookie([ + 'Domain' => $domain, + 'Name' => $name, + 'Value' => $value, + 'Discard' => true + ])); + } + + return $cookieJar; + } + + /** + * Evaluate if this cookie should be persisted to storage + * that survives between requests. + * + * @param SetCookie $cookie Being evaluated. + * @param bool $allowSessionCookies If we should persist session cookies + */ + public static function shouldPersist(SetCookie $cookie, bool $allowSessionCookies = false): bool + { + if ($cookie->getExpires() || $allowSessionCookies) { + if (!$cookie->getDiscard()) { + return true; + } + } + + return false; + } + + /** + * Finds and returns the cookie based on the name + * + * @param string $name cookie name to search for + * + * @return SetCookie|null cookie that was found or null if not found + */ + public function getCookieByName(string $name): ?SetCookie + { + foreach ($this->cookies as $cookie) { + if ($cookie->getName() !== null && \strcasecmp($cookie->getName(), $name) === 0) { + return $cookie; + } + } + + return null; + } + + /** + * @inheritDoc + */ + public function toArray(): array + { + return \array_map(static function (SetCookie $cookie): array { + return $cookie->toArray(); + }, $this->getIterator()->getArrayCopy()); + } + + /** + * @inheritDoc + */ + public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void + { + if (!$domain) { + $this->cookies = []; + return; + } elseif (!$path) { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie) use ($domain): bool { + return !$cookie->matchesDomain($domain); + } + ); + } elseif (!$name) { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie) use ($path, $domain): bool { + return !($cookie->matchesPath($path) && + $cookie->matchesDomain($domain)); + } + ); + } else { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie) use ($path, $domain, $name) { + return !($cookie->getName() == $name && + $cookie->matchesPath($path) && + $cookie->matchesDomain($domain)); + } + ); + } + } + + /** + * @inheritDoc + */ + public function clearSessionCookies(): void + { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie): bool { + return !$cookie->getDiscard() && $cookie->getExpires(); + } + ); + } + + /** + * @inheritDoc + */ + public function setCookie(SetCookie $cookie): bool + { + // If the name string is empty (but not 0), ignore the set-cookie + // string entirely. + $name = $cookie->getName(); + if (!$name && $name !== '0') { + return false; + } + + // Only allow cookies with set and valid domain, name, value + $result = $cookie->validate(); + if ($result !== true) { + if ($this->strictMode) { + throw new \RuntimeException('Invalid cookie: ' . $result); + } + $this->removeCookieIfEmpty($cookie); + return false; + } + + // Resolve conflicts with previously set cookies + foreach ($this->cookies as $i => $c) { + + // Two cookies are identical, when their path, and domain are + // identical. + if ($c->getPath() != $cookie->getPath() || + $c->getDomain() != $cookie->getDomain() || + $c->getName() != $cookie->getName() + ) { + continue; + } + + // The previously set cookie is a discard cookie and this one is + // not so allow the new cookie to be set + if (!$cookie->getDiscard() && $c->getDiscard()) { + unset($this->cookies[$i]); + continue; + } + + // If the new cookie's expiration is further into the future, then + // replace the old cookie + if ($cookie->getExpires() > $c->getExpires()) { + unset($this->cookies[$i]); + continue; + } + + // If the value has changed, we better change it + if ($cookie->getValue() !== $c->getValue()) { + unset($this->cookies[$i]); + continue; + } + + // The cookie exists, so no need to continue + return false; + } + + $this->cookies[] = $cookie; + + return true; + } + + public function count(): int + { + return \count($this->cookies); + } + + /** + * @return \ArrayIterator + */ + public function getIterator(): \ArrayIterator + { + return new \ArrayIterator(\array_values($this->cookies)); + } + + public function extractCookies(RequestInterface $request, ResponseInterface $response): void + { + if ($cookieHeader = $response->getHeader('Set-Cookie')) { + foreach ($cookieHeader as $cookie) { + $sc = SetCookie::fromString($cookie); + if (!$sc->getDomain()) { + $sc->setDomain($request->getUri()->getHost()); + } + if (0 !== \strpos($sc->getPath(), '/')) { + $sc->setPath($this->getCookiePathFromRequest($request)); + } + $this->setCookie($sc); + } + } + } + + /** + * Computes cookie path following RFC 6265 section 5.1.4 + * + * @link https://tools.ietf.org/html/rfc6265#section-5.1.4 + */ + private function getCookiePathFromRequest(RequestInterface $request): string + { + $uriPath = $request->getUri()->getPath(); + if ('' === $uriPath) { + return '/'; + } + if (0 !== \strpos($uriPath, '/')) { + return '/'; + } + if ('/' === $uriPath) { + return '/'; + } + $lastSlashPos = \strrpos($uriPath, '/'); + if (0 === $lastSlashPos || false === $lastSlashPos) { + return '/'; + } + + return \substr($uriPath, 0, $lastSlashPos); + } + + public function withCookieHeader(RequestInterface $request): RequestInterface + { + $values = []; + $uri = $request->getUri(); + $scheme = $uri->getScheme(); + $host = $uri->getHost(); + $path = $uri->getPath() ?: '/'; + + foreach ($this->cookies as $cookie) { + if ($cookie->matchesPath($path) && + $cookie->matchesDomain($host) && + !$cookie->isExpired() && + (!$cookie->getSecure() || $scheme === 'https') + ) { + $values[] = $cookie->getName() . '=' + . $cookie->getValue(); + } + } + + return $values + ? $request->withHeader('Cookie', \implode('; ', $values)) + : $request; + } + + /** + * If a cookie already exists and the server asks to set it again with a + * null value, the cookie must be deleted. + */ + private function removeCookieIfEmpty(SetCookie $cookie): void + { + $cookieValue = $cookie->getValue(); + if ($cookieValue === null || $cookieValue === '') { + $this->clear( + $cookie->getDomain(), + $cookie->getPath(), + $cookie->getName() + ); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php new file mode 100644 index 0000000..7df374b --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php @@ -0,0 +1,79 @@ + + */ +interface CookieJarInterface extends \Countable, \IteratorAggregate +{ + /** + * Create a request with added cookie headers. + * + * If no matching cookies are found in the cookie jar, then no Cookie + * header is added to the request and the same request is returned. + * + * @param RequestInterface $request Request object to modify. + * + * @return RequestInterface returns the modified request. + */ + public function withCookieHeader(RequestInterface $request): RequestInterface; + + /** + * Extract cookies from an HTTP response and store them in the CookieJar. + * + * @param RequestInterface $request Request that was sent + * @param ResponseInterface $response Response that was received + */ + public function extractCookies(RequestInterface $request, ResponseInterface $response): void; + + /** + * Sets a cookie in the cookie jar. + * + * @param SetCookie $cookie Cookie to set. + * + * @return bool Returns true on success or false on failure + */ + public function setCookie(SetCookie $cookie): bool; + + /** + * Remove cookies currently held in the cookie jar. + * + * Invoking this method without arguments will empty the whole cookie jar. + * If given a $domain argument only cookies belonging to that domain will + * be removed. If given a $domain and $path argument, cookies belonging to + * the specified path within that domain are removed. If given all three + * arguments, then the cookie with the specified name, path and domain is + * removed. + * + * @param string|null $domain Clears cookies matching a domain + * @param string|null $path Clears cookies matching a domain and path + * @param string|null $name Clears cookies matching a domain, path, and name + */ + public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void; + + /** + * Discard all sessions cookies. + * + * Removes cookies that don't have an expire field or a have a discard + * field set to true. To be called when the user agent shuts down according + * to RFC 2965. + */ + public function clearSessionCookies(): void; + + /** + * Converts the cookie jar to an array. + */ + public function toArray(): array; +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php new file mode 100644 index 0000000..290236d --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php @@ -0,0 +1,101 @@ +filename = $cookieFile; + $this->storeSessionCookies = $storeSessionCookies; + + if (\file_exists($cookieFile)) { + $this->load($cookieFile); + } + } + + /** + * Saves the file when shutting down + */ + public function __destruct() + { + $this->save($this->filename); + } + + /** + * Saves the cookies to a file. + * + * @param string $filename File to save + * + * @throws \RuntimeException if the file cannot be found or created + */ + public function save(string $filename): void + { + $json = []; + /** @var SetCookie $cookie */ + foreach ($this as $cookie) { + if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { + $json[] = $cookie->toArray(); + } + } + + $jsonStr = Utils::jsonEncode($json); + if (false === \file_put_contents($filename, $jsonStr, \LOCK_EX)) { + throw new \RuntimeException("Unable to save file {$filename}"); + } + } + + /** + * Load cookies from a JSON formatted file. + * + * Old cookies are kept unless overwritten by newly loaded ones. + * + * @param string $filename Cookie file to load. + * + * @throws \RuntimeException if the file cannot be loaded. + */ + public function load(string $filename): void + { + $json = \file_get_contents($filename); + if (false === $json) { + throw new \RuntimeException("Unable to load file {$filename}"); + } + if ($json === '') { + return; + } + + $data = Utils::jsonDecode($json, true); + if (\is_array($data)) { + foreach ($data as $cookie) { + $this->setCookie(new SetCookie($cookie)); + } + } elseif (\is_scalar($data) && !empty($data)) { + throw new \RuntimeException("Invalid cookie file: {$filename}"); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php new file mode 100644 index 0000000..5d51ca9 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php @@ -0,0 +1,77 @@ +sessionKey = $sessionKey; + $this->storeSessionCookies = $storeSessionCookies; + $this->load(); + } + + /** + * Saves cookies to session when shutting down + */ + public function __destruct() + { + $this->save(); + } + + /** + * Save cookies to the client session + */ + public function save(): void + { + $json = []; + /** @var SetCookie $cookie */ + foreach ($this as $cookie) { + if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { + $json[] = $cookie->toArray(); + } + } + + $_SESSION[$this->sessionKey] = \json_encode($json); + } + + /** + * Load the contents of the client session into the data array + */ + protected function load(): void + { + if (!isset($_SESSION[$this->sessionKey])) { + return; + } + $data = \json_decode($_SESSION[$this->sessionKey], true); + if (\is_array($data)) { + foreach ($data as $cookie) { + $this->setCookie(new SetCookie($cookie)); + } + } elseif (\strlen($data)) { + throw new \RuntimeException("Invalid cookie data"); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php new file mode 100644 index 0000000..7c04034 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php @@ -0,0 +1,444 @@ + null, + 'Value' => null, + 'Domain' => null, + 'Path' => '/', + 'Max-Age' => null, + 'Expires' => null, + 'Secure' => false, + 'Discard' => false, + 'HttpOnly' => false + ]; + + /** + * @var array Cookie data + */ + private $data; + + /** + * Create a new SetCookie object from a string. + * + * @param string $cookie Set-Cookie header string + */ + public static function fromString(string $cookie): self + { + // Create the default return array + $data = self::$defaults; + // Explode the cookie string using a series of semicolons + $pieces = \array_filter(\array_map('trim', \explode(';', $cookie))); + // The name of the cookie (first kvp) must exist and include an equal sign. + if (!isset($pieces[0]) || \strpos($pieces[0], '=') === false) { + return new self($data); + } + + // Add the cookie pieces into the parsed data array + foreach ($pieces as $part) { + $cookieParts = \explode('=', $part, 2); + $key = \trim($cookieParts[0]); + $value = isset($cookieParts[1]) + ? \trim($cookieParts[1], " \n\r\t\0\x0B") + : true; + + // Only check for non-cookies when cookies have been found + if (!isset($data['Name'])) { + $data['Name'] = $key; + $data['Value'] = $value; + } else { + foreach (\array_keys(self::$defaults) as $search) { + if (!\strcasecmp($search, $key)) { + $data[$search] = $value; + continue 2; + } + } + $data[$key] = $value; + } + } + + return new self($data); + } + + /** + * @param array $data Array of cookie data provided by a Cookie parser + */ + public function __construct(array $data = []) + { + /** @var array|null $replaced will be null in case of replace error */ + $replaced = \array_replace(self::$defaults, $data); + if ($replaced === null) { + throw new \InvalidArgumentException('Unable to replace the default values for the Cookie.'); + } + + $this->data = $replaced; + // Extract the Expires value and turn it into a UNIX timestamp if needed + if (!$this->getExpires() && $this->getMaxAge()) { + // Calculate the Expires date + $this->setExpires(\time() + $this->getMaxAge()); + } elseif (null !== ($expires = $this->getExpires()) && !\is_numeric($expires)) { + $this->setExpires($expires); + } + } + + public function __toString() + { + $str = $this->data['Name'] . '=' . ($this->data['Value'] ?? '') . '; '; + foreach ($this->data as $k => $v) { + if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== false) { + if ($k === 'Expires') { + $str .= 'Expires=' . \gmdate('D, d M Y H:i:s \G\M\T', $v) . '; '; + } else { + $str .= ($v === true ? $k : "{$k}={$v}") . '; '; + } + } + } + + return \rtrim($str, '; '); + } + + public function toArray(): array + { + return $this->data; + } + + /** + * Get the cookie name. + * + * @return string + */ + public function getName() + { + return $this->data['Name']; + } + + /** + * Set the cookie name. + * + * @param string $name Cookie name + */ + public function setName($name): void + { + if (!is_string($name)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Name'] = (string) $name; + } + + /** + * Get the cookie value. + * + * @return string|null + */ + public function getValue() + { + return $this->data['Value']; + } + + /** + * Set the cookie value. + * + * @param string $value Cookie value + */ + public function setValue($value): void + { + if (!is_string($value)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Value'] = (string) $value; + } + + /** + * Get the domain. + * + * @return string|null + */ + public function getDomain() + { + return $this->data['Domain']; + } + + /** + * Set the domain of the cookie. + * + * @param string|null $domain + */ + public function setDomain($domain): void + { + if (!is_string($domain) && null !== $domain) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Domain'] = null === $domain ? null : (string) $domain; + } + + /** + * Get the path. + * + * @return string + */ + public function getPath() + { + return $this->data['Path']; + } + + /** + * Set the path of the cookie. + * + * @param string $path Path of the cookie + */ + public function setPath($path): void + { + if (!is_string($path)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Path'] = (string) $path; + } + + /** + * Maximum lifetime of the cookie in seconds. + * + * @return int|null + */ + public function getMaxAge() + { + return null === $this->data['Max-Age'] ? null : (int) $this->data['Max-Age']; + } + + /** + * Set the max-age of the cookie. + * + * @param int|null $maxAge Max age of the cookie in seconds + */ + public function setMaxAge($maxAge): void + { + if (!is_int($maxAge) && null !== $maxAge) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Max-Age'] = $maxAge === null ? null : (int) $maxAge; + } + + /** + * The UNIX timestamp when the cookie Expires. + * + * @return string|int|null + */ + public function getExpires() + { + return $this->data['Expires']; + } + + /** + * Set the unix timestamp for which the cookie will expire. + * + * @param int|string|null $timestamp Unix timestamp or any English textual datetime description. + */ + public function setExpires($timestamp): void + { + if (!is_int($timestamp) && !is_string($timestamp) && null !== $timestamp) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int, string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Expires'] = null === $timestamp ? null : (\is_numeric($timestamp) ? (int) $timestamp : \strtotime((string) $timestamp)); + } + + /** + * Get whether or not this is a secure cookie. + * + * @return bool + */ + public function getSecure() + { + return $this->data['Secure']; + } + + /** + * Set whether or not the cookie is secure. + * + * @param bool $secure Set to true or false if secure + */ + public function setSecure($secure): void + { + if (!is_bool($secure)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Secure'] = (bool) $secure; + } + + /** + * Get whether or not this is a session cookie. + * + * @return bool|null + */ + public function getDiscard() + { + return $this->data['Discard']; + } + + /** + * Set whether or not this is a session cookie. + * + * @param bool $discard Set to true or false if this is a session cookie + */ + public function setDiscard($discard): void + { + if (!is_bool($discard)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Discard'] = (bool) $discard; + } + + /** + * Get whether or not this is an HTTP only cookie. + * + * @return bool + */ + public function getHttpOnly() + { + return $this->data['HttpOnly']; + } + + /** + * Set whether or not this is an HTTP only cookie. + * + * @param bool $httpOnly Set to true or false if this is HTTP only + */ + public function setHttpOnly($httpOnly): void + { + if (!is_bool($httpOnly)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['HttpOnly'] = (bool) $httpOnly; + } + + /** + * Check if the cookie matches a path value. + * + * A request-path path-matches a given cookie-path if at least one of + * the following conditions holds: + * + * - The cookie-path and the request-path are identical. + * - The cookie-path is a prefix of the request-path, and the last + * character of the cookie-path is %x2F ("/"). + * - The cookie-path is a prefix of the request-path, and the first + * character of the request-path that is not included in the cookie- + * path is a %x2F ("/") character. + * + * @param string $requestPath Path to check against + */ + public function matchesPath(string $requestPath): bool + { + $cookiePath = $this->getPath(); + + // Match on exact matches or when path is the default empty "/" + if ($cookiePath === '/' || $cookiePath == $requestPath) { + return true; + } + + // Ensure that the cookie-path is a prefix of the request path. + if (0 !== \strpos($requestPath, $cookiePath)) { + return false; + } + + // Match if the last character of the cookie-path is "/" + if (\substr($cookiePath, -1, 1) === '/') { + return true; + } + + // Match if the first character not included in cookie path is "/" + return \substr($requestPath, \strlen($cookiePath), 1) === '/'; + } + + /** + * Check if the cookie matches a domain value. + * + * @param string $domain Domain to check against + */ + public function matchesDomain(string $domain): bool + { + $cookieDomain = $this->getDomain(); + if (null === $cookieDomain) { + return true; + } + + // Remove the leading '.' as per spec in RFC 6265. + // https://tools.ietf.org/html/rfc6265#section-5.2.3 + $cookieDomain = \ltrim($cookieDomain, '.'); + + // Domain not set or exact match. + if (!$cookieDomain || !\strcasecmp($domain, $cookieDomain)) { + return true; + } + + // Matching the subdomain according to RFC 6265. + // https://tools.ietf.org/html/rfc6265#section-5.1.3 + if (\filter_var($domain, \FILTER_VALIDATE_IP)) { + return false; + } + + return (bool) \preg_match('/\.' . \preg_quote($cookieDomain, '/') . '$/', $domain); + } + + /** + * Check if the cookie is expired. + */ + public function isExpired(): bool + { + return $this->getExpires() !== null && \time() > $this->getExpires(); + } + + /** + * Check if the cookie is valid according to RFC 6265. + * + * @return bool|string Returns true if valid or an error message if invalid + */ + public function validate() + { + $name = $this->getName(); + if ($name === '') { + return 'The cookie name must not be empty'; + } + + // Check if any of the invalid characters are present in the cookie name + if (\preg_match( + '/[\x00-\x20\x22\x28-\x29\x2c\x2f\x3a-\x40\x5c\x7b\x7d\x7f]/', + $name + )) { + return 'Cookie name must not contain invalid characters: ASCII ' + . 'Control characters (0-31;127), space, tab and the ' + . 'following characters: ()<>@,;:\"/?={}'; + } + + // Value must not be null. 0 and empty string are valid. Empty strings + // are technically against RFC 6265, but known to happen in the wild. + $value = $this->getValue(); + if ($value === null) { + return 'The cookie value must not be empty'; + } + + // Domains must not be empty, but can be 0. "0" is not a valid internet + // domain, but may be used as server name in a private network. + $domain = $this->getDomain(); + if ($domain === null || $domain === '') { + return 'The cookie domain must not be empty'; + } + + return true; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php new file mode 100644 index 0000000..a80956c --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php @@ -0,0 +1,39 @@ +request = $request; + $this->handlerContext = $handlerContext; + } + + /** + * Get the request that caused the exception + */ + public function getRequest(): RequestInterface + { + return $this->request; + } + + /** + * Get contextual information about the error from the underlying handler. + * + * The contents of this array will vary depending on which handler you are + * using. It may also be just an empty array. Relying on this data will + * couple you to a specific handler, but can give more debug information + * when needed. + */ + public function getHandlerContext(): array + { + return $this->handlerContext; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php new file mode 100644 index 0000000..fa3ed69 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php @@ -0,0 +1,9 @@ +getStatusCode() : 0; + parent::__construct($message, $code, $previous); + $this->request = $request; + $this->response = $response; + $this->handlerContext = $handlerContext; + } + + /** + * Wrap non-RequestExceptions with a RequestException + */ + public static function wrapException(RequestInterface $request, \Throwable $e): RequestException + { + return $e instanceof RequestException ? $e : new RequestException($e->getMessage(), $request, null, $e); + } + + /** + * Factory method to create a new exception with a normalized error message + * + * @param RequestInterface $request Request sent + * @param ResponseInterface $response Response received + * @param \Throwable|null $previous Previous exception + * @param array $handlerContext Optional handler context + * @param BodySummarizerInterface|null $bodySummarizer Optional body summarizer + */ + public static function create( + RequestInterface $request, + ResponseInterface $response = null, + \Throwable $previous = null, + array $handlerContext = [], + BodySummarizerInterface $bodySummarizer = null + ): self { + if (!$response) { + return new self( + 'Error completing request', + $request, + null, + $previous, + $handlerContext + ); + } + + $level = (int) \floor($response->getStatusCode() / 100); + if ($level === 4) { + $label = 'Client error'; + $className = ClientException::class; + } elseif ($level === 5) { + $label = 'Server error'; + $className = ServerException::class; + } else { + $label = 'Unsuccessful request'; + $className = __CLASS__; + } + + $uri = $request->getUri(); + $uri = static::obfuscateUri($uri); + + // Client Error: `GET /` resulted in a `404 Not Found` response: + // ... (truncated) + $message = \sprintf( + '%s: `%s %s` resulted in a `%s %s` response', + $label, + $request->getMethod(), + $uri, + $response->getStatusCode(), + $response->getReasonPhrase() + ); + + $summary = ($bodySummarizer ?? new BodySummarizer())->summarize($response); + + if ($summary !== null) { + $message .= ":\n{$summary}\n"; + } + + return new $className($message, $request, $response, $previous, $handlerContext); + } + + /** + * Obfuscates URI if there is a username and a password present + */ + private static function obfuscateUri(UriInterface $uri): UriInterface + { + $userInfo = $uri->getUserInfo(); + + if (false !== ($pos = \strpos($userInfo, ':'))) { + return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***'); + } + + return $uri; + } + + /** + * Get the request that caused the exception + */ + public function getRequest(): RequestInterface + { + return $this->request; + } + + /** + * Get the associated response + */ + public function getResponse(): ?ResponseInterface + { + return $this->response; + } + + /** + * Check if a response was received + */ + public function hasResponse(): bool + { + return $this->response !== null; + } + + /** + * Get contextual information about the error from the underlying handler. + * + * The contents of this array will vary depending on which handler you are + * using. It may also be just an empty array. Relying on this data will + * couple you to a specific handler, but can give more debug information + * when needed. + */ + public function getHandlerContext(): array + { + return $this->handlerContext; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php new file mode 100644 index 0000000..8055e06 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php @@ -0,0 +1,10 @@ +maxHandles = $maxHandles; + } + + public function create(RequestInterface $request, array $options): EasyHandle + { + if (isset($options['curl']['body_as_string'])) { + $options['_body_as_string'] = $options['curl']['body_as_string']; + unset($options['curl']['body_as_string']); + } + + $easy = new EasyHandle; + $easy->request = $request; + $easy->options = $options; + $conf = $this->getDefaultConf($easy); + $this->applyMethod($easy, $conf); + $this->applyHandlerOptions($easy, $conf); + $this->applyHeaders($easy, $conf); + unset($conf['_headers']); + + // Add handler options from the request configuration options + if (isset($options['curl'])) { + $conf = \array_replace($conf, $options['curl']); + } + + $conf[\CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy); + $easy->handle = $this->handles ? \array_pop($this->handles) : \curl_init(); + curl_setopt_array($easy->handle, $conf); + + return $easy; + } + + public function release(EasyHandle $easy): void + { + $resource = $easy->handle; + unset($easy->handle); + + if (\count($this->handles) >= $this->maxHandles) { + \curl_close($resource); + } else { + // Remove all callback functions as they can hold onto references + // and are not cleaned up by curl_reset. Using curl_setopt_array + // does not work for some reason, so removing each one + // individually. + \curl_setopt($resource, \CURLOPT_HEADERFUNCTION, null); + \curl_setopt($resource, \CURLOPT_READFUNCTION, null); + \curl_setopt($resource, \CURLOPT_WRITEFUNCTION, null); + \curl_setopt($resource, \CURLOPT_PROGRESSFUNCTION, null); + \curl_reset($resource); + $this->handles[] = $resource; + } + } + + /** + * Completes a cURL transaction, either returning a response promise or a + * rejected promise. + * + * @param callable(RequestInterface, array): PromiseInterface $handler + * @param CurlFactoryInterface $factory Dictates how the handle is released + */ + public static function finish(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface + { + if (isset($easy->options['on_stats'])) { + self::invokeStats($easy); + } + + if (!$easy->response || $easy->errno) { + return self::finishError($handler, $easy, $factory); + } + + // Return the response if it is present and there is no error. + $factory->release($easy); + + // Rewind the body of the response if possible. + $body = $easy->response->getBody(); + if ($body->isSeekable()) { + $body->rewind(); + } + + return new FulfilledPromise($easy->response); + } + + private static function invokeStats(EasyHandle $easy): void + { + $curlStats = \curl_getinfo($easy->handle); + $curlStats['appconnect_time'] = \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME); + $stats = new TransferStats( + $easy->request, + $easy->response, + $curlStats['total_time'], + $easy->errno, + $curlStats + ); + ($easy->options['on_stats'])($stats); + } + + /** + * @param callable(RequestInterface, array): PromiseInterface $handler + */ + private static function finishError(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface + { + // Get error information and release the handle to the factory. + $ctx = [ + 'errno' => $easy->errno, + 'error' => \curl_error($easy->handle), + 'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME), + ] + \curl_getinfo($easy->handle); + $ctx[self::CURL_VERSION_STR] = \curl_version()['version']; + $factory->release($easy); + + // Retry when nothing is present or when curl failed to rewind. + if (empty($easy->options['_err_message']) && (!$easy->errno || $easy->errno == 65)) { + return self::retryFailedRewind($handler, $easy, $ctx); + } + + return self::createRejection($easy, $ctx); + } + + private static function createRejection(EasyHandle $easy, array $ctx): PromiseInterface + { + static $connectionErrors = [ + \CURLE_OPERATION_TIMEOUTED => true, + \CURLE_COULDNT_RESOLVE_HOST => true, + \CURLE_COULDNT_CONNECT => true, + \CURLE_SSL_CONNECT_ERROR => true, + \CURLE_GOT_NOTHING => true, + ]; + + if ($easy->createResponseException) { + return P\Create::rejectionFor( + new RequestException( + 'An error was encountered while creating the response', + $easy->request, + $easy->response, + $easy->createResponseException, + $ctx + ) + ); + } + + // If an exception was encountered during the onHeaders event, then + // return a rejected promise that wraps that exception. + if ($easy->onHeadersException) { + return P\Create::rejectionFor( + new RequestException( + 'An error was encountered during the on_headers event', + $easy->request, + $easy->response, + $easy->onHeadersException, + $ctx + ) + ); + } + + $message = \sprintf( + 'cURL error %s: %s (%s)', + $ctx['errno'], + $ctx['error'], + 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html' + ); + $uriString = (string) $easy->request->getUri(); + if ($uriString !== '' && false === \strpos($ctx['error'], $uriString)) { + $message .= \sprintf(' for %s', $uriString); + } + + // Create a connection exception if it was a specific error code. + $error = isset($connectionErrors[$easy->errno]) + ? new ConnectException($message, $easy->request, null, $ctx) + : new RequestException($message, $easy->request, $easy->response, null, $ctx); + + return P\Create::rejectionFor($error); + } + + /** + * @return array + */ + private function getDefaultConf(EasyHandle $easy): array + { + $conf = [ + '_headers' => $easy->request->getHeaders(), + \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), + \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), + \CURLOPT_RETURNTRANSFER => false, + \CURLOPT_HEADER => false, + \CURLOPT_CONNECTTIMEOUT => 150, + ]; + + if (\defined('CURLOPT_PROTOCOLS')) { + $conf[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS; + } + + $version = $easy->request->getProtocolVersion(); + if ($version == 1.1) { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; + } elseif ($version == 2.0) { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0; + } else { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0; + } + + return $conf; + } + + private function applyMethod(EasyHandle $easy, array &$conf): void + { + $body = $easy->request->getBody(); + $size = $body->getSize(); + + if ($size === null || $size > 0) { + $this->applyBody($easy->request, $easy->options, $conf); + return; + } + + $method = $easy->request->getMethod(); + if ($method === 'PUT' || $method === 'POST') { + // See https://tools.ietf.org/html/rfc7230#section-3.3.2 + if (!$easy->request->hasHeader('Content-Length')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; + } + } elseif ($method === 'HEAD') { + $conf[\CURLOPT_NOBODY] = true; + unset( + $conf[\CURLOPT_WRITEFUNCTION], + $conf[\CURLOPT_READFUNCTION], + $conf[\CURLOPT_FILE], + $conf[\CURLOPT_INFILE] + ); + } + } + + private function applyBody(RequestInterface $request, array $options, array &$conf): void + { + $size = $request->hasHeader('Content-Length') + ? (int) $request->getHeaderLine('Content-Length') + : null; + + // Send the body as a string if the size is less than 1MB OR if the + // [curl][body_as_string] request value is set. + if (($size !== null && $size < 1000000) || !empty($options['_body_as_string'])) { + $conf[\CURLOPT_POSTFIELDS] = (string) $request->getBody(); + // Don't duplicate the Content-Length header + $this->removeHeader('Content-Length', $conf); + $this->removeHeader('Transfer-Encoding', $conf); + } else { + $conf[\CURLOPT_UPLOAD] = true; + if ($size !== null) { + $conf[\CURLOPT_INFILESIZE] = $size; + $this->removeHeader('Content-Length', $conf); + } + $body = $request->getBody(); + if ($body->isSeekable()) { + $body->rewind(); + } + $conf[\CURLOPT_READFUNCTION] = static function ($ch, $fd, $length) use ($body) { + return $body->read($length); + }; + } + + // If the Expect header is not present, prevent curl from adding it + if (!$request->hasHeader('Expect')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Expect:'; + } + + // cURL sometimes adds a content-type by default. Prevent this. + if (!$request->hasHeader('Content-Type')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Content-Type:'; + } + } + + private function applyHeaders(EasyHandle $easy, array &$conf): void + { + foreach ($conf['_headers'] as $name => $values) { + foreach ($values as $value) { + $value = (string) $value; + if ($value === '') { + // cURL requires a special format for empty headers. + // See https://github.com/guzzle/guzzle/issues/1882 for more details. + $conf[\CURLOPT_HTTPHEADER][] = "$name;"; + } else { + $conf[\CURLOPT_HTTPHEADER][] = "$name: $value"; + } + } + } + + // Remove the Accept header if one was not set + if (!$easy->request->hasHeader('Accept')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Accept:'; + } + } + + /** + * Remove a header from the options array. + * + * @param string $name Case-insensitive header to remove + * @param array $options Array of options to modify + */ + private function removeHeader(string $name, array &$options): void + { + foreach (\array_keys($options['_headers']) as $key) { + if (!\strcasecmp($key, $name)) { + unset($options['_headers'][$key]); + return; + } + } + } + + private function applyHandlerOptions(EasyHandle $easy, array &$conf): void + { + $options = $easy->options; + if (isset($options['verify'])) { + if ($options['verify'] === false) { + unset($conf[\CURLOPT_CAINFO]); + $conf[\CURLOPT_SSL_VERIFYHOST] = 0; + $conf[\CURLOPT_SSL_VERIFYPEER] = false; + } else { + $conf[\CURLOPT_SSL_VERIFYHOST] = 2; + $conf[\CURLOPT_SSL_VERIFYPEER] = true; + if (\is_string($options['verify'])) { + // Throw an error if the file/folder/link path is not valid or doesn't exist. + if (!\file_exists($options['verify'])) { + throw new \InvalidArgumentException("SSL CA bundle not found: {$options['verify']}"); + } + // If it's a directory or a link to a directory use CURLOPT_CAPATH. + // If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO. + if ( + \is_dir($options['verify']) || + ( + \is_link($options['verify']) === true && + ($verifyLink = \readlink($options['verify'])) !== false && + \is_dir($verifyLink) + ) + ) { + $conf[\CURLOPT_CAPATH] = $options['verify']; + } else { + $conf[\CURLOPT_CAINFO] = $options['verify']; + } + } + } + } + + if (!isset($options['curl'][\CURLOPT_ENCODING]) && !empty($options['decode_content'])) { + $accept = $easy->request->getHeaderLine('Accept-Encoding'); + if ($accept) { + $conf[\CURLOPT_ENCODING] = $accept; + } else { + // The empty string enables all available decoders and implicitly + // sets a matching 'Accept-Encoding' header. + $conf[\CURLOPT_ENCODING] = ''; + // But as the user did not specify any acceptable encodings we need + // to overwrite this implicit header with an empty one. + $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; + } + } + + if (!isset($options['sink'])) { + // Use a default temp stream if no sink was set. + $options['sink'] = \GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'w+'); + } + $sink = $options['sink']; + if (!\is_string($sink)) { + $sink = \GuzzleHttp\Psr7\Utils::streamFor($sink); + } elseif (!\is_dir(\dirname($sink))) { + // Ensure that the directory exists before failing in curl. + throw new \RuntimeException(\sprintf('Directory %s does not exist for sink value of %s', \dirname($sink), $sink)); + } else { + $sink = new LazyOpenStream($sink, 'w+'); + } + $easy->sink = $sink; + $conf[\CURLOPT_WRITEFUNCTION] = static function ($ch, $write) use ($sink): int { + return $sink->write($write); + }; + + $timeoutRequiresNoSignal = false; + if (isset($options['timeout'])) { + $timeoutRequiresNoSignal |= $options['timeout'] < 1; + $conf[\CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; + } + + // CURL default value is CURL_IPRESOLVE_WHATEVER + if (isset($options['force_ip_resolve'])) { + if ('v4' === $options['force_ip_resolve']) { + $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V4; + } elseif ('v6' === $options['force_ip_resolve']) { + $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V6; + } + } + + if (isset($options['connect_timeout'])) { + $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; + $conf[\CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; + } + + if ($timeoutRequiresNoSignal && \strtoupper(\substr(\PHP_OS, 0, 3)) !== 'WIN') { + $conf[\CURLOPT_NOSIGNAL] = true; + } + + if (isset($options['proxy'])) { + if (!\is_array($options['proxy'])) { + $conf[\CURLOPT_PROXY] = $options['proxy']; + } else { + $scheme = $easy->request->getUri()->getScheme(); + if (isset($options['proxy'][$scheme])) { + $host = $easy->request->getUri()->getHost(); + if (!isset($options['proxy']['no']) || !Utils::isHostInNoProxy($host, $options['proxy']['no'])) { + $conf[\CURLOPT_PROXY] = $options['proxy'][$scheme]; + } + } + } + } + + if (isset($options['cert'])) { + $cert = $options['cert']; + if (\is_array($cert)) { + $conf[\CURLOPT_SSLCERTPASSWD] = $cert[1]; + $cert = $cert[0]; + } + if (!\file_exists($cert)) { + throw new \InvalidArgumentException("SSL certificate not found: {$cert}"); + } + # OpenSSL (versions 0.9.3 and later) also support "P12" for PKCS#12-encoded files. + # see https://curl.se/libcurl/c/CURLOPT_SSLCERTTYPE.html + $ext = pathinfo($cert, \PATHINFO_EXTENSION); + if (preg_match('#^(der|p12)$#i', $ext)) { + $conf[\CURLOPT_SSLCERTTYPE] = strtoupper($ext); + } + $conf[\CURLOPT_SSLCERT] = $cert; + } + + if (isset($options['ssl_key'])) { + if (\is_array($options['ssl_key'])) { + if (\count($options['ssl_key']) === 2) { + [$sslKey, $conf[\CURLOPT_SSLKEYPASSWD]] = $options['ssl_key']; + } else { + [$sslKey] = $options['ssl_key']; + } + } + + $sslKey = $sslKey ?? $options['ssl_key']; + + if (!\file_exists($sslKey)) { + throw new \InvalidArgumentException("SSL private key not found: {$sslKey}"); + } + $conf[\CURLOPT_SSLKEY] = $sslKey; + } + + if (isset($options['progress'])) { + $progress = $options['progress']; + if (!\is_callable($progress)) { + throw new \InvalidArgumentException('progress client option must be callable'); + } + $conf[\CURLOPT_NOPROGRESS] = false; + $conf[\CURLOPT_PROGRESSFUNCTION] = static function ($resource, int $downloadSize, int $downloaded, int $uploadSize, int $uploaded) use ($progress) { + $progress($downloadSize, $downloaded, $uploadSize, $uploaded); + }; + } + + if (!empty($options['debug'])) { + $conf[\CURLOPT_STDERR] = Utils::debugResource($options['debug']); + $conf[\CURLOPT_VERBOSE] = true; + } + } + + /** + * This function ensures that a response was set on a transaction. If one + * was not set, then the request is retried if possible. This error + * typically means you are sending a payload, curl encountered a + * "Connection died, retrying a fresh connect" error, tried to rewind the + * stream, and then encountered a "necessary data rewind wasn't possible" + * error, causing the request to be sent through curl_multi_info_read() + * without an error status. + * + * @param callable(RequestInterface, array): PromiseInterface $handler + */ + private static function retryFailedRewind(callable $handler, EasyHandle $easy, array $ctx): PromiseInterface + { + try { + // Only rewind if the body has been read from. + $body = $easy->request->getBody(); + if ($body->tell() > 0) { + $body->rewind(); + } + } catch (\RuntimeException $e) { + $ctx['error'] = 'The connection unexpectedly failed without ' + . 'providing an error. The request would have been retried, ' + . 'but attempting to rewind the request body failed. ' + . 'Exception: ' . $e; + return self::createRejection($easy, $ctx); + } + + // Retry no more than 3 times before giving up. + if (!isset($easy->options['_curl_retries'])) { + $easy->options['_curl_retries'] = 1; + } elseif ($easy->options['_curl_retries'] == 2) { + $ctx['error'] = 'The cURL request was retried 3 times ' + . 'and did not succeed. The most likely reason for the failure ' + . 'is that cURL was unable to rewind the body of the request ' + . 'and subsequent retries resulted in the same error. Turn on ' + . 'the debug option to see what went wrong. See ' + . 'https://bugs.php.net/bug.php?id=47204 for more information.'; + return self::createRejection($easy, $ctx); + } else { + $easy->options['_curl_retries']++; + } + + return $handler($easy->request, $easy->options); + } + + private function createHeaderFn(EasyHandle $easy): callable + { + if (isset($easy->options['on_headers'])) { + $onHeaders = $easy->options['on_headers']; + + if (!\is_callable($onHeaders)) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + } else { + $onHeaders = null; + } + + return static function ($ch, $h) use ( + $onHeaders, + $easy, + &$startingResponse + ) { + $value = \trim($h); + if ($value === '') { + $startingResponse = true; + try { + $easy->createResponse(); + } catch (\Exception $e) { + $easy->createResponseException = $e; + return -1; + } + if ($onHeaders !== null) { + try { + $onHeaders($easy->response); + } catch (\Exception $e) { + // Associate the exception with the handle and trigger + // a curl header write error by returning 0. + $easy->onHeadersException = $e; + return -1; + } + } + } elseif ($startingResponse) { + $startingResponse = false; + $easy->headers = [$value]; + } else { + $easy->headers[] = $value; + } + return \strlen($h); + }; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php new file mode 100644 index 0000000..fe57ed5 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php @@ -0,0 +1,25 @@ +factory = $options['handle_factory'] + ?? new CurlFactory(3); + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + if (isset($options['delay'])) { + \usleep($options['delay'] * 1000); + } + + $easy = $this->factory->create($request, $options); + \curl_exec($easy->handle); + $easy->errno = \curl_errno($easy->handle); + + return CurlFactory::finish($this, $easy, $this->factory); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php new file mode 100644 index 0000000..ace0d84 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php @@ -0,0 +1,257 @@ + An array of delay times, indexed by handle id in `addRequest`. + * + * @see CurlMultiHandler::addRequest + */ + private $delays = []; + + /** + * @var array An associative array of CURLMOPT_* options and corresponding values for curl_multi_setopt() + */ + private $options = []; + + /** + * This handler accepts the following options: + * + * - handle_factory: An optional factory used to create curl handles + * - select_timeout: Optional timeout (in seconds) to block before timing + * out while selecting curl handles. Defaults to 1 second. + * - options: An associative array of CURLMOPT_* options and + * corresponding values for curl_multi_setopt() + */ + public function __construct(array $options = []) + { + $this->factory = $options['handle_factory'] ?? new CurlFactory(50); + + if (isset($options['select_timeout'])) { + $this->selectTimeout = $options['select_timeout']; + } elseif ($selectTimeout = Utils::getenv('GUZZLE_CURL_SELECT_TIMEOUT')) { + @trigger_error('Since guzzlehttp/guzzle 7.2.0: Using environment variable GUZZLE_CURL_SELECT_TIMEOUT is deprecated. Use option "select_timeout" instead.', \E_USER_DEPRECATED); + $this->selectTimeout = (int) $selectTimeout; + } else { + $this->selectTimeout = 1; + } + + $this->options = $options['options'] ?? []; + } + + /** + * @param string $name + * + * @return resource|\CurlMultiHandle + * + * @throws \BadMethodCallException when another field as `_mh` will be gotten + * @throws \RuntimeException when curl can not initialize a multi handle + */ + public function __get($name) + { + if ($name !== '_mh') { + throw new \BadMethodCallException("Can not get other property as '_mh'."); + } + + $multiHandle = \curl_multi_init(); + + if (false === $multiHandle) { + throw new \RuntimeException('Can not initialize curl multi handle.'); + } + + $this->_mh = $multiHandle; + + foreach ($this->options as $option => $value) { + // A warning is raised in case of a wrong option. + curl_multi_setopt($this->_mh, $option, $value); + } + + return $this->_mh; + } + + public function __destruct() + { + if (isset($this->_mh)) { + \curl_multi_close($this->_mh); + unset($this->_mh); + } + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + $easy = $this->factory->create($request, $options); + $id = (int) $easy->handle; + + $promise = new Promise( + [$this, 'execute'], + function () use ($id) { + return $this->cancel($id); + } + ); + + $this->addRequest(['easy' => $easy, 'deferred' => $promise]); + + return $promise; + } + + /** + * Ticks the curl event loop. + */ + public function tick(): void + { + // Add any delayed handles if needed. + if ($this->delays) { + $currentTime = Utils::currentTime(); + foreach ($this->delays as $id => $delay) { + if ($currentTime >= $delay) { + unset($this->delays[$id]); + \curl_multi_add_handle( + $this->_mh, + $this->handles[$id]['easy']->handle + ); + } + } + } + + // Step through the task queue which may add additional requests. + P\Utils::queue()->run(); + + if ($this->active && \curl_multi_select($this->_mh, $this->selectTimeout) === -1) { + // Perform a usleep if a select returns -1. + // See: https://bugs.php.net/bug.php?id=61141 + \usleep(250); + } + + while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM); + + $this->processMessages(); + } + + /** + * Runs until all outstanding connections have completed. + */ + public function execute(): void + { + $queue = P\Utils::queue(); + + while ($this->handles || !$queue->isEmpty()) { + // If there are no transfers, then sleep for the next delay + if (!$this->active && $this->delays) { + \usleep($this->timeToNext()); + } + $this->tick(); + } + } + + private function addRequest(array $entry): void + { + $easy = $entry['easy']; + $id = (int) $easy->handle; + $this->handles[$id] = $entry; + if (empty($easy->options['delay'])) { + \curl_multi_add_handle($this->_mh, $easy->handle); + } else { + $this->delays[$id] = Utils::currentTime() + ($easy->options['delay'] / 1000); + } + } + + /** + * Cancels a handle from sending and removes references to it. + * + * @param int $id Handle ID to cancel and remove. + * + * @return bool True on success, false on failure. + */ + private function cancel($id): bool + { + if (!is_int($id)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an integer to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + // Cannot cancel if it has been processed. + if (!isset($this->handles[$id])) { + return false; + } + + $handle = $this->handles[$id]['easy']->handle; + unset($this->delays[$id], $this->handles[$id]); + \curl_multi_remove_handle($this->_mh, $handle); + \curl_close($handle); + + return true; + } + + private function processMessages(): void + { + while ($done = \curl_multi_info_read($this->_mh)) { + $id = (int) $done['handle']; + \curl_multi_remove_handle($this->_mh, $done['handle']); + + if (!isset($this->handles[$id])) { + // Probably was cancelled. + continue; + } + + $entry = $this->handles[$id]; + unset($this->handles[$id], $this->delays[$id]); + $entry['easy']->errno = $done['result']; + $entry['deferred']->resolve( + CurlFactory::finish($this, $entry['easy'], $this->factory) + ); + } + } + + private function timeToNext(): int + { + $currentTime = Utils::currentTime(); + $nextTime = \PHP_INT_MAX; + foreach ($this->delays as $time) { + if ($time < $nextTime) { + $nextTime = $time; + } + } + + return ((int) \max(0, $nextTime - $currentTime)) * 1000000; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php new file mode 100644 index 0000000..224344d --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php @@ -0,0 +1,112 @@ +headers); + + $normalizedKeys = Utils::normalizeHeaderKeys($headers); + + if (!empty($this->options['decode_content']) && isset($normalizedKeys['content-encoding'])) { + $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; + unset($headers[$normalizedKeys['content-encoding']]); + if (isset($normalizedKeys['content-length'])) { + $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; + + $bodyLength = (int) $this->sink->getSize(); + if ($bodyLength) { + $headers[$normalizedKeys['content-length']] = $bodyLength; + } else { + unset($headers[$normalizedKeys['content-length']]); + } + } + } + + // Attach a response to the easy handle with the parsed headers. + $this->response = new Response( + $status, + $headers, + $this->sink, + $ver, + $reason + ); + } + + /** + * @param string $name + * + * @return void + * + * @throws \BadMethodCallException + */ + public function __get($name) + { + $msg = $name === 'handle' ? 'The EasyHandle has been released' : 'Invalid property: ' . $name; + throw new \BadMethodCallException($msg); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php new file mode 100644 index 0000000..a098884 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php @@ -0,0 +1,42 @@ +|null $queue The parameters to be passed to the append function, as an indexed array. + * @param callable|null $onFulfilled Callback to invoke when the return value is fulfilled. + * @param callable|null $onRejected Callback to invoke when the return value is rejected. + */ + public function __construct(array $queue = null, callable $onFulfilled = null, callable $onRejected = null) + { + $this->onFulfilled = $onFulfilled; + $this->onRejected = $onRejected; + + if ($queue) { + // array_values included for BC + $this->append(...array_values($queue)); + } + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + if (!$this->queue) { + throw new \OutOfBoundsException('Mock queue is empty'); + } + + if (isset($options['delay']) && \is_numeric($options['delay'])) { + \usleep((int) $options['delay'] * 1000); + } + + $this->lastRequest = $request; + $this->lastOptions = $options; + $response = \array_shift($this->queue); + + if (isset($options['on_headers'])) { + if (!\is_callable($options['on_headers'])) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + try { + $options['on_headers']($response); + } catch (\Exception $e) { + $msg = 'An error was encountered during the on_headers event'; + $response = new RequestException($msg, $request, $response, $e); + } + } + + if (\is_callable($response)) { + $response = $response($request, $options); + } + + $response = $response instanceof \Throwable + ? P\Create::rejectionFor($response) + : P\Create::promiseFor($response); + + return $response->then( + function (?ResponseInterface $value) use ($request, $options) { + $this->invokeStats($request, $options, $value); + if ($this->onFulfilled) { + ($this->onFulfilled)($value); + } + + if ($value !== null && isset($options['sink'])) { + $contents = (string) $value->getBody(); + $sink = $options['sink']; + + if (\is_resource($sink)) { + \fwrite($sink, $contents); + } elseif (\is_string($sink)) { + \file_put_contents($sink, $contents); + } elseif ($sink instanceof StreamInterface) { + $sink->write($contents); + } + } + + return $value; + }, + function ($reason) use ($request, $options) { + $this->invokeStats($request, $options, null, $reason); + if ($this->onRejected) { + ($this->onRejected)($reason); + } + return P\Create::rejectionFor($reason); + } + ); + } + + /** + * Adds one or more variadic requests, exceptions, callables, or promises + * to the queue. + * + * @param mixed ...$values + */ + public function append(...$values): void + { + foreach ($values as $value) { + if ($value instanceof ResponseInterface + || $value instanceof \Throwable + || $value instanceof PromiseInterface + || \is_callable($value) + ) { + $this->queue[] = $value; + } else { + throw new \TypeError('Expected a Response, Promise, Throwable or callable. Found ' . Utils::describeType($value)); + } + } + } + + /** + * Get the last received request. + */ + public function getLastRequest(): ?RequestInterface + { + return $this->lastRequest; + } + + /** + * Get the last received request options. + */ + public function getLastOptions(): array + { + return $this->lastOptions; + } + + /** + * Returns the number of remaining items in the queue. + */ + public function count(): int + { + return \count($this->queue); + } + + public function reset(): void + { + $this->queue = []; + } + + /** + * @param mixed $reason Promise or reason. + */ + private function invokeStats( + RequestInterface $request, + array $options, + ResponseInterface $response = null, + $reason = null + ): void { + if (isset($options['on_stats'])) { + $transferTime = $options['transfer_time'] ?? 0; + $stats = new TransferStats($request, $response, $transferTime, $reason); + ($options['on_stats'])($stats); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php new file mode 100644 index 0000000..f045b52 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php @@ -0,0 +1,51 @@ +withoutHeader('Expect'); + + // Append a content-length header if body size is zero to match + // cURL's behavior. + if (0 === $request->getBody()->getSize()) { + $request = $request->withHeader('Content-Length', '0'); + } + + return $this->createResponse( + $request, + $options, + $this->createStream($request, $options), + $startTime + ); + } catch (\InvalidArgumentException $e) { + throw $e; + } catch (\Exception $e) { + // Determine if the error was a networking error. + $message = $e->getMessage(); + // This list can probably get more comprehensive. + if (false !== \strpos($message, 'getaddrinfo') // DNS lookup failed + || false !== \strpos($message, 'Connection refused') + || false !== \strpos($message, "couldn't connect to host") // error on HHVM + || false !== \strpos($message, "connection attempt failed") + ) { + $e = new ConnectException($e->getMessage(), $request, $e); + } else { + $e = RequestException::wrapException($request, $e); + } + $this->invokeStats($options, $request, $startTime, null, $e); + + return P\Create::rejectionFor($e); + } + } + + private function invokeStats( + array $options, + RequestInterface $request, + ?float $startTime, + ResponseInterface $response = null, + \Throwable $error = null + ): void { + if (isset($options['on_stats'])) { + $stats = new TransferStats($request, $response, Utils::currentTime() - $startTime, $error, []); + ($options['on_stats'])($stats); + } + } + + /** + * @param resource $stream + */ + private function createResponse(RequestInterface $request, array $options, $stream, ?float $startTime): PromiseInterface + { + $hdrs = $this->lastHeaders; + $this->lastHeaders = []; + + try { + [$ver, $status, $reason, $headers] = HeaderProcessor::parseHeaders($hdrs); + } catch (\Exception $e) { + return P\Create::rejectionFor( + new RequestException('An error was encountered while creating the response', $request, null, $e) + ); + } + + [$stream, $headers] = $this->checkDecode($options, $headers, $stream); + $stream = Psr7\Utils::streamFor($stream); + $sink = $stream; + + if (\strcasecmp('HEAD', $request->getMethod())) { + $sink = $this->createSink($stream, $options); + } + + try { + $response = new Psr7\Response($status, $headers, $sink, $ver, $reason); + } catch (\Exception $e) { + return P\Create::rejectionFor( + new RequestException('An error was encountered while creating the response', $request, null, $e) + ); + } + + if (isset($options['on_headers'])) { + try { + $options['on_headers']($response); + } catch (\Exception $e) { + return P\Create::rejectionFor( + new RequestException('An error was encountered during the on_headers event', $request, $response, $e) + ); + } + } + + // Do not drain when the request is a HEAD request because they have + // no body. + if ($sink !== $stream) { + $this->drain($stream, $sink, $response->getHeaderLine('Content-Length')); + } + + $this->invokeStats($options, $request, $startTime, $response, null); + + return new FulfilledPromise($response); + } + + private function createSink(StreamInterface $stream, array $options): StreamInterface + { + if (!empty($options['stream'])) { + return $stream; + } + + $sink = $options['sink'] ?? Psr7\Utils::tryFopen('php://temp', 'r+'); + + return \is_string($sink) ? new Psr7\LazyOpenStream($sink, 'w+') : Psr7\Utils::streamFor($sink); + } + + /** + * @param resource $stream + */ + private function checkDecode(array $options, array $headers, $stream): array + { + // Automatically decode responses when instructed. + if (!empty($options['decode_content'])) { + $normalizedKeys = Utils::normalizeHeaderKeys($headers); + if (isset($normalizedKeys['content-encoding'])) { + $encoding = $headers[$normalizedKeys['content-encoding']]; + if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') { + $stream = new Psr7\InflateStream(Psr7\Utils::streamFor($stream)); + $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; + + // Remove content-encoding header + unset($headers[$normalizedKeys['content-encoding']]); + + // Fix content-length header + if (isset($normalizedKeys['content-length'])) { + $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; + $length = (int) $stream->getSize(); + if ($length === 0) { + unset($headers[$normalizedKeys['content-length']]); + } else { + $headers[$normalizedKeys['content-length']] = [$length]; + } + } + } + } + } + + return [$stream, $headers]; + } + + /** + * Drains the source stream into the "sink" client option. + * + * @param string $contentLength Header specifying the amount of + * data to read. + * + * @throws \RuntimeException when the sink option is invalid. + */ + private function drain(StreamInterface $source, StreamInterface $sink, string $contentLength): StreamInterface + { + // If a content-length header is provided, then stop reading once + // that number of bytes has been read. This can prevent infinitely + // reading from a stream when dealing with servers that do not honor + // Connection: Close headers. + Psr7\Utils::copyToStream( + $source, + $sink, + (\strlen($contentLength) > 0 && (int) $contentLength > 0) ? (int) $contentLength : -1 + ); + + $sink->seek(0); + $source->close(); + + return $sink; + } + + /** + * Create a resource and check to ensure it was created successfully + * + * @param callable $callback Callable that returns stream resource + * + * @return resource + * + * @throws \RuntimeException on error + */ + private function createResource(callable $callback) + { + $errors = []; + \set_error_handler(static function ($_, $msg, $file, $line) use (&$errors): bool { + $errors[] = [ + 'message' => $msg, + 'file' => $file, + 'line' => $line + ]; + return true; + }); + + try { + $resource = $callback(); + } finally { + \restore_error_handler(); + } + + if (!$resource) { + $message = 'Error creating resource: '; + foreach ($errors as $err) { + foreach ($err as $key => $value) { + $message .= "[$key] $value" . \PHP_EOL; + } + } + throw new \RuntimeException(\trim($message)); + } + + return $resource; + } + + /** + * @return resource + */ + private function createStream(RequestInterface $request, array $options) + { + static $methods; + if (!$methods) { + $methods = \array_flip(\get_class_methods(__CLASS__)); + } + + // HTTP/1.1 streams using the PHP stream wrapper require a + // Connection: close header + if ($request->getProtocolVersion() == '1.1' + && !$request->hasHeader('Connection') + ) { + $request = $request->withHeader('Connection', 'close'); + } + + // Ensure SSL is verified by default + if (!isset($options['verify'])) { + $options['verify'] = true; + } + + $params = []; + $context = $this->getDefaultContext($request); + + if (isset($options['on_headers']) && !\is_callable($options['on_headers'])) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + + if (!empty($options)) { + foreach ($options as $key => $value) { + $method = "add_{$key}"; + if (isset($methods[$method])) { + $this->{$method}($request, $context, $value, $params); + } + } + } + + if (isset($options['stream_context'])) { + if (!\is_array($options['stream_context'])) { + throw new \InvalidArgumentException('stream_context must be an array'); + } + $context = \array_replace_recursive($context, $options['stream_context']); + } + + // Microsoft NTLM authentication only supported with curl handler + if (isset($options['auth'][2]) && 'ntlm' === $options['auth'][2]) { + throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler'); + } + + $uri = $this->resolveHost($request, $options); + + $contextResource = $this->createResource( + static function () use ($context, $params) { + return \stream_context_create($context, $params); + } + ); + + return $this->createResource( + function () use ($uri, &$http_response_header, $contextResource, $context, $options, $request) { + $resource = @\fopen((string) $uri, 'r', false, $contextResource); + $this->lastHeaders = $http_response_header; + + if (false === $resource) { + throw new ConnectException(sprintf('Connection refused for URI %s', $uri), $request, null, $context); + } + + if (isset($options['read_timeout'])) { + $readTimeout = $options['read_timeout']; + $sec = (int) $readTimeout; + $usec = ($readTimeout - $sec) * 100000; + \stream_set_timeout($resource, $sec, $usec); + } + + return $resource; + } + ); + } + + private function resolveHost(RequestInterface $request, array $options): UriInterface + { + $uri = $request->getUri(); + + if (isset($options['force_ip_resolve']) && !\filter_var($uri->getHost(), \FILTER_VALIDATE_IP)) { + if ('v4' === $options['force_ip_resolve']) { + $records = \dns_get_record($uri->getHost(), \DNS_A); + if (false === $records || !isset($records[0]['ip'])) { + throw new ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); + } + return $uri->withHost($records[0]['ip']); + } + if ('v6' === $options['force_ip_resolve']) { + $records = \dns_get_record($uri->getHost(), \DNS_AAAA); + if (false === $records || !isset($records[0]['ipv6'])) { + throw new ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); + } + return $uri->withHost('[' . $records[0]['ipv6'] . ']'); + } + } + + return $uri; + } + + private function getDefaultContext(RequestInterface $request): array + { + $headers = ''; + foreach ($request->getHeaders() as $name => $value) { + foreach ($value as $val) { + $headers .= "$name: $val\r\n"; + } + } + + $context = [ + 'http' => [ + 'method' => $request->getMethod(), + 'header' => $headers, + 'protocol_version' => $request->getProtocolVersion(), + 'ignore_errors' => true, + 'follow_location' => 0, + ], + ]; + + $body = (string) $request->getBody(); + + if (!empty($body)) { + $context['http']['content'] = $body; + // Prevent the HTTP handler from adding a Content-Type header. + if (!$request->hasHeader('Content-Type')) { + $context['http']['header'] .= "Content-Type:\r\n"; + } + } + + $context['http']['header'] = \rtrim($context['http']['header']); + + return $context; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_proxy(RequestInterface $request, array &$options, $value, array &$params): void + { + $uri = null; + + if (!\is_array($value)) { + $uri = $value; + } else { + $scheme = $request->getUri()->getScheme(); + if (isset($value[$scheme])) { + if (!isset($value['no']) || !Utils::isHostInNoProxy($request->getUri()->getHost(), $value['no'])) { + $uri = $value[$scheme]; + } + } + } + + if (!$uri) { + return; + } + + $parsed = $this->parse_proxy($uri); + $options['http']['proxy'] = $parsed['proxy']; + + if ($parsed['auth']) { + if (!isset($options['http']['header'])) { + $options['http']['header'] = []; + } + $options['http']['header'] .= "\r\nProxy-Authorization: {$parsed['auth']}"; + } + } + + /** + * Parses the given proxy URL to make it compatible with the format PHP's stream context expects. + */ + private function parse_proxy(string $url): array + { + $parsed = \parse_url($url); + + if ($parsed !== false && isset($parsed['scheme']) && $parsed['scheme'] === 'http') { + if (isset($parsed['host']) && isset($parsed['port'])) { + $auth = null; + if (isset($parsed['user']) && isset($parsed['pass'])) { + $auth = \base64_encode("{$parsed['user']}:{$parsed['pass']}"); + } + + return [ + 'proxy' => "tcp://{$parsed['host']}:{$parsed['port']}", + 'auth' => $auth ? "Basic {$auth}" : null, + ]; + } + } + + // Return proxy as-is. + return [ + 'proxy' => $url, + 'auth' => null, + ]; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_timeout(RequestInterface $request, array &$options, $value, array &$params): void + { + if ($value > 0) { + $options['http']['timeout'] = $value; + } + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_verify(RequestInterface $request, array &$options, $value, array &$params): void + { + if ($value === false) { + $options['ssl']['verify_peer'] = false; + $options['ssl']['verify_peer_name'] = false; + + return; + } + + if (\is_string($value)) { + $options['ssl']['cafile'] = $value; + if (!\file_exists($value)) { + throw new \RuntimeException("SSL CA bundle not found: $value"); + } + } elseif ($value !== true) { + throw new \InvalidArgumentException('Invalid verify request option'); + } + + $options['ssl']['verify_peer'] = true; + $options['ssl']['verify_peer_name'] = true; + $options['ssl']['allow_self_signed'] = false; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_cert(RequestInterface $request, array &$options, $value, array &$params): void + { + if (\is_array($value)) { + $options['ssl']['passphrase'] = $value[1]; + $value = $value[0]; + } + + if (!\file_exists($value)) { + throw new \RuntimeException("SSL certificate not found: {$value}"); + } + + $options['ssl']['local_cert'] = $value; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_progress(RequestInterface $request, array &$options, $value, array &$params): void + { + self::addNotification( + $params, + static function ($code, $a, $b, $c, $transferred, $total) use ($value) { + if ($code == \STREAM_NOTIFY_PROGRESS) { + // The upload progress cannot be determined. Use 0 for cURL compatibility: + // https://curl.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html + $value($total, $transferred, 0, 0); + } + } + ); + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_debug(RequestInterface $request, array &$options, $value, array &$params): void + { + if ($value === false) { + return; + } + + static $map = [ + \STREAM_NOTIFY_CONNECT => 'CONNECT', + \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', + \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', + \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', + \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', + \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', + \STREAM_NOTIFY_PROGRESS => 'PROGRESS', + \STREAM_NOTIFY_FAILURE => 'FAILURE', + \STREAM_NOTIFY_COMPLETED => 'COMPLETED', + \STREAM_NOTIFY_RESOLVE => 'RESOLVE', + ]; + static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max']; + + $value = Utils::debugResource($value); + $ident = $request->getMethod() . ' ' . $request->getUri()->withFragment(''); + self::addNotification( + $params, + static function (int $code, ...$passed) use ($ident, $value, $map, $args): void { + \fprintf($value, '<%s> [%s] ', $ident, $map[$code]); + foreach (\array_filter($passed) as $i => $v) { + \fwrite($value, $args[$i] . ': "' . $v . '" '); + } + \fwrite($value, "\n"); + } + ); + } + + private static function addNotification(array &$params, callable $notify): void + { + // Wrap the existing function if needed. + if (!isset($params['notification'])) { + $params['notification'] = $notify; + } else { + $params['notification'] = self::callArray([ + $params['notification'], + $notify + ]); + } + } + + private static function callArray(array $functions): callable + { + return static function (...$args) use ($functions) { + foreach ($functions as $fn) { + $fn(...$args); + } + }; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/HandlerStack.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/HandlerStack.php new file mode 100644 index 0000000..e0a1d11 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/HandlerStack.php @@ -0,0 +1,275 @@ +push(Middleware::httpErrors(), 'http_errors'); + $stack->push(Middleware::redirect(), 'allow_redirects'); + $stack->push(Middleware::cookies(), 'cookies'); + $stack->push(Middleware::prepareBody(), 'prepare_body'); + + return $stack; + } + + /** + * @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler. + */ + public function __construct(callable $handler = null) + { + $this->handler = $handler; + } + + /** + * Invokes the handler stack as a composed handler + * + * @return ResponseInterface|PromiseInterface + */ + public function __invoke(RequestInterface $request, array $options) + { + $handler = $this->resolve(); + + return $handler($request, $options); + } + + /** + * Dumps a string representation of the stack. + * + * @return string + */ + public function __toString() + { + $depth = 0; + $stack = []; + + if ($this->handler !== null) { + $stack[] = "0) Handler: " . $this->debugCallable($this->handler); + } + + $result = ''; + foreach (\array_reverse($this->stack) as $tuple) { + $depth++; + $str = "{$depth}) Name: '{$tuple[1]}', "; + $str .= "Function: " . $this->debugCallable($tuple[0]); + $result = "> {$str}\n{$result}"; + $stack[] = $str; + } + + foreach (\array_keys($stack) as $k) { + $result .= "< {$stack[$k]}\n"; + } + + return $result; + } + + /** + * Set the HTTP handler that actually returns a promise. + * + * @param callable(RequestInterface, array): PromiseInterface $handler Accepts a request and array of options and + * returns a Promise. + */ + public function setHandler(callable $handler): void + { + $this->handler = $handler; + $this->cached = null; + } + + /** + * Returns true if the builder has a handler. + */ + public function hasHandler(): bool + { + return $this->handler !== null ; + } + + /** + * Unshift a middleware to the bottom of the stack. + * + * @param callable(callable): callable $middleware Middleware function + * @param string $name Name to register for this middleware. + */ + public function unshift(callable $middleware, ?string $name = null): void + { + \array_unshift($this->stack, [$middleware, $name]); + $this->cached = null; + } + + /** + * Push a middleware to the top of the stack. + * + * @param callable(callable): callable $middleware Middleware function + * @param string $name Name to register for this middleware. + */ + public function push(callable $middleware, string $name = ''): void + { + $this->stack[] = [$middleware, $name]; + $this->cached = null; + } + + /** + * Add a middleware before another middleware by name. + * + * @param string $findName Middleware to find + * @param callable(callable): callable $middleware Middleware function + * @param string $withName Name to register for this middleware. + */ + public function before(string $findName, callable $middleware, string $withName = ''): void + { + $this->splice($findName, $withName, $middleware, true); + } + + /** + * Add a middleware after another middleware by name. + * + * @param string $findName Middleware to find + * @param callable(callable): callable $middleware Middleware function + * @param string $withName Name to register for this middleware. + */ + public function after(string $findName, callable $middleware, string $withName = ''): void + { + $this->splice($findName, $withName, $middleware, false); + } + + /** + * Remove a middleware by instance or name from the stack. + * + * @param callable|string $remove Middleware to remove by instance or name. + */ + public function remove($remove): void + { + if (!is_string($remove) && !is_callable($remove)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a callable or string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->cached = null; + $idx = \is_callable($remove) ? 0 : 1; + $this->stack = \array_values(\array_filter( + $this->stack, + static function ($tuple) use ($idx, $remove) { + return $tuple[$idx] !== $remove; + } + )); + } + + /** + * Compose the middleware and handler into a single callable function. + * + * @return callable(RequestInterface, array): PromiseInterface + */ + public function resolve(): callable + { + if ($this->cached === null) { + if (($prev = $this->handler) === null) { + throw new \LogicException('No handler has been specified'); + } + + foreach (\array_reverse($this->stack) as $fn) { + /** @var callable(RequestInterface, array): PromiseInterface $prev */ + $prev = $fn[0]($prev); + } + + $this->cached = $prev; + } + + return $this->cached; + } + + private function findByName(string $name): int + { + foreach ($this->stack as $k => $v) { + if ($v[1] === $name) { + return $k; + } + } + + throw new \InvalidArgumentException("Middleware not found: $name"); + } + + /** + * Splices a function into the middleware list at a specific position. + */ + private function splice(string $findName, string $withName, callable $middleware, bool $before): void + { + $this->cached = null; + $idx = $this->findByName($findName); + $tuple = [$middleware, $withName]; + + if ($before) { + if ($idx === 0) { + \array_unshift($this->stack, $tuple); + } else { + $replacement = [$tuple, $this->stack[$idx]]; + \array_splice($this->stack, $idx, 1, $replacement); + } + } elseif ($idx === \count($this->stack) - 1) { + $this->stack[] = $tuple; + } else { + $replacement = [$this->stack[$idx], $tuple]; + \array_splice($this->stack, $idx, 1, $replacement); + } + } + + /** + * Provides a debug string for a given callable. + * + * @param callable|string $fn Function to write as a string. + */ + private function debugCallable($fn): string + { + if (\is_string($fn)) { + return "callable({$fn})"; + } + + if (\is_array($fn)) { + return \is_string($fn[0]) + ? "callable({$fn[0]}::{$fn[1]})" + : "callable(['" . \get_class($fn[0]) . "', '{$fn[1]}'])"; + } + + /** @var object $fn */ + return 'callable(' . \spl_object_hash($fn) . ')'; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/MessageFormatter.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/MessageFormatter.php new file mode 100644 index 0000000..238770f --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/MessageFormatter.php @@ -0,0 +1,198 @@ +>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"; + public const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'; + + /** + * @var string Template used to format log messages + */ + private $template; + + /** + * @param string $template Log message template + */ + public function __construct(?string $template = self::CLF) + { + $this->template = $template ?: self::CLF; + } + + /** + * Returns a formatted message string. + * + * @param RequestInterface $request Request that was sent + * @param ResponseInterface|null $response Response that was received + * @param \Throwable|null $error Exception that was received + */ + public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string + { + $cache = []; + + /** @var string */ + return \preg_replace_callback( + '/{\s*([A-Za-z_\-\.0-9]+)\s*}/', + function (array $matches) use ($request, $response, $error, &$cache) { + if (isset($cache[$matches[1]])) { + return $cache[$matches[1]]; + } + + $result = ''; + switch ($matches[1]) { + case 'request': + $result = Psr7\Message::toString($request); + break; + case 'response': + $result = $response ? Psr7\Message::toString($response) : ''; + break; + case 'req_headers': + $result = \trim($request->getMethod() + . ' ' . $request->getRequestTarget()) + . ' HTTP/' . $request->getProtocolVersion() . "\r\n" + . $this->headers($request); + break; + case 'res_headers': + $result = $response ? + \sprintf( + 'HTTP/%s %d %s', + $response->getProtocolVersion(), + $response->getStatusCode(), + $response->getReasonPhrase() + ) . "\r\n" . $this->headers($response) + : 'NULL'; + break; + case 'req_body': + $result = $request->getBody()->__toString(); + break; + case 'res_body': + if (!$response instanceof ResponseInterface) { + $result = 'NULL'; + break; + } + + $body = $response->getBody(); + + if (!$body->isSeekable()) { + $result = 'RESPONSE_NOT_LOGGEABLE'; + break; + } + + $result = $response->getBody()->__toString(); + break; + case 'ts': + case 'date_iso_8601': + $result = \gmdate('c'); + break; + case 'date_common_log': + $result = \date('d/M/Y:H:i:s O'); + break; + case 'method': + $result = $request->getMethod(); + break; + case 'version': + $result = $request->getProtocolVersion(); + break; + case 'uri': + case 'url': + $result = $request->getUri(); + break; + case 'target': + $result = $request->getRequestTarget(); + break; + case 'req_version': + $result = $request->getProtocolVersion(); + break; + case 'res_version': + $result = $response + ? $response->getProtocolVersion() + : 'NULL'; + break; + case 'host': + $result = $request->getHeaderLine('Host'); + break; + case 'hostname': + $result = \gethostname(); + break; + case 'code': + $result = $response ? $response->getStatusCode() : 'NULL'; + break; + case 'phrase': + $result = $response ? $response->getReasonPhrase() : 'NULL'; + break; + case 'error': + $result = $error ? $error->getMessage() : 'NULL'; + break; + default: + // handle prefixed dynamic headers + if (\strpos($matches[1], 'req_header_') === 0) { + $result = $request->getHeaderLine(\substr($matches[1], 11)); + } elseif (\strpos($matches[1], 'res_header_') === 0) { + $result = $response + ? $response->getHeaderLine(\substr($matches[1], 11)) + : 'NULL'; + } + } + + $cache[$matches[1]] = $result; + return $result; + }, + $this->template + ); + } + + /** + * Get headers from message as string + */ + private function headers(MessageInterface $message): string + { + $result = ''; + foreach ($message->getHeaders() as $name => $values) { + $result .= $name . ': ' . \implode(', ', $values) . "\r\n"; + } + + return \trim($result); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php new file mode 100644 index 0000000..a39ac24 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php @@ -0,0 +1,18 @@ +withCookieHeader($request); + return $handler($request, $options) + ->then( + static function (ResponseInterface $response) use ($cookieJar, $request): ResponseInterface { + $cookieJar->extractCookies($request, $response); + return $response; + } + ); + }; + }; + } + + /** + * Middleware that throws exceptions for 4xx or 5xx responses when the + * "http_errors" request option is set to true. + * + * @param BodySummarizerInterface|null $bodySummarizer The body summarizer to use in exception messages. + * + * @return callable(callable): callable Returns a function that accepts the next handler. + */ + public static function httpErrors(BodySummarizerInterface $bodySummarizer = null): callable + { + return static function (callable $handler) use ($bodySummarizer): callable { + return static function ($request, array $options) use ($handler, $bodySummarizer) { + if (empty($options['http_errors'])) { + return $handler($request, $options); + } + return $handler($request, $options)->then( + static function (ResponseInterface $response) use ($request, $bodySummarizer) { + $code = $response->getStatusCode(); + if ($code < 400) { + return $response; + } + throw RequestException::create($request, $response, null, [], $bodySummarizer); + } + ); + }; + }; + } + + /** + * Middleware that pushes history data to an ArrayAccess container. + * + * @param array|\ArrayAccess $container Container to hold the history (by reference). + * + * @return callable(callable): callable Returns a function that accepts the next handler. + * + * @throws \InvalidArgumentException if container is not an array or ArrayAccess. + */ + public static function history(&$container): callable + { + if (!\is_array($container) && !$container instanceof \ArrayAccess) { + throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess'); + } + + return static function (callable $handler) use (&$container): callable { + return static function (RequestInterface $request, array $options) use ($handler, &$container) { + return $handler($request, $options)->then( + static function ($value) use ($request, &$container, $options) { + $container[] = [ + 'request' => $request, + 'response' => $value, + 'error' => null, + 'options' => $options + ]; + return $value; + }, + static function ($reason) use ($request, &$container, $options) { + $container[] = [ + 'request' => $request, + 'response' => null, + 'error' => $reason, + 'options' => $options + ]; + return P\Create::rejectionFor($reason); + } + ); + }; + }; + } + + /** + * Middleware that invokes a callback before and after sending a request. + * + * The provided listener cannot modify or alter the response. It simply + * "taps" into the chain to be notified before returning the promise. The + * before listener accepts a request and options array, and the after + * listener accepts a request, options array, and response promise. + * + * @param callable $before Function to invoke before forwarding the request. + * @param callable $after Function invoked after forwarding. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function tap(callable $before = null, callable $after = null): callable + { + return static function (callable $handler) use ($before, $after): callable { + return static function (RequestInterface $request, array $options) use ($handler, $before, $after) { + if ($before) { + $before($request, $options); + } + $response = $handler($request, $options); + if ($after) { + $after($request, $options, $response); + } + return $response; + }; + }; + } + + /** + * Middleware that handles request redirects. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function redirect(): callable + { + return static function (callable $handler): RedirectMiddleware { + return new RedirectMiddleware($handler); + }; + } + + /** + * Middleware that retries requests based on the boolean result of + * invoking the provided "decider" function. + * + * If no delay function is provided, a simple implementation of exponential + * backoff will be utilized. + * + * @param callable $decider Function that accepts the number of retries, + * a request, [response], and [exception] and + * returns true if the request is to be retried. + * @param callable $delay Function that accepts the number of retries and + * returns the number of milliseconds to delay. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function retry(callable $decider, callable $delay = null): callable + { + return static function (callable $handler) use ($decider, $delay): RetryMiddleware { + return new RetryMiddleware($decider, $handler, $delay); + }; + } + + /** + * Middleware that logs requests, responses, and errors using a message + * formatter. + * + * @phpstan-param \Psr\Log\LogLevel::* $logLevel Level at which to log requests. + * + * @param LoggerInterface $logger Logs messages. + * @param MessageFormatterInterface|MessageFormatter $formatter Formatter used to create message strings. + * @param string $logLevel Level at which to log requests. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function log(LoggerInterface $logger, $formatter, string $logLevel = 'info'): callable + { + // To be compatible with Guzzle 7.1.x we need to allow users to pass a MessageFormatter + if (!$formatter instanceof MessageFormatter && !$formatter instanceof MessageFormatterInterface) { + throw new \LogicException(sprintf('Argument 2 to %s::log() must be of type %s', self::class, MessageFormatterInterface::class)); + } + + return static function (callable $handler) use ($logger, $formatter, $logLevel): callable { + return static function (RequestInterface $request, array $options = []) use ($handler, $logger, $formatter, $logLevel) { + return $handler($request, $options)->then( + static function ($response) use ($logger, $request, $formatter, $logLevel): ResponseInterface { + $message = $formatter->format($request, $response); + $logger->log($logLevel, $message); + return $response; + }, + static function ($reason) use ($logger, $request, $formatter): PromiseInterface { + $response = $reason instanceof RequestException ? $reason->getResponse() : null; + $message = $formatter->format($request, $response, P\Create::exceptionFor($reason)); + $logger->error($message); + return P\Create::rejectionFor($reason); + } + ); + }; + }; + } + + /** + * This middleware adds a default content-type if possible, a default + * content-length or transfer-encoding header, and the expect header. + */ + public static function prepareBody(): callable + { + return static function (callable $handler): PrepareBodyMiddleware { + return new PrepareBodyMiddleware($handler); + }; + } + + /** + * Middleware that applies a map function to the request before passing to + * the next handler. + * + * @param callable $fn Function that accepts a RequestInterface and returns + * a RequestInterface. + */ + public static function mapRequest(callable $fn): callable + { + return static function (callable $handler) use ($fn): callable { + return static function (RequestInterface $request, array $options) use ($handler, $fn) { + return $handler($fn($request), $options); + }; + }; + } + + /** + * Middleware that applies a map function to the resolved promise's + * response. + * + * @param callable $fn Function that accepts a ResponseInterface and + * returns a ResponseInterface. + */ + public static function mapResponse(callable $fn): callable + { + return static function (callable $handler) use ($fn): callable { + return static function (RequestInterface $request, array $options) use ($handler, $fn) { + return $handler($request, $options)->then($fn); + }; + }; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Pool.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Pool.php new file mode 100644 index 0000000..6277c61 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Pool.php @@ -0,0 +1,125 @@ + $rfn) { + if ($rfn instanceof RequestInterface) { + yield $key => $client->sendAsync($rfn, $opts); + } elseif (\is_callable($rfn)) { + yield $key => $rfn($opts); + } else { + throw new \InvalidArgumentException('Each value yielded by the iterator must be a Psr7\Http\Message\RequestInterface or a callable that returns a promise that fulfills with a Psr7\Message\Http\ResponseInterface object.'); + } + } + }; + + $this->each = new EachPromise($requests(), $config); + } + + /** + * Get promise + */ + public function promise(): PromiseInterface + { + return $this->each->promise(); + } + + /** + * Sends multiple requests concurrently and returns an array of responses + * and exceptions that uses the same ordering as the provided requests. + * + * IMPORTANT: This method keeps every request and response in memory, and + * as such, is NOT recommended when sending a large number or an + * indeterminate number of requests concurrently. + * + * @param ClientInterface $client Client used to send the requests + * @param array|\Iterator $requests Requests to send concurrently. + * @param array $options Passes through the options available in + * {@see \GuzzleHttp\Pool::__construct} + * + * @return array Returns an array containing the response or an exception + * in the same order that the requests were sent. + * + * @throws \InvalidArgumentException if the event format is incorrect. + */ + public static function batch(ClientInterface $client, $requests, array $options = []): array + { + $res = []; + self::cmpCallback($options, 'fulfilled', $res); + self::cmpCallback($options, 'rejected', $res); + $pool = new static($client, $requests, $options); + $pool->promise()->wait(); + \ksort($res); + + return $res; + } + + /** + * Execute callback(s) + */ + private static function cmpCallback(array &$options, string $name, array &$results): void + { + if (!isset($options[$name])) { + $options[$name] = static function ($v, $k) use (&$results) { + $results[$k] = $v; + }; + } else { + $currentFn = $options[$name]; + $options[$name] = static function ($v, $k) use (&$results, $currentFn) { + $currentFn($v, $k); + $results[$k] = $v; + }; + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php new file mode 100644 index 0000000..7ca6283 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php @@ -0,0 +1,104 @@ +nextHandler = $nextHandler; + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + $fn = $this->nextHandler; + + // Don't do anything if the request has no body. + if ($request->getBody()->getSize() === 0) { + return $fn($request, $options); + } + + $modify = []; + + // Add a default content-type if possible. + if (!$request->hasHeader('Content-Type')) { + if ($uri = $request->getBody()->getMetadata('uri')) { + if (is_string($uri) && $type = Psr7\MimeType::fromFilename($uri)) { + $modify['set_headers']['Content-Type'] = $type; + } + } + } + + // Add a default content-length or transfer-encoding header. + if (!$request->hasHeader('Content-Length') + && !$request->hasHeader('Transfer-Encoding') + ) { + $size = $request->getBody()->getSize(); + if ($size !== null) { + $modify['set_headers']['Content-Length'] = $size; + } else { + $modify['set_headers']['Transfer-Encoding'] = 'chunked'; + } + } + + // Add the expect header if needed. + $this->addExpectHeader($request, $options, $modify); + + return $fn(Psr7\Utils::modifyRequest($request, $modify), $options); + } + + /** + * Add expect header + */ + private function addExpectHeader(RequestInterface $request, array $options, array &$modify): void + { + // Determine if the Expect header should be used + if ($request->hasHeader('Expect')) { + return; + } + + $expect = $options['expect'] ?? null; + + // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0 + if ($expect === false || $request->getProtocolVersion() < 1.1) { + return; + } + + // The expect header is unconditionally enabled + if ($expect === true) { + $modify['set_headers']['Expect'] = '100-Continue'; + return; + } + + // By default, send the expect header when the payload is > 1mb + if ($expect === null) { + $expect = 1048576; + } + + // Always add if the body cannot be rewound, the size cannot be + // determined, or the size is greater than the cutoff threshold + $body = $request->getBody(); + $size = $body->getSize(); + + if ($size === null || $size >= (int) $expect || !$body->isSeekable()) { + $modify['set_headers']['Expect'] = '100-Continue'; + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php new file mode 100644 index 0000000..1dd3861 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php @@ -0,0 +1,216 @@ + 5, + 'protocols' => ['http', 'https'], + 'strict' => false, + 'referer' => false, + 'track_redirects' => false, + ]; + + /** + * @var callable(RequestInterface, array): PromiseInterface + */ + private $nextHandler; + + /** + * @param callable(RequestInterface, array): PromiseInterface $nextHandler Next handler to invoke. + */ + public function __construct(callable $nextHandler) + { + $this->nextHandler = $nextHandler; + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + $fn = $this->nextHandler; + + if (empty($options['allow_redirects'])) { + return $fn($request, $options); + } + + if ($options['allow_redirects'] === true) { + $options['allow_redirects'] = self::$defaultSettings; + } elseif (!\is_array($options['allow_redirects'])) { + throw new \InvalidArgumentException('allow_redirects must be true, false, or array'); + } else { + // Merge the default settings with the provided settings + $options['allow_redirects'] += self::$defaultSettings; + } + + if (empty($options['allow_redirects']['max'])) { + return $fn($request, $options); + } + + return $fn($request, $options) + ->then(function (ResponseInterface $response) use ($request, $options) { + return $this->checkRedirect($request, $options, $response); + }); + } + + /** + * @return ResponseInterface|PromiseInterface + */ + public function checkRedirect(RequestInterface $request, array $options, ResponseInterface $response) + { + if (\strpos((string) $response->getStatusCode(), '3') !== 0 + || !$response->hasHeader('Location') + ) { + return $response; + } + + $this->guardMax($request, $response, $options); + $nextRequest = $this->modifyRequest($request, $options, $response); + + if (isset($options['allow_redirects']['on_redirect'])) { + ($options['allow_redirects']['on_redirect'])( + $request, + $response, + $nextRequest->getUri() + ); + } + + $promise = $this($nextRequest, $options); + + // Add headers to be able to track history of redirects. + if (!empty($options['allow_redirects']['track_redirects'])) { + return $this->withTracking( + $promise, + (string) $nextRequest->getUri(), + $response->getStatusCode() + ); + } + + return $promise; + } + + /** + * Enable tracking on promise. + */ + private function withTracking(PromiseInterface $promise, string $uri, int $statusCode): PromiseInterface + { + return $promise->then( + static function (ResponseInterface $response) use ($uri, $statusCode) { + // Note that we are pushing to the front of the list as this + // would be an earlier response than what is currently present + // in the history header. + $historyHeader = $response->getHeader(self::HISTORY_HEADER); + $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER); + \array_unshift($historyHeader, $uri); + \array_unshift($statusHeader, (string) $statusCode); + + return $response->withHeader(self::HISTORY_HEADER, $historyHeader) + ->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader); + } + ); + } + + /** + * Check for too many redirects + * + * @throws TooManyRedirectsException Too many redirects. + */ + private function guardMax(RequestInterface $request, ResponseInterface $response, array &$options): void + { + $current = $options['__redirect_count'] + ?? 0; + $options['__redirect_count'] = $current + 1; + $max = $options['allow_redirects']['max']; + + if ($options['__redirect_count'] > $max) { + throw new TooManyRedirectsException("Will not follow more than {$max} redirects", $request, $response); + } + } + + public function modifyRequest(RequestInterface $request, array $options, ResponseInterface $response): RequestInterface + { + // Request modifications to apply. + $modify = []; + $protocols = $options['allow_redirects']['protocols']; + + // Use a GET request if this is an entity enclosing request and we are + // not forcing RFC compliance, but rather emulating what all browsers + // would do. + $statusCode = $response->getStatusCode(); + if ($statusCode == 303 || + ($statusCode <= 302 && !$options['allow_redirects']['strict']) + ) { + $safeMethods = ['GET', 'HEAD', 'OPTIONS']; + $requestMethod = $request->getMethod(); + + $modify['method'] = in_array($requestMethod, $safeMethods) ? $requestMethod : 'GET'; + $modify['body'] = ''; + } + + $uri = $this->redirectUri($request, $response, $protocols); + if (isset($options['idn_conversion']) && ($options['idn_conversion'] !== false)) { + $idnOptions = ($options['idn_conversion'] === true) ? \IDNA_DEFAULT : $options['idn_conversion']; + $uri = Utils::idnUriConvert($uri, $idnOptions); + } + + $modify['uri'] = $uri; + Psr7\Message::rewindBody($request); + + // Add the Referer header if it is told to do so and only + // add the header if we are not redirecting from https to http. + if ($options['allow_redirects']['referer'] + && $modify['uri']->getScheme() === $request->getUri()->getScheme() + ) { + $uri = $request->getUri()->withUserInfo(''); + $modify['set_headers']['Referer'] = (string) $uri; + } else { + $modify['remove_headers'][] = 'Referer'; + } + + // Remove Authorization header if host is different. + if ($request->getUri()->getHost() !== $modify['uri']->getHost()) { + $modify['remove_headers'][] = 'Authorization'; + } + + return Psr7\Utils::modifyRequest($request, $modify); + } + + /** + * Set the appropriate URL on the request based on the location header + */ + private function redirectUri(RequestInterface $request, ResponseInterface $response, array $protocols): UriInterface + { + $location = Psr7\UriResolver::resolve( + $request->getUri(), + new Psr7\Uri($response->getHeaderLine('Location')) + ); + + // Ensure that the redirect URI is allowed based on the protocols. + if (!\in_array($location->getScheme(), $protocols)) { + throw new BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response); + } + + return $location; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/RequestOptions.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/RequestOptions.php new file mode 100644 index 0000000..20b31bc --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/RequestOptions.php @@ -0,0 +1,264 @@ +decider = $decider; + $this->nextHandler = $nextHandler; + $this->delay = $delay ?: __CLASS__ . '::exponentialDelay'; + } + + /** + * Default exponential backoff delay function. + * + * @return int milliseconds. + */ + public static function exponentialDelay(int $retries): int + { + return (int) \pow(2, $retries - 1) * 1000; + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + if (!isset($options['retries'])) { + $options['retries'] = 0; + } + + $fn = $this->nextHandler; + return $fn($request, $options) + ->then( + $this->onFulfilled($request, $options), + $this->onRejected($request, $options) + ); + } + + /** + * Execute fulfilled closure + */ + private function onFulfilled(RequestInterface $request, array $options): callable + { + return function ($value) use ($request, $options) { + if (!($this->decider)( + $options['retries'], + $request, + $value, + null + )) { + return $value; + } + return $this->doRetry($request, $options, $value); + }; + } + + /** + * Execute rejected closure + */ + private function onRejected(RequestInterface $req, array $options): callable + { + return function ($reason) use ($req, $options) { + if (!($this->decider)( + $options['retries'], + $req, + null, + $reason + )) { + return P\Create::rejectionFor($reason); + } + return $this->doRetry($req, $options); + }; + } + + private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface + { + $options['delay'] = ($this->delay)(++$options['retries'], $response); + + return $this($request, $options); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/TransferStats.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/TransferStats.php new file mode 100644 index 0000000..93fa334 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/TransferStats.php @@ -0,0 +1,133 @@ +request = $request; + $this->response = $response; + $this->transferTime = $transferTime; + $this->handlerErrorData = $handlerErrorData; + $this->handlerStats = $handlerStats; + } + + public function getRequest(): RequestInterface + { + return $this->request; + } + + /** + * Returns the response that was received (if any). + */ + public function getResponse(): ?ResponseInterface + { + return $this->response; + } + + /** + * Returns true if a response was received. + */ + public function hasResponse(): bool + { + return $this->response !== null; + } + + /** + * Gets handler specific error data. + * + * This might be an exception, a integer representing an error code, or + * anything else. Relying on this value assumes that you know what handler + * you are using. + * + * @return mixed + */ + public function getHandlerErrorData() + { + return $this->handlerErrorData; + } + + /** + * Get the effective URI the request was sent to. + */ + public function getEffectiveUri(): UriInterface + { + return $this->request->getUri(); + } + + /** + * Get the estimated time the request was being transferred by the handler. + * + * @return float|null Time in seconds. + */ + public function getTransferTime(): ?float + { + return $this->transferTime; + } + + /** + * Gets an array of all of the handler specific transfer data. + */ + public function getHandlerStats(): array + { + return $this->handlerStats; + } + + /** + * Get a specific handler statistic from the handler by name. + * + * @param string $stat Handler specific transfer stat to retrieve. + * + * @return mixed|null + */ + public function getHandlerStat(string $stat) + { + return $this->handlerStats[$stat] ?? null; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Utils.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Utils.php new file mode 100644 index 0000000..91591da --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/Utils.php @@ -0,0 +1,382 @@ +getHost()) { + $asciiHost = self::idnToAsci($uri->getHost(), $options, $info); + if ($asciiHost === false) { + $errorBitSet = $info['errors'] ?? 0; + + $errorConstants = array_filter(array_keys(get_defined_constants()), static function (string $name): bool { + return substr($name, 0, 11) === 'IDNA_ERROR_'; + }); + + $errors = []; + foreach ($errorConstants as $errorConstant) { + if ($errorBitSet & constant($errorConstant)) { + $errors[] = $errorConstant; + } + } + + $errorMessage = 'IDN conversion failed'; + if ($errors) { + $errorMessage .= ' (errors: ' . implode(', ', $errors) . ')'; + } + + throw new InvalidArgumentException($errorMessage); + } + if ($uri->getHost() !== $asciiHost) { + // Replace URI only if the ASCII version is different + $uri = $uri->withHost($asciiHost); + } + } + + return $uri; + } + + /** + * @internal + */ + public static function getenv(string $name): ?string + { + if (isset($_SERVER[$name])) { + return (string) $_SERVER[$name]; + } + + if (\PHP_SAPI === 'cli' && ($value = \getenv($name)) !== false && $value !== null) { + return (string) $value; + } + + return null; + } + + /** + * @return string|false + */ + private static function idnToAsci(string $domain, int $options, ?array &$info = []) + { + if (\function_exists('idn_to_ascii') && \defined('INTL_IDNA_VARIANT_UTS46')) { + return \idn_to_ascii($domain, $options, \INTL_IDNA_VARIANT_UTS46, $info); + } + + throw new \Error('ext-idn or symfony/polyfill-intl-idn not loaded or too old'); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/functions.php b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/functions.php new file mode 100644 index 0000000..a70d2cb --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/guzzle/src/functions.php @@ -0,0 +1,167 @@ + +Copyright (c) 2015 Graham Campbell +Copyright (c) 2017 Tobias Schultze +Copyright (c) 2020 Tobias Nyholm + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/Makefile b/phpTest_20/componente/vendor/guzzlehttp/promises/Makefile new file mode 100644 index 0000000..8d5b3ef --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/Makefile @@ -0,0 +1,13 @@ +all: clean test + +test: + vendor/bin/phpunit + +coverage: + vendor/bin/phpunit --coverage-html=artifacts/coverage + +view-coverage: + open artifacts/coverage/index.html + +clean: + rm -rf artifacts/* diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/README.md b/phpTest_20/componente/vendor/guzzlehttp/promises/README.md new file mode 100644 index 0000000..c175fec --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/README.md @@ -0,0 +1,547 @@ +# Guzzle Promises + +[Promises/A+](https://promisesaplus.com/) implementation that handles promise +chaining and resolution iteratively, allowing for "infinite" promise chaining +while keeping the stack size constant. Read [this blog post](https://blog.domenic.me/youre-missing-the-point-of-promises/) +for a general introduction to promises. + +- [Features](#features) +- [Quick start](#quick-start) +- [Synchronous wait](#synchronous-wait) +- [Cancellation](#cancellation) +- [API](#api) + - [Promise](#promise) + - [FulfilledPromise](#fulfilledpromise) + - [RejectedPromise](#rejectedpromise) +- [Promise interop](#promise-interop) +- [Implementation notes](#implementation-notes) + + +# Features + +- [Promises/A+](https://promisesaplus.com/) implementation. +- Promise resolution and chaining is handled iteratively, allowing for + "infinite" promise chaining. +- Promises have a synchronous `wait` method. +- Promises can be cancelled. +- Works with any object that has a `then` function. +- C# style async/await coroutine promises using + `GuzzleHttp\Promise\Coroutine::of()`. + + +# Quick start + +A *promise* represents the eventual result of an asynchronous operation. The +primary way of interacting with a promise is through its `then` method, which +registers callbacks to receive either a promise's eventual value or the reason +why the promise cannot be fulfilled. + + +## Callbacks + +Callbacks are registered with the `then` method by providing an optional +`$onFulfilled` followed by an optional `$onRejected` function. + + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise->then( + // $onFulfilled + function ($value) { + echo 'The promise was fulfilled.'; + }, + // $onRejected + function ($reason) { + echo 'The promise was rejected.'; + } +); +``` + +*Resolving* a promise means that you either fulfill a promise with a *value* or +reject a promise with a *reason*. Resolving a promises triggers callbacks +registered with the promises's `then` method. These callbacks are triggered +only once and in the order in which they were added. + + +## Resolving a promise + +Promises are fulfilled using the `resolve($value)` method. Resolving a promise +with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger +all of the onFulfilled callbacks (resolving a promise with a rejected promise +will reject the promise and trigger the `$onRejected` callbacks). + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise + ->then(function ($value) { + // Return a value and don't break the chain + return "Hello, " . $value; + }) + // This then is executed after the first then and receives the value + // returned from the first then. + ->then(function ($value) { + echo $value; + }); + +// Resolving the promise triggers the $onFulfilled callbacks and outputs +// "Hello, reader." +$promise->resolve('reader.'); +``` + + +## Promise forwarding + +Promises can be chained one after the other. Each then in the chain is a new +promise. The return value of a promise is what's forwarded to the next +promise in the chain. Returning a promise in a `then` callback will cause the +subsequent promises in the chain to only be fulfilled when the returned promise +has been fulfilled. The next promise in the chain will be invoked with the +resolved value of the promise. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$nextPromise = new Promise(); + +$promise + ->then(function ($value) use ($nextPromise) { + echo $value; + return $nextPromise; + }) + ->then(function ($value) { + echo $value; + }); + +// Triggers the first callback and outputs "A" +$promise->resolve('A'); +// Triggers the second callback and outputs "B" +$nextPromise->resolve('B'); +``` + +## Promise rejection + +When a promise is rejected, the `$onRejected` callbacks are invoked with the +rejection reason. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise->then(null, function ($reason) { + echo $reason; +}); + +$promise->reject('Error!'); +// Outputs "Error!" +``` + +## Rejection forwarding + +If an exception is thrown in an `$onRejected` callback, subsequent +`$onRejected` callbacks are invoked with the thrown exception as the reason. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise->then(null, function ($reason) { + throw new Exception($reason); +})->then(null, function ($reason) { + assert($reason->getMessage() === 'Error!'); +}); + +$promise->reject('Error!'); +``` + +You can also forward a rejection down the promise chain by returning a +`GuzzleHttp\Promise\RejectedPromise` in either an `$onFulfilled` or +`$onRejected` callback. + +```php +use GuzzleHttp\Promise\Promise; +use GuzzleHttp\Promise\RejectedPromise; + +$promise = new Promise(); +$promise->then(null, function ($reason) { + return new RejectedPromise($reason); +})->then(null, function ($reason) { + assert($reason === 'Error!'); +}); + +$promise->reject('Error!'); +``` + +If an exception is not thrown in a `$onRejected` callback and the callback +does not return a rejected promise, downstream `$onFulfilled` callbacks are +invoked using the value returned from the `$onRejected` callback. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise + ->then(null, function ($reason) { + return "It's ok"; + }) + ->then(function ($value) { + assert($value === "It's ok"); + }); + +$promise->reject('Error!'); +``` + +# Synchronous wait + +You can synchronously force promises to complete using a promise's `wait` +method. When creating a promise, you can provide a wait function that is used +to synchronously force a promise to complete. When a wait function is invoked +it is expected to deliver a value to the promise or reject the promise. If the +wait function does not deliver a value, then an exception is thrown. The wait +function provided to a promise constructor is invoked when the `wait` function +of the promise is called. + +```php +$promise = new Promise(function () use (&$promise) { + $promise->resolve('foo'); +}); + +// Calling wait will return the value of the promise. +echo $promise->wait(); // outputs "foo" +``` + +If an exception is encountered while invoking the wait function of a promise, +the promise is rejected with the exception and the exception is thrown. + +```php +$promise = new Promise(function () use (&$promise) { + throw new Exception('foo'); +}); + +$promise->wait(); // throws the exception. +``` + +Calling `wait` on a promise that has been fulfilled will not trigger the wait +function. It will simply return the previously resolved value. + +```php +$promise = new Promise(function () { die('this is not called!'); }); +$promise->resolve('foo'); +echo $promise->wait(); // outputs "foo" +``` + +Calling `wait` on a promise that has been rejected will throw an exception. If +the rejection reason is an instance of `\Exception` the reason is thrown. +Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason +can be obtained by calling the `getReason` method of the exception. + +```php +$promise = new Promise(); +$promise->reject('foo'); +$promise->wait(); +``` + +> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo' + + +## Unwrapping a promise + +When synchronously waiting on a promise, you are joining the state of the +promise into the current state of execution (i.e., return the value of the +promise if it was fulfilled or throw an exception if it was rejected). This is +called "unwrapping" the promise. Waiting on a promise will by default unwrap +the promise state. + +You can force a promise to resolve and *not* unwrap the state of the promise +by passing `false` to the first argument of the `wait` function: + +```php +$promise = new Promise(); +$promise->reject('foo'); +// This will not throw an exception. It simply ensures the promise has +// been resolved. +$promise->wait(false); +``` + +When unwrapping a promise, the resolved value of the promise will be waited +upon until the unwrapped value is not a promise. This means that if you resolve +promise A with a promise B and unwrap promise A, the value returned by the +wait function will be the value delivered to promise B. + +**Note**: when you do not unwrap the promise, no value is returned. + + +# Cancellation + +You can cancel a promise that has not yet been fulfilled using the `cancel()` +method of a promise. When creating a promise you can provide an optional +cancel function that when invoked cancels the action of computing a resolution +of the promise. + + +# API + + +## Promise + +When creating a promise object, you can provide an optional `$waitFn` and +`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is +expected to resolve the promise. `$cancelFn` is a function with no arguments +that is expected to cancel the computation of a promise. It is invoked when the +`cancel()` method of a promise is called. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise( + function () use (&$promise) { + $promise->resolve('waited'); + }, + function () { + // do something that will cancel the promise computation (e.g., close + // a socket, cancel a database query, etc...) + } +); + +assert('waited' === $promise->wait()); +``` + +A promise has the following methods: + +- `then(callable $onFulfilled, callable $onRejected) : PromiseInterface` + + Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler. + +- `otherwise(callable $onRejected) : PromiseInterface` + + Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled. + +- `wait($unwrap = true) : mixed` + + Synchronously waits on the promise to complete. + + `$unwrap` controls whether or not the value of the promise is returned for a + fulfilled promise or if an exception is thrown if the promise is rejected. + This is set to `true` by default. + +- `cancel()` + + Attempts to cancel the promise if possible. The promise being cancelled and + the parent most ancestor that has not yet been resolved will also be + cancelled. Any promises waiting on the cancelled promise to resolve will also + be cancelled. + +- `getState() : string` + + Returns the state of the promise. One of `pending`, `fulfilled`, or + `rejected`. + +- `resolve($value)` + + Fulfills the promise with the given `$value`. + +- `reject($reason)` + + Rejects the promise with the given `$reason`. + + +## FulfilledPromise + +A fulfilled promise can be created to represent a promise that has been +fulfilled. + +```php +use GuzzleHttp\Promise\FulfilledPromise; + +$promise = new FulfilledPromise('value'); + +// Fulfilled callbacks are immediately invoked. +$promise->then(function ($value) { + echo $value; +}); +``` + + +## RejectedPromise + +A rejected promise can be created to represent a promise that has been +rejected. + +```php +use GuzzleHttp\Promise\RejectedPromise; + +$promise = new RejectedPromise('Error'); + +// Rejected callbacks are immediately invoked. +$promise->then(null, function ($reason) { + echo $reason; +}); +``` + + +# Promise interop + +This library works with foreign promises that have a `then` method. This means +you can use Guzzle promises with [React promises](https://github.com/reactphp/promise) +for example. When a foreign promise is returned inside of a then method +callback, promise resolution will occur recursively. + +```php +// Create a React promise +$deferred = new React\Promise\Deferred(); +$reactPromise = $deferred->promise(); + +// Create a Guzzle promise that is fulfilled with a React promise. +$guzzlePromise = new GuzzleHttp\Promise\Promise(); +$guzzlePromise->then(function ($value) use ($reactPromise) { + // Do something something with the value... + // Return the React promise + return $reactPromise; +}); +``` + +Please note that wait and cancel chaining is no longer possible when forwarding +a foreign promise. You will need to wrap a third-party promise with a Guzzle +promise in order to utilize wait and cancel functions with foreign promises. + + +## Event Loop Integration + +In order to keep the stack size constant, Guzzle promises are resolved +asynchronously using a task queue. When waiting on promises synchronously, the +task queue will be automatically run to ensure that the blocking promise and +any forwarded promises are resolved. When using promises asynchronously in an +event loop, you will need to run the task queue on each tick of the loop. If +you do not run the task queue, then promises will not be resolved. + +You can run the task queue using the `run()` method of the global task queue +instance. + +```php +// Get the global task queue +$queue = GuzzleHttp\Promise\Utils::queue(); +$queue->run(); +``` + +For example, you could use Guzzle promises with React using a periodic timer: + +```php +$loop = React\EventLoop\Factory::create(); +$loop->addPeriodicTimer(0, [$queue, 'run']); +``` + +*TODO*: Perhaps adding a `futureTick()` on each tick would be faster? + + +# Implementation notes + + +## Promise resolution and chaining is handled iteratively + +By shuffling pending handlers from one owner to another, promises are +resolved iteratively, allowing for "infinite" then chaining. + +```php +then(function ($v) { + // The stack size remains constant (a good thing) + echo xdebug_get_stack_depth() . ', '; + return $v + 1; + }); +} + +$parent->resolve(0); +var_dump($p->wait()); // int(1000) + +``` + +When a promise is fulfilled or rejected with a non-promise value, the promise +then takes ownership of the handlers of each child promise and delivers values +down the chain without using recursion. + +When a promise is resolved with another promise, the original promise transfers +all of its pending handlers to the new promise. When the new promise is +eventually resolved, all of the pending handlers are delivered the forwarded +value. + + +## A promise is the deferred. + +Some promise libraries implement promises using a deferred object to represent +a computation and a promise object to represent the delivery of the result of +the computation. This is a nice separation of computation and delivery because +consumers of the promise cannot modify the value that will be eventually +delivered. + +One side effect of being able to implement promise resolution and chaining +iteratively is that you need to be able for one promise to reach into the state +of another promise to shuffle around ownership of handlers. In order to achieve +this without making the handlers of a promise publicly mutable, a promise is +also the deferred value, allowing promises of the same parent class to reach +into and modify the private properties of promises of the same type. While this +does allow consumers of the value to modify the resolution or rejection of the +deferred, it is a small price to pay for keeping the stack size constant. + +```php +$promise = new Promise(); +$promise->then(function ($value) { echo $value; }); +// The promise is the deferred value, so you can deliver a value to it. +$promise->resolve('foo'); +// prints "foo" +``` + + +## Upgrading from Function API + +A static API was first introduced in 1.4.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API will be removed in 2.0.0. A migration table has been provided here for your convenience: + +| Original Function | Replacement Method | +|----------------|----------------| +| `queue` | `Utils::queue` | +| `task` | `Utils::task` | +| `promise_for` | `Create::promiseFor` | +| `rejection_for` | `Create::rejectionFor` | +| `exception_for` | `Create::exceptionFor` | +| `iter_for` | `Create::iterFor` | +| `inspect` | `Utils::inspect` | +| `inspect_all` | `Utils::inspectAll` | +| `unwrap` | `Utils::unwrap` | +| `all` | `Utils::all` | +| `some` | `Utils::some` | +| `any` | `Utils::any` | +| `settle` | `Utils::settle` | +| `each` | `Each::of` | +| `each_limit` | `Each::ofLimit` | +| `each_limit_all` | `Each::ofLimitAll` | +| `!is_fulfilled` | `Is::pending` | +| `is_fulfilled` | `Is::fulfilled` | +| `is_rejected` | `Is::rejected` | +| `is_settled` | `Is::settled` | +| `coroutine` | `Coroutine::of` | + + +## Security + +If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information. + +## License + +Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. + +## For Enterprise + +Available as part of the Tidelift Subscription + +The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-promises?utm_source=packagist-guzzlehttp-promises&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/composer.json b/phpTest_20/componente/vendor/guzzlehttp/promises/composer.json new file mode 100644 index 0000000..c959fb3 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/composer.json @@ -0,0 +1,58 @@ +{ + "name": "guzzlehttp/promises", + "description": "Guzzle promises library", + "keywords": ["promise"], + "license": "MIT", + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + }, + "files": ["src/functions_include.php"] + }, + "autoload-dev": { + "psr-4": { + "GuzzleHttp\\Promise\\Tests\\": "tests/" + } + }, + "scripts": { + "test": "vendor/bin/simple-phpunit", + "test-ci": "vendor/bin/simple-phpunit --coverage-text" + }, + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "config": { + "preferred-install": "dist", + "sort-packages": true + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/AggregateException.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/AggregateException.php new file mode 100644 index 0000000..d2b5712 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/AggregateException.php @@ -0,0 +1,17 @@ +then(function ($v) { echo $v; }); + * + * @param callable $generatorFn Generator function to wrap into a promise. + * + * @return Promise + * + * @link https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration + */ +final class Coroutine implements PromiseInterface +{ + /** + * @var PromiseInterface|null + */ + private $currentPromise; + + /** + * @var Generator + */ + private $generator; + + /** + * @var Promise + */ + private $result; + + public function __construct(callable $generatorFn) + { + $this->generator = $generatorFn(); + $this->result = new Promise(function () { + while (isset($this->currentPromise)) { + $this->currentPromise->wait(); + } + }); + try { + $this->nextCoroutine($this->generator->current()); + } catch (\Exception $exception) { + $this->result->reject($exception); + } catch (Throwable $throwable) { + $this->result->reject($throwable); + } + } + + /** + * Create a new coroutine. + * + * @return self + */ + public static function of(callable $generatorFn) + { + return new self($generatorFn); + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ) { + return $this->result->then($onFulfilled, $onRejected); + } + + public function otherwise(callable $onRejected) + { + return $this->result->otherwise($onRejected); + } + + public function wait($unwrap = true) + { + return $this->result->wait($unwrap); + } + + public function getState() + { + return $this->result->getState(); + } + + public function resolve($value) + { + $this->result->resolve($value); + } + + public function reject($reason) + { + $this->result->reject($reason); + } + + public function cancel() + { + $this->currentPromise->cancel(); + $this->result->cancel(); + } + + private function nextCoroutine($yielded) + { + $this->currentPromise = Create::promiseFor($yielded) + ->then([$this, '_handleSuccess'], [$this, '_handleFailure']); + } + + /** + * @internal + */ + public function _handleSuccess($value) + { + unset($this->currentPromise); + try { + $next = $this->generator->send($value); + if ($this->generator->valid()) { + $this->nextCoroutine($next); + } else { + $this->result->resolve($value); + } + } catch (Exception $exception) { + $this->result->reject($exception); + } catch (Throwable $throwable) { + $this->result->reject($throwable); + } + } + + /** + * @internal + */ + public function _handleFailure($reason) + { + unset($this->currentPromise); + try { + $nextYield = $this->generator->throw(Create::exceptionFor($reason)); + // The throw was caught, so keep iterating on the coroutine + $this->nextCoroutine($nextYield); + } catch (Exception $exception) { + $this->result->reject($exception); + } catch (Throwable $throwable) { + $this->result->reject($throwable); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/Create.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Create.php new file mode 100644 index 0000000..8d038e9 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Create.php @@ -0,0 +1,84 @@ +then([$promise, 'resolve'], [$promise, 'reject']); + return $promise; + } + + return new FulfilledPromise($value); + } + + /** + * Creates a rejected promise for a reason if the reason is not a promise. + * If the provided reason is a promise, then it is returned as-is. + * + * @param mixed $reason Promise or reason. + * + * @return PromiseInterface + */ + public static function rejectionFor($reason) + { + if ($reason instanceof PromiseInterface) { + return $reason; + } + + return new RejectedPromise($reason); + } + + /** + * Create an exception for a rejected promise value. + * + * @param mixed $reason + * + * @return \Exception|\Throwable + */ + public static function exceptionFor($reason) + { + if ($reason instanceof \Exception || $reason instanceof \Throwable) { + return $reason; + } + + return new RejectionException($reason); + } + + /** + * Returns an iterator for the given value. + * + * @param mixed $value + * + * @return \Iterator + */ + public static function iterFor($value) + { + if ($value instanceof \Iterator) { + return $value; + } + + if (is_array($value)) { + return new \ArrayIterator($value); + } + + return new \ArrayIterator([$value]); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/Each.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Each.php new file mode 100644 index 0000000..1dda354 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Each.php @@ -0,0 +1,90 @@ + $onFulfilled, + 'rejected' => $onRejected + ]))->promise(); + } + + /** + * Like of, but only allows a certain number of outstanding promises at any + * given time. + * + * $concurrency may be an integer or a function that accepts the number of + * pending promises and returns a numeric concurrency limit value to allow + * for dynamic a concurrency size. + * + * @param mixed $iterable + * @param int|callable $concurrency + * @param callable $onFulfilled + * @param callable $onRejected + * + * @return PromiseInterface + */ + public static function ofLimit( + $iterable, + $concurrency, + callable $onFulfilled = null, + callable $onRejected = null + ) { + return (new EachPromise($iterable, [ + 'fulfilled' => $onFulfilled, + 'rejected' => $onRejected, + 'concurrency' => $concurrency + ]))->promise(); + } + + /** + * Like limit, but ensures that no promise in the given $iterable argument + * is rejected. If any promise is rejected, then the aggregate promise is + * rejected with the encountered rejection. + * + * @param mixed $iterable + * @param int|callable $concurrency + * @param callable $onFulfilled + * + * @return PromiseInterface + */ + public static function ofLimitAll( + $iterable, + $concurrency, + callable $onFulfilled = null + ) { + return each_limit( + $iterable, + $concurrency, + $onFulfilled, + function ($reason, $idx, PromiseInterface $aggregate) { + $aggregate->reject($reason); + } + ); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/EachPromise.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/EachPromise.php new file mode 100644 index 0000000..38ecb59 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/EachPromise.php @@ -0,0 +1,255 @@ +iterable = Create::iterFor($iterable); + + if (isset($config['concurrency'])) { + $this->concurrency = $config['concurrency']; + } + + if (isset($config['fulfilled'])) { + $this->onFulfilled = $config['fulfilled']; + } + + if (isset($config['rejected'])) { + $this->onRejected = $config['rejected']; + } + } + + /** @psalm-suppress InvalidNullableReturnType */ + public function promise() + { + if ($this->aggregate) { + return $this->aggregate; + } + + try { + $this->createPromise(); + /** @psalm-assert Promise $this->aggregate */ + $this->iterable->rewind(); + $this->refillPending(); + } catch (\Throwable $e) { + /** + * @psalm-suppress NullReference + * @phpstan-ignore-next-line + */ + $this->aggregate->reject($e); + } catch (\Exception $e) { + /** + * @psalm-suppress NullReference + * @phpstan-ignore-next-line + */ + $this->aggregate->reject($e); + } + + /** + * @psalm-suppress NullableReturnStatement + * @phpstan-ignore-next-line + */ + return $this->aggregate; + } + + private function createPromise() + { + $this->mutex = false; + $this->aggregate = new Promise(function () { + if ($this->checkIfFinished()) { + return; + } + reset($this->pending); + // Consume a potentially fluctuating list of promises while + // ensuring that indexes are maintained (precluding array_shift). + while ($promise = current($this->pending)) { + next($this->pending); + $promise->wait(); + if (Is::settled($this->aggregate)) { + return; + } + } + }); + + // Clear the references when the promise is resolved. + $clearFn = function () { + $this->iterable = $this->concurrency = $this->pending = null; + $this->onFulfilled = $this->onRejected = null; + $this->nextPendingIndex = 0; + }; + + $this->aggregate->then($clearFn, $clearFn); + } + + private function refillPending() + { + if (!$this->concurrency) { + // Add all pending promises. + while ($this->addPending() && $this->advanceIterator()); + return; + } + + // Add only up to N pending promises. + $concurrency = is_callable($this->concurrency) + ? call_user_func($this->concurrency, count($this->pending)) + : $this->concurrency; + $concurrency = max($concurrency - count($this->pending), 0); + // Concurrency may be set to 0 to disallow new promises. + if (!$concurrency) { + return; + } + // Add the first pending promise. + $this->addPending(); + // Note this is special handling for concurrency=1 so that we do + // not advance the iterator after adding the first promise. This + // helps work around issues with generators that might not have the + // next value to yield until promise callbacks are called. + while (--$concurrency + && $this->advanceIterator() + && $this->addPending()); + } + + private function addPending() + { + if (!$this->iterable || !$this->iterable->valid()) { + return false; + } + + $promise = Create::promiseFor($this->iterable->current()); + $key = $this->iterable->key(); + + // Iterable keys may not be unique, so we use a counter to + // guarantee uniqueness + $idx = $this->nextPendingIndex++; + + $this->pending[$idx] = $promise->then( + function ($value) use ($idx, $key) { + if ($this->onFulfilled) { + call_user_func( + $this->onFulfilled, + $value, + $key, + $this->aggregate + ); + } + $this->step($idx); + }, + function ($reason) use ($idx, $key) { + if ($this->onRejected) { + call_user_func( + $this->onRejected, + $reason, + $key, + $this->aggregate + ); + } + $this->step($idx); + } + ); + + return true; + } + + private function advanceIterator() + { + // Place a lock on the iterator so that we ensure to not recurse, + // preventing fatal generator errors. + if ($this->mutex) { + return false; + } + + $this->mutex = true; + + try { + $this->iterable->next(); + $this->mutex = false; + return true; + } catch (\Throwable $e) { + $this->aggregate->reject($e); + $this->mutex = false; + return false; + } catch (\Exception $e) { + $this->aggregate->reject($e); + $this->mutex = false; + return false; + } + } + + private function step($idx) + { + // If the promise was already resolved, then ignore this step. + if (Is::settled($this->aggregate)) { + return; + } + + unset($this->pending[$idx]); + + // Only refill pending promises if we are not locked, preventing the + // EachPromise to recursively invoke the provided iterator, which + // cause a fatal error: "Cannot resume an already running generator" + if ($this->advanceIterator() && !$this->checkIfFinished()) { + // Add more pending promises if possible. + $this->refillPending(); + } + } + + private function checkIfFinished() + { + if (!$this->pending && !$this->iterable->valid()) { + // Resolve the promise if there's nothing left to do. + $this->aggregate->resolve(null); + return true; + } + + return false; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/FulfilledPromise.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/FulfilledPromise.php new file mode 100644 index 0000000..98f72a6 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/FulfilledPromise.php @@ -0,0 +1,84 @@ +value = $value; + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ) { + // Return itself if there is no onFulfilled function. + if (!$onFulfilled) { + return $this; + } + + $queue = Utils::queue(); + $p = new Promise([$queue, 'run']); + $value = $this->value; + $queue->add(static function () use ($p, $value, $onFulfilled) { + if (Is::pending($p)) { + try { + $p->resolve($onFulfilled($value)); + } catch (\Throwable $e) { + $p->reject($e); + } catch (\Exception $e) { + $p->reject($e); + } + } + }); + + return $p; + } + + public function otherwise(callable $onRejected) + { + return $this->then(null, $onRejected); + } + + public function wait($unwrap = true, $defaultDelivery = null) + { + return $unwrap ? $this->value : null; + } + + public function getState() + { + return self::FULFILLED; + } + + public function resolve($value) + { + if ($value !== $this->value) { + throw new \LogicException("Cannot resolve a fulfilled promise"); + } + } + + public function reject($reason) + { + throw new \LogicException("Cannot reject a fulfilled promise"); + } + + public function cancel() + { + // pass + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/Is.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Is.php new file mode 100644 index 0000000..c3ed8d0 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Is.php @@ -0,0 +1,46 @@ +getState() === PromiseInterface::PENDING; + } + + /** + * Returns true if a promise is fulfilled or rejected. + * + * @return bool + */ + public static function settled(PromiseInterface $promise) + { + return $promise->getState() !== PromiseInterface::PENDING; + } + + /** + * Returns true if a promise is fulfilled. + * + * @return bool + */ + public static function fulfilled(PromiseInterface $promise) + { + return $promise->getState() === PromiseInterface::FULFILLED; + } + + /** + * Returns true if a promise is rejected. + * + * @return bool + */ + public static function rejected(PromiseInterface $promise) + { + return $promise->getState() === PromiseInterface::REJECTED; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/Promise.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Promise.php new file mode 100644 index 0000000..7593905 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/Promise.php @@ -0,0 +1,278 @@ +waitFn = $waitFn; + $this->cancelFn = $cancelFn; + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ) { + if ($this->state === self::PENDING) { + $p = new Promise(null, [$this, 'cancel']); + $this->handlers[] = [$p, $onFulfilled, $onRejected]; + $p->waitList = $this->waitList; + $p->waitList[] = $this; + return $p; + } + + // Return a fulfilled promise and immediately invoke any callbacks. + if ($this->state === self::FULFILLED) { + $promise = Create::promiseFor($this->result); + return $onFulfilled ? $promise->then($onFulfilled) : $promise; + } + + // It's either cancelled or rejected, so return a rejected promise + // and immediately invoke any callbacks. + $rejection = Create::rejectionFor($this->result); + return $onRejected ? $rejection->then(null, $onRejected) : $rejection; + } + + public function otherwise(callable $onRejected) + { + return $this->then(null, $onRejected); + } + + public function wait($unwrap = true) + { + $this->waitIfPending(); + + if ($this->result instanceof PromiseInterface) { + return $this->result->wait($unwrap); + } + if ($unwrap) { + if ($this->state === self::FULFILLED) { + return $this->result; + } + // It's rejected so "unwrap" and throw an exception. + throw Create::exceptionFor($this->result); + } + } + + public function getState() + { + return $this->state; + } + + public function cancel() + { + if ($this->state !== self::PENDING) { + return; + } + + $this->waitFn = $this->waitList = null; + + if ($this->cancelFn) { + $fn = $this->cancelFn; + $this->cancelFn = null; + try { + $fn(); + } catch (\Throwable $e) { + $this->reject($e); + } catch (\Exception $e) { + $this->reject($e); + } + } + + // Reject the promise only if it wasn't rejected in a then callback. + /** @psalm-suppress RedundantCondition */ + if ($this->state === self::PENDING) { + $this->reject(new CancellationException('Promise has been cancelled')); + } + } + + public function resolve($value) + { + $this->settle(self::FULFILLED, $value); + } + + public function reject($reason) + { + $this->settle(self::REJECTED, $reason); + } + + private function settle($state, $value) + { + if ($this->state !== self::PENDING) { + // Ignore calls with the same resolution. + if ($state === $this->state && $value === $this->result) { + return; + } + throw $this->state === $state + ? new \LogicException("The promise is already {$state}.") + : new \LogicException("Cannot change a {$this->state} promise to {$state}"); + } + + if ($value === $this) { + throw new \LogicException('Cannot fulfill or reject a promise with itself'); + } + + // Clear out the state of the promise but stash the handlers. + $this->state = $state; + $this->result = $value; + $handlers = $this->handlers; + $this->handlers = null; + $this->waitList = $this->waitFn = null; + $this->cancelFn = null; + + if (!$handlers) { + return; + } + + // If the value was not a settled promise or a thenable, then resolve + // it in the task queue using the correct ID. + if (!is_object($value) || !method_exists($value, 'then')) { + $id = $state === self::FULFILLED ? 1 : 2; + // It's a success, so resolve the handlers in the queue. + Utils::queue()->add(static function () use ($id, $value, $handlers) { + foreach ($handlers as $handler) { + self::callHandler($id, $value, $handler); + } + }); + } elseif ($value instanceof Promise && Is::pending($value)) { + // We can just merge our handlers onto the next promise. + $value->handlers = array_merge($value->handlers, $handlers); + } else { + // Resolve the handlers when the forwarded promise is resolved. + $value->then( + static function ($value) use ($handlers) { + foreach ($handlers as $handler) { + self::callHandler(1, $value, $handler); + } + }, + static function ($reason) use ($handlers) { + foreach ($handlers as $handler) { + self::callHandler(2, $reason, $handler); + } + } + ); + } + } + + /** + * Call a stack of handlers using a specific callback index and value. + * + * @param int $index 1 (resolve) or 2 (reject). + * @param mixed $value Value to pass to the callback. + * @param array $handler Array of handler data (promise and callbacks). + */ + private static function callHandler($index, $value, array $handler) + { + /** @var PromiseInterface $promise */ + $promise = $handler[0]; + + // The promise may have been cancelled or resolved before placing + // this thunk in the queue. + if (Is::settled($promise)) { + return; + } + + try { + if (isset($handler[$index])) { + /* + * If $f throws an exception, then $handler will be in the exception + * stack trace. Since $handler contains a reference to the callable + * itself we get a circular reference. We clear the $handler + * here to avoid that memory leak. + */ + $f = $handler[$index]; + unset($handler); + $promise->resolve($f($value)); + } elseif ($index === 1) { + // Forward resolution values as-is. + $promise->resolve($value); + } else { + // Forward rejections down the chain. + $promise->reject($value); + } + } catch (\Throwable $reason) { + $promise->reject($reason); + } catch (\Exception $reason) { + $promise->reject($reason); + } + } + + private function waitIfPending() + { + if ($this->state !== self::PENDING) { + return; + } elseif ($this->waitFn) { + $this->invokeWaitFn(); + } elseif ($this->waitList) { + $this->invokeWaitList(); + } else { + // If there's no wait function, then reject the promise. + $this->reject('Cannot wait on a promise that has ' + . 'no internal wait function. You must provide a wait ' + . 'function when constructing the promise to be able to ' + . 'wait on a promise.'); + } + + Utils::queue()->run(); + + /** @psalm-suppress RedundantCondition */ + if ($this->state === self::PENDING) { + $this->reject('Invoking the wait callback did not resolve the promise'); + } + } + + private function invokeWaitFn() + { + try { + $wfn = $this->waitFn; + $this->waitFn = null; + $wfn(true); + } catch (\Exception $reason) { + if ($this->state === self::PENDING) { + // The promise has not been resolved yet, so reject the promise + // with the exception. + $this->reject($reason); + } else { + // The promise was already resolved, so there's a problem in + // the application. + throw $reason; + } + } + } + + private function invokeWaitList() + { + $waitList = $this->waitList; + $this->waitList = null; + + foreach ($waitList as $result) { + do { + $result->waitIfPending(); + $result = $result->result; + } while ($result instanceof Promise); + + if ($result instanceof PromiseInterface) { + $result->wait(false); + } + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/PromiseInterface.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/PromiseInterface.php new file mode 100644 index 0000000..e598331 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/PromiseInterface.php @@ -0,0 +1,97 @@ +reason = $reason; + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ) { + // If there's no onRejected callback then just return self. + if (!$onRejected) { + return $this; + } + + $queue = Utils::queue(); + $reason = $this->reason; + $p = new Promise([$queue, 'run']); + $queue->add(static function () use ($p, $reason, $onRejected) { + if (Is::pending($p)) { + try { + // Return a resolved promise if onRejected does not throw. + $p->resolve($onRejected($reason)); + } catch (\Throwable $e) { + // onRejected threw, so return a rejected promise. + $p->reject($e); + } catch (\Exception $e) { + // onRejected threw, so return a rejected promise. + $p->reject($e); + } + } + }); + + return $p; + } + + public function otherwise(callable $onRejected) + { + return $this->then(null, $onRejected); + } + + public function wait($unwrap = true, $defaultDelivery = null) + { + if ($unwrap) { + throw Create::exceptionFor($this->reason); + } + + return null; + } + + public function getState() + { + return self::REJECTED; + } + + public function resolve($value) + { + throw new \LogicException("Cannot resolve a rejected promise"); + } + + public function reject($reason) + { + if ($reason !== $this->reason) { + throw new \LogicException("Cannot reject a rejected promise"); + } + } + + public function cancel() + { + // pass + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/RejectionException.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/RejectionException.php new file mode 100644 index 0000000..e2f1377 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/RejectionException.php @@ -0,0 +1,48 @@ +reason = $reason; + + $message = 'The promise was rejected'; + + if ($description) { + $message .= ' with reason: ' . $description; + } elseif (is_string($reason) + || (is_object($reason) && method_exists($reason, '__toString')) + ) { + $message .= ' with reason: ' . $this->reason; + } elseif ($reason instanceof \JsonSerializable) { + $message .= ' with reason: ' + . json_encode($this->reason, JSON_PRETTY_PRINT); + } + + parent::__construct($message); + } + + /** + * Returns the rejection reason. + * + * @return mixed + */ + public function getReason() + { + return $this->reason; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/TaskQueue.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/TaskQueue.php new file mode 100644 index 0000000..f0fba2c --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/TaskQueue.php @@ -0,0 +1,67 @@ +run(); + */ +class TaskQueue implements TaskQueueInterface +{ + private $enableShutdown = true; + private $queue = []; + + public function __construct($withShutdown = true) + { + if ($withShutdown) { + register_shutdown_function(function () { + if ($this->enableShutdown) { + // Only run the tasks if an E_ERROR didn't occur. + $err = error_get_last(); + if (!$err || ($err['type'] ^ E_ERROR)) { + $this->run(); + } + } + }); + } + } + + public function isEmpty() + { + return !$this->queue; + } + + public function add(callable $task) + { + $this->queue[] = $task; + } + + public function run() + { + while ($task = array_shift($this->queue)) { + /** @var callable $task */ + $task(); + } + } + + /** + * The task queue will be run and exhausted by default when the process + * exits IFF the exit is not the result of a PHP E_ERROR error. + * + * You can disable running the automatic shutdown of the queue by calling + * this function. If you disable the task queue shutdown process, then you + * MUST either run the task queue (as a result of running your event loop + * or manually using the run() method) or wait on each outstanding promise. + * + * Note: This shutdown will occur before any destructors are triggered. + */ + public function disableShutdown() + { + $this->enableShutdown = false; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/TaskQueueInterface.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/TaskQueueInterface.php new file mode 100644 index 0000000..723d4d5 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/TaskQueueInterface.php @@ -0,0 +1,24 @@ + + * while ($eventLoop->isRunning()) { + * GuzzleHttp\Promise\Utils::queue()->run(); + * } + * + * + * @param TaskQueueInterface $assign Optionally specify a new queue instance. + * + * @return TaskQueueInterface + */ + public static function queue(TaskQueueInterface $assign = null) + { + static $queue; + + if ($assign) { + $queue = $assign; + } elseif (!$queue) { + $queue = new TaskQueue(); + } + + return $queue; + } + + /** + * Adds a function to run in the task queue when it is next `run()` and + * returns a promise that is fulfilled or rejected with the result. + * + * @param callable $task Task function to run. + * + * @return PromiseInterface + */ + public static function task(callable $task) + { + $queue = self::queue(); + $promise = new Promise([$queue, 'run']); + $queue->add(function () use ($task, $promise) { + try { + if (Is::pending($promise)) { + $promise->resolve($task()); + } + } catch (\Throwable $e) { + $promise->reject($e); + } catch (\Exception $e) { + $promise->reject($e); + } + }); + + return $promise; + } + + /** + * Synchronously waits on a promise to resolve and returns an inspection + * state array. + * + * Returns a state associative array containing a "state" key mapping to a + * valid promise state. If the state of the promise is "fulfilled", the + * array will contain a "value" key mapping to the fulfilled value of the + * promise. If the promise is rejected, the array will contain a "reason" + * key mapping to the rejection reason of the promise. + * + * @param PromiseInterface $promise Promise or value. + * + * @return array + */ + public static function inspect(PromiseInterface $promise) + { + try { + return [ + 'state' => PromiseInterface::FULFILLED, + 'value' => $promise->wait() + ]; + } catch (RejectionException $e) { + return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()]; + } catch (\Throwable $e) { + return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; + } catch (\Exception $e) { + return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; + } + } + + /** + * Waits on all of the provided promises, but does not unwrap rejected + * promises as thrown exception. + * + * Returns an array of inspection state arrays. + * + * @see inspect for the inspection state array format. + * + * @param PromiseInterface[] $promises Traversable of promises to wait upon. + * + * @return array + */ + public static function inspectAll($promises) + { + $results = []; + foreach ($promises as $key => $promise) { + $results[$key] = inspect($promise); + } + + return $results; + } + + /** + * Waits on all of the provided promises and returns the fulfilled values. + * + * Returns an array that contains the value of each promise (in the same + * order the promises were provided). An exception is thrown if any of the + * promises are rejected. + * + * @param iterable $promises Iterable of PromiseInterface objects to wait on. + * + * @return array + * + * @throws \Exception on error + * @throws \Throwable on error in PHP >=7 + */ + public static function unwrap($promises) + { + $results = []; + foreach ($promises as $key => $promise) { + $results[$key] = $promise->wait(); + } + + return $results; + } + + /** + * Given an array of promises, return a promise that is fulfilled when all + * the items in the array are fulfilled. + * + * The promise's fulfillment value is an array with fulfillment values at + * respective positions to the original array. If any promise in the array + * rejects, the returned promise is rejected with the rejection reason. + * + * @param mixed $promises Promises or values. + * @param bool $recursive If true, resolves new promises that might have been added to the stack during its own resolution. + * + * @return PromiseInterface + */ + public static function all($promises, $recursive = false) + { + $results = []; + $promise = Each::of( + $promises, + function ($value, $idx) use (&$results) { + $results[$idx] = $value; + }, + function ($reason, $idx, Promise $aggregate) { + $aggregate->reject($reason); + } + )->then(function () use (&$results) { + ksort($results); + return $results; + }); + + if (true === $recursive) { + $promise = $promise->then(function ($results) use ($recursive, &$promises) { + foreach ($promises as $promise) { + if (Is::pending($promise)) { + return self::all($promises, $recursive); + } + } + return $results; + }); + } + + return $promise; + } + + /** + * Initiate a competitive race between multiple promises or values (values + * will become immediately fulfilled promises). + * + * When count amount of promises have been fulfilled, the returned promise + * is fulfilled with an array that contains the fulfillment values of the + * winners in order of resolution. + * + * This promise is rejected with a {@see AggregateException} if the number + * of fulfilled promises is less than the desired $count. + * + * @param int $count Total number of promises. + * @param mixed $promises Promises or values. + * + * @return PromiseInterface + */ + public static function some($count, $promises) + { + $results = []; + $rejections = []; + + return Each::of( + $promises, + function ($value, $idx, PromiseInterface $p) use (&$results, $count) { + if (Is::settled($p)) { + return; + } + $results[$idx] = $value; + if (count($results) >= $count) { + $p->resolve(null); + } + }, + function ($reason) use (&$rejections) { + $rejections[] = $reason; + } + )->then( + function () use (&$results, &$rejections, $count) { + if (count($results) !== $count) { + throw new AggregateException( + 'Not enough promises to fulfill count', + $rejections + ); + } + ksort($results); + return array_values($results); + } + ); + } + + /** + * Like some(), with 1 as count. However, if the promise fulfills, the + * fulfillment value is not an array of 1 but the value directly. + * + * @param mixed $promises Promises or values. + * + * @return PromiseInterface + */ + public static function any($promises) + { + return self::some(1, $promises)->then(function ($values) { + return $values[0]; + }); + } + + /** + * Returns a promise that is fulfilled when all of the provided promises have + * been fulfilled or rejected. + * + * The returned promise is fulfilled with an array of inspection state arrays. + * + * @see inspect for the inspection state array format. + * + * @param mixed $promises Promises or values. + * + * @return PromiseInterface + */ + public static function settle($promises) + { + $results = []; + + return Each::of( + $promises, + function ($value, $idx) use (&$results) { + $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value]; + }, + function ($reason, $idx) use (&$results) { + $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason]; + } + )->then(function () use (&$results) { + ksort($results); + return $results; + }); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/functions.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/functions.php new file mode 100644 index 0000000..c03d39d --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/functions.php @@ -0,0 +1,363 @@ + + * while ($eventLoop->isRunning()) { + * GuzzleHttp\Promise\queue()->run(); + * } + * + * + * @param TaskQueueInterface $assign Optionally specify a new queue instance. + * + * @return TaskQueueInterface + * + * @deprecated queue will be removed in guzzlehttp/promises:2.0. Use Utils::queue instead. + */ +function queue(TaskQueueInterface $assign = null) +{ + return Utils::queue($assign); +} + +/** + * Adds a function to run in the task queue when it is next `run()` and returns + * a promise that is fulfilled or rejected with the result. + * + * @param callable $task Task function to run. + * + * @return PromiseInterface + * + * @deprecated task will be removed in guzzlehttp/promises:2.0. Use Utils::task instead. + */ +function task(callable $task) +{ + return Utils::task($task); +} + +/** + * Creates a promise for a value if the value is not a promise. + * + * @param mixed $value Promise or value. + * + * @return PromiseInterface + * + * @deprecated promise_for will be removed in guzzlehttp/promises:2.0. Use Create::promiseFor instead. + */ +function promise_for($value) +{ + return Create::promiseFor($value); +} + +/** + * Creates a rejected promise for a reason if the reason is not a promise. If + * the provided reason is a promise, then it is returned as-is. + * + * @param mixed $reason Promise or reason. + * + * @return PromiseInterface + * + * @deprecated rejection_for will be removed in guzzlehttp/promises:2.0. Use Create::rejectionFor instead. + */ +function rejection_for($reason) +{ + return Create::rejectionFor($reason); +} + +/** + * Create an exception for a rejected promise value. + * + * @param mixed $reason + * + * @return \Exception|\Throwable + * + * @deprecated exception_for will be removed in guzzlehttp/promises:2.0. Use Create::exceptionFor instead. + */ +function exception_for($reason) +{ + return Create::exceptionFor($reason); +} + +/** + * Returns an iterator for the given value. + * + * @param mixed $value + * + * @return \Iterator + * + * @deprecated iter_for will be removed in guzzlehttp/promises:2.0. Use Create::iterFor instead. + */ +function iter_for($value) +{ + return Create::iterFor($value); +} + +/** + * Synchronously waits on a promise to resolve and returns an inspection state + * array. + * + * Returns a state associative array containing a "state" key mapping to a + * valid promise state. If the state of the promise is "fulfilled", the array + * will contain a "value" key mapping to the fulfilled value of the promise. If + * the promise is rejected, the array will contain a "reason" key mapping to + * the rejection reason of the promise. + * + * @param PromiseInterface $promise Promise or value. + * + * @return array + * + * @deprecated inspect will be removed in guzzlehttp/promises:2.0. Use Utils::inspect instead. + */ +function inspect(PromiseInterface $promise) +{ + return Utils::inspect($promise); +} + +/** + * Waits on all of the provided promises, but does not unwrap rejected promises + * as thrown exception. + * + * Returns an array of inspection state arrays. + * + * @see inspect for the inspection state array format. + * + * @param PromiseInterface[] $promises Traversable of promises to wait upon. + * + * @return array + * + * @deprecated inspect will be removed in guzzlehttp/promises:2.0. Use Utils::inspectAll instead. + */ +function inspect_all($promises) +{ + return Utils::inspectAll($promises); +} + +/** + * Waits on all of the provided promises and returns the fulfilled values. + * + * Returns an array that contains the value of each promise (in the same order + * the promises were provided). An exception is thrown if any of the promises + * are rejected. + * + * @param iterable $promises Iterable of PromiseInterface objects to wait on. + * + * @return array + * + * @throws \Exception on error + * @throws \Throwable on error in PHP >=7 + * + * @deprecated unwrap will be removed in guzzlehttp/promises:2.0. Use Utils::unwrap instead. + */ +function unwrap($promises) +{ + return Utils::unwrap($promises); +} + +/** + * Given an array of promises, return a promise that is fulfilled when all the + * items in the array are fulfilled. + * + * The promise's fulfillment value is an array with fulfillment values at + * respective positions to the original array. If any promise in the array + * rejects, the returned promise is rejected with the rejection reason. + * + * @param mixed $promises Promises or values. + * @param bool $recursive If true, resolves new promises that might have been added to the stack during its own resolution. + * + * @return PromiseInterface + * + * @deprecated all will be removed in guzzlehttp/promises:2.0. Use Utils::all instead. + */ +function all($promises, $recursive = false) +{ + return Utils::all($promises, $recursive); +} + +/** + * Initiate a competitive race between multiple promises or values (values will + * become immediately fulfilled promises). + * + * When count amount of promises have been fulfilled, the returned promise is + * fulfilled with an array that contains the fulfillment values of the winners + * in order of resolution. + * + * This promise is rejected with a {@see AggregateException} if the number of + * fulfilled promises is less than the desired $count. + * + * @param int $count Total number of promises. + * @param mixed $promises Promises or values. + * + * @return PromiseInterface + * + * @deprecated some will be removed in guzzlehttp/promises:2.0. Use Utils::some instead. + */ +function some($count, $promises) +{ + return Utils::some($count, $promises); +} + +/** + * Like some(), with 1 as count. However, if the promise fulfills, the + * fulfillment value is not an array of 1 but the value directly. + * + * @param mixed $promises Promises or values. + * + * @return PromiseInterface + * + * @deprecated any will be removed in guzzlehttp/promises:2.0. Use Utils::any instead. + */ +function any($promises) +{ + return Utils::any($promises); +} + +/** + * Returns a promise that is fulfilled when all of the provided promises have + * been fulfilled or rejected. + * + * The returned promise is fulfilled with an array of inspection state arrays. + * + * @see inspect for the inspection state array format. + * + * @param mixed $promises Promises or values. + * + * @return PromiseInterface + * + * @deprecated settle will be removed in guzzlehttp/promises:2.0. Use Utils::settle instead. + */ +function settle($promises) +{ + return Utils::settle($promises); +} + +/** + * Given an iterator that yields promises or values, returns a promise that is + * fulfilled with a null value when the iterator has been consumed or the + * aggregate promise has been fulfilled or rejected. + * + * $onFulfilled is a function that accepts the fulfilled value, iterator index, + * and the aggregate promise. The callback can invoke any necessary side + * effects and choose to resolve or reject the aggregate if needed. + * + * $onRejected is a function that accepts the rejection reason, iterator index, + * and the aggregate promise. The callback can invoke any necessary side + * effects and choose to resolve or reject the aggregate if needed. + * + * @param mixed $iterable Iterator or array to iterate over. + * @param callable $onFulfilled + * @param callable $onRejected + * + * @return PromiseInterface + * + * @deprecated each will be removed in guzzlehttp/promises:2.0. Use Each::of instead. + */ +function each( + $iterable, + callable $onFulfilled = null, + callable $onRejected = null +) { + return Each::of($iterable, $onFulfilled, $onRejected); +} + +/** + * Like each, but only allows a certain number of outstanding promises at any + * given time. + * + * $concurrency may be an integer or a function that accepts the number of + * pending promises and returns a numeric concurrency limit value to allow for + * dynamic a concurrency size. + * + * @param mixed $iterable + * @param int|callable $concurrency + * @param callable $onFulfilled + * @param callable $onRejected + * + * @return PromiseInterface + * + * @deprecated each_limit will be removed in guzzlehttp/promises:2.0. Use Each::ofLimit instead. + */ +function each_limit( + $iterable, + $concurrency, + callable $onFulfilled = null, + callable $onRejected = null +) { + return Each::ofLimit($iterable, $concurrency, $onFulfilled, $onRejected); +} + +/** + * Like each_limit, but ensures that no promise in the given $iterable argument + * is rejected. If any promise is rejected, then the aggregate promise is + * rejected with the encountered rejection. + * + * @param mixed $iterable + * @param int|callable $concurrency + * @param callable $onFulfilled + * + * @return PromiseInterface + * + * @deprecated each_limit_all will be removed in guzzlehttp/promises:2.0. Use Each::ofLimitAll instead. + */ +function each_limit_all( + $iterable, + $concurrency, + callable $onFulfilled = null +) { + return Each::ofLimitAll($iterable, $concurrency, $onFulfilled); +} + +/** + * Returns true if a promise is fulfilled. + * + * @return bool + * + * @deprecated is_fulfilled will be removed in guzzlehttp/promises:2.0. Use Is::fulfilled instead. + */ +function is_fulfilled(PromiseInterface $promise) +{ + return Is::fulfilled($promise); +} + +/** + * Returns true if a promise is rejected. + * + * @return bool + * + * @deprecated is_rejected will be removed in guzzlehttp/promises:2.0. Use Is::rejected instead. + */ +function is_rejected(PromiseInterface $promise) +{ + return Is::rejected($promise); +} + +/** + * Returns true if a promise is fulfilled or rejected. + * + * @return bool + * + * @deprecated is_settled will be removed in guzzlehttp/promises:2.0. Use Is::settled instead. + */ +function is_settled(PromiseInterface $promise) +{ + return Is::settled($promise); +} + +/** + * Create a new coroutine. + * + * @see Coroutine + * + * @return PromiseInterface + * + * @deprecated coroutine will be removed in guzzlehttp/promises:2.0. Use Coroutine::of instead. + */ +function coroutine(callable $generatorFn) +{ + return Coroutine::of($generatorFn); +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/promises/src/functions_include.php b/phpTest_20/componente/vendor/guzzlehttp/promises/src/functions_include.php new file mode 100644 index 0000000..34cd171 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/promises/src/functions_include.php @@ -0,0 +1,6 @@ +withPath('foo')->withHost('example.com')` will throw an exception + because the path of a URI with an authority must start with a slash "/" or be empty + - `(new Uri())->withScheme('http')` will return `'http://localhost'` + +### Deprecated + +- `Uri::resolve` in favor of `UriResolver::resolve` +- `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments` + +### Fixed + +- `Stream::read` when length parameter <= 0. +- `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory. +- `ServerRequest::getUriFromGlobals` when `Host` header contains port. +- Compatibility of URIs with `file` scheme and empty host. + + +## [1.3.1] - 2016-06-25 + +### Fixed + +- `Uri::__toString` for network path references, e.g. `//example.org`. +- Missing lowercase normalization for host. +- Handling of URI components in case they are `'0'` in a lot of places, + e.g. as a user info password. +- `Uri::withAddedHeader` to correctly merge headers with different case. +- Trimming of header values in `Uri::withAddedHeader`. Header values may + be surrounded by whitespace which should be ignored according to RFC 7230 + Section 3.2.4. This does not apply to header names. +- `Uri::withAddedHeader` with an array of header values. +- `Uri::resolve` when base path has no slash and handling of fragment. +- Handling of encoding in `Uri::with(out)QueryValue` so one can pass the + key/value both in encoded as well as decoded form to those methods. This is + consistent with withPath, withQuery etc. +- `ServerRequest::withoutAttribute` when attribute value is null. + + +## [1.3.0] - 2016-04-13 + +### Added + +- Remaining interfaces needed for full PSR7 compatibility + (ServerRequestInterface, UploadedFileInterface, etc.). +- Support for stream_for from scalars. + +### Changed + +- Can now extend Uri. + +### Fixed +- A bug in validating request methods by making it more permissive. + + +## [1.2.3] - 2016-02-18 + +### Fixed + +- Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote + streams, which can sometimes return fewer bytes than requested with `fread`. +- Handling of gzipped responses with FNAME headers. + + +## [1.2.2] - 2016-01-22 + +### Added + +- Support for URIs without any authority. +- Support for HTTP 451 'Unavailable For Legal Reasons.' +- Support for using '0' as a filename. +- Support for including non-standard ports in Host headers. + + +## [1.2.1] - 2015-11-02 + +### Changes + +- Now supporting negative offsets when seeking to SEEK_END. + + +## [1.2.0] - 2015-08-15 + +### Changed + +- Body as `"0"` is now properly added to a response. +- Now allowing forward seeking in CachingStream. +- Now properly parsing HTTP requests that contain proxy targets in + `parse_request`. +- functions.php is now conditionally required. +- user-info is no longer dropped when resolving URIs. + + +## [1.1.0] - 2015-06-24 + +### Changed + +- URIs can now be relative. +- `multipart/form-data` headers are now overridden case-insensitively. +- URI paths no longer encode the following characters because they are allowed + in URIs: "(", ")", "*", "!", "'" +- A port is no longer added to a URI when the scheme is missing and no port is + present. + + +## 1.0.0 - 2015-05-19 + +Initial release. + +Currently unsupported: + +- `Psr\Http\Message\ServerRequestInterface` +- `Psr\Http\Message\UploadedFileInterface` + + + +[1.6.0]: https://github.com/guzzle/psr7/compare/1.5.2...1.6.0 +[1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2 +[1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1 +[1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0 +[1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2 +[1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1 +[1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0 +[1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1 +[1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0 +[1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3 +[1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2 +[1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1 +[1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0 +[1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0 diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/LICENSE b/phpTest_20/componente/vendor/guzzlehttp/psr7/LICENSE new file mode 100644 index 0000000..51c7ec8 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/LICENSE @@ -0,0 +1,26 @@ +The MIT License (MIT) + +Copyright (c) 2015 Michael Dowling +Copyright (c) 2015 Márk Sági-Kazár +Copyright (c) 2015 Graham Campbell +Copyright (c) 2016 Tobias Schultze +Copyright (c) 2016 George Mponos +Copyright (c) 2018 Tobias Nyholm + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/README.md b/phpTest_20/componente/vendor/guzzlehttp/psr7/README.md new file mode 100644 index 0000000..edde401 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/README.md @@ -0,0 +1,840 @@ +# PSR-7 Message Implementation + +This repository contains a full [PSR-7](http://www.php-fig.org/psr/psr-7/) +message implementation, several stream decorators, and some helpful +functionality like query string parsing. + +![CI](https://github.com/guzzle/psr7/workflows/CI/badge.svg) +![Static analysis](https://github.com/guzzle/psr7/workflows/Static%20analysis/badge.svg) + + +# Stream implementation + +This package comes with a number of stream implementations and stream +decorators. + + +## AppendStream + +`GuzzleHttp\Psr7\AppendStream` + +Reads from multiple streams, one after the other. + +```php +use GuzzleHttp\Psr7; + +$a = Psr7\Utils::streamFor('abc, '); +$b = Psr7\Utils::streamFor('123.'); +$composed = new Psr7\AppendStream([$a, $b]); + +$composed->addStream(Psr7\Utils::streamFor(' Above all listen to me')); + +echo $composed; // abc, 123. Above all listen to me. +``` + + +## BufferStream + +`GuzzleHttp\Psr7\BufferStream` + +Provides a buffer stream that can be written to fill a buffer, and read +from to remove bytes from the buffer. + +This stream returns a "hwm" metadata value that tells upstream consumers +what the configured high water mark of the stream is, or the maximum +preferred size of the buffer. + +```php +use GuzzleHttp\Psr7; + +// When more than 1024 bytes are in the buffer, it will begin returning +// false to writes. This is an indication that writers should slow down. +$buffer = new Psr7\BufferStream(1024); +``` + + +## CachingStream + +The CachingStream is used to allow seeking over previously read bytes on +non-seekable streams. This can be useful when transferring a non-seekable +entity body fails due to needing to rewind the stream (for example, resulting +from a redirect). Data that is read from the remote stream will be buffered in +a PHP temp stream so that previously read bytes are cached first in memory, +then on disk. + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor(fopen('http://www.google.com', 'r')); +$stream = new Psr7\CachingStream($original); + +$stream->read(1024); +echo $stream->tell(); +// 1024 + +$stream->seek(0); +echo $stream->tell(); +// 0 +``` + + +## DroppingStream + +`GuzzleHttp\Psr7\DroppingStream` + +Stream decorator that begins dropping data once the size of the underlying +stream becomes too full. + +```php +use GuzzleHttp\Psr7; + +// Create an empty stream +$stream = Psr7\Utils::streamFor(); + +// Start dropping data when the stream has more than 10 bytes +$dropping = new Psr7\DroppingStream($stream, 10); + +$dropping->write('01234567890123456789'); +echo $stream; // 0123456789 +``` + + +## FnStream + +`GuzzleHttp\Psr7\FnStream` + +Compose stream implementations based on a hash of functions. + +Allows for easy testing and extension of a provided stream without needing +to create a concrete class for a simple extension point. + +```php + +use GuzzleHttp\Psr7; + +$stream = Psr7\Utils::streamFor('hi'); +$fnStream = Psr7\FnStream::decorate($stream, [ + 'rewind' => function () use ($stream) { + echo 'About to rewind - '; + $stream->rewind(); + echo 'rewound!'; + } +]); + +$fnStream->rewind(); +// Outputs: About to rewind - rewound! +``` + + +## InflateStream + +`GuzzleHttp\Psr7\InflateStream` + +Uses PHP's zlib.inflate filter to inflate zlib (HTTP deflate, RFC1950) or gzipped (RFC1952) content. + +This stream decorator converts the provided stream to a PHP stream resource, +then appends the zlib.inflate filter. The stream is then converted back +to a Guzzle stream resource to be used as a Guzzle stream. + + +## LazyOpenStream + +`GuzzleHttp\Psr7\LazyOpenStream` + +Lazily reads or writes to a file that is opened only after an IO operation +take place on the stream. + +```php +use GuzzleHttp\Psr7; + +$stream = new Psr7\LazyOpenStream('/path/to/file', 'r'); +// The file has not yet been opened... + +echo $stream->read(10); +// The file is opened and read from only when needed. +``` + + +## LimitStream + +`GuzzleHttp\Psr7\LimitStream` + +LimitStream can be used to read a subset or slice of an existing stream object. +This can be useful for breaking a large file into smaller pieces to be sent in +chunks (e.g. Amazon S3's multipart upload API). + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor(fopen('/tmp/test.txt', 'r+')); +echo $original->getSize(); +// >>> 1048576 + +// Limit the size of the body to 1024 bytes and start reading from byte 2048 +$stream = new Psr7\LimitStream($original, 1024, 2048); +echo $stream->getSize(); +// >>> 1024 +echo $stream->tell(); +// >>> 0 +``` + + +## MultipartStream + +`GuzzleHttp\Psr7\MultipartStream` + +Stream that when read returns bytes for a streaming multipart or +multipart/form-data stream. + + +## NoSeekStream + +`GuzzleHttp\Psr7\NoSeekStream` + +NoSeekStream wraps a stream and does not allow seeking. + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor('foo'); +$noSeek = new Psr7\NoSeekStream($original); + +echo $noSeek->read(3); +// foo +var_export($noSeek->isSeekable()); +// false +$noSeek->seek(0); +var_export($noSeek->read(3)); +// NULL +``` + + +## PumpStream + +`GuzzleHttp\Psr7\PumpStream` + +Provides a read only stream that pumps data from a PHP callable. + +When invoking the provided callable, the PumpStream will pass the amount of +data requested to read to the callable. The callable can choose to ignore +this value and return fewer or more bytes than requested. Any extra data +returned by the provided callable is buffered internally until drained using +the read() function of the PumpStream. The provided callable MUST return +false when there is no more data to read. + + +## Implementing stream decorators + +Creating a stream decorator is very easy thanks to the +`GuzzleHttp\Psr7\StreamDecoratorTrait`. This trait provides methods that +implement `Psr\Http\Message\StreamInterface` by proxying to an underlying +stream. Just `use` the `StreamDecoratorTrait` and implement your custom +methods. + +For example, let's say we wanted to call a specific function each time the last +byte is read from a stream. This could be implemented by overriding the +`read()` method. + +```php +use Psr\Http\Message\StreamInterface; +use GuzzleHttp\Psr7\StreamDecoratorTrait; + +class EofCallbackStream implements StreamInterface +{ + use StreamDecoratorTrait; + + private $callback; + + public function __construct(StreamInterface $stream, callable $cb) + { + $this->stream = $stream; + $this->callback = $cb; + } + + public function read($length) + { + $result = $this->stream->read($length); + + // Invoke the callback when EOF is hit. + if ($this->eof()) { + call_user_func($this->callback); + } + + return $result; + } +} +``` + +This decorator could be added to any existing stream and used like so: + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor('foo'); + +$eofStream = new EofCallbackStream($original, function () { + echo 'EOF!'; +}); + +$eofStream->read(2); +$eofStream->read(1); +// echoes "EOF!" +$eofStream->seek(0); +$eofStream->read(3); +// echoes "EOF!" +``` + + +## PHP StreamWrapper + +You can use the `GuzzleHttp\Psr7\StreamWrapper` class if you need to use a +PSR-7 stream as a PHP stream resource. + +Use the `GuzzleHttp\Psr7\StreamWrapper::getResource()` method to create a PHP +stream from a PSR-7 stream. + +```php +use GuzzleHttp\Psr7\StreamWrapper; + +$stream = GuzzleHttp\Psr7\Utils::streamFor('hello!'); +$resource = StreamWrapper::getResource($stream); +echo fread($resource, 6); // outputs hello! +``` + + +# Static API + +There are various static methods available under the `GuzzleHttp\Psr7` namespace. + + +## `GuzzleHttp\Psr7\Message::toString` + +`public static function toString(MessageInterface $message): string` + +Returns the string representation of an HTTP message. + +```php +$request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com'); +echo GuzzleHttp\Psr7\Message::toString($request); +``` + + +## `GuzzleHttp\Psr7\Message::bodySummary` + +`public static function bodySummary(MessageInterface $message, int $truncateAt = 120): string|null` + +Get a short summary of the message body. + +Will return `null` if the response is not printable. + + +## `GuzzleHttp\Psr7\Message::rewindBody` + +`public static function rewindBody(MessageInterface $message): void` + +Attempts to rewind a message body and throws an exception on failure. + +The body of the message will only be rewound if a call to `tell()` +returns a value other than `0`. + + +## `GuzzleHttp\Psr7\Message::parseMessage` + +`public static function parseMessage(string $message): array` + +Parses an HTTP message into an associative array. + +The array contains the "start-line" key containing the start line of +the message, "headers" key containing an associative array of header +array values, and a "body" key containing the body of the message. + + +## `GuzzleHttp\Psr7\Message::parseRequestUri` + +`public static function parseRequestUri(string $path, array $headers): string` + +Constructs a URI for an HTTP request message. + + +## `GuzzleHttp\Psr7\Message::parseRequest` + +`public static function parseRequest(string $message): Request` + +Parses a request message string into a request object. + + +## `GuzzleHttp\Psr7\Message::parseResponse` + +`public static function parseResponse(string $message): Response` + +Parses a response message string into a response object. + + +## `GuzzleHttp\Psr7\Header::parse` + +`public static function parse(string|array $header): array` + +Parse an array of header values containing ";" separated data into an +array of associative arrays representing the header key value pair data +of the header. When a parameter does not contain a value, but just +contains a key, this function will inject a key with a '' string value. + + +## `GuzzleHttp\Psr7\Header::normalize` + +`public static function normalize(string|array $header): array` + +Converts an array of header values that may contain comma separated +headers into an array of headers with no comma separated values. + + +## `GuzzleHttp\Psr7\Query::parse` + +`public static function parse(string $str, int|bool $urlEncoding = true): array` + +Parse a query string into an associative array. + +If multiple values are found for the same key, the value of that key +value pair will become an array. This function does not parse nested +PHP style arrays into an associative array (e.g., `foo[a]=1&foo[b]=2` +will be parsed into `['foo[a]' => '1', 'foo[b]' => '2'])`. + + +## `GuzzleHttp\Psr7\Query::build` + +`public static function build(array $params, int|false $encoding = PHP_QUERY_RFC3986): string` + +Build a query string from an array of key value pairs. + +This function can use the return value of `parse()` to build a query +string. This function does not modify the provided keys when an array is +encountered (like `http_build_query()` would). + + +## `GuzzleHttp\Psr7\Utils::caselessRemove` + +`public static function caselessRemove(iterable $keys, $keys, array $data): array` + +Remove the items given by the keys, case insensitively from the data. + + +## `GuzzleHttp\Psr7\Utils::copyToStream` + +`public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = -1): void` + +Copy the contents of a stream into another stream until the given number +of bytes have been read. + + +## `GuzzleHttp\Psr7\Utils::copyToString` + +`public static function copyToString(StreamInterface $stream, int $maxLen = -1): string` + +Copy the contents of a stream into a string until the given number of +bytes have been read. + + +## `GuzzleHttp\Psr7\Utils::hash` + +`public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string` + +Calculate a hash of a stream. + +This method reads the entire stream to calculate a rolling hash, based on +PHP's `hash_init` functions. + + +## `GuzzleHttp\Psr7\Utils::modifyRequest` + +`public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface` + +Clone and modify a request with the given changes. + +This method is useful for reducing the number of clones needed to mutate +a message. + +- method: (string) Changes the HTTP method. +- set_headers: (array) Sets the given headers. +- remove_headers: (array) Remove the given headers. +- body: (mixed) Sets the given body. +- uri: (UriInterface) Set the URI. +- query: (string) Set the query string value of the URI. +- version: (string) Set the protocol version. + + +## `GuzzleHttp\Psr7\Utils::readLine` + +`public static function readLine(StreamInterface $stream, int $maxLength = null): string` + +Read a line from the stream up to the maximum allowed buffer length. + + +## `GuzzleHttp\Psr7\Utils::streamFor` + +`public static function streamFor(resource|string|null|int|float|bool|StreamInterface|callable|\Iterator $resource = '', array $options = []): StreamInterface` + +Create a new stream based on the input type. + +Options is an associative array that can contain the following keys: + +- metadata: Array of custom metadata. +- size: Size of the stream. + +This method accepts the following `$resource` types: + +- `Psr\Http\Message\StreamInterface`: Returns the value as-is. +- `string`: Creates a stream object that uses the given string as the contents. +- `resource`: Creates a stream object that wraps the given PHP stream resource. +- `Iterator`: If the provided value implements `Iterator`, then a read-only + stream object will be created that wraps the given iterable. Each time the + stream is read from, data from the iterator will fill a buffer and will be + continuously called until the buffer is equal to the requested read size. + Subsequent read calls will first read from the buffer and then call `next` + on the underlying iterator until it is exhausted. +- `object` with `__toString()`: If the object has the `__toString()` method, + the object will be cast to a string and then a stream will be returned that + uses the string value. +- `NULL`: When `null` is passed, an empty stream object is returned. +- `callable` When a callable is passed, a read-only stream object will be + created that invokes the given callable. The callable is invoked with the + number of suggested bytes to read. The callable can return any number of + bytes, but MUST return `false` when there is no more data to return. The + stream object that wraps the callable will invoke the callable until the + number of requested bytes are available. Any additional bytes will be + buffered and used in subsequent reads. + +```php +$stream = GuzzleHttp\Psr7\Utils::streamFor('foo'); +$stream = GuzzleHttp\Psr7\Utils::streamFor(fopen('/path/to/file', 'r')); + +$generator = function ($bytes) { + for ($i = 0; $i < $bytes; $i++) { + yield ' '; + } +} + +$stream = GuzzleHttp\Psr7\Utils::streamFor($generator(100)); +``` + + +## `GuzzleHttp\Psr7\Utils::tryFopen` + +`public static function tryFopen(string $filename, string $mode): resource` + +Safely opens a PHP stream resource using a filename. + +When fopen fails, PHP normally raises a warning. This function adds an +error handler that checks for errors and throws an exception instead. + + +## `GuzzleHttp\Psr7\Utils::tryGetContents` + +`public static function tryGetContents(resource $stream): string` + +Safely gets the contents of a given stream. + +When stream_get_contents fails, PHP normally raises a warning. This +function adds an error handler that checks for errors and throws an +exception instead. + + +## `GuzzleHttp\Psr7\Utils::uriFor` + +`public static function uriFor(string|UriInterface $uri): UriInterface` + +Returns a UriInterface for the given value. + +This function accepts a string or UriInterface and returns a +UriInterface for the given value. If the value is already a +UriInterface, it is returned as-is. + + +## `GuzzleHttp\Psr7\MimeType::fromFilename` + +`public static function fromFilename(string $filename): string|null` + +Determines the mimetype of a file by looking at its extension. + + +## `GuzzleHttp\Psr7\MimeType::fromExtension` + +`public static function fromExtension(string $extension): string|null` + +Maps a file extensions to a mimetype. + + +## Upgrading from Function API + +The static API was first introduced in 1.7.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API was removed in 2.0.0. A migration table has been provided here for your convenience: + +| Original Function | Replacement Method | +|----------------|----------------| +| `str` | `Message::toString` | +| `uri_for` | `Utils::uriFor` | +| `stream_for` | `Utils::streamFor` | +| `parse_header` | `Header::parse` | +| `normalize_header` | `Header::normalize` | +| `modify_request` | `Utils::modifyRequest` | +| `rewind_body` | `Message::rewindBody` | +| `try_fopen` | `Utils::tryFopen` | +| `copy_to_string` | `Utils::copyToString` | +| `copy_to_stream` | `Utils::copyToStream` | +| `hash` | `Utils::hash` | +| `readline` | `Utils::readLine` | +| `parse_request` | `Message::parseRequest` | +| `parse_response` | `Message::parseResponse` | +| `parse_query` | `Query::parse` | +| `build_query` | `Query::build` | +| `mimetype_from_filename` | `MimeType::fromFilename` | +| `mimetype_from_extension` | `MimeType::fromExtension` | +| `_parse_message` | `Message::parseMessage` | +| `_parse_request_uri` | `Message::parseRequestUri` | +| `get_message_body_summary` | `Message::bodySummary` | +| `_caseless_remove` | `Utils::caselessRemove` | + + +# Additional URI Methods + +Aside from the standard `Psr\Http\Message\UriInterface` implementation in form of the `GuzzleHttp\Psr7\Uri` class, +this library also provides additional functionality when working with URIs as static methods. + +## URI Types + +An instance of `Psr\Http\Message\UriInterface` can either be an absolute URI or a relative reference. +An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI, +the base URI. Relative references can be divided into several forms according to +[RFC 3986 Section 4.2](https://tools.ietf.org/html/rfc3986#section-4.2): + +- network-path references, e.g. `//example.com/path` +- absolute-path references, e.g. `/path` +- relative-path references, e.g. `subpath` + +The following methods can be used to identify the type of the URI. + +### `GuzzleHttp\Psr7\Uri::isAbsolute` + +`public static function isAbsolute(UriInterface $uri): bool` + +Whether the URI is absolute, i.e. it has a scheme. + +### `GuzzleHttp\Psr7\Uri::isNetworkPathReference` + +`public static function isNetworkPathReference(UriInterface $uri): bool` + +Whether the URI is a network-path reference. A relative reference that begins with two slash characters is +termed an network-path reference. + +### `GuzzleHttp\Psr7\Uri::isAbsolutePathReference` + +`public static function isAbsolutePathReference(UriInterface $uri): bool` + +Whether the URI is a absolute-path reference. A relative reference that begins with a single slash character is +termed an absolute-path reference. + +### `GuzzleHttp\Psr7\Uri::isRelativePathReference` + +`public static function isRelativePathReference(UriInterface $uri): bool` + +Whether the URI is a relative-path reference. A relative reference that does not begin with a slash character is +termed a relative-path reference. + +### `GuzzleHttp\Psr7\Uri::isSameDocumentReference` + +`public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool` + +Whether the URI is a same-document reference. A same-document reference refers to a URI that is, aside from its +fragment component, identical to the base URI. When no base URI is given, only an empty URI reference +(apart from its fragment) is considered a same-document reference. + +## URI Components + +Additional methods to work with URI components. + +### `GuzzleHttp\Psr7\Uri::isDefaultPort` + +`public static function isDefaultPort(UriInterface $uri): bool` + +Whether the URI has the default port of the current scheme. `Psr\Http\Message\UriInterface::getPort` may return null +or the standard port. This method can be used independently of the implementation. + +### `GuzzleHttp\Psr7\Uri::composeComponents` + +`public static function composeComponents($scheme, $authority, $path, $query, $fragment): string` + +Composes a URI reference string from its various components according to +[RFC 3986 Section 5.3](https://tools.ietf.org/html/rfc3986#section-5.3). Usually this method does not need to be called +manually but instead is used indirectly via `Psr\Http\Message\UriInterface::__toString`. + +### `GuzzleHttp\Psr7\Uri::fromParts` + +`public static function fromParts(array $parts): UriInterface` + +Creates a URI from a hash of [`parse_url`](http://php.net/manual/en/function.parse-url.php) components. + + +### `GuzzleHttp\Psr7\Uri::withQueryValue` + +`public static function withQueryValue(UriInterface $uri, $key, $value): UriInterface` + +Creates a new URI with a specific query string value. Any existing query string values that exactly match the +provided key are removed and replaced with the given key value pair. A value of null will set the query string +key without a value, e.g. "key" instead of "key=value". + +### `GuzzleHttp\Psr7\Uri::withQueryValues` + +`public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface` + +Creates a new URI with multiple query string values. It has the same behavior as `withQueryValue()` but for an +associative array of key => value. + +### `GuzzleHttp\Psr7\Uri::withoutQueryValue` + +`public static function withoutQueryValue(UriInterface $uri, $key): UriInterface` + +Creates a new URI with a specific query string value removed. Any existing query string values that exactly match the +provided key are removed. + +## Reference Resolution + +`GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base URI according +to [RFC 3986 Section 5](https://tools.ietf.org/html/rfc3986#section-5). This is for example also what web browsers +do when resolving a link in a website based on the current request URI. + +### `GuzzleHttp\Psr7\UriResolver::resolve` + +`public static function resolve(UriInterface $base, UriInterface $rel): UriInterface` + +Converts the relative URI into a new URI that is resolved against the base URI. + +### `GuzzleHttp\Psr7\UriResolver::removeDotSegments` + +`public static function removeDotSegments(string $path): string` + +Removes dot segments from a path and returns the new path according to +[RFC 3986 Section 5.2.4](https://tools.ietf.org/html/rfc3986#section-5.2.4). + +### `GuzzleHttp\Psr7\UriResolver::relativize` + +`public static function relativize(UriInterface $base, UriInterface $target): UriInterface` + +Returns the target URI as a relative reference from the base URI. This method is the counterpart to resolve(): + +```php +(string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) +``` + +One use-case is to use the current request URI as base URI and then generate relative links in your documents +to reduce the document size or offer self-contained downloadable document archives. + +```php +$base = new Uri('http://example.com/a/b/'); +echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. +echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. +echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. +echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. +``` + +## Normalization and Comparison + +`GuzzleHttp\Psr7\UriNormalizer` provides methods to normalize and compare URIs according to +[RFC 3986 Section 6](https://tools.ietf.org/html/rfc3986#section-6). + +### `GuzzleHttp\Psr7\UriNormalizer::normalize` + +`public static function normalize(UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS): UriInterface` + +Returns a normalized URI. The scheme and host component are already normalized to lowercase per PSR-7 UriInterface. +This methods adds additional normalizations that can be configured with the `$flags` parameter which is a bitmask +of normalizations to apply. The following normalizations are available: + +- `UriNormalizer::PRESERVING_NORMALIZATIONS` + + Default normalizations which only include the ones that preserve semantics. + +- `UriNormalizer::CAPITALIZE_PERCENT_ENCODING` + + All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized. + + Example: `http://example.org/a%c2%b1b` → `http://example.org/a%C2%B1b` + +- `UriNormalizer::DECODE_UNRESERVED_CHARACTERS` + + Decodes percent-encoded octets of unreserved characters. For consistency, percent-encoded octets in the ranges of + ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should + not be created by URI producers and, when found in a URI, should be decoded to their corresponding unreserved + characters by URI normalizers. + + Example: `http://example.org/%7Eusern%61me/` → `http://example.org/~username/` + +- `UriNormalizer::CONVERT_EMPTY_PATH` + + Converts the empty path to "/" for http and https URIs. + + Example: `http://example.org` → `http://example.org/` + +- `UriNormalizer::REMOVE_DEFAULT_HOST` + + Removes the default host of the given URI scheme from the URI. Only the "file" scheme defines the default host + "localhost". All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile` are equivalent according to + RFC 3986. + + Example: `file://localhost/myfile` → `file:///myfile` + +- `UriNormalizer::REMOVE_DEFAULT_PORT` + + Removes the default port of the given URI scheme from the URI. + + Example: `http://example.org:80/` → `http://example.org/` + +- `UriNormalizer::REMOVE_DOT_SEGMENTS` + + Removes unnecessary dot-segments. Dot-segments in relative-path references are not removed as it would + change the semantics of the URI reference. + + Example: `http://example.org/../a/b/../c/./d.html` → `http://example.org/a/c/d.html` + +- `UriNormalizer::REMOVE_DUPLICATE_SLASHES` + + Paths which include two or more adjacent slashes are converted to one. Webservers usually ignore duplicate slashes + and treat those URIs equivalent. But in theory those URIs do not need to be equivalent. So this normalization + may change the semantics. Encoded slashes (%2F) are not removed. + + Example: `http://example.org//foo///bar.html` → `http://example.org/foo/bar.html` + +- `UriNormalizer::SORT_QUERY_PARAMETERS` + + Sort query parameters with their values in alphabetical order. However, the order of parameters in a URI may be + significant (this is not defined by the standard). So this normalization is not safe and may change the semantics + of the URI. + + Example: `?lang=en&article=fred` → `?article=fred&lang=en` + +### `GuzzleHttp\Psr7\UriNormalizer::isEquivalent` + +`public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS): bool` + +Whether two URIs can be considered equivalent. Both URIs are normalized automatically before comparison with the given +`$normalizations` bitmask. The method also accepts relative URI references and returns true when they are equivalent. +This of course assumes they will be resolved against the same base URI. If this is not the case, determination of +equivalence or difference of relative references does not mean anything. + +## Version Guidance + +| Version | Status | PHP Version | +|---------|----------------|------------------| +| 1.x | Security fixes | >= 5.4, < 8.2 | +| 2.x | Latest | ^7.2.5 \|\| ^8.0 | + +## Security + +If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/psr7/security/policy) for more information. + +## License + +Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. + +## For Enterprise + +Available as part of the Tidelift Subscription + +The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-psr7?utm_source=packagist-guzzlehttp-psr7&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/composer.json b/phpTest_20/componente/vendor/guzzlehttp/psr7/composer.json new file mode 100644 index 0000000..e6d4451 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/composer.json @@ -0,0 +1,92 @@ +{ + "name": "guzzlehttp/psr7", + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "request", + "response", + "message", + "stream", + "http", + "uri", + "url", + "psr-7" + ], + "license": "MIT", + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.8 || ^9.3.10" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "GuzzleHttp\\Tests\\Psr7\\": "tests/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "config": { + "allow-plugins": { + "bamarni/composer-bin-plugin": true + }, + "preferred-install": "dist", + "sort-packages": true + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/AppendStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/AppendStream.php new file mode 100644 index 0000000..967925f --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/AppendStream.php @@ -0,0 +1,249 @@ +addStream($stream); + } + } + + public function __toString(): string + { + try { + $this->rewind(); + return $this->getContents(); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + return ''; + } + } + + /** + * Add a stream to the AppendStream + * + * @param StreamInterface $stream Stream to append. Must be readable. + * + * @throws \InvalidArgumentException if the stream is not readable + */ + public function addStream(StreamInterface $stream): void + { + if (!$stream->isReadable()) { + throw new \InvalidArgumentException('Each stream must be readable'); + } + + // The stream is only seekable if all streams are seekable + if (!$stream->isSeekable()) { + $this->seekable = false; + } + + $this->streams[] = $stream; + } + + public function getContents(): string + { + return Utils::copyToString($this); + } + + /** + * Closes each attached stream. + */ + public function close(): void + { + $this->pos = $this->current = 0; + $this->seekable = true; + + foreach ($this->streams as $stream) { + $stream->close(); + } + + $this->streams = []; + } + + /** + * Detaches each attached stream. + * + * Returns null as it's not clear which underlying stream resource to return. + */ + public function detach() + { + $this->pos = $this->current = 0; + $this->seekable = true; + + foreach ($this->streams as $stream) { + $stream->detach(); + } + + $this->streams = []; + + return null; + } + + public function tell(): int + { + return $this->pos; + } + + /** + * Tries to calculate the size by adding the size of each stream. + * + * If any of the streams do not return a valid number, then the size of the + * append stream cannot be determined and null is returned. + */ + public function getSize(): ?int + { + $size = 0; + + foreach ($this->streams as $stream) { + $s = $stream->getSize(); + if ($s === null) { + return null; + } + $size += $s; + } + + return $size; + } + + public function eof(): bool + { + return !$this->streams || + ($this->current >= count($this->streams) - 1 && + $this->streams[$this->current]->eof()); + } + + public function rewind(): void + { + $this->seek(0); + } + + /** + * Attempts to seek to the given position. Only supports SEEK_SET. + */ + public function seek($offset, $whence = SEEK_SET): void + { + if (!$this->seekable) { + throw new \RuntimeException('This AppendStream is not seekable'); + } elseif ($whence !== SEEK_SET) { + throw new \RuntimeException('The AppendStream can only seek with SEEK_SET'); + } + + $this->pos = $this->current = 0; + + // Rewind each stream + foreach ($this->streams as $i => $stream) { + try { + $stream->rewind(); + } catch (\Exception $e) { + throw new \RuntimeException('Unable to seek stream ' + . $i . ' of the AppendStream', 0, $e); + } + } + + // Seek to the actual position by reading from each stream + while ($this->pos < $offset && !$this->eof()) { + $result = $this->read(min(8096, $offset - $this->pos)); + if ($result === '') { + break; + } + } + } + + /** + * Reads from all of the appended streams until the length is met or EOF. + */ + public function read($length): string + { + $buffer = ''; + $total = count($this->streams) - 1; + $remaining = $length; + $progressToNext = false; + + while ($remaining > 0) { + + // Progress to the next stream if needed. + if ($progressToNext || $this->streams[$this->current]->eof()) { + $progressToNext = false; + if ($this->current === $total) { + break; + } + $this->current++; + } + + $result = $this->streams[$this->current]->read($remaining); + + if ($result === '') { + $progressToNext = true; + continue; + } + + $buffer .= $result; + $remaining = $length - strlen($buffer); + } + + $this->pos += strlen($buffer); + + return $buffer; + } + + public function isReadable(): bool + { + return true; + } + + public function isWritable(): bool + { + return false; + } + + public function isSeekable(): bool + { + return $this->seekable; + } + + public function write($string): int + { + throw new \RuntimeException('Cannot write to an AppendStream'); + } + + /** + * {@inheritdoc} + * + * @return mixed + */ + public function getMetadata($key = null) + { + return $key ? null : []; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/BufferStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/BufferStream.php new file mode 100644 index 0000000..21be8c0 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/BufferStream.php @@ -0,0 +1,149 @@ +hwm = $hwm; + } + + public function __toString(): string + { + return $this->getContents(); + } + + public function getContents(): string + { + $buffer = $this->buffer; + $this->buffer = ''; + + return $buffer; + } + + public function close(): void + { + $this->buffer = ''; + } + + public function detach() + { + $this->close(); + + return null; + } + + public function getSize(): ?int + { + return strlen($this->buffer); + } + + public function isReadable(): bool + { + return true; + } + + public function isWritable(): bool + { + return true; + } + + public function isSeekable(): bool + { + return false; + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + throw new \RuntimeException('Cannot seek a BufferStream'); + } + + public function eof(): bool + { + return strlen($this->buffer) === 0; + } + + public function tell(): int + { + throw new \RuntimeException('Cannot determine the position of a BufferStream'); + } + + /** + * Reads data from the buffer. + */ + public function read($length): string + { + $currentLength = strlen($this->buffer); + + if ($length >= $currentLength) { + // No need to slice the buffer because we don't have enough data. + $result = $this->buffer; + $this->buffer = ''; + } else { + // Slice up the result to provide a subset of the buffer. + $result = substr($this->buffer, 0, $length); + $this->buffer = substr($this->buffer, $length); + } + + return $result; + } + + /** + * Writes data to the buffer. + */ + public function write($string): int + { + $this->buffer .= $string; + + if (strlen($this->buffer) >= $this->hwm) { + return 0; + } + + return strlen($string); + } + + /** + * {@inheritdoc} + * + * @return mixed + */ + public function getMetadata($key = null) + { + if ($key === 'hwm') { + return $this->hwm; + } + + return $key ? null : []; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/CachingStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/CachingStream.php new file mode 100644 index 0000000..7a70ee9 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/CachingStream.php @@ -0,0 +1,148 @@ +remoteStream = $stream; + $this->stream = $target ?: new Stream(Utils::tryFopen('php://temp', 'r+')); + } + + public function getSize(): ?int + { + $remoteSize = $this->remoteStream->getSize(); + + if (null === $remoteSize) { + return null; + } + + return max($this->stream->getSize(), $remoteSize); + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + if ($whence === SEEK_SET) { + $byte = $offset; + } elseif ($whence === SEEK_CUR) { + $byte = $offset + $this->tell(); + } elseif ($whence === SEEK_END) { + $size = $this->remoteStream->getSize(); + if ($size === null) { + $size = $this->cacheEntireStream(); + } + $byte = $size + $offset; + } else { + throw new \InvalidArgumentException('Invalid whence'); + } + + $diff = $byte - $this->stream->getSize(); + + if ($diff > 0) { + // Read the remoteStream until we have read in at least the amount + // of bytes requested, or we reach the end of the file. + while ($diff > 0 && !$this->remoteStream->eof()) { + $this->read($diff); + $diff = $byte - $this->stream->getSize(); + } + } else { + // We can just do a normal seek since we've already seen this byte. + $this->stream->seek($byte); + } + } + + public function read($length): string + { + // Perform a regular read on any previously read data from the buffer + $data = $this->stream->read($length); + $remaining = $length - strlen($data); + + // More data was requested so read from the remote stream + if ($remaining) { + // If data was written to the buffer in a position that would have + // been filled from the remote stream, then we must skip bytes on + // the remote stream to emulate overwriting bytes from that + // position. This mimics the behavior of other PHP stream wrappers. + $remoteData = $this->remoteStream->read( + $remaining + $this->skipReadBytes + ); + + if ($this->skipReadBytes) { + $len = strlen($remoteData); + $remoteData = substr($remoteData, $this->skipReadBytes); + $this->skipReadBytes = max(0, $this->skipReadBytes - $len); + } + + $data .= $remoteData; + $this->stream->write($remoteData); + } + + return $data; + } + + public function write($string): int + { + // When appending to the end of the currently read stream, you'll want + // to skip bytes from being read from the remote stream to emulate + // other stream wrappers. Basically replacing bytes of data of a fixed + // length. + $overflow = (strlen($string) + $this->tell()) - $this->remoteStream->tell(); + if ($overflow > 0) { + $this->skipReadBytes += $overflow; + } + + return $this->stream->write($string); + } + + public function eof(): bool + { + return $this->stream->eof() && $this->remoteStream->eof(); + } + + /** + * Close both the remote stream and buffer stream + */ + public function close(): void + { + $this->remoteStream->close(); + $this->stream->close(); + } + + private function cacheEntireStream(): int + { + $target = new FnStream(['write' => 'strlen']); + Utils::copyToStream($this, $target); + + return $this->tell(); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/DroppingStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/DroppingStream.php new file mode 100644 index 0000000..d78070a --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/DroppingStream.php @@ -0,0 +1,46 @@ +stream = $stream; + $this->maxLength = $maxLength; + } + + public function write($string): int + { + $diff = $this->maxLength - $this->stream->getSize(); + + // Begin returning 0 when the underlying stream is too large. + if ($diff <= 0) { + return 0; + } + + // Write the stream or a subset of the stream if needed. + if (strlen($string) < $diff) { + return $this->stream->write($string); + } + + return $this->stream->write(substr($string, 0, $diff)); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php new file mode 100644 index 0000000..3a08477 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php @@ -0,0 +1,14 @@ + */ + private $methods; + + /** + * @param array $methods Hash of method name to a callable. + */ + public function __construct(array $methods) + { + $this->methods = $methods; + + // Create the functions on the class + foreach ($methods as $name => $fn) { + $this->{'_fn_' . $name} = $fn; + } + } + + /** + * Lazily determine which methods are not implemented. + * + * @throws \BadMethodCallException + */ + public function __get(string $name): void + { + throw new \BadMethodCallException(str_replace('_fn_', '', $name) + . '() is not implemented in the FnStream'); + } + + /** + * The close method is called on the underlying stream only if possible. + */ + public function __destruct() + { + if (isset($this->_fn_close)) { + call_user_func($this->_fn_close); + } + } + + /** + * An unserialize would allow the __destruct to run when the unserialized value goes out of scope. + * + * @throws \LogicException + */ + public function __wakeup(): void + { + throw new \LogicException('FnStream should never be unserialized'); + } + + /** + * Adds custom functionality to an underlying stream by intercepting + * specific method calls. + * + * @param StreamInterface $stream Stream to decorate + * @param array $methods Hash of method name to a closure + * + * @return FnStream + */ + public static function decorate(StreamInterface $stream, array $methods) + { + // If any of the required methods were not provided, then simply + // proxy to the decorated stream. + foreach (array_diff(self::SLOTS, array_keys($methods)) as $diff) { + /** @var callable $callable */ + $callable = [$stream, $diff]; + $methods[$diff] = $callable; + } + + return new self($methods); + } + + public function __toString(): string + { + try { + return call_user_func($this->_fn___toString); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + return ''; + } + } + + public function close(): void + { + call_user_func($this->_fn_close); + } + + public function detach() + { + return call_user_func($this->_fn_detach); + } + + public function getSize(): ?int + { + return call_user_func($this->_fn_getSize); + } + + public function tell(): int + { + return call_user_func($this->_fn_tell); + } + + public function eof(): bool + { + return call_user_func($this->_fn_eof); + } + + public function isSeekable(): bool + { + return call_user_func($this->_fn_isSeekable); + } + + public function rewind(): void + { + call_user_func($this->_fn_rewind); + } + + public function seek($offset, $whence = SEEK_SET): void + { + call_user_func($this->_fn_seek, $offset, $whence); + } + + public function isWritable(): bool + { + return call_user_func($this->_fn_isWritable); + } + + public function write($string): int + { + return call_user_func($this->_fn_write, $string); + } + + public function isReadable(): bool + { + return call_user_func($this->_fn_isReadable); + } + + public function read($length): string + { + return call_user_func($this->_fn_read, $length); + } + + public function getContents(): string + { + return call_user_func($this->_fn_getContents); + } + + /** + * {@inheritdoc} + * + * @return mixed + */ + public function getMetadata($key = null) + { + return call_user_func($this->_fn_getMetadata, $key); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Header.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Header.php new file mode 100644 index 0000000..10744ed --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Header.php @@ -0,0 +1,134 @@ +]+>|[^=]+/', $kvp, $matches)) { + $m = $matches[0]; + if (isset($m[1])) { + $part[trim($m[0], $trimmed)] = trim($m[1], $trimmed); + } else { + $part[] = trim($m[0], $trimmed); + } + } + } + if ($part) { + $params[] = $part; + } + } + } + + return $params; + } + + /** + * Converts an array of header values that may contain comma separated + * headers into an array of headers with no comma separated values. + * + * @param string|array $header Header to normalize. + * + * @deprecated Use self::splitList() instead. + */ + public static function normalize($header): array + { + $result = []; + foreach ((array) $header as $value) { + foreach (self::splitList($value) as $parsed) { + $result[] = $parsed; + } + } + + return $result; + } + + /** + * Splits a HTTP header defined to contain comma-separated list into + * each individual value. Empty values will be removed. + * + * Example headers include 'accept', 'cache-control' and 'if-none-match'. + * + * This method must not be used to parse headers that are not defined as + * a list, such as 'user-agent' or 'set-cookie'. + * + * @param string|string[] $values Header value as returned by MessageInterface::getHeader() + * + * @return string[] + */ + public static function splitList($values): array + { + if (!\is_array($values)) { + $values = [$values]; + } + + $result = []; + foreach ($values as $value) { + if (!\is_string($value)) { + throw new \TypeError('$header must either be a string or an array containing strings.'); + } + + $v = ''; + $isQuoted = false; + $isEscaped = false; + for ($i = 0, $max = \strlen($value); $i < $max; $i++) { + if ($isEscaped) { + $v .= $value[$i]; + $isEscaped = false; + + continue; + } + + if (!$isQuoted && $value[$i] === ',') { + $v = \trim($v); + if ($v !== '') { + $result[] = $v; + } + + $v = ''; + continue; + } + + if ($isQuoted && $value[$i] === '\\') { + $isEscaped = true; + $v .= $value[$i]; + + continue; + } + if ($value[$i] === '"') { + $isQuoted = !$isQuoted; + $v .= $value[$i]; + + continue; + } + + $v .= $value[$i]; + } + + $v = \trim($v); + if ($v !== '') { + $result[] = $v; + } + } + + return $result; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/HttpFactory.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/HttpFactory.php new file mode 100644 index 0000000..30be222 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/HttpFactory.php @@ -0,0 +1,100 @@ +getSize(); + } + + return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType); + } + + public function createStream(string $content = ''): StreamInterface + { + return Utils::streamFor($content); + } + + public function createStreamFromFile(string $file, string $mode = 'r'): StreamInterface + { + try { + $resource = Utils::tryFopen($file, $mode); + } catch (\RuntimeException $e) { + if ('' === $mode || false === \in_array($mode[0], ['r', 'w', 'a', 'x', 'c'], true)) { + throw new \InvalidArgumentException(sprintf('Invalid file opening mode "%s"', $mode), 0, $e); + } + + throw $e; + } + + return Utils::streamFor($resource); + } + + public function createStreamFromResource($resource): StreamInterface + { + return Utils::streamFor($resource); + } + + public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface + { + if (empty($method)) { + if (!empty($serverParams['REQUEST_METHOD'])) { + $method = $serverParams['REQUEST_METHOD']; + } else { + throw new \InvalidArgumentException('Cannot determine HTTP method'); + } + } + + return new ServerRequest($method, $uri, [], null, '1.1', $serverParams); + } + + public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface + { + return new Response($code, [], null, '1.1', $reasonPhrase); + } + + public function createRequest(string $method, $uri): RequestInterface + { + return new Request($method, $uri); + } + + public function createUri(string $uri = ''): UriInterface + { + return new Uri($uri); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/InflateStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/InflateStream.php new file mode 100644 index 0000000..8e3cf17 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/InflateStream.php @@ -0,0 +1,34 @@ + 15 + 32]); + $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource)); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/LazyOpenStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/LazyOpenStream.php new file mode 100644 index 0000000..6b60429 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/LazyOpenStream.php @@ -0,0 +1,40 @@ +filename = $filename; + $this->mode = $mode; + } + + /** + * Creates the underlying stream lazily when required. + */ + protected function createStream(): StreamInterface + { + return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode)); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/LimitStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/LimitStream.php new file mode 100644 index 0000000..9762d38 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/LimitStream.php @@ -0,0 +1,154 @@ +stream = $stream; + $this->setLimit($limit); + $this->setOffset($offset); + } + + public function eof(): bool + { + // Always return true if the underlying stream is EOF + if ($this->stream->eof()) { + return true; + } + + // No limit and the underlying stream is not at EOF + if ($this->limit === -1) { + return false; + } + + return $this->stream->tell() >= $this->offset + $this->limit; + } + + /** + * Returns the size of the limited subset of data + */ + public function getSize(): ?int + { + if (null === ($length = $this->stream->getSize())) { + return null; + } elseif ($this->limit === -1) { + return $length - $this->offset; + } else { + return min($this->limit, $length - $this->offset); + } + } + + /** + * Allow for a bounded seek on the read limited stream + */ + public function seek($offset, $whence = SEEK_SET): void + { + if ($whence !== SEEK_SET || $offset < 0) { + throw new \RuntimeException(sprintf( + 'Cannot seek to offset %s with whence %s', + $offset, + $whence + )); + } + + $offset += $this->offset; + + if ($this->limit !== -1) { + if ($offset > $this->offset + $this->limit) { + $offset = $this->offset + $this->limit; + } + } + + $this->stream->seek($offset); + } + + /** + * Give a relative tell() + */ + public function tell(): int + { + return $this->stream->tell() - $this->offset; + } + + /** + * Set the offset to start limiting from + * + * @param int $offset Offset to seek to and begin byte limiting from + * + * @throws \RuntimeException if the stream cannot be seeked. + */ + public function setOffset(int $offset): void + { + $current = $this->stream->tell(); + + if ($current !== $offset) { + // If the stream cannot seek to the offset position, then read to it + if ($this->stream->isSeekable()) { + $this->stream->seek($offset); + } elseif ($current > $offset) { + throw new \RuntimeException("Could not seek to stream offset $offset"); + } else { + $this->stream->read($offset - $current); + } + } + + $this->offset = $offset; + } + + /** + * Set the limit of bytes that the decorator allows to be read from the + * stream. + * + * @param int $limit Number of bytes to allow to be read from the stream. + * Use -1 for no limit. + */ + public function setLimit(int $limit): void + { + $this->limit = $limit; + } + + public function read($length): string + { + if ($this->limit === -1) { + return $this->stream->read($length); + } + + // Check if the current position is less than the total allowed + // bytes + original offset + $remaining = ($this->offset + $this->limit) - $this->stream->tell(); + if ($remaining > 0) { + // Only return the amount of requested data, ensuring that the byte + // limit is not exceeded + return $this->stream->read(min($remaining, $length)); + } + + return ''; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Message.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Message.php new file mode 100644 index 0000000..335a6dd --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Message.php @@ -0,0 +1,245 @@ +getMethod() . ' ' + . $message->getRequestTarget()) + . ' HTTP/' . $message->getProtocolVersion(); + if (!$message->hasHeader('host')) { + $msg .= "\r\nHost: " . $message->getUri()->getHost(); + } + } elseif ($message instanceof ResponseInterface) { + $msg = 'HTTP/' . $message->getProtocolVersion() . ' ' + . $message->getStatusCode() . ' ' + . $message->getReasonPhrase(); + } else { + throw new \InvalidArgumentException('Unknown message type'); + } + + foreach ($message->getHeaders() as $name => $values) { + if (strtolower($name) === 'set-cookie') { + foreach ($values as $value) { + $msg .= "\r\n{$name}: " . $value; + } + } else { + $msg .= "\r\n{$name}: " . implode(', ', $values); + } + } + + return "{$msg}\r\n\r\n" . $message->getBody(); + } + + /** + * Get a short summary of the message body. + * + * Will return `null` if the response is not printable. + * + * @param MessageInterface $message The message to get the body summary + * @param int $truncateAt The maximum allowed size of the summary + */ + public static function bodySummary(MessageInterface $message, int $truncateAt = 120): ?string + { + $body = $message->getBody(); + + if (!$body->isSeekable() || !$body->isReadable()) { + return null; + } + + $size = $body->getSize(); + + if ($size === 0) { + return null; + } + + $summary = $body->read($truncateAt); + $body->rewind(); + + if ($size > $truncateAt) { + $summary .= ' (truncated...)'; + } + + // Matches any printable character, including unicode characters: + // letters, marks, numbers, punctuation, spacing, and separators. + if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/u', $summary)) { + return null; + } + + return $summary; + } + + /** + * Attempts to rewind a message body and throws an exception on failure. + * + * The body of the message will only be rewound if a call to `tell()` + * returns a value other than `0`. + * + * @param MessageInterface $message Message to rewind + * + * @throws \RuntimeException + */ + public static function rewindBody(MessageInterface $message): void + { + $body = $message->getBody(); + + if ($body->tell()) { + $body->rewind(); + } + } + + /** + * Parses an HTTP message into an associative array. + * + * The array contains the "start-line" key containing the start line of + * the message, "headers" key containing an associative array of header + * array values, and a "body" key containing the body of the message. + * + * @param string $message HTTP request or response to parse. + */ + public static function parseMessage(string $message): array + { + if (!$message) { + throw new \InvalidArgumentException('Invalid message'); + } + + $message = ltrim($message, "\r\n"); + + $messageParts = preg_split("/\r?\n\r?\n/", $message, 2); + + if ($messageParts === false || count($messageParts) !== 2) { + throw new \InvalidArgumentException('Invalid message: Missing header delimiter'); + } + + [$rawHeaders, $body] = $messageParts; + $rawHeaders .= "\r\n"; // Put back the delimiter we split previously + $headerParts = preg_split("/\r?\n/", $rawHeaders, 2); + + if ($headerParts === false || count($headerParts) !== 2) { + throw new \InvalidArgumentException('Invalid message: Missing status line'); + } + + [$startLine, $rawHeaders] = $headerParts; + + if (preg_match("/(?:^HTTP\/|^[A-Z]+ \S+ HTTP\/)(\d+(?:\.\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { + // Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0 + $rawHeaders = preg_replace(Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); + } + + /** @var array[] $headerLines */ + $count = preg_match_all(Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, PREG_SET_ORDER); + + // If these aren't the same, then one line didn't match and there's an invalid header. + if ($count !== substr_count($rawHeaders, "\n")) { + // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4 + if (preg_match(Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { + throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); + } + + throw new \InvalidArgumentException('Invalid header syntax'); + } + + $headers = []; + + foreach ($headerLines as $headerLine) { + $headers[$headerLine[1]][] = $headerLine[2]; + } + + return [ + 'start-line' => $startLine, + 'headers' => $headers, + 'body' => $body, + ]; + } + + /** + * Constructs a URI for an HTTP request message. + * + * @param string $path Path from the start-line + * @param array $headers Array of headers (each value an array). + */ + public static function parseRequestUri(string $path, array $headers): string + { + $hostKey = array_filter(array_keys($headers), function ($k) { + // Numeric array keys are converted to int by PHP. + $k = (string) $k; + + return strtolower($k) === 'host'; + }); + + // If no host is found, then a full URI cannot be constructed. + if (!$hostKey) { + return $path; + } + + $host = $headers[reset($hostKey)][0]; + $scheme = substr($host, -4) === ':443' ? 'https' : 'http'; + + return $scheme . '://' . $host . '/' . ltrim($path, '/'); + } + + /** + * Parses a request message string into a request object. + * + * @param string $message Request message string. + */ + public static function parseRequest(string $message): RequestInterface + { + $data = self::parseMessage($message); + $matches = []; + if (!preg_match('/^[\S]+\s+([a-zA-Z]+:\/\/|\/).*/', $data['start-line'], $matches)) { + throw new \InvalidArgumentException('Invalid request string'); + } + $parts = explode(' ', $data['start-line'], 3); + $version = isset($parts[2]) ? explode('/', $parts[2])[1] : '1.1'; + + $request = new Request( + $parts[0], + $matches[1] === '/' ? self::parseRequestUri($parts[1], $data['headers']) : $parts[1], + $data['headers'], + $data['body'], + $version + ); + + return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); + } + + /** + * Parses a response message string into a response object. + * + * @param string $message Response message string. + */ + public static function parseResponse(string $message): ResponseInterface + { + $data = self::parseMessage($message); + // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space + // between status-code and reason-phrase is required. But browsers accept + // responses without space and reason as well. + if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { + throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']); + } + $parts = explode(' ', $data['start-line'], 3); + + return new Response( + (int) $parts[1], + $data['headers'], + $data['body'], + explode('/', $parts[0])[1], + $parts[2] ?? null + ); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MessageTrait.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MessageTrait.php new file mode 100644 index 0000000..d2dc28b --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MessageTrait.php @@ -0,0 +1,264 @@ + Map of all registered headers, as original name => array of values */ + private $headers = []; + + /** @var array Map of lowercase header name => original name at registration */ + private $headerNames = []; + + /** @var string */ + private $protocol = '1.1'; + + /** @var StreamInterface|null */ + private $stream; + + public function getProtocolVersion(): string + { + return $this->protocol; + } + + public function withProtocolVersion($version): MessageInterface + { + if ($this->protocol === $version) { + return $this; + } + + $new = clone $this; + $new->protocol = $version; + return $new; + } + + public function getHeaders(): array + { + return $this->headers; + } + + public function hasHeader($header): bool + { + return isset($this->headerNames[strtolower($header)]); + } + + public function getHeader($header): array + { + $header = strtolower($header); + + if (!isset($this->headerNames[$header])) { + return []; + } + + $header = $this->headerNames[$header]; + + return $this->headers[$header]; + } + + public function getHeaderLine($header): string + { + return implode(', ', $this->getHeader($header)); + } + + public function withHeader($header, $value): MessageInterface + { + $this->assertHeader($header); + $value = $this->normalizeHeaderValue($value); + $normalized = strtolower($header); + + $new = clone $this; + if (isset($new->headerNames[$normalized])) { + unset($new->headers[$new->headerNames[$normalized]]); + } + $new->headerNames[$normalized] = $header; + $new->headers[$header] = $value; + + return $new; + } + + public function withAddedHeader($header, $value): MessageInterface + { + $this->assertHeader($header); + $value = $this->normalizeHeaderValue($value); + $normalized = strtolower($header); + + $new = clone $this; + if (isset($new->headerNames[$normalized])) { + $header = $this->headerNames[$normalized]; + $new->headers[$header] = array_merge($this->headers[$header], $value); + } else { + $new->headerNames[$normalized] = $header; + $new->headers[$header] = $value; + } + + return $new; + } + + public function withoutHeader($header): MessageInterface + { + $normalized = strtolower($header); + + if (!isset($this->headerNames[$normalized])) { + return $this; + } + + $header = $this->headerNames[$normalized]; + + $new = clone $this; + unset($new->headers[$header], $new->headerNames[$normalized]); + + return $new; + } + + public function getBody(): StreamInterface + { + if (!$this->stream) { + $this->stream = Utils::streamFor(''); + } + + return $this->stream; + } + + public function withBody(StreamInterface $body): MessageInterface + { + if ($body === $this->stream) { + return $this; + } + + $new = clone $this; + $new->stream = $body; + return $new; + } + + /** + * @param array $headers + */ + private function setHeaders(array $headers): void + { + $this->headerNames = $this->headers = []; + foreach ($headers as $header => $value) { + // Numeric array keys are converted to int by PHP. + $header = (string) $header; + + $this->assertHeader($header); + $value = $this->normalizeHeaderValue($value); + $normalized = strtolower($header); + if (isset($this->headerNames[$normalized])) { + $header = $this->headerNames[$normalized]; + $this->headers[$header] = array_merge($this->headers[$header], $value); + } else { + $this->headerNames[$normalized] = $header; + $this->headers[$header] = $value; + } + } + } + + /** + * @param mixed $value + * + * @return string[] + */ + private function normalizeHeaderValue($value): array + { + if (!is_array($value)) { + return $this->trimAndValidateHeaderValues([$value]); + } + + if (count($value) === 0) { + throw new \InvalidArgumentException('Header value can not be an empty array.'); + } + + return $this->trimAndValidateHeaderValues($value); + } + + /** + * Trims whitespace from the header values. + * + * Spaces and tabs ought to be excluded by parsers when extracting the field value from a header field. + * + * header-field = field-name ":" OWS field-value OWS + * OWS = *( SP / HTAB ) + * + * @param mixed[] $values Header values + * + * @return string[] Trimmed header values + * + * @see https://tools.ietf.org/html/rfc7230#section-3.2.4 + */ + private function trimAndValidateHeaderValues(array $values): array + { + return array_map(function ($value) { + if (!is_scalar($value) && null !== $value) { + throw new \InvalidArgumentException(sprintf( + 'Header value must be scalar or null but %s provided.', + is_object($value) ? get_class($value) : gettype($value) + )); + } + + $trimmed = trim((string) $value, " \t"); + $this->assertValue($trimmed); + + return $trimmed; + }, array_values($values)); + } + + /** + * @see https://tools.ietf.org/html/rfc7230#section-3.2 + * + * @param mixed $header + */ + private function assertHeader($header): void + { + if (!is_string($header)) { + throw new \InvalidArgumentException(sprintf( + 'Header name must be a string but %s provided.', + is_object($header) ? get_class($header) : gettype($header) + )); + } + + if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/', $header)) { + throw new \InvalidArgumentException( + sprintf( + '"%s" is not valid header name', + $header + ) + ); + } + } + + /** + * @see https://tools.ietf.org/html/rfc7230#section-3.2 + * + * field-value = *( field-content / obs-fold ) + * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] + * field-vchar = VCHAR / obs-text + * VCHAR = %x21-7E + * obs-text = %x80-FF + * obs-fold = CRLF 1*( SP / HTAB ) + */ + private function assertValue(string $value): void + { + // The regular expression intentionally does not support the obs-fold production, because as + // per RFC 7230#3.2.4: + // + // A sender MUST NOT generate a message that includes + // line folding (i.e., that has any field-value that contains a match to + // the obs-fold rule) unless the message is intended for packaging + // within the message/http media type. + // + // Clients must not send a request with line folding and a server sending folded headers is + // likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting + // folding is not likely to break any legitimate use case. + if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/', $value)) { + throw new \InvalidArgumentException(sprintf('"%s" is not valid header value', $value)); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MimeType.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MimeType.php new file mode 100644 index 0000000..0debbd1 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MimeType.php @@ -0,0 +1,1237 @@ + 'application/vnd.1000minds.decision-model+xml', + '3dml' => 'text/vnd.in3d.3dml', + '3ds' => 'image/x-3ds', + '3g2' => 'video/3gpp2', + '3gp' => 'video/3gp', + '3gpp' => 'video/3gpp', + '3mf' => 'model/3mf', + '7z' => 'application/x-7z-compressed', + '7zip' => 'application/x-7z-compressed', + '123' => 'application/vnd.lotus-1-2-3', + 'aab' => 'application/x-authorware-bin', + 'aac' => 'audio/x-acc', + 'aam' => 'application/x-authorware-map', + 'aas' => 'application/x-authorware-seg', + 'abw' => 'application/x-abiword', + 'ac' => 'application/vnd.nokia.n-gage.ac+xml', + 'ac3' => 'audio/ac3', + 'acc' => 'application/vnd.americandynamics.acc', + 'ace' => 'application/x-ace-compressed', + 'acu' => 'application/vnd.acucobol', + 'acutc' => 'application/vnd.acucorp', + 'adp' => 'audio/adpcm', + 'aep' => 'application/vnd.audiograph', + 'afm' => 'application/x-font-type1', + 'afp' => 'application/vnd.ibm.modcap', + 'age' => 'application/vnd.age', + 'ahead' => 'application/vnd.ahead.space', + 'ai' => 'application/pdf', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/x-aiff', + 'air' => 'application/vnd.adobe.air-application-installer-package+zip', + 'ait' => 'application/vnd.dvb.ait', + 'ami' => 'application/vnd.amiga.ami', + 'amr' => 'audio/amr', + 'apk' => 'application/vnd.android.package-archive', + 'apng' => 'image/apng', + 'appcache' => 'text/cache-manifest', + 'application' => 'application/x-ms-application', + 'apr' => 'application/vnd.lotus-approach', + 'arc' => 'application/x-freearc', + 'arj' => 'application/x-arj', + 'asc' => 'application/pgp-signature', + 'asf' => 'video/x-ms-asf', + 'asm' => 'text/x-asm', + 'aso' => 'application/vnd.accpac.simply.aso', + 'asx' => 'video/x-ms-asf', + 'atc' => 'application/vnd.acucorp', + 'atom' => 'application/atom+xml', + 'atomcat' => 'application/atomcat+xml', + 'atomdeleted' => 'application/atomdeleted+xml', + 'atomsvc' => 'application/atomsvc+xml', + 'atx' => 'application/vnd.antix.game-component', + 'au' => 'audio/x-au', + 'avci' => 'image/avci', + 'avcs' => 'image/avcs', + 'avi' => 'video/x-msvideo', + 'avif' => 'image/avif', + 'aw' => 'application/applixware', + 'azf' => 'application/vnd.airzip.filesecure.azf', + 'azs' => 'application/vnd.airzip.filesecure.azs', + 'azv' => 'image/vnd.airzip.accelerator.azv', + 'azw' => 'application/vnd.amazon.ebook', + 'b16' => 'image/vnd.pco.b16', + 'bat' => 'application/x-msdownload', + 'bcpio' => 'application/x-bcpio', + 'bdf' => 'application/x-font-bdf', + 'bdm' => 'application/vnd.syncml.dm+wbxml', + 'bdoc' => 'application/x-bdoc', + 'bed' => 'application/vnd.realvnc.bed', + 'bh2' => 'application/vnd.fujitsu.oasysprs', + 'bin' => 'application/octet-stream', + 'blb' => 'application/x-blorb', + 'blorb' => 'application/x-blorb', + 'bmi' => 'application/vnd.bmi', + 'bmml' => 'application/vnd.balsamiq.bmml+xml', + 'bmp' => 'image/bmp', + 'book' => 'application/vnd.framemaker', + 'box' => 'application/vnd.previewsystems.box', + 'boz' => 'application/x-bzip2', + 'bpk' => 'application/octet-stream', + 'bpmn' => 'application/octet-stream', + 'bsp' => 'model/vnd.valve.source.compiled-map', + 'btif' => 'image/prs.btif', + 'buffer' => 'application/octet-stream', + 'bz' => 'application/x-bzip', + 'bz2' => 'application/x-bzip2', + 'c' => 'text/x-c', + 'c4d' => 'application/vnd.clonk.c4group', + 'c4f' => 'application/vnd.clonk.c4group', + 'c4g' => 'application/vnd.clonk.c4group', + 'c4p' => 'application/vnd.clonk.c4group', + 'c4u' => 'application/vnd.clonk.c4group', + 'c11amc' => 'application/vnd.cluetrust.cartomobile-config', + 'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg', + 'cab' => 'application/vnd.ms-cab-compressed', + 'caf' => 'audio/x-caf', + 'cap' => 'application/vnd.tcpdump.pcap', + 'car' => 'application/vnd.curl.car', + 'cat' => 'application/vnd.ms-pki.seccat', + 'cb7' => 'application/x-cbr', + 'cba' => 'application/x-cbr', + 'cbr' => 'application/x-cbr', + 'cbt' => 'application/x-cbr', + 'cbz' => 'application/x-cbr', + 'cc' => 'text/x-c', + 'cco' => 'application/x-cocoa', + 'cct' => 'application/x-director', + 'ccxml' => 'application/ccxml+xml', + 'cdbcmsg' => 'application/vnd.contact.cmsg', + 'cdf' => 'application/x-netcdf', + 'cdfx' => 'application/cdfx+xml', + 'cdkey' => 'application/vnd.mediastation.cdkey', + 'cdmia' => 'application/cdmi-capability', + 'cdmic' => 'application/cdmi-container', + 'cdmid' => 'application/cdmi-domain', + 'cdmio' => 'application/cdmi-object', + 'cdmiq' => 'application/cdmi-queue', + 'cdr' => 'application/cdr', + 'cdx' => 'chemical/x-cdx', + 'cdxml' => 'application/vnd.chemdraw+xml', + 'cdy' => 'application/vnd.cinderella', + 'cer' => 'application/pkix-cert', + 'cfs' => 'application/x-cfs-compressed', + 'cgm' => 'image/cgm', + 'chat' => 'application/x-chat', + 'chm' => 'application/vnd.ms-htmlhelp', + 'chrt' => 'application/vnd.kde.kchart', + 'cif' => 'chemical/x-cif', + 'cii' => 'application/vnd.anser-web-certificate-issue-initiation', + 'cil' => 'application/vnd.ms-artgalry', + 'cjs' => 'application/node', + 'cla' => 'application/vnd.claymore', + 'class' => 'application/octet-stream', + 'clkk' => 'application/vnd.crick.clicker.keyboard', + 'clkp' => 'application/vnd.crick.clicker.palette', + 'clkt' => 'application/vnd.crick.clicker.template', + 'clkw' => 'application/vnd.crick.clicker.wordbank', + 'clkx' => 'application/vnd.crick.clicker', + 'clp' => 'application/x-msclip', + 'cmc' => 'application/vnd.cosmocaller', + 'cmdf' => 'chemical/x-cmdf', + 'cml' => 'chemical/x-cml', + 'cmp' => 'application/vnd.yellowriver-custom-menu', + 'cmx' => 'image/x-cmx', + 'cod' => 'application/vnd.rim.cod', + 'coffee' => 'text/coffeescript', + 'com' => 'application/x-msdownload', + 'conf' => 'text/plain', + 'cpio' => 'application/x-cpio', + 'cpl' => 'application/cpl+xml', + 'cpp' => 'text/x-c', + 'cpt' => 'application/mac-compactpro', + 'crd' => 'application/x-mscardfile', + 'crl' => 'application/pkix-crl', + 'crt' => 'application/x-x509-ca-cert', + 'crx' => 'application/x-chrome-extension', + 'cryptonote' => 'application/vnd.rig.cryptonote', + 'csh' => 'application/x-csh', + 'csl' => 'application/vnd.citationstyles.style+xml', + 'csml' => 'chemical/x-csml', + 'csp' => 'application/vnd.commonspace', + 'csr' => 'application/octet-stream', + 'css' => 'text/css', + 'cst' => 'application/x-director', + 'csv' => 'text/csv', + 'cu' => 'application/cu-seeme', + 'curl' => 'text/vnd.curl', + 'cww' => 'application/prs.cww', + 'cxt' => 'application/x-director', + 'cxx' => 'text/x-c', + 'dae' => 'model/vnd.collada+xml', + 'daf' => 'application/vnd.mobius.daf', + 'dart' => 'application/vnd.dart', + 'dataless' => 'application/vnd.fdsn.seed', + 'davmount' => 'application/davmount+xml', + 'dbf' => 'application/vnd.dbf', + 'dbk' => 'application/docbook+xml', + 'dcr' => 'application/x-director', + 'dcurl' => 'text/vnd.curl.dcurl', + 'dd2' => 'application/vnd.oma.dd2+xml', + 'ddd' => 'application/vnd.fujixerox.ddd', + 'ddf' => 'application/vnd.syncml.dmddf+xml', + 'dds' => 'image/vnd.ms-dds', + 'deb' => 'application/x-debian-package', + 'def' => 'text/plain', + 'deploy' => 'application/octet-stream', + 'der' => 'application/x-x509-ca-cert', + 'dfac' => 'application/vnd.dreamfactory', + 'dgc' => 'application/x-dgc-compressed', + 'dic' => 'text/x-c', + 'dir' => 'application/x-director', + 'dis' => 'application/vnd.mobius.dis', + 'disposition-notification' => 'message/disposition-notification', + 'dist' => 'application/octet-stream', + 'distz' => 'application/octet-stream', + 'djv' => 'image/vnd.djvu', + 'djvu' => 'image/vnd.djvu', + 'dll' => 'application/octet-stream', + 'dmg' => 'application/x-apple-diskimage', + 'dmn' => 'application/octet-stream', + 'dmp' => 'application/vnd.tcpdump.pcap', + 'dms' => 'application/octet-stream', + 'dna' => 'application/vnd.dna', + 'doc' => 'application/msword', + 'docm' => 'application/vnd.ms-word.template.macroEnabled.12', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'dot' => 'application/msword', + 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', + 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'dp' => 'application/vnd.osgi.dp', + 'dpg' => 'application/vnd.dpgraph', + 'dra' => 'audio/vnd.dra', + 'drle' => 'image/dicom-rle', + 'dsc' => 'text/prs.lines.tag', + 'dssc' => 'application/dssc+der', + 'dtb' => 'application/x-dtbook+xml', + 'dtd' => 'application/xml-dtd', + 'dts' => 'audio/vnd.dts', + 'dtshd' => 'audio/vnd.dts.hd', + 'dump' => 'application/octet-stream', + 'dvb' => 'video/vnd.dvb.file', + 'dvi' => 'application/x-dvi', + 'dwd' => 'application/atsc-dwd+xml', + 'dwf' => 'model/vnd.dwf', + 'dwg' => 'image/vnd.dwg', + 'dxf' => 'image/vnd.dxf', + 'dxp' => 'application/vnd.spotfire.dxp', + 'dxr' => 'application/x-director', + 'ear' => 'application/java-archive', + 'ecelp4800' => 'audio/vnd.nuera.ecelp4800', + 'ecelp7470' => 'audio/vnd.nuera.ecelp7470', + 'ecelp9600' => 'audio/vnd.nuera.ecelp9600', + 'ecma' => 'application/ecmascript', + 'edm' => 'application/vnd.novadigm.edm', + 'edx' => 'application/vnd.novadigm.edx', + 'efif' => 'application/vnd.picsel', + 'ei6' => 'application/vnd.pg.osasli', + 'elc' => 'application/octet-stream', + 'emf' => 'image/emf', + 'eml' => 'message/rfc822', + 'emma' => 'application/emma+xml', + 'emotionml' => 'application/emotionml+xml', + 'emz' => 'application/x-msmetafile', + 'eol' => 'audio/vnd.digital-winds', + 'eot' => 'application/vnd.ms-fontobject', + 'eps' => 'application/postscript', + 'epub' => 'application/epub+zip', + 'es' => 'application/ecmascript', + 'es3' => 'application/vnd.eszigno3+xml', + 'esa' => 'application/vnd.osgi.subsystem', + 'esf' => 'application/vnd.epson.esf', + 'et3' => 'application/vnd.eszigno3+xml', + 'etx' => 'text/x-setext', + 'eva' => 'application/x-eva', + 'evy' => 'application/x-envoy', + 'exe' => 'application/octet-stream', + 'exi' => 'application/exi', + 'exp' => 'application/express', + 'exr' => 'image/aces', + 'ext' => 'application/vnd.novadigm.ext', + 'ez' => 'application/andrew-inset', + 'ez2' => 'application/vnd.ezpix-album', + 'ez3' => 'application/vnd.ezpix-package', + 'f' => 'text/x-fortran', + 'f4v' => 'video/mp4', + 'f77' => 'text/x-fortran', + 'f90' => 'text/x-fortran', + 'fbs' => 'image/vnd.fastbidsheet', + 'fcdt' => 'application/vnd.adobe.formscentral.fcdt', + 'fcs' => 'application/vnd.isac.fcs', + 'fdf' => 'application/vnd.fdf', + 'fdt' => 'application/fdt+xml', + 'fe_launch' => 'application/vnd.denovo.fcselayout-link', + 'fg5' => 'application/vnd.fujitsu.oasysgp', + 'fgd' => 'application/x-director', + 'fh' => 'image/x-freehand', + 'fh4' => 'image/x-freehand', + 'fh5' => 'image/x-freehand', + 'fh7' => 'image/x-freehand', + 'fhc' => 'image/x-freehand', + 'fig' => 'application/x-xfig', + 'fits' => 'image/fits', + 'flac' => 'audio/x-flac', + 'fli' => 'video/x-fli', + 'flo' => 'application/vnd.micrografx.flo', + 'flv' => 'video/x-flv', + 'flw' => 'application/vnd.kde.kivio', + 'flx' => 'text/vnd.fmi.flexstor', + 'fly' => 'text/vnd.fly', + 'fm' => 'application/vnd.framemaker', + 'fnc' => 'application/vnd.frogans.fnc', + 'fo' => 'application/vnd.software602.filler.form+xml', + 'for' => 'text/x-fortran', + 'fpx' => 'image/vnd.fpx', + 'frame' => 'application/vnd.framemaker', + 'fsc' => 'application/vnd.fsc.weblaunch', + 'fst' => 'image/vnd.fst', + 'ftc' => 'application/vnd.fluxtime.clip', + 'fti' => 'application/vnd.anser-web-funds-transfer-initiation', + 'fvt' => 'video/vnd.fvt', + 'fxp' => 'application/vnd.adobe.fxp', + 'fxpl' => 'application/vnd.adobe.fxp', + 'fzs' => 'application/vnd.fuzzysheet', + 'g2w' => 'application/vnd.geoplan', + 'g3' => 'image/g3fax', + 'g3w' => 'application/vnd.geospace', + 'gac' => 'application/vnd.groove-account', + 'gam' => 'application/x-tads', + 'gbr' => 'application/rpki-ghostbusters', + 'gca' => 'application/x-gca-compressed', + 'gdl' => 'model/vnd.gdl', + 'gdoc' => 'application/vnd.google-apps.document', + 'ged' => 'text/vnd.familysearch.gedcom', + 'geo' => 'application/vnd.dynageo', + 'geojson' => 'application/geo+json', + 'gex' => 'application/vnd.geometry-explorer', + 'ggb' => 'application/vnd.geogebra.file', + 'ggt' => 'application/vnd.geogebra.tool', + 'ghf' => 'application/vnd.groove-help', + 'gif' => 'image/gif', + 'gim' => 'application/vnd.groove-identity-message', + 'glb' => 'model/gltf-binary', + 'gltf' => 'model/gltf+json', + 'gml' => 'application/gml+xml', + 'gmx' => 'application/vnd.gmx', + 'gnumeric' => 'application/x-gnumeric', + 'gpg' => 'application/gpg-keys', + 'gph' => 'application/vnd.flographit', + 'gpx' => 'application/gpx+xml', + 'gqf' => 'application/vnd.grafeq', + 'gqs' => 'application/vnd.grafeq', + 'gram' => 'application/srgs', + 'gramps' => 'application/x-gramps-xml', + 'gre' => 'application/vnd.geometry-explorer', + 'grv' => 'application/vnd.groove-injector', + 'grxml' => 'application/srgs+xml', + 'gsf' => 'application/x-font-ghostscript', + 'gsheet' => 'application/vnd.google-apps.spreadsheet', + 'gslides' => 'application/vnd.google-apps.presentation', + 'gtar' => 'application/x-gtar', + 'gtm' => 'application/vnd.groove-tool-message', + 'gtw' => 'model/vnd.gtw', + 'gv' => 'text/vnd.graphviz', + 'gxf' => 'application/gxf', + 'gxt' => 'application/vnd.geonext', + 'gz' => 'application/gzip', + 'gzip' => 'application/gzip', + 'h' => 'text/x-c', + 'h261' => 'video/h261', + 'h263' => 'video/h263', + 'h264' => 'video/h264', + 'hal' => 'application/vnd.hal+xml', + 'hbci' => 'application/vnd.hbci', + 'hbs' => 'text/x-handlebars-template', + 'hdd' => 'application/x-virtualbox-hdd', + 'hdf' => 'application/x-hdf', + 'heic' => 'image/heic', + 'heics' => 'image/heic-sequence', + 'heif' => 'image/heif', + 'heifs' => 'image/heif-sequence', + 'hej2' => 'image/hej2k', + 'held' => 'application/atsc-held+xml', + 'hh' => 'text/x-c', + 'hjson' => 'application/hjson', + 'hlp' => 'application/winhlp', + 'hpgl' => 'application/vnd.hp-hpgl', + 'hpid' => 'application/vnd.hp-hpid', + 'hps' => 'application/vnd.hp-hps', + 'hqx' => 'application/mac-binhex40', + 'hsj2' => 'image/hsj2', + 'htc' => 'text/x-component', + 'htke' => 'application/vnd.kenameaapp', + 'htm' => 'text/html', + 'html' => 'text/html', + 'hvd' => 'application/vnd.yamaha.hv-dic', + 'hvp' => 'application/vnd.yamaha.hv-voice', + 'hvs' => 'application/vnd.yamaha.hv-script', + 'i2g' => 'application/vnd.intergeo', + 'icc' => 'application/vnd.iccprofile', + 'ice' => 'x-conference/x-cooltalk', + 'icm' => 'application/vnd.iccprofile', + 'ico' => 'image/x-icon', + 'ics' => 'text/calendar', + 'ief' => 'image/ief', + 'ifb' => 'text/calendar', + 'ifm' => 'application/vnd.shana.informed.formdata', + 'iges' => 'model/iges', + 'igl' => 'application/vnd.igloader', + 'igm' => 'application/vnd.insors.igm', + 'igs' => 'model/iges', + 'igx' => 'application/vnd.micrografx.igx', + 'iif' => 'application/vnd.shana.informed.interchange', + 'img' => 'application/octet-stream', + 'imp' => 'application/vnd.accpac.simply.imp', + 'ims' => 'application/vnd.ms-ims', + 'in' => 'text/plain', + 'ini' => 'text/plain', + 'ink' => 'application/inkml+xml', + 'inkml' => 'application/inkml+xml', + 'install' => 'application/x-install-instructions', + 'iota' => 'application/vnd.astraea-software.iota', + 'ipfix' => 'application/ipfix', + 'ipk' => 'application/vnd.shana.informed.package', + 'irm' => 'application/vnd.ibm.rights-management', + 'irp' => 'application/vnd.irepository.package+xml', + 'iso' => 'application/x-iso9660-image', + 'itp' => 'application/vnd.shana.informed.formtemplate', + 'its' => 'application/its+xml', + 'ivp' => 'application/vnd.immervision-ivp', + 'ivu' => 'application/vnd.immervision-ivu', + 'jad' => 'text/vnd.sun.j2me.app-descriptor', + 'jade' => 'text/jade', + 'jam' => 'application/vnd.jam', + 'jar' => 'application/java-archive', + 'jardiff' => 'application/x-java-archive-diff', + 'java' => 'text/x-java-source', + 'jhc' => 'image/jphc', + 'jisp' => 'application/vnd.jisp', + 'jls' => 'image/jls', + 'jlt' => 'application/vnd.hp-jlyt', + 'jng' => 'image/x-jng', + 'jnlp' => 'application/x-java-jnlp-file', + 'joda' => 'application/vnd.joost.joda-archive', + 'jp2' => 'image/jp2', + 'jpe' => 'image/jpeg', + 'jpeg' => 'image/jpeg', + 'jpf' => 'image/jpx', + 'jpg' => 'image/jpeg', + 'jpg2' => 'image/jp2', + 'jpgm' => 'video/jpm', + 'jpgv' => 'video/jpeg', + 'jph' => 'image/jph', + 'jpm' => 'video/jpm', + 'jpx' => 'image/jpx', + 'js' => 'application/javascript', + 'json' => 'application/json', + 'json5' => 'application/json5', + 'jsonld' => 'application/ld+json', + 'jsonml' => 'application/jsonml+json', + 'jsx' => 'text/jsx', + 'jxr' => 'image/jxr', + 'jxra' => 'image/jxra', + 'jxrs' => 'image/jxrs', + 'jxs' => 'image/jxs', + 'jxsc' => 'image/jxsc', + 'jxsi' => 'image/jxsi', + 'jxss' => 'image/jxss', + 'kar' => 'audio/midi', + 'karbon' => 'application/vnd.kde.karbon', + 'kdb' => 'application/octet-stream', + 'kdbx' => 'application/x-keepass2', + 'key' => 'application/x-iwork-keynote-sffkey', + 'kfo' => 'application/vnd.kde.kformula', + 'kia' => 'application/vnd.kidspiration', + 'kml' => 'application/vnd.google-earth.kml+xml', + 'kmz' => 'application/vnd.google-earth.kmz', + 'kne' => 'application/vnd.kinar', + 'knp' => 'application/vnd.kinar', + 'kon' => 'application/vnd.kde.kontour', + 'kpr' => 'application/vnd.kde.kpresenter', + 'kpt' => 'application/vnd.kde.kpresenter', + 'kpxx' => 'application/vnd.ds-keypoint', + 'ksp' => 'application/vnd.kde.kspread', + 'ktr' => 'application/vnd.kahootz', + 'ktx' => 'image/ktx', + 'ktx2' => 'image/ktx2', + 'ktz' => 'application/vnd.kahootz', + 'kwd' => 'application/vnd.kde.kword', + 'kwt' => 'application/vnd.kde.kword', + 'lasxml' => 'application/vnd.las.las+xml', + 'latex' => 'application/x-latex', + 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop', + 'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml', + 'les' => 'application/vnd.hhe.lesson-player', + 'less' => 'text/less', + 'lgr' => 'application/lgr+xml', + 'lha' => 'application/octet-stream', + 'link66' => 'application/vnd.route66.link66+xml', + 'list' => 'text/plain', + 'list3820' => 'application/vnd.ibm.modcap', + 'listafp' => 'application/vnd.ibm.modcap', + 'litcoffee' => 'text/coffeescript', + 'lnk' => 'application/x-ms-shortcut', + 'log' => 'text/plain', + 'lostxml' => 'application/lost+xml', + 'lrf' => 'application/octet-stream', + 'lrm' => 'application/vnd.ms-lrm', + 'ltf' => 'application/vnd.frogans.ltf', + 'lua' => 'text/x-lua', + 'luac' => 'application/x-lua-bytecode', + 'lvp' => 'audio/vnd.lucent.voice', + 'lwp' => 'application/vnd.lotus-wordpro', + 'lzh' => 'application/octet-stream', + 'm1v' => 'video/mpeg', + 'm2a' => 'audio/mpeg', + 'm2v' => 'video/mpeg', + 'm3a' => 'audio/mpeg', + 'm3u' => 'text/plain', + 'm3u8' => 'application/vnd.apple.mpegurl', + 'm4a' => 'audio/x-m4a', + 'm4p' => 'application/mp4', + 'm4s' => 'video/iso.segment', + 'm4u' => 'application/vnd.mpegurl', + 'm4v' => 'video/x-m4v', + 'm13' => 'application/x-msmediaview', + 'm14' => 'application/x-msmediaview', + 'm21' => 'application/mp21', + 'ma' => 'application/mathematica', + 'mads' => 'application/mads+xml', + 'maei' => 'application/mmt-aei+xml', + 'mag' => 'application/vnd.ecowin.chart', + 'maker' => 'application/vnd.framemaker', + 'man' => 'text/troff', + 'manifest' => 'text/cache-manifest', + 'map' => 'application/json', + 'mar' => 'application/octet-stream', + 'markdown' => 'text/markdown', + 'mathml' => 'application/mathml+xml', + 'mb' => 'application/mathematica', + 'mbk' => 'application/vnd.mobius.mbk', + 'mbox' => 'application/mbox', + 'mc1' => 'application/vnd.medcalcdata', + 'mcd' => 'application/vnd.mcd', + 'mcurl' => 'text/vnd.curl.mcurl', + 'md' => 'text/markdown', + 'mdb' => 'application/x-msaccess', + 'mdi' => 'image/vnd.ms-modi', + 'mdx' => 'text/mdx', + 'me' => 'text/troff', + 'mesh' => 'model/mesh', + 'meta4' => 'application/metalink4+xml', + 'metalink' => 'application/metalink+xml', + 'mets' => 'application/mets+xml', + 'mfm' => 'application/vnd.mfmp', + 'mft' => 'application/rpki-manifest', + 'mgp' => 'application/vnd.osgeo.mapguide.package', + 'mgz' => 'application/vnd.proteus.magazine', + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mie' => 'application/x-mie', + 'mif' => 'application/vnd.mif', + 'mime' => 'message/rfc822', + 'mj2' => 'video/mj2', + 'mjp2' => 'video/mj2', + 'mjs' => 'application/javascript', + 'mk3d' => 'video/x-matroska', + 'mka' => 'audio/x-matroska', + 'mkd' => 'text/x-markdown', + 'mks' => 'video/x-matroska', + 'mkv' => 'video/x-matroska', + 'mlp' => 'application/vnd.dolby.mlp', + 'mmd' => 'application/vnd.chipnuts.karaoke-mmd', + 'mmf' => 'application/vnd.smaf', + 'mml' => 'text/mathml', + 'mmr' => 'image/vnd.fujixerox.edmics-mmr', + 'mng' => 'video/x-mng', + 'mny' => 'application/x-msmoney', + 'mobi' => 'application/x-mobipocket-ebook', + 'mods' => 'application/mods+xml', + 'mov' => 'video/quicktime', + 'movie' => 'video/x-sgi-movie', + 'mp2' => 'audio/mpeg', + 'mp2a' => 'audio/mpeg', + 'mp3' => 'audio/mpeg', + 'mp4' => 'video/mp4', + 'mp4a' => 'audio/mp4', + 'mp4s' => 'application/mp4', + 'mp4v' => 'video/mp4', + 'mp21' => 'application/mp21', + 'mpc' => 'application/vnd.mophun.certificate', + 'mpd' => 'application/dash+xml', + 'mpe' => 'video/mpeg', + 'mpeg' => 'video/mpeg', + 'mpf' => 'application/media-policy-dataset+xml', + 'mpg' => 'video/mpeg', + 'mpg4' => 'video/mp4', + 'mpga' => 'audio/mpeg', + 'mpkg' => 'application/vnd.apple.installer+xml', + 'mpm' => 'application/vnd.blueice.multipass', + 'mpn' => 'application/vnd.mophun.application', + 'mpp' => 'application/vnd.ms-project', + 'mpt' => 'application/vnd.ms-project', + 'mpy' => 'application/vnd.ibm.minipay', + 'mqy' => 'application/vnd.mobius.mqy', + 'mrc' => 'application/marc', + 'mrcx' => 'application/marcxml+xml', + 'ms' => 'text/troff', + 'mscml' => 'application/mediaservercontrol+xml', + 'mseed' => 'application/vnd.fdsn.mseed', + 'mseq' => 'application/vnd.mseq', + 'msf' => 'application/vnd.epson.msf', + 'msg' => 'application/vnd.ms-outlook', + 'msh' => 'model/mesh', + 'msi' => 'application/x-msdownload', + 'msl' => 'application/vnd.mobius.msl', + 'msm' => 'application/octet-stream', + 'msp' => 'application/octet-stream', + 'msty' => 'application/vnd.muvee.style', + 'mtl' => 'model/mtl', + 'mts' => 'model/vnd.mts', + 'mus' => 'application/vnd.musician', + 'musd' => 'application/mmt-usd+xml', + 'musicxml' => 'application/vnd.recordare.musicxml+xml', + 'mvb' => 'application/x-msmediaview', + 'mvt' => 'application/vnd.mapbox-vector-tile', + 'mwf' => 'application/vnd.mfer', + 'mxf' => 'application/mxf', + 'mxl' => 'application/vnd.recordare.musicxml', + 'mxmf' => 'audio/mobile-xmf', + 'mxml' => 'application/xv+xml', + 'mxs' => 'application/vnd.triscape.mxs', + 'mxu' => 'video/vnd.mpegurl', + 'n-gage' => 'application/vnd.nokia.n-gage.symbian.install', + 'n3' => 'text/n3', + 'nb' => 'application/mathematica', + 'nbp' => 'application/vnd.wolfram.player', + 'nc' => 'application/x-netcdf', + 'ncx' => 'application/x-dtbncx+xml', + 'nfo' => 'text/x-nfo', + 'ngdat' => 'application/vnd.nokia.n-gage.data', + 'nitf' => 'application/vnd.nitf', + 'nlu' => 'application/vnd.neurolanguage.nlu', + 'nml' => 'application/vnd.enliven', + 'nnd' => 'application/vnd.noblenet-directory', + 'nns' => 'application/vnd.noblenet-sealer', + 'nnw' => 'application/vnd.noblenet-web', + 'npx' => 'image/vnd.net-fpx', + 'nq' => 'application/n-quads', + 'nsc' => 'application/x-conference', + 'nsf' => 'application/vnd.lotus-notes', + 'nt' => 'application/n-triples', + 'ntf' => 'application/vnd.nitf', + 'numbers' => 'application/x-iwork-numbers-sffnumbers', + 'nzb' => 'application/x-nzb', + 'oa2' => 'application/vnd.fujitsu.oasys2', + 'oa3' => 'application/vnd.fujitsu.oasys3', + 'oas' => 'application/vnd.fujitsu.oasys', + 'obd' => 'application/x-msbinder', + 'obgx' => 'application/vnd.openblox.game+xml', + 'obj' => 'model/obj', + 'oda' => 'application/oda', + 'odb' => 'application/vnd.oasis.opendocument.database', + 'odc' => 'application/vnd.oasis.opendocument.chart', + 'odf' => 'application/vnd.oasis.opendocument.formula', + 'odft' => 'application/vnd.oasis.opendocument.formula-template', + 'odg' => 'application/vnd.oasis.opendocument.graphics', + 'odi' => 'application/vnd.oasis.opendocument.image', + 'odm' => 'application/vnd.oasis.opendocument.text-master', + 'odp' => 'application/vnd.oasis.opendocument.presentation', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'odt' => 'application/vnd.oasis.opendocument.text', + 'oga' => 'audio/ogg', + 'ogex' => 'model/vnd.opengex', + 'ogg' => 'audio/ogg', + 'ogv' => 'video/ogg', + 'ogx' => 'application/ogg', + 'omdoc' => 'application/omdoc+xml', + 'onepkg' => 'application/onenote', + 'onetmp' => 'application/onenote', + 'onetoc' => 'application/onenote', + 'onetoc2' => 'application/onenote', + 'opf' => 'application/oebps-package+xml', + 'opml' => 'text/x-opml', + 'oprc' => 'application/vnd.palm', + 'opus' => 'audio/ogg', + 'org' => 'text/x-org', + 'osf' => 'application/vnd.yamaha.openscoreformat', + 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml', + 'osm' => 'application/vnd.openstreetmap.data+xml', + 'otc' => 'application/vnd.oasis.opendocument.chart-template', + 'otf' => 'font/otf', + 'otg' => 'application/vnd.oasis.opendocument.graphics-template', + 'oth' => 'application/vnd.oasis.opendocument.text-web', + 'oti' => 'application/vnd.oasis.opendocument.image-template', + 'otp' => 'application/vnd.oasis.opendocument.presentation-template', + 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', + 'ott' => 'application/vnd.oasis.opendocument.text-template', + 'ova' => 'application/x-virtualbox-ova', + 'ovf' => 'application/x-virtualbox-ovf', + 'owl' => 'application/rdf+xml', + 'oxps' => 'application/oxps', + 'oxt' => 'application/vnd.openofficeorg.extension', + 'p' => 'text/x-pascal', + 'p7a' => 'application/x-pkcs7-signature', + 'p7b' => 'application/x-pkcs7-certificates', + 'p7c' => 'application/pkcs7-mime', + 'p7m' => 'application/pkcs7-mime', + 'p7r' => 'application/x-pkcs7-certreqresp', + 'p7s' => 'application/pkcs7-signature', + 'p8' => 'application/pkcs8', + 'p10' => 'application/x-pkcs10', + 'p12' => 'application/x-pkcs12', + 'pac' => 'application/x-ns-proxy-autoconfig', + 'pages' => 'application/x-iwork-pages-sffpages', + 'pas' => 'text/x-pascal', + 'paw' => 'application/vnd.pawaafile', + 'pbd' => 'application/vnd.powerbuilder6', + 'pbm' => 'image/x-portable-bitmap', + 'pcap' => 'application/vnd.tcpdump.pcap', + 'pcf' => 'application/x-font-pcf', + 'pcl' => 'application/vnd.hp-pcl', + 'pclxl' => 'application/vnd.hp-pclxl', + 'pct' => 'image/x-pict', + 'pcurl' => 'application/vnd.curl.pcurl', + 'pcx' => 'image/x-pcx', + 'pdb' => 'application/x-pilot', + 'pde' => 'text/x-processing', + 'pdf' => 'application/pdf', + 'pem' => 'application/x-x509-user-cert', + 'pfa' => 'application/x-font-type1', + 'pfb' => 'application/x-font-type1', + 'pfm' => 'application/x-font-type1', + 'pfr' => 'application/font-tdpfr', + 'pfx' => 'application/x-pkcs12', + 'pgm' => 'image/x-portable-graymap', + 'pgn' => 'application/x-chess-pgn', + 'pgp' => 'application/pgp', + 'phar' => 'application/octet-stream', + 'php' => 'application/x-httpd-php', + 'php3' => 'application/x-httpd-php', + 'php4' => 'application/x-httpd-php', + 'phps' => 'application/x-httpd-php-source', + 'phtml' => 'application/x-httpd-php', + 'pic' => 'image/x-pict', + 'pkg' => 'application/octet-stream', + 'pki' => 'application/pkixcmp', + 'pkipath' => 'application/pkix-pkipath', + 'pkpass' => 'application/vnd.apple.pkpass', + 'pl' => 'application/x-perl', + 'plb' => 'application/vnd.3gpp.pic-bw-large', + 'plc' => 'application/vnd.mobius.plc', + 'plf' => 'application/vnd.pocketlearn', + 'pls' => 'application/pls+xml', + 'pm' => 'application/x-perl', + 'pml' => 'application/vnd.ctc-posml', + 'png' => 'image/png', + 'pnm' => 'image/x-portable-anymap', + 'portpkg' => 'application/vnd.macports.portpkg', + 'pot' => 'application/vnd.ms-powerpoint', + 'potm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', + 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', + 'ppa' => 'application/vnd.ms-powerpoint', + 'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12', + 'ppd' => 'application/vnd.cups-ppd', + 'ppm' => 'image/x-portable-pixmap', + 'pps' => 'application/vnd.ms-powerpoint', + 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', + 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', + 'ppt' => 'application/powerpoint', + 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', + 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'pqa' => 'application/vnd.palm', + 'prc' => 'model/prc', + 'pre' => 'application/vnd.lotus-freelance', + 'prf' => 'application/pics-rules', + 'provx' => 'application/provenance+xml', + 'ps' => 'application/postscript', + 'psb' => 'application/vnd.3gpp.pic-bw-small', + 'psd' => 'application/x-photoshop', + 'psf' => 'application/x-font-linux-psf', + 'pskcxml' => 'application/pskc+xml', + 'pti' => 'image/prs.pti', + 'ptid' => 'application/vnd.pvi.ptid1', + 'pub' => 'application/x-mspublisher', + 'pvb' => 'application/vnd.3gpp.pic-bw-var', + 'pwn' => 'application/vnd.3m.post-it-notes', + 'pya' => 'audio/vnd.ms-playready.media.pya', + 'pyv' => 'video/vnd.ms-playready.media.pyv', + 'qam' => 'application/vnd.epson.quickanime', + 'qbo' => 'application/vnd.intu.qbo', + 'qfx' => 'application/vnd.intu.qfx', + 'qps' => 'application/vnd.publishare-delta-tree', + 'qt' => 'video/quicktime', + 'qwd' => 'application/vnd.quark.quarkxpress', + 'qwt' => 'application/vnd.quark.quarkxpress', + 'qxb' => 'application/vnd.quark.quarkxpress', + 'qxd' => 'application/vnd.quark.quarkxpress', + 'qxl' => 'application/vnd.quark.quarkxpress', + 'qxt' => 'application/vnd.quark.quarkxpress', + 'ra' => 'audio/x-realaudio', + 'ram' => 'audio/x-pn-realaudio', + 'raml' => 'application/raml+yaml', + 'rapd' => 'application/route-apd+xml', + 'rar' => 'application/x-rar', + 'ras' => 'image/x-cmu-raster', + 'rcprofile' => 'application/vnd.ipunplugged.rcprofile', + 'rdf' => 'application/rdf+xml', + 'rdz' => 'application/vnd.data-vision.rdz', + 'relo' => 'application/p2p-overlay+xml', + 'rep' => 'application/vnd.businessobjects', + 'res' => 'application/x-dtbresource+xml', + 'rgb' => 'image/x-rgb', + 'rif' => 'application/reginfo+xml', + 'rip' => 'audio/vnd.rip', + 'ris' => 'application/x-research-info-systems', + 'rl' => 'application/resource-lists+xml', + 'rlc' => 'image/vnd.fujixerox.edmics-rlc', + 'rld' => 'application/resource-lists-diff+xml', + 'rm' => 'audio/x-pn-realaudio', + 'rmi' => 'audio/midi', + 'rmp' => 'audio/x-pn-realaudio-plugin', + 'rms' => 'application/vnd.jcp.javame.midlet-rms', + 'rmvb' => 'application/vnd.rn-realmedia-vbr', + 'rnc' => 'application/relax-ng-compact-syntax', + 'rng' => 'application/xml', + 'roa' => 'application/rpki-roa', + 'roff' => 'text/troff', + 'rp9' => 'application/vnd.cloanto.rp9', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'rpss' => 'application/vnd.nokia.radio-presets', + 'rpst' => 'application/vnd.nokia.radio-preset', + 'rq' => 'application/sparql-query', + 'rs' => 'application/rls-services+xml', + 'rsa' => 'application/x-pkcs7', + 'rsat' => 'application/atsc-rsat+xml', + 'rsd' => 'application/rsd+xml', + 'rsheet' => 'application/urc-ressheet+xml', + 'rss' => 'application/rss+xml', + 'rtf' => 'text/rtf', + 'rtx' => 'text/richtext', + 'run' => 'application/x-makeself', + 'rusd' => 'application/route-usd+xml', + 'rv' => 'video/vnd.rn-realvideo', + 's' => 'text/x-asm', + 's3m' => 'audio/s3m', + 'saf' => 'application/vnd.yamaha.smaf-audio', + 'sass' => 'text/x-sass', + 'sbml' => 'application/sbml+xml', + 'sc' => 'application/vnd.ibm.secure-container', + 'scd' => 'application/x-msschedule', + 'scm' => 'application/vnd.lotus-screencam', + 'scq' => 'application/scvp-cv-request', + 'scs' => 'application/scvp-cv-response', + 'scss' => 'text/x-scss', + 'scurl' => 'text/vnd.curl.scurl', + 'sda' => 'application/vnd.stardivision.draw', + 'sdc' => 'application/vnd.stardivision.calc', + 'sdd' => 'application/vnd.stardivision.impress', + 'sdkd' => 'application/vnd.solent.sdkm+xml', + 'sdkm' => 'application/vnd.solent.sdkm+xml', + 'sdp' => 'application/sdp', + 'sdw' => 'application/vnd.stardivision.writer', + 'sea' => 'application/octet-stream', + 'see' => 'application/vnd.seemail', + 'seed' => 'application/vnd.fdsn.seed', + 'sema' => 'application/vnd.sema', + 'semd' => 'application/vnd.semd', + 'semf' => 'application/vnd.semf', + 'senmlx' => 'application/senml+xml', + 'sensmlx' => 'application/sensml+xml', + 'ser' => 'application/java-serialized-object', + 'setpay' => 'application/set-payment-initiation', + 'setreg' => 'application/set-registration-initiation', + 'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data', + 'sfs' => 'application/vnd.spotfire.sfs', + 'sfv' => 'text/x-sfv', + 'sgi' => 'image/sgi', + 'sgl' => 'application/vnd.stardivision.writer-global', + 'sgm' => 'text/sgml', + 'sgml' => 'text/sgml', + 'sh' => 'application/x-sh', + 'shar' => 'application/x-shar', + 'shex' => 'text/shex', + 'shf' => 'application/shf+xml', + 'shtml' => 'text/html', + 'sid' => 'image/x-mrsid-image', + 'sieve' => 'application/sieve', + 'sig' => 'application/pgp-signature', + 'sil' => 'audio/silk', + 'silo' => 'model/mesh', + 'sis' => 'application/vnd.symbian.install', + 'sisx' => 'application/vnd.symbian.install', + 'sit' => 'application/x-stuffit', + 'sitx' => 'application/x-stuffitx', + 'siv' => 'application/sieve', + 'skd' => 'application/vnd.koan', + 'skm' => 'application/vnd.koan', + 'skp' => 'application/vnd.koan', + 'skt' => 'application/vnd.koan', + 'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12', + 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', + 'slim' => 'text/slim', + 'slm' => 'text/slim', + 'sls' => 'application/route-s-tsid+xml', + 'slt' => 'application/vnd.epson.salt', + 'sm' => 'application/vnd.stepmania.stepchart', + 'smf' => 'application/vnd.stardivision.math', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'smv' => 'video/x-smv', + 'smzip' => 'application/vnd.stepmania.package', + 'snd' => 'audio/basic', + 'snf' => 'application/x-font-snf', + 'so' => 'application/octet-stream', + 'spc' => 'application/x-pkcs7-certificates', + 'spdx' => 'text/spdx', + 'spf' => 'application/vnd.yamaha.smaf-phrase', + 'spl' => 'application/x-futuresplash', + 'spot' => 'text/vnd.in3d.spot', + 'spp' => 'application/scvp-vp-response', + 'spq' => 'application/scvp-vp-request', + 'spx' => 'audio/ogg', + 'sql' => 'application/x-sql', + 'src' => 'application/x-wais-source', + 'srt' => 'application/x-subrip', + 'sru' => 'application/sru+xml', + 'srx' => 'application/sparql-results+xml', + 'ssdl' => 'application/ssdl+xml', + 'sse' => 'application/vnd.kodak-descriptor', + 'ssf' => 'application/vnd.epson.ssf', + 'ssml' => 'application/ssml+xml', + 'sst' => 'application/octet-stream', + 'st' => 'application/vnd.sailingtracker.track', + 'stc' => 'application/vnd.sun.xml.calc.template', + 'std' => 'application/vnd.sun.xml.draw.template', + 'stf' => 'application/vnd.wt.stf', + 'sti' => 'application/vnd.sun.xml.impress.template', + 'stk' => 'application/hyperstudio', + 'stl' => 'model/stl', + 'stpx' => 'model/step+xml', + 'stpxz' => 'model/step-xml+zip', + 'stpz' => 'model/step+zip', + 'str' => 'application/vnd.pg.format', + 'stw' => 'application/vnd.sun.xml.writer.template', + 'styl' => 'text/stylus', + 'stylus' => 'text/stylus', + 'sub' => 'text/vnd.dvb.subtitle', + 'sus' => 'application/vnd.sus-calendar', + 'susp' => 'application/vnd.sus-calendar', + 'sv4cpio' => 'application/x-sv4cpio', + 'sv4crc' => 'application/x-sv4crc', + 'svc' => 'application/vnd.dvb.service', + 'svd' => 'application/vnd.svd', + 'svg' => 'image/svg+xml', + 'svgz' => 'image/svg+xml', + 'swa' => 'application/x-director', + 'swf' => 'application/x-shockwave-flash', + 'swi' => 'application/vnd.aristanetworks.swi', + 'swidtag' => 'application/swid+xml', + 'sxc' => 'application/vnd.sun.xml.calc', + 'sxd' => 'application/vnd.sun.xml.draw', + 'sxg' => 'application/vnd.sun.xml.writer.global', + 'sxi' => 'application/vnd.sun.xml.impress', + 'sxm' => 'application/vnd.sun.xml.math', + 'sxw' => 'application/vnd.sun.xml.writer', + 't' => 'text/troff', + 't3' => 'application/x-t3vm-image', + 't38' => 'image/t38', + 'taglet' => 'application/vnd.mynfc', + 'tao' => 'application/vnd.tao.intent-module-archive', + 'tap' => 'image/vnd.tencent.tap', + 'tar' => 'application/x-tar', + 'tcap' => 'application/vnd.3gpp2.tcap', + 'tcl' => 'application/x-tcl', + 'td' => 'application/urc-targetdesc+xml', + 'teacher' => 'application/vnd.smart.teacher', + 'tei' => 'application/tei+xml', + 'teicorpus' => 'application/tei+xml', + 'tex' => 'application/x-tex', + 'texi' => 'application/x-texinfo', + 'texinfo' => 'application/x-texinfo', + 'text' => 'text/plain', + 'tfi' => 'application/thraud+xml', + 'tfm' => 'application/x-tex-tfm', + 'tfx' => 'image/tiff-fx', + 'tga' => 'image/x-tga', + 'tgz' => 'application/x-tar', + 'thmx' => 'application/vnd.ms-officetheme', + 'tif' => 'image/tiff', + 'tiff' => 'image/tiff', + 'tk' => 'application/x-tcl', + 'tmo' => 'application/vnd.tmobile-livetv', + 'toml' => 'application/toml', + 'torrent' => 'application/x-bittorrent', + 'tpl' => 'application/vnd.groove-tool-template', + 'tpt' => 'application/vnd.trid.tpt', + 'tr' => 'text/troff', + 'tra' => 'application/vnd.trueapp', + 'trig' => 'application/trig', + 'trm' => 'application/x-msterminal', + 'ts' => 'video/mp2t', + 'tsd' => 'application/timestamped-data', + 'tsv' => 'text/tab-separated-values', + 'ttc' => 'font/collection', + 'ttf' => 'font/ttf', + 'ttl' => 'text/turtle', + 'ttml' => 'application/ttml+xml', + 'twd' => 'application/vnd.simtech-mindmapper', + 'twds' => 'application/vnd.simtech-mindmapper', + 'txd' => 'application/vnd.genomatix.tuxedo', + 'txf' => 'application/vnd.mobius.txf', + 'txt' => 'text/plain', + 'u3d' => 'model/u3d', + 'u8dsn' => 'message/global-delivery-status', + 'u8hdr' => 'message/global-headers', + 'u8mdn' => 'message/global-disposition-notification', + 'u8msg' => 'message/global', + 'u32' => 'application/x-authorware-bin', + 'ubj' => 'application/ubjson', + 'udeb' => 'application/x-debian-package', + 'ufd' => 'application/vnd.ufdl', + 'ufdl' => 'application/vnd.ufdl', + 'ulx' => 'application/x-glulx', + 'umj' => 'application/vnd.umajin', + 'unityweb' => 'application/vnd.unity', + 'uoml' => 'application/vnd.uoml+xml', + 'uri' => 'text/uri-list', + 'uris' => 'text/uri-list', + 'urls' => 'text/uri-list', + 'usdz' => 'model/vnd.usdz+zip', + 'ustar' => 'application/x-ustar', + 'utz' => 'application/vnd.uiq.theme', + 'uu' => 'text/x-uuencode', + 'uva' => 'audio/vnd.dece.audio', + 'uvd' => 'application/vnd.dece.data', + 'uvf' => 'application/vnd.dece.data', + 'uvg' => 'image/vnd.dece.graphic', + 'uvh' => 'video/vnd.dece.hd', + 'uvi' => 'image/vnd.dece.graphic', + 'uvm' => 'video/vnd.dece.mobile', + 'uvp' => 'video/vnd.dece.pd', + 'uvs' => 'video/vnd.dece.sd', + 'uvt' => 'application/vnd.dece.ttml+xml', + 'uvu' => 'video/vnd.uvvu.mp4', + 'uvv' => 'video/vnd.dece.video', + 'uvva' => 'audio/vnd.dece.audio', + 'uvvd' => 'application/vnd.dece.data', + 'uvvf' => 'application/vnd.dece.data', + 'uvvg' => 'image/vnd.dece.graphic', + 'uvvh' => 'video/vnd.dece.hd', + 'uvvi' => 'image/vnd.dece.graphic', + 'uvvm' => 'video/vnd.dece.mobile', + 'uvvp' => 'video/vnd.dece.pd', + 'uvvs' => 'video/vnd.dece.sd', + 'uvvt' => 'application/vnd.dece.ttml+xml', + 'uvvu' => 'video/vnd.uvvu.mp4', + 'uvvv' => 'video/vnd.dece.video', + 'uvvx' => 'application/vnd.dece.unspecified', + 'uvvz' => 'application/vnd.dece.zip', + 'uvx' => 'application/vnd.dece.unspecified', + 'uvz' => 'application/vnd.dece.zip', + 'vbox' => 'application/x-virtualbox-vbox', + 'vbox-extpack' => 'application/x-virtualbox-vbox-extpack', + 'vcard' => 'text/vcard', + 'vcd' => 'application/x-cdlink', + 'vcf' => 'text/x-vcard', + 'vcg' => 'application/vnd.groove-vcard', + 'vcs' => 'text/x-vcalendar', + 'vcx' => 'application/vnd.vcx', + 'vdi' => 'application/x-virtualbox-vdi', + 'vds' => 'model/vnd.sap.vds', + 'vhd' => 'application/x-virtualbox-vhd', + 'vis' => 'application/vnd.visionary', + 'viv' => 'video/vnd.vivo', + 'vlc' => 'application/videolan', + 'vmdk' => 'application/x-virtualbox-vmdk', + 'vob' => 'video/x-ms-vob', + 'vor' => 'application/vnd.stardivision.writer', + 'vox' => 'application/x-authorware-bin', + 'vrml' => 'model/vrml', + 'vsd' => 'application/vnd.visio', + 'vsf' => 'application/vnd.vsf', + 'vss' => 'application/vnd.visio', + 'vst' => 'application/vnd.visio', + 'vsw' => 'application/vnd.visio', + 'vtf' => 'image/vnd.valve.source.texture', + 'vtt' => 'text/vtt', + 'vtu' => 'model/vnd.vtu', + 'vxml' => 'application/voicexml+xml', + 'w3d' => 'application/x-director', + 'wad' => 'application/x-doom', + 'wadl' => 'application/vnd.sun.wadl+xml', + 'war' => 'application/java-archive', + 'wasm' => 'application/wasm', + 'wav' => 'audio/x-wav', + 'wax' => 'audio/x-ms-wax', + 'wbmp' => 'image/vnd.wap.wbmp', + 'wbs' => 'application/vnd.criticaltools.wbs+xml', + 'wbxml' => 'application/wbxml', + 'wcm' => 'application/vnd.ms-works', + 'wdb' => 'application/vnd.ms-works', + 'wdp' => 'image/vnd.ms-photo', + 'weba' => 'audio/webm', + 'webapp' => 'application/x-web-app-manifest+json', + 'webm' => 'video/webm', + 'webmanifest' => 'application/manifest+json', + 'webp' => 'image/webp', + 'wg' => 'application/vnd.pmi.widget', + 'wgt' => 'application/widget', + 'wif' => 'application/watcherinfo+xml', + 'wks' => 'application/vnd.ms-works', + 'wm' => 'video/x-ms-wm', + 'wma' => 'audio/x-ms-wma', + 'wmd' => 'application/x-ms-wmd', + 'wmf' => 'image/wmf', + 'wml' => 'text/vnd.wap.wml', + 'wmlc' => 'application/wmlc', + 'wmls' => 'text/vnd.wap.wmlscript', + 'wmlsc' => 'application/vnd.wap.wmlscriptc', + 'wmv' => 'video/x-ms-wmv', + 'wmx' => 'video/x-ms-wmx', + 'wmz' => 'application/x-msmetafile', + 'woff' => 'font/woff', + 'woff2' => 'font/woff2', + 'word' => 'application/msword', + 'wpd' => 'application/vnd.wordperfect', + 'wpl' => 'application/vnd.ms-wpl', + 'wps' => 'application/vnd.ms-works', + 'wqd' => 'application/vnd.wqd', + 'wri' => 'application/x-mswrite', + 'wrl' => 'model/vrml', + 'wsc' => 'message/vnd.wfa.wsc', + 'wsdl' => 'application/wsdl+xml', + 'wspolicy' => 'application/wspolicy+xml', + 'wtb' => 'application/vnd.webturbo', + 'wvx' => 'video/x-ms-wvx', + 'x3d' => 'model/x3d+xml', + 'x3db' => 'model/x3d+fastinfoset', + 'x3dbz' => 'model/x3d+binary', + 'x3dv' => 'model/x3d-vrml', + 'x3dvz' => 'model/x3d+vrml', + 'x3dz' => 'model/x3d+xml', + 'x32' => 'application/x-authorware-bin', + 'x_b' => 'model/vnd.parasolid.transmit.binary', + 'x_t' => 'model/vnd.parasolid.transmit.text', + 'xaml' => 'application/xaml+xml', + 'xap' => 'application/x-silverlight-app', + 'xar' => 'application/vnd.xara', + 'xav' => 'application/xcap-att+xml', + 'xbap' => 'application/x-ms-xbap', + 'xbd' => 'application/vnd.fujixerox.docuworks.binder', + 'xbm' => 'image/x-xbitmap', + 'xca' => 'application/xcap-caps+xml', + 'xcs' => 'application/calendar+xml', + 'xdf' => 'application/xcap-diff+xml', + 'xdm' => 'application/vnd.syncml.dm+xml', + 'xdp' => 'application/vnd.adobe.xdp+xml', + 'xdssc' => 'application/dssc+xml', + 'xdw' => 'application/vnd.fujixerox.docuworks', + 'xel' => 'application/xcap-el+xml', + 'xenc' => 'application/xenc+xml', + 'xer' => 'application/patch-ops-error+xml', + 'xfdf' => 'application/vnd.adobe.xfdf', + 'xfdl' => 'application/vnd.xfdl', + 'xht' => 'application/xhtml+xml', + 'xhtml' => 'application/xhtml+xml', + 'xhvml' => 'application/xv+xml', + 'xif' => 'image/vnd.xiff', + 'xl' => 'application/excel', + 'xla' => 'application/vnd.ms-excel', + 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', + 'xlc' => 'application/vnd.ms-excel', + 'xlf' => 'application/xliff+xml', + 'xlm' => 'application/vnd.ms-excel', + 'xls' => 'application/vnd.ms-excel', + 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', + 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'xlt' => 'application/vnd.ms-excel', + 'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12', + 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', + 'xlw' => 'application/vnd.ms-excel', + 'xm' => 'audio/xm', + 'xml' => 'application/xml', + 'xns' => 'application/xcap-ns+xml', + 'xo' => 'application/vnd.olpc-sugar', + 'xop' => 'application/xop+xml', + 'xpi' => 'application/x-xpinstall', + 'xpl' => 'application/xproc+xml', + 'xpm' => 'image/x-xpixmap', + 'xpr' => 'application/vnd.is-xpr', + 'xps' => 'application/vnd.ms-xpsdocument', + 'xpw' => 'application/vnd.intercon.formnet', + 'xpx' => 'application/vnd.intercon.formnet', + 'xsd' => 'application/xml', + 'xsl' => 'application/xml', + 'xslt' => 'application/xslt+xml', + 'xsm' => 'application/vnd.syncml+xml', + 'xspf' => 'application/xspf+xml', + 'xul' => 'application/vnd.mozilla.xul+xml', + 'xvm' => 'application/xv+xml', + 'xvml' => 'application/xv+xml', + 'xwd' => 'image/x-xwindowdump', + 'xyz' => 'chemical/x-xyz', + 'xz' => 'application/x-xz', + 'yaml' => 'text/yaml', + 'yang' => 'application/yang', + 'yin' => 'application/yin+xml', + 'yml' => 'text/yaml', + 'ymp' => 'text/x-suse-ymp', + 'z' => 'application/x-compress', + 'z1' => 'application/x-zmachine', + 'z2' => 'application/x-zmachine', + 'z3' => 'application/x-zmachine', + 'z4' => 'application/x-zmachine', + 'z5' => 'application/x-zmachine', + 'z6' => 'application/x-zmachine', + 'z7' => 'application/x-zmachine', + 'z8' => 'application/x-zmachine', + 'zaz' => 'application/vnd.zzazz.deck+xml', + 'zip' => 'application/zip', + 'zir' => 'application/vnd.zul', + 'zirz' => 'application/vnd.zul', + 'zmm' => 'application/vnd.handheld-entertainment+xml', + 'zsh' => 'text/x-scriptzsh', + ]; + + /** + * Determines the mimetype of a file by looking at its extension. + * + * @link https://raw.githubusercontent.com/jshttp/mime-db/master/db.json + */ + public static function fromFilename(string $filename): ?string + { + return self::fromExtension(pathinfo($filename, PATHINFO_EXTENSION)); + } + + /** + * Maps a file extensions to a mimetype. + * + * @link https://raw.githubusercontent.com/jshttp/mime-db/master/db.json + */ + public static function fromExtension(string $extension): ?string + { + return self::MIME_TYPES[strtolower($extension)] ?? null; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MultipartStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MultipartStream.php new file mode 100644 index 0000000..2466707 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/MultipartStream.php @@ -0,0 +1,156 @@ +boundary = $boundary ?: sha1(uniqid('', true)); + $this->stream = $this->createStream($elements); + } + + public function getBoundary(): string + { + return $this->boundary; + } + + public function isWritable(): bool + { + return false; + } + + /** + * Get the headers needed before transferring the content of a POST file + * + * @param array $headers + */ + private function getHeaders(array $headers): string + { + $str = ''; + foreach ($headers as $key => $value) { + $str .= "{$key}: {$value}\r\n"; + } + + return "--{$this->boundary}\r\n" . trim($str) . "\r\n\r\n"; + } + + /** + * Create the aggregate stream that will be used to upload the POST data + */ + protected function createStream(array $elements = []): StreamInterface + { + $stream = new AppendStream(); + + foreach ($elements as $element) { + if (!is_array($element)) { + throw new \UnexpectedValueException("An array is expected"); + } + $this->addElement($stream, $element); + } + + // Add the trailing boundary with CRLF + $stream->addStream(Utils::streamFor("--{$this->boundary}--\r\n")); + + return $stream; + } + + private function addElement(AppendStream $stream, array $element): void + { + foreach (['contents', 'name'] as $key) { + if (!array_key_exists($key, $element)) { + throw new \InvalidArgumentException("A '{$key}' key is required"); + } + } + + $element['contents'] = Utils::streamFor($element['contents']); + + if (empty($element['filename'])) { + $uri = $element['contents']->getMetadata('uri'); + if ($uri && \is_string($uri) && \substr($uri, 0, 6) !== 'php://' && \substr($uri, 0, 7) !== 'data://') { + $element['filename'] = $uri; + } + } + + [$body, $headers] = $this->createElement( + $element['name'], + $element['contents'], + $element['filename'] ?? null, + $element['headers'] ?? [] + ); + + $stream->addStream(Utils::streamFor($this->getHeaders($headers))); + $stream->addStream($body); + $stream->addStream(Utils::streamFor("\r\n")); + } + + private function createElement(string $name, StreamInterface $stream, ?string $filename, array $headers): array + { + // Set a default content-disposition header if one was no provided + $disposition = $this->getHeader($headers, 'content-disposition'); + if (!$disposition) { + $headers['Content-Disposition'] = ($filename === '0' || $filename) + ? sprintf( + 'form-data; name="%s"; filename="%s"', + $name, + basename($filename) + ) + : "form-data; name=\"{$name}\""; + } + + // Set a default content-length header if one was no provided + $length = $this->getHeader($headers, 'content-length'); + if (!$length) { + if ($length = $stream->getSize()) { + $headers['Content-Length'] = (string) $length; + } + } + + // Set a default Content-Type if one was not supplied + $type = $this->getHeader($headers, 'content-type'); + if (!$type && ($filename === '0' || $filename)) { + if ($type = MimeType::fromFilename($filename)) { + $headers['Content-Type'] = $type; + } + } + + return [$stream, $headers]; + } + + private function getHeader(array $headers, string $key) + { + $lowercaseHeader = strtolower($key); + foreach ($headers as $k => $v) { + if (strtolower($k) === $lowercaseHeader) { + return $v; + } + } + + return null; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/NoSeekStream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/NoSeekStream.php new file mode 100644 index 0000000..99e25b9 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/NoSeekStream.php @@ -0,0 +1,25 @@ +source = $source; + $this->size = $options['size'] ?? null; + $this->metadata = $options['metadata'] ?? []; + $this->buffer = new BufferStream(); + } + + public function __toString(): string + { + try { + return Utils::copyToString($this); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + return ''; + } + } + + public function close(): void + { + $this->detach(); + } + + public function detach() + { + $this->tellPos = 0; + $this->source = null; + + return null; + } + + public function getSize(): ?int + { + return $this->size; + } + + public function tell(): int + { + return $this->tellPos; + } + + public function eof(): bool + { + return $this->source === null; + } + + public function isSeekable(): bool + { + return false; + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + throw new \RuntimeException('Cannot seek a PumpStream'); + } + + public function isWritable(): bool + { + return false; + } + + public function write($string): int + { + throw new \RuntimeException('Cannot write to a PumpStream'); + } + + public function isReadable(): bool + { + return true; + } + + public function read($length): string + { + $data = $this->buffer->read($length); + $readLen = strlen($data); + $this->tellPos += $readLen; + $remaining = $length - $readLen; + + if ($remaining) { + $this->pump($remaining); + $data .= $this->buffer->read($remaining); + $this->tellPos += strlen($data) - $readLen; + } + + return $data; + } + + public function getContents(): string + { + $result = ''; + while (!$this->eof()) { + $result .= $this->read(1000000); + } + + return $result; + } + + /** + * {@inheritdoc} + * + * @return mixed + */ + public function getMetadata($key = null) + { + if (!$key) { + return $this->metadata; + } + + return $this->metadata[$key] ?? null; + } + + private function pump(int $length): void + { + if ($this->source) { + do { + $data = call_user_func($this->source, $length); + if ($data === false || $data === null) { + $this->source = null; + return; + } + $this->buffer->write($data); + $length -= strlen($data); + } while ($length > 0); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Query.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Query.php new file mode 100644 index 0000000..2faab3a --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Query.php @@ -0,0 +1,113 @@ + '1', 'foo[b]' => '2'])`. + * + * @param string $str Query string to parse + * @param int|bool $urlEncoding How the query string is encoded + */ + public static function parse(string $str, $urlEncoding = true): array + { + $result = []; + + if ($str === '') { + return $result; + } + + if ($urlEncoding === true) { + $decoder = function ($value) { + return rawurldecode(str_replace('+', ' ', (string) $value)); + }; + } elseif ($urlEncoding === PHP_QUERY_RFC3986) { + $decoder = 'rawurldecode'; + } elseif ($urlEncoding === PHP_QUERY_RFC1738) { + $decoder = 'urldecode'; + } else { + $decoder = function ($str) { + return $str; + }; + } + + foreach (explode('&', $str) as $kvp) { + $parts = explode('=', $kvp, 2); + $key = $decoder($parts[0]); + $value = isset($parts[1]) ? $decoder($parts[1]) : null; + if (!array_key_exists($key, $result)) { + $result[$key] = $value; + } else { + if (!is_array($result[$key])) { + $result[$key] = [$result[$key]]; + } + $result[$key][] = $value; + } + } + + return $result; + } + + /** + * Build a query string from an array of key value pairs. + * + * This function can use the return value of `parse()` to build a query + * string. This function does not modify the provided keys when an array is + * encountered (like `http_build_query()` would). + * + * @param array $params Query string parameters. + * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 + * to encode using RFC3986, or PHP_QUERY_RFC1738 + * to encode using RFC1738. + */ + public static function build(array $params, $encoding = PHP_QUERY_RFC3986): string + { + if (!$params) { + return ''; + } + + if ($encoding === false) { + $encoder = function (string $str): string { + return $str; + }; + } elseif ($encoding === PHP_QUERY_RFC3986) { + $encoder = 'rawurlencode'; + } elseif ($encoding === PHP_QUERY_RFC1738) { + $encoder = 'urlencode'; + } else { + throw new \InvalidArgumentException('Invalid type'); + } + + $qs = ''; + foreach ($params as $k => $v) { + $k = $encoder((string) $k); + if (!is_array($v)) { + $qs .= $k; + $v = is_bool($v) ? (int) $v : $v; + if ($v !== null) { + $qs .= '=' . $encoder((string) $v); + } + $qs .= '&'; + } else { + foreach ($v as $vv) { + $qs .= $k; + $vv = is_bool($vv) ? (int) $vv : $vv; + if ($vv !== null) { + $qs .= '=' . $encoder((string) $vv); + } + $qs .= '&'; + } + } + } + + return $qs ? (string) substr($qs, 0, -1) : ''; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Request.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Request.php new file mode 100644 index 0000000..b17af66 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Request.php @@ -0,0 +1,157 @@ + $headers Request headers + * @param string|resource|StreamInterface|null $body Request body + * @param string $version Protocol version + */ + public function __construct( + string $method, + $uri, + array $headers = [], + $body = null, + string $version = '1.1' + ) { + $this->assertMethod($method); + if (!($uri instanceof UriInterface)) { + $uri = new Uri($uri); + } + + $this->method = strtoupper($method); + $this->uri = $uri; + $this->setHeaders($headers); + $this->protocol = $version; + + if (!isset($this->headerNames['host'])) { + $this->updateHostFromUri(); + } + + if ($body !== '' && $body !== null) { + $this->stream = Utils::streamFor($body); + } + } + + public function getRequestTarget(): string + { + if ($this->requestTarget !== null) { + return $this->requestTarget; + } + + $target = $this->uri->getPath(); + if ($target === '') { + $target = '/'; + } + if ($this->uri->getQuery() != '') { + $target .= '?' . $this->uri->getQuery(); + } + + return $target; + } + + public function withRequestTarget($requestTarget): RequestInterface + { + if (preg_match('#\s#', $requestTarget)) { + throw new InvalidArgumentException( + 'Invalid request target provided; cannot contain whitespace' + ); + } + + $new = clone $this; + $new->requestTarget = $requestTarget; + return $new; + } + + public function getMethod(): string + { + return $this->method; + } + + public function withMethod($method): RequestInterface + { + $this->assertMethod($method); + $new = clone $this; + $new->method = strtoupper($method); + return $new; + } + + public function getUri(): UriInterface + { + return $this->uri; + } + + public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface + { + if ($uri === $this->uri) { + return $this; + } + + $new = clone $this; + $new->uri = $uri; + + if (!$preserveHost || !isset($this->headerNames['host'])) { + $new->updateHostFromUri(); + } + + return $new; + } + + private function updateHostFromUri(): void + { + $host = $this->uri->getHost(); + + if ($host == '') { + return; + } + + if (($port = $this->uri->getPort()) !== null) { + $host .= ':' . $port; + } + + if (isset($this->headerNames['host'])) { + $header = $this->headerNames['host']; + } else { + $header = 'Host'; + $this->headerNames['host'] = 'Host'; + } + // Ensure Host is the first header. + // See: http://tools.ietf.org/html/rfc7230#section-5.4 + $this->headers = [$header => [$host]] + $this->headers; + } + + /** + * @param mixed $method + */ + private function assertMethod($method): void + { + if (!is_string($method) || $method === '') { + throw new InvalidArgumentException('Method must be a non-empty string.'); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Response.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Response.php new file mode 100644 index 0000000..4c6ee6f --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Response.php @@ -0,0 +1,160 @@ + 'Continue', + 101 => 'Switching Protocols', + 102 => 'Processing', + 200 => 'OK', + 201 => 'Created', + 202 => 'Accepted', + 203 => 'Non-Authoritative Information', + 204 => 'No Content', + 205 => 'Reset Content', + 206 => 'Partial Content', + 207 => 'Multi-status', + 208 => 'Already Reported', + 300 => 'Multiple Choices', + 301 => 'Moved Permanently', + 302 => 'Found', + 303 => 'See Other', + 304 => 'Not Modified', + 305 => 'Use Proxy', + 306 => 'Switch Proxy', + 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', + 400 => 'Bad Request', + 401 => 'Unauthorized', + 402 => 'Payment Required', + 403 => 'Forbidden', + 404 => 'Not Found', + 405 => 'Method Not Allowed', + 406 => 'Not Acceptable', + 407 => 'Proxy Authentication Required', + 408 => 'Request Time-out', + 409 => 'Conflict', + 410 => 'Gone', + 411 => 'Length Required', + 412 => 'Precondition Failed', + 413 => 'Request Entity Too Large', + 414 => 'Request-URI Too Large', + 415 => 'Unsupported Media Type', + 416 => 'Requested range not satisfiable', + 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', + 422 => 'Unprocessable Entity', + 423 => 'Locked', + 424 => 'Failed Dependency', + 425 => 'Unordered Collection', + 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', + 451 => 'Unavailable For Legal Reasons', + 500 => 'Internal Server Error', + 501 => 'Not Implemented', + 502 => 'Bad Gateway', + 503 => 'Service Unavailable', + 504 => 'Gateway Time-out', + 505 => 'HTTP Version not supported', + 506 => 'Variant Also Negotiates', + 507 => 'Insufficient Storage', + 508 => 'Loop Detected', + 510 => 'Not Extended', + 511 => 'Network Authentication Required', + ]; + + /** @var string */ + private $reasonPhrase; + + /** @var int */ + private $statusCode; + + /** + * @param int $status Status code + * @param array $headers Response headers + * @param string|resource|StreamInterface|null $body Response body + * @param string $version Protocol version + * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) + */ + public function __construct( + int $status = 200, + array $headers = [], + $body = null, + string $version = '1.1', + string $reason = null + ) { + $this->assertStatusCodeRange($status); + + $this->statusCode = $status; + + if ($body !== '' && $body !== null) { + $this->stream = Utils::streamFor($body); + } + + $this->setHeaders($headers); + if ($reason == '' && isset(self::PHRASES[$this->statusCode])) { + $this->reasonPhrase = self::PHRASES[$this->statusCode]; + } else { + $this->reasonPhrase = (string) $reason; + } + + $this->protocol = $version; + } + + public function getStatusCode(): int + { + return $this->statusCode; + } + + public function getReasonPhrase(): string + { + return $this->reasonPhrase; + } + + public function withStatus($code, $reasonPhrase = ''): ResponseInterface + { + $this->assertStatusCodeIsInteger($code); + $code = (int) $code; + $this->assertStatusCodeRange($code); + + $new = clone $this; + $new->statusCode = $code; + if ($reasonPhrase == '' && isset(self::PHRASES[$new->statusCode])) { + $reasonPhrase = self::PHRASES[$new->statusCode]; + } + $new->reasonPhrase = (string) $reasonPhrase; + return $new; + } + + /** + * @param mixed $statusCode + */ + private function assertStatusCodeIsInteger($statusCode): void + { + if (filter_var($statusCode, FILTER_VALIDATE_INT) === false) { + throw new \InvalidArgumentException('Status code must be an integer value.'); + } + } + + private function assertStatusCodeRange(int $statusCode): void + { + if ($statusCode < 100 || $statusCode >= 600) { + throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.'); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Rfc7230.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Rfc7230.php new file mode 100644 index 0000000..3022401 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Rfc7230.php @@ -0,0 +1,23 @@ +@,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; + public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/ServerRequest.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/ServerRequest.php new file mode 100644 index 0000000..43cbb50 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/ServerRequest.php @@ -0,0 +1,344 @@ + $headers Request headers + * @param string|resource|StreamInterface|null $body Request body + * @param string $version Protocol version + * @param array $serverParams Typically the $_SERVER superglobal + */ + public function __construct( + string $method, + $uri, + array $headers = [], + $body = null, + string $version = '1.1', + array $serverParams = [] + ) { + $this->serverParams = $serverParams; + + parent::__construct($method, $uri, $headers, $body, $version); + } + + /** + * Return an UploadedFile instance array. + * + * @param array $files An array which respect $_FILES structure + * + * @throws InvalidArgumentException for unrecognized values + */ + public static function normalizeFiles(array $files): array + { + $normalized = []; + + foreach ($files as $key => $value) { + if ($value instanceof UploadedFileInterface) { + $normalized[$key] = $value; + } elseif (is_array($value) && isset($value['tmp_name'])) { + $normalized[$key] = self::createUploadedFileFromSpec($value); + } elseif (is_array($value)) { + $normalized[$key] = self::normalizeFiles($value); + continue; + } else { + throw new InvalidArgumentException('Invalid value in files specification'); + } + } + + return $normalized; + } + + /** + * Create and return an UploadedFile instance from a $_FILES specification. + * + * If the specification represents an array of values, this method will + * delegate to normalizeNestedFileSpec() and return that return value. + * + * @param array $value $_FILES struct + * + * @return UploadedFileInterface|UploadedFileInterface[] + */ + private static function createUploadedFileFromSpec(array $value) + { + if (is_array($value['tmp_name'])) { + return self::normalizeNestedFileSpec($value); + } + + return new UploadedFile( + $value['tmp_name'], + (int) $value['size'], + (int) $value['error'], + $value['name'], + $value['type'] + ); + } + + /** + * Normalize an array of file specifications. + * + * Loops through all nested files and returns a normalized array of + * UploadedFileInterface instances. + * + * @return UploadedFileInterface[] + */ + private static function normalizeNestedFileSpec(array $files = []): array + { + $normalizedFiles = []; + + foreach (array_keys($files['tmp_name']) as $key) { + $spec = [ + 'tmp_name' => $files['tmp_name'][$key], + 'size' => $files['size'][$key], + 'error' => $files['error'][$key], + 'name' => $files['name'][$key], + 'type' => $files['type'][$key], + ]; + $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec); + } + + return $normalizedFiles; + } + + /** + * Return a ServerRequest populated with superglobals: + * $_GET + * $_POST + * $_COOKIE + * $_FILES + * $_SERVER + */ + public static function fromGlobals(): ServerRequestInterface + { + $method = $_SERVER['REQUEST_METHOD'] ?? 'GET'; + $headers = getallheaders(); + $uri = self::getUriFromGlobals(); + $body = new CachingStream(new LazyOpenStream('php://input', 'r+')); + $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; + + $serverRequest = new ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); + + return $serverRequest + ->withCookieParams($_COOKIE) + ->withQueryParams($_GET) + ->withParsedBody($_POST) + ->withUploadedFiles(self::normalizeFiles($_FILES)); + } + + private static function extractHostAndPortFromAuthority(string $authority): array + { + $uri = 'http://' . $authority; + $parts = parse_url($uri); + if (false === $parts) { + return [null, null]; + } + + $host = $parts['host'] ?? null; + $port = $parts['port'] ?? null; + + return [$host, $port]; + } + + /** + * Get a Uri populated with values from $_SERVER. + */ + public static function getUriFromGlobals(): UriInterface + { + $uri = new Uri(''); + + $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http'); + + $hasPort = false; + if (isset($_SERVER['HTTP_HOST'])) { + [$host, $port] = self::extractHostAndPortFromAuthority($_SERVER['HTTP_HOST']); + if ($host !== null) { + $uri = $uri->withHost($host); + } + + if ($port !== null) { + $hasPort = true; + $uri = $uri->withPort($port); + } + } elseif (isset($_SERVER['SERVER_NAME'])) { + $uri = $uri->withHost($_SERVER['SERVER_NAME']); + } elseif (isset($_SERVER['SERVER_ADDR'])) { + $uri = $uri->withHost($_SERVER['SERVER_ADDR']); + } + + if (!$hasPort && isset($_SERVER['SERVER_PORT'])) { + $uri = $uri->withPort($_SERVER['SERVER_PORT']); + } + + $hasQuery = false; + if (isset($_SERVER['REQUEST_URI'])) { + $requestUriParts = explode('?', $_SERVER['REQUEST_URI'], 2); + $uri = $uri->withPath($requestUriParts[0]); + if (isset($requestUriParts[1])) { + $hasQuery = true; + $uri = $uri->withQuery($requestUriParts[1]); + } + } + + if (!$hasQuery && isset($_SERVER['QUERY_STRING'])) { + $uri = $uri->withQuery($_SERVER['QUERY_STRING']); + } + + return $uri; + } + + public function getServerParams(): array + { + return $this->serverParams; + } + + public function getUploadedFiles(): array + { + return $this->uploadedFiles; + } + + public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface + { + $new = clone $this; + $new->uploadedFiles = $uploadedFiles; + + return $new; + } + + public function getCookieParams(): array + { + return $this->cookieParams; + } + + public function withCookieParams(array $cookies): ServerRequestInterface + { + $new = clone $this; + $new->cookieParams = $cookies; + + return $new; + } + + public function getQueryParams(): array + { + return $this->queryParams; + } + + public function withQueryParams(array $query): ServerRequestInterface + { + $new = clone $this; + $new->queryParams = $query; + + return $new; + } + + /** + * {@inheritdoc} + * + * @return array|object|null + */ + public function getParsedBody() + { + return $this->parsedBody; + } + + public function withParsedBody($data): ServerRequestInterface + { + $new = clone $this; + $new->parsedBody = $data; + + return $new; + } + + public function getAttributes(): array + { + return $this->attributes; + } + + /** + * {@inheritdoc} + * + * @return mixed + */ + public function getAttribute($attribute, $default = null) + { + if (false === array_key_exists($attribute, $this->attributes)) { + return $default; + } + + return $this->attributes[$attribute]; + } + + public function withAttribute($attribute, $value): ServerRequestInterface + { + $new = clone $this; + $new->attributes[$attribute] = $value; + + return $new; + } + + public function withoutAttribute($attribute): ServerRequestInterface + { + if (false === array_key_exists($attribute, $this->attributes)) { + return $this; + } + + $new = clone $this; + unset($new->attributes[$attribute]); + + return $new; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Stream.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Stream.php new file mode 100644 index 0000000..ecd3186 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Stream.php @@ -0,0 +1,282 @@ +size = $options['size']; + } + + $this->customMetadata = $options['metadata'] ?? []; + $this->stream = $stream; + $meta = stream_get_meta_data($this->stream); + $this->seekable = $meta['seekable']; + $this->readable = (bool)preg_match(self::READABLE_MODES, $meta['mode']); + $this->writable = (bool)preg_match(self::WRITABLE_MODES, $meta['mode']); + $this->uri = $this->getMetadata('uri'); + } + + /** + * Closes the stream when the destructed + */ + public function __destruct() + { + $this->close(); + } + + public function __toString(): string + { + try { + if ($this->isSeekable()) { + $this->seek(0); + } + return $this->getContents(); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + return ''; + } + } + + public function getContents(): string + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + if (!$this->readable) { + throw new \RuntimeException('Cannot read from non-readable stream'); + } + + return Utils::tryGetContents($this->stream); + } + + public function close(): void + { + if (isset($this->stream)) { + if (is_resource($this->stream)) { + fclose($this->stream); + } + $this->detach(); + } + } + + public function detach() + { + if (!isset($this->stream)) { + return null; + } + + $result = $this->stream; + unset($this->stream); + $this->size = $this->uri = null; + $this->readable = $this->writable = $this->seekable = false; + + return $result; + } + + public function getSize(): ?int + { + if ($this->size !== null) { + return $this->size; + } + + if (!isset($this->stream)) { + return null; + } + + // Clear the stat cache if the stream has a URI + if ($this->uri) { + clearstatcache(true, $this->uri); + } + + $stats = fstat($this->stream); + if (is_array($stats) && isset($stats['size'])) { + $this->size = $stats['size']; + return $this->size; + } + + return null; + } + + public function isReadable(): bool + { + return $this->readable; + } + + public function isWritable(): bool + { + return $this->writable; + } + + public function isSeekable(): bool + { + return $this->seekable; + } + + public function eof(): bool + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + return feof($this->stream); + } + + public function tell(): int + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + $result = ftell($this->stream); + + if ($result === false) { + throw new \RuntimeException('Unable to determine stream position'); + } + + return $result; + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + $whence = (int) $whence; + + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->seekable) { + throw new \RuntimeException('Stream is not seekable'); + } + if (fseek($this->stream, $offset, $whence) === -1) { + throw new \RuntimeException('Unable to seek to stream position ' + . $offset . ' with whence ' . var_export($whence, true)); + } + } + + public function read($length): string + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->readable) { + throw new \RuntimeException('Cannot read from non-readable stream'); + } + if ($length < 0) { + throw new \RuntimeException('Length parameter cannot be negative'); + } + + if (0 === $length) { + return ''; + } + + try { + $string = fread($this->stream, $length); + } catch (\Exception $e) { + throw new \RuntimeException('Unable to read from stream', 0, $e); + } + + if (false === $string) { + throw new \RuntimeException('Unable to read from stream'); + } + + return $string; + } + + public function write($string): int + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->writable) { + throw new \RuntimeException('Cannot write to a non-writable stream'); + } + + // We can't know the size after writing anything + $this->size = null; + $result = fwrite($this->stream, $string); + + if ($result === false) { + throw new \RuntimeException('Unable to write to stream'); + } + + return $result; + } + + /** + * {@inheritdoc} + * + * @return mixed + */ + public function getMetadata($key = null) + { + if (!isset($this->stream)) { + return $key ? null : []; + } elseif (!$key) { + return $this->customMetadata + stream_get_meta_data($this->stream); + } elseif (isset($this->customMetadata[$key])) { + return $this->customMetadata[$key]; + } + + $meta = stream_get_meta_data($this->stream); + + return $meta[$key] ?? null; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php new file mode 100644 index 0000000..56d4104 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php @@ -0,0 +1,155 @@ +stream = $stream; + } + + /** + * Magic method used to create a new stream if streams are not added in + * the constructor of a decorator (e.g., LazyOpenStream). + * + * @return StreamInterface + */ + public function __get(string $name) + { + if ($name === 'stream') { + $this->stream = $this->createStream(); + return $this->stream; + } + + throw new \UnexpectedValueException("$name not found on class"); + } + + public function __toString(): string + { + try { + if ($this->isSeekable()) { + $this->seek(0); + } + return $this->getContents(); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + return ''; + } + } + + public function getContents(): string + { + return Utils::copyToString($this); + } + + /** + * Allow decorators to implement custom methods + * + * @return mixed + */ + public function __call(string $method, array $args) + { + /** @var callable $callable */ + $callable = [$this->stream, $method]; + $result = call_user_func_array($callable, $args); + + // Always return the wrapped object if the result is a return $this + return $result === $this->stream ? $this : $result; + } + + public function close(): void + { + $this->stream->close(); + } + + /** + * {@inheritdoc} + * + * @return mixed + */ + public function getMetadata($key = null) + { + return $this->stream->getMetadata($key); + } + + public function detach() + { + return $this->stream->detach(); + } + + public function getSize(): ?int + { + return $this->stream->getSize(); + } + + public function eof(): bool + { + return $this->stream->eof(); + } + + public function tell(): int + { + return $this->stream->tell(); + } + + public function isReadable(): bool + { + return $this->stream->isReadable(); + } + + public function isWritable(): bool + { + return $this->stream->isWritable(); + } + + public function isSeekable(): bool + { + return $this->stream->isSeekable(); + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + $this->stream->seek($offset, $whence); + } + + public function read($length): string + { + return $this->stream->read($length); + } + + public function write($string): int + { + return $this->stream->write($string); + } + + /** + * Implement in subclasses to dynamically create streams when requested. + * + * @throws \BadMethodCallException + */ + protected function createStream(): StreamInterface + { + throw new \BadMethodCallException('Not implemented'); + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/StreamWrapper.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/StreamWrapper.php new file mode 100644 index 0000000..2a93464 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/StreamWrapper.php @@ -0,0 +1,175 @@ +isReadable()) { + $mode = $stream->isWritable() ? 'r+' : 'r'; + } elseif ($stream->isWritable()) { + $mode = 'w'; + } else { + throw new \InvalidArgumentException('The stream must be readable, ' + . 'writable, or both.'); + } + + return fopen('guzzle://stream', $mode, false, self::createStreamContext($stream)); + } + + /** + * Creates a stream context that can be used to open a stream as a php stream resource. + * + * @return resource + */ + public static function createStreamContext(StreamInterface $stream) + { + return stream_context_create([ + 'guzzle' => ['stream' => $stream] + ]); + } + + /** + * Registers the stream wrapper if needed + */ + public static function register(): void + { + if (!in_array('guzzle', stream_get_wrappers())) { + stream_wrapper_register('guzzle', __CLASS__); + } + } + + public function stream_open(string $path, string $mode, int $options, string &$opened_path = null): bool + { + $options = stream_context_get_options($this->context); + + if (!isset($options['guzzle']['stream'])) { + return false; + } + + $this->mode = $mode; + $this->stream = $options['guzzle']['stream']; + + return true; + } + + public function stream_read(int $count): string + { + return $this->stream->read($count); + } + + public function stream_write(string $data): int + { + return $this->stream->write($data); + } + + public function stream_tell(): int + { + return $this->stream->tell(); + } + + public function stream_eof(): bool + { + return $this->stream->eof(); + } + + public function stream_seek(int $offset, int $whence): bool + { + $this->stream->seek($offset, $whence); + + return true; + } + + /** + * @return resource|false + */ + public function stream_cast(int $cast_as) + { + $stream = clone($this->stream); + $resource = $stream->detach(); + + return $resource ?? false; + } + + /** + * @return array + */ + public function stream_stat(): array + { + static $modeMap = [ + 'r' => 33060, + 'rb' => 33060, + 'r+' => 33206, + 'w' => 33188, + 'wb' => 33188 + ]; + + return [ + 'dev' => 0, + 'ino' => 0, + 'mode' => $modeMap[$this->mode], + 'nlink' => 0, + 'uid' => 0, + 'gid' => 0, + 'rdev' => 0, + 'size' => $this->stream->getSize() ?: 0, + 'atime' => 0, + 'mtime' => 0, + 'ctime' => 0, + 'blksize' => 0, + 'blocks' => 0 + ]; + } + + /** + * @return array + */ + public function url_stat(string $path, int $flags): array + { + return [ + 'dev' => 0, + 'ino' => 0, + 'mode' => 0, + 'nlink' => 0, + 'uid' => 0, + 'gid' => 0, + 'rdev' => 0, + 'size' => 0, + 'atime' => 0, + 'mtime' => 0, + 'ctime' => 0, + 'blksize' => 0, + 'blocks' => 0 + ]; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UploadedFile.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UploadedFile.php new file mode 100644 index 0000000..b1521bc --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UploadedFile.php @@ -0,0 +1,211 @@ +setError($errorStatus); + $this->size = $size; + $this->clientFilename = $clientFilename; + $this->clientMediaType = $clientMediaType; + + if ($this->isOk()) { + $this->setStreamOrFile($streamOrFile); + } + } + + /** + * Depending on the value set file or stream variable + * + * @param StreamInterface|string|resource $streamOrFile + * + * @throws InvalidArgumentException + */ + private function setStreamOrFile($streamOrFile): void + { + if (is_string($streamOrFile)) { + $this->file = $streamOrFile; + } elseif (is_resource($streamOrFile)) { + $this->stream = new Stream($streamOrFile); + } elseif ($streamOrFile instanceof StreamInterface) { + $this->stream = $streamOrFile; + } else { + throw new InvalidArgumentException( + 'Invalid stream or file provided for UploadedFile' + ); + } + } + + /** + * @throws InvalidArgumentException + */ + private function setError(int $error): void + { + if (false === in_array($error, UploadedFile::ERRORS, true)) { + throw new InvalidArgumentException( + 'Invalid error status for UploadedFile' + ); + } + + $this->error = $error; + } + + private function isStringNotEmpty($param): bool + { + return is_string($param) && false === empty($param); + } + + /** + * Return true if there is no upload error + */ + private function isOk(): bool + { + return $this->error === UPLOAD_ERR_OK; + } + + public function isMoved(): bool + { + return $this->moved; + } + + /** + * @throws RuntimeException if is moved or not ok + */ + private function validateActive(): void + { + if (false === $this->isOk()) { + throw new RuntimeException('Cannot retrieve stream due to upload error'); + } + + if ($this->isMoved()) { + throw new RuntimeException('Cannot retrieve stream after it has already been moved'); + } + } + + public function getStream(): StreamInterface + { + $this->validateActive(); + + if ($this->stream instanceof StreamInterface) { + return $this->stream; + } + + /** @var string $file */ + $file = $this->file; + + return new LazyOpenStream($file, 'r+'); + } + + public function moveTo($targetPath): void + { + $this->validateActive(); + + if (false === $this->isStringNotEmpty($targetPath)) { + throw new InvalidArgumentException( + 'Invalid path provided for move operation; must be a non-empty string' + ); + } + + if ($this->file) { + $this->moved = PHP_SAPI === 'cli' + ? rename($this->file, $targetPath) + : move_uploaded_file($this->file, $targetPath); + } else { + Utils::copyToStream( + $this->getStream(), + new LazyOpenStream($targetPath, 'w') + ); + + $this->moved = true; + } + + if (false === $this->moved) { + throw new RuntimeException( + sprintf('Uploaded file could not be moved to %s', $targetPath) + ); + } + } + + public function getSize(): ?int + { + return $this->size; + } + + public function getError(): int + { + return $this->error; + } + + public function getClientFilename(): ?string + { + return $this->clientFilename; + } + + public function getClientMediaType(): ?string + { + return $this->clientMediaType; + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Uri.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Uri.php new file mode 100644 index 0000000..5c6416a --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Uri.php @@ -0,0 +1,738 @@ + 80, + 'https' => 443, + 'ftp' => 21, + 'gopher' => 70, + 'nntp' => 119, + 'news' => 119, + 'telnet' => 23, + 'tn3270' => 23, + 'imap' => 143, + 'pop' => 110, + 'ldap' => 389, + ]; + + /** + * Unreserved characters for use in a regex. + * + * @link https://tools.ietf.org/html/rfc3986#section-2.3 + */ + private const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~'; + + /** + * Sub-delims for use in a regex. + * + * @link https://tools.ietf.org/html/rfc3986#section-2.2 + */ + private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;='; + private const QUERY_SEPARATORS_REPLACEMENT = ['=' => '%3D', '&' => '%26']; + + /** @var string Uri scheme. */ + private $scheme = ''; + + /** @var string Uri user info. */ + private $userInfo = ''; + + /** @var string Uri host. */ + private $host = ''; + + /** @var int|null Uri port. */ + private $port; + + /** @var string Uri path. */ + private $path = ''; + + /** @var string Uri query string. */ + private $query = ''; + + /** @var string Uri fragment. */ + private $fragment = ''; + + /** @var string|null String representation */ + private $composedComponents; + + public function __construct(string $uri = '') + { + if ($uri !== '') { + $parts = self::parse($uri); + if ($parts === false) { + throw new MalformedUriException("Unable to parse URI: $uri"); + } + $this->applyParts($parts); + } + } + /** + * UTF-8 aware \parse_url() replacement. + * + * The internal function produces broken output for non ASCII domain names + * (IDN) when used with locales other than "C". + * + * On the other hand, cURL understands IDN correctly only when UTF-8 locale + * is configured ("C.UTF-8", "en_US.UTF-8", etc.). + * + * @see https://bugs.php.net/bug.php?id=52923 + * @see https://www.php.net/manual/en/function.parse-url.php#114817 + * @see https://curl.haxx.se/libcurl/c/CURLOPT_URL.html#ENCODING + * + * @return array|false + */ + private static function parse(string $url) + { + // If IPv6 + $prefix = ''; + if (preg_match('%^(.*://\[[0-9:a-f]+\])(.*?)$%', $url, $matches)) { + /** @var array{0:string, 1:string, 2:string} $matches */ + $prefix = $matches[1]; + $url = $matches[2]; + } + + /** @var string */ + $encodedUrl = preg_replace_callback( + '%[^:/@?&=#]+%usD', + static function ($matches) { + return urlencode($matches[0]); + }, + $url + ); + + $result = parse_url($prefix . $encodedUrl); + + if ($result === false) { + return false; + } + + return array_map('urldecode', $result); + } + + public function __toString(): string + { + if ($this->composedComponents === null) { + $this->composedComponents = self::composeComponents( + $this->scheme, + $this->getAuthority(), + $this->path, + $this->query, + $this->fragment + ); + } + + return $this->composedComponents; + } + + /** + * Composes a URI reference string from its various components. + * + * Usually this method does not need to be called manually but instead is used indirectly via + * `Psr\Http\Message\UriInterface::__toString`. + * + * PSR-7 UriInterface treats an empty component the same as a missing component as + * getQuery(), getFragment() etc. always return a string. This explains the slight + * difference to RFC 3986 Section 5.3. + * + * Another adjustment is that the authority separator is added even when the authority is missing/empty + * for the "file" scheme. This is because PHP stream functions like `file_get_contents` only work with + * `file:///myfile` but not with `file:/myfile` although they are equivalent according to RFC 3986. But + * `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to + * that format). + * + * @link https://tools.ietf.org/html/rfc3986#section-5.3 + */ + public static function composeComponents(?string $scheme, ?string $authority, string $path, ?string $query, ?string $fragment): string + { + $uri = ''; + + // weak type checks to also accept null until we can add scalar type hints + if ($scheme != '') { + $uri .= $scheme . ':'; + } + + if ($authority != ''|| $scheme === 'file') { + $uri .= '//' . $authority; + } + + $uri .= $path; + + if ($query != '') { + $uri .= '?' . $query; + } + + if ($fragment != '') { + $uri .= '#' . $fragment; + } + + return $uri; + } + + /** + * Whether the URI has the default port of the current scheme. + * + * `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used + * independently of the implementation. + */ + public static function isDefaultPort(UriInterface $uri): bool + { + return $uri->getPort() === null + || (isset(self::DEFAULT_PORTS[$uri->getScheme()]) && $uri->getPort() === self::DEFAULT_PORTS[$uri->getScheme()]); + } + + /** + * Whether the URI is absolute, i.e. it has a scheme. + * + * An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true + * if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative + * to another URI, the base URI. Relative references can be divided into several forms: + * - network-path references, e.g. '//example.com/path' + * - absolute-path references, e.g. '/path' + * - relative-path references, e.g. 'subpath' + * + * @see Uri::isNetworkPathReference + * @see Uri::isAbsolutePathReference + * @see Uri::isRelativePathReference + * @link https://tools.ietf.org/html/rfc3986#section-4 + */ + public static function isAbsolute(UriInterface $uri): bool + { + return $uri->getScheme() !== ''; + } + + /** + * Whether the URI is a network-path reference. + * + * A relative reference that begins with two slash characters is termed an network-path reference. + * + * @link https://tools.ietf.org/html/rfc3986#section-4.2 + */ + public static function isNetworkPathReference(UriInterface $uri): bool + { + return $uri->getScheme() === '' && $uri->getAuthority() !== ''; + } + + /** + * Whether the URI is a absolute-path reference. + * + * A relative reference that begins with a single slash character is termed an absolute-path reference. + * + * @link https://tools.ietf.org/html/rfc3986#section-4.2 + */ + public static function isAbsolutePathReference(UriInterface $uri): bool + { + return $uri->getScheme() === '' + && $uri->getAuthority() === '' + && isset($uri->getPath()[0]) + && $uri->getPath()[0] === '/'; + } + + /** + * Whether the URI is a relative-path reference. + * + * A relative reference that does not begin with a slash character is termed a relative-path reference. + * + * @link https://tools.ietf.org/html/rfc3986#section-4.2 + */ + public static function isRelativePathReference(UriInterface $uri): bool + { + return $uri->getScheme() === '' + && $uri->getAuthority() === '' + && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); + } + + /** + * Whether the URI is a same-document reference. + * + * A same-document reference refers to a URI that is, aside from its fragment + * component, identical to the base URI. When no base URI is given, only an empty + * URI reference (apart from its fragment) is considered a same-document reference. + * + * @param UriInterface $uri The URI to check + * @param UriInterface|null $base An optional base URI to compare against + * + * @link https://tools.ietf.org/html/rfc3986#section-4.4 + */ + public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool + { + if ($base !== null) { + $uri = UriResolver::resolve($base, $uri); + + return ($uri->getScheme() === $base->getScheme()) + && ($uri->getAuthority() === $base->getAuthority()) + && ($uri->getPath() === $base->getPath()) + && ($uri->getQuery() === $base->getQuery()); + } + + return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === ''; + } + + /** + * Creates a new URI with a specific query string value removed. + * + * Any existing query string values that exactly match the provided key are + * removed. + * + * @param UriInterface $uri URI to use as a base. + * @param string $key Query string key to remove. + */ + public static function withoutQueryValue(UriInterface $uri, string $key): UriInterface + { + $result = self::getFilteredQueryString($uri, [$key]); + + return $uri->withQuery(implode('&', $result)); + } + + /** + * Creates a new URI with a specific query string value. + * + * Any existing query string values that exactly match the provided key are + * removed and replaced with the given key value pair. + * + * A value of null will set the query string key without a value, e.g. "key" + * instead of "key=value". + * + * @param UriInterface $uri URI to use as a base. + * @param string $key Key to set. + * @param string|null $value Value to set + */ + public static function withQueryValue(UriInterface $uri, string $key, ?string $value): UriInterface + { + $result = self::getFilteredQueryString($uri, [$key]); + + $result[] = self::generateQueryString($key, $value); + + return $uri->withQuery(implode('&', $result)); + } + + /** + * Creates a new URI with multiple specific query string values. + * + * It has the same behavior as withQueryValue() but for an associative array of key => value. + * + * @param UriInterface $uri URI to use as a base. + * @param array $keyValueArray Associative array of key and values + */ + public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface + { + $result = self::getFilteredQueryString($uri, array_keys($keyValueArray)); + + foreach ($keyValueArray as $key => $value) { + $result[] = self::generateQueryString((string) $key, $value !== null ? (string) $value : null); + } + + return $uri->withQuery(implode('&', $result)); + } + + /** + * Creates a URI from a hash of `parse_url` components. + * + * @link http://php.net/manual/en/function.parse-url.php + * + * @throws MalformedUriException If the components do not form a valid URI. + */ + public static function fromParts(array $parts): UriInterface + { + $uri = new self(); + $uri->applyParts($parts); + $uri->validateState(); + + return $uri; + } + + public function getScheme(): string + { + return $this->scheme; + } + + public function getAuthority(): string + { + $authority = $this->host; + if ($this->userInfo !== '') { + $authority = $this->userInfo . '@' . $authority; + } + + if ($this->port !== null) { + $authority .= ':' . $this->port; + } + + return $authority; + } + + public function getUserInfo(): string + { + return $this->userInfo; + } + + public function getHost(): string + { + return $this->host; + } + + public function getPort(): ?int + { + return $this->port; + } + + public function getPath(): string + { + return $this->path; + } + + public function getQuery(): string + { + return $this->query; + } + + public function getFragment(): string + { + return $this->fragment; + } + + public function withScheme($scheme): UriInterface + { + $scheme = $this->filterScheme($scheme); + + if ($this->scheme === $scheme) { + return $this; + } + + $new = clone $this; + $new->scheme = $scheme; + $new->composedComponents = null; + $new->removeDefaultPort(); + $new->validateState(); + + return $new; + } + + public function withUserInfo($user, $password = null): UriInterface + { + $info = $this->filterUserInfoComponent($user); + if ($password !== null) { + $info .= ':' . $this->filterUserInfoComponent($password); + } + + if ($this->userInfo === $info) { + return $this; + } + + $new = clone $this; + $new->userInfo = $info; + $new->composedComponents = null; + $new->validateState(); + + return $new; + } + + public function withHost($host): UriInterface + { + $host = $this->filterHost($host); + + if ($this->host === $host) { + return $this; + } + + $new = clone $this; + $new->host = $host; + $new->composedComponents = null; + $new->validateState(); + + return $new; + } + + public function withPort($port): UriInterface + { + $port = $this->filterPort($port); + + if ($this->port === $port) { + return $this; + } + + $new = clone $this; + $new->port = $port; + $new->composedComponents = null; + $new->removeDefaultPort(); + $new->validateState(); + + return $new; + } + + public function withPath($path): UriInterface + { + $path = $this->filterPath($path); + + if ($this->path === $path) { + return $this; + } + + $new = clone $this; + $new->path = $path; + $new->composedComponents = null; + $new->validateState(); + + return $new; + } + + public function withQuery($query): UriInterface + { + $query = $this->filterQueryAndFragment($query); + + if ($this->query === $query) { + return $this; + } + + $new = clone $this; + $new->query = $query; + $new->composedComponents = null; + + return $new; + } + + public function withFragment($fragment): UriInterface + { + $fragment = $this->filterQueryAndFragment($fragment); + + if ($this->fragment === $fragment) { + return $this; + } + + $new = clone $this; + $new->fragment = $fragment; + $new->composedComponents = null; + + return $new; + } + + public function jsonSerialize(): string + { + return $this->__toString(); + } + + /** + * Apply parse_url parts to a URI. + * + * @param array $parts Array of parse_url parts to apply. + */ + private function applyParts(array $parts): void + { + $this->scheme = isset($parts['scheme']) + ? $this->filterScheme($parts['scheme']) + : ''; + $this->userInfo = isset($parts['user']) + ? $this->filterUserInfoComponent($parts['user']) + : ''; + $this->host = isset($parts['host']) + ? $this->filterHost($parts['host']) + : ''; + $this->port = isset($parts['port']) + ? $this->filterPort($parts['port']) + : null; + $this->path = isset($parts['path']) + ? $this->filterPath($parts['path']) + : ''; + $this->query = isset($parts['query']) + ? $this->filterQueryAndFragment($parts['query']) + : ''; + $this->fragment = isset($parts['fragment']) + ? $this->filterQueryAndFragment($parts['fragment']) + : ''; + if (isset($parts['pass'])) { + $this->userInfo .= ':' . $this->filterUserInfoComponent($parts['pass']); + } + + $this->removeDefaultPort(); + } + + /** + * @param mixed $scheme + * + * @throws \InvalidArgumentException If the scheme is invalid. + */ + private function filterScheme($scheme): string + { + if (!is_string($scheme)) { + throw new \InvalidArgumentException('Scheme must be a string'); + } + + return \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + } + + /** + * @param mixed $component + * + * @throws \InvalidArgumentException If the user info is invalid. + */ + private function filterUserInfoComponent($component): string + { + if (!is_string($component)) { + throw new \InvalidArgumentException('User info must be a string'); + } + + return preg_replace_callback( + '/(?:[^%' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . ']+|%(?![A-Fa-f0-9]{2}))/', + [$this, 'rawurlencodeMatchZero'], + $component + ); + } + + /** + * @param mixed $host + * + * @throws \InvalidArgumentException If the host is invalid. + */ + private function filterHost($host): string + { + if (!is_string($host)) { + throw new \InvalidArgumentException('Host must be a string'); + } + + return \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + } + + /** + * @param mixed $port + * + * @throws \InvalidArgumentException If the port is invalid. + */ + private function filterPort($port): ?int + { + if ($port === null) { + return null; + } + + $port = (int) $port; + if (0 > $port || 0xffff < $port) { + throw new \InvalidArgumentException( + sprintf('Invalid port: %d. Must be between 0 and 65535', $port) + ); + } + + return $port; + } + + /** + * @param string[] $keys + * + * @return string[] + */ + private static function getFilteredQueryString(UriInterface $uri, array $keys): array + { + $current = $uri->getQuery(); + + if ($current === '') { + return []; + } + + $decodedKeys = array_map('rawurldecode', $keys); + + return array_filter(explode('&', $current), function ($part) use ($decodedKeys) { + return !in_array(rawurldecode(explode('=', $part)[0]), $decodedKeys, true); + }); + } + + private static function generateQueryString(string $key, ?string $value): string + { + // Query string separators ("=", "&") within the key or value need to be encoded + // (while preventing double-encoding) before setting the query string. All other + // chars that need percent-encoding will be encoded by withQuery(). + $queryString = strtr($key, self::QUERY_SEPARATORS_REPLACEMENT); + + if ($value !== null) { + $queryString .= '=' . strtr($value, self::QUERY_SEPARATORS_REPLACEMENT); + } + + return $queryString; + } + + private function removeDefaultPort(): void + { + if ($this->port !== null && self::isDefaultPort($this)) { + $this->port = null; + } + } + + /** + * Filters the path of a URI + * + * @param mixed $path + * + * @throws \InvalidArgumentException If the path is invalid. + */ + private function filterPath($path): string + { + if (!is_string($path)) { + throw new \InvalidArgumentException('Path must be a string'); + } + + return preg_replace_callback( + '/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/', + [$this, 'rawurlencodeMatchZero'], + $path + ); + } + + /** + * Filters the query string or fragment of a URI. + * + * @param mixed $str + * + * @throws \InvalidArgumentException If the query or fragment is invalid. + */ + private function filterQueryAndFragment($str): string + { + if (!is_string($str)) { + throw new \InvalidArgumentException('Query and fragment must be a string'); + } + + return preg_replace_callback( + '/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', + [$this, 'rawurlencodeMatchZero'], + $str + ); + } + + private function rawurlencodeMatchZero(array $match): string + { + return rawurlencode($match[0]); + } + + private function validateState(): void + { + if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) { + $this->host = self::HTTP_DEFAULT_HOST; + } + + if ($this->getAuthority() === '') { + if (0 === strpos($this->path, '//')) { + throw new MalformedUriException('The path of a URI without an authority must not start with two slashes "//"'); + } + if ($this->scheme === '' && false !== strpos(explode('/', $this->path, 2)[0], ':')) { + throw new MalformedUriException('A relative URI must not have a path beginning with a segment containing a colon'); + } + } elseif (isset($this->path[0]) && $this->path[0] !== '/') { + throw new MalformedUriException('The path of a URI with an authority must start with a slash "/" or be empty'); + } + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UriNormalizer.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UriNormalizer.php new file mode 100644 index 0000000..e12971e --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UriNormalizer.php @@ -0,0 +1,220 @@ +getPath() === '' && + ($uri->getScheme() === 'http' || $uri->getScheme() === 'https') + ) { + $uri = $uri->withPath('/'); + } + + if ($flags & self::REMOVE_DEFAULT_HOST && $uri->getScheme() === 'file' && $uri->getHost() === 'localhost') { + $uri = $uri->withHost(''); + } + + if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && Uri::isDefaultPort($uri)) { + $uri = $uri->withPort(null); + } + + if ($flags & self::REMOVE_DOT_SEGMENTS && !Uri::isRelativePathReference($uri)) { + $uri = $uri->withPath(UriResolver::removeDotSegments($uri->getPath())); + } + + if ($flags & self::REMOVE_DUPLICATE_SLASHES) { + $uri = $uri->withPath(preg_replace('#//++#', '/', $uri->getPath())); + } + + if ($flags & self::SORT_QUERY_PARAMETERS && $uri->getQuery() !== '') { + $queryKeyValues = explode('&', $uri->getQuery()); + sort($queryKeyValues); + $uri = $uri->withQuery(implode('&', $queryKeyValues)); + } + + return $uri; + } + + /** + * Whether two URIs can be considered equivalent. + * + * Both URIs are normalized automatically before comparison with the given $normalizations bitmask. The method also + * accepts relative URI references and returns true when they are equivalent. This of course assumes they will be + * resolved against the same base URI. If this is not the case, determination of equivalence or difference of + * relative references does not mean anything. + * + * @param UriInterface $uri1 An URI to compare + * @param UriInterface $uri2 An URI to compare + * @param int $normalizations A bitmask of normalizations to apply, see constants + * + * @link https://tools.ietf.org/html/rfc3986#section-6.1 + */ + public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, int $normalizations = self::PRESERVING_NORMALIZATIONS): bool + { + return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations); + } + + private static function capitalizePercentEncoding(UriInterface $uri): UriInterface + { + $regex = '/(?:%[A-Fa-f0-9]{2})++/'; + + $callback = function (array $match) { + return strtoupper($match[0]); + }; + + return + $uri->withPath( + preg_replace_callback($regex, $callback, $uri->getPath()) + )->withQuery( + preg_replace_callback($regex, $callback, $uri->getQuery()) + ); + } + + private static function decodeUnreservedCharacters(UriInterface $uri): UriInterface + { + $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i'; + + $callback = function (array $match) { + return rawurldecode($match[0]); + }; + + return + $uri->withPath( + preg_replace_callback($regex, $callback, $uri->getPath()) + )->withQuery( + preg_replace_callback($regex, $callback, $uri->getQuery()) + ); + } + + private function __construct() + { + // cannot be instantiated + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UriResolver.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UriResolver.php new file mode 100644 index 0000000..426e5c9 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/UriResolver.php @@ -0,0 +1,211 @@ +getScheme() != '') { + return $rel->withPath(self::removeDotSegments($rel->getPath())); + } + + if ($rel->getAuthority() != '') { + $targetAuthority = $rel->getAuthority(); + $targetPath = self::removeDotSegments($rel->getPath()); + $targetQuery = $rel->getQuery(); + } else { + $targetAuthority = $base->getAuthority(); + if ($rel->getPath() === '') { + $targetPath = $base->getPath(); + $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery(); + } else { + if ($rel->getPath()[0] === '/') { + $targetPath = $rel->getPath(); + } else { + if ($targetAuthority != '' && $base->getPath() === '') { + $targetPath = '/' . $rel->getPath(); + } else { + $lastSlashPos = strrpos($base->getPath(), '/'); + if ($lastSlashPos === false) { + $targetPath = $rel->getPath(); + } else { + $targetPath = substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath(); + } + } + } + $targetPath = self::removeDotSegments($targetPath); + $targetQuery = $rel->getQuery(); + } + } + + return new Uri(Uri::composeComponents( + $base->getScheme(), + $targetAuthority, + $targetPath, + $targetQuery, + $rel->getFragment() + )); + } + + /** + * Returns the target URI as a relative reference from the base URI. + * + * This method is the counterpart to resolve(): + * + * (string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) + * + * One use-case is to use the current request URI as base URI and then generate relative links in your documents + * to reduce the document size or offer self-contained downloadable document archives. + * + * $base = new Uri('http://example.com/a/b/'); + * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. + * echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. + * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. + * echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. + * + * This method also accepts a target that is already relative and will try to relativize it further. Only a + * relative-path reference will be returned as-is. + * + * echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well + */ + public static function relativize(UriInterface $base, UriInterface $target): UriInterface + { + if ($target->getScheme() !== '' && + ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '') + ) { + return $target; + } + + if (Uri::isRelativePathReference($target)) { + // As the target is already highly relative we return it as-is. It would be possible to resolve + // the target with `$target = self::resolve($base, $target);` and then try make it more relative + // by removing a duplicate query. But let's not do that automatically. + return $target; + } + + if ($target->getAuthority() !== '' && $base->getAuthority() !== $target->getAuthority()) { + return $target->withScheme(''); + } + + // We must remove the path before removing the authority because if the path starts with two slashes, the URI + // would turn invalid. And we also cannot set a relative path before removing the authority, as that is also + // invalid. + $emptyPathUri = $target->withScheme('')->withPath('')->withUserInfo('')->withPort(null)->withHost(''); + + if ($base->getPath() !== $target->getPath()) { + return $emptyPathUri->withPath(self::getRelativePath($base, $target)); + } + + if ($base->getQuery() === $target->getQuery()) { + // Only the target fragment is left. And it must be returned even if base and target fragment are the same. + return $emptyPathUri->withQuery(''); + } + + // If the base URI has a query but the target has none, we cannot return an empty path reference as it would + // inherit the base query component when resolving. + if ($target->getQuery() === '') { + $segments = explode('/', $target->getPath()); + /** @var string $lastSegment */ + $lastSegment = end($segments); + + return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment); + } + + return $emptyPathUri; + } + + private static function getRelativePath(UriInterface $base, UriInterface $target): string + { + $sourceSegments = explode('/', $base->getPath()); + $targetSegments = explode('/', $target->getPath()); + array_pop($sourceSegments); + $targetLastSegment = array_pop($targetSegments); + foreach ($sourceSegments as $i => $segment) { + if (isset($targetSegments[$i]) && $segment === $targetSegments[$i]) { + unset($sourceSegments[$i], $targetSegments[$i]); + } else { + break; + } + } + $targetSegments[] = $targetLastSegment; + $relativePath = str_repeat('../', count($sourceSegments)) . implode('/', $targetSegments); + + // A reference to am empty last segment or an empty first sub-segment must be prefixed with "./". + // This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used + // as the first segment of a relative-path reference, as it would be mistaken for a scheme name. + if ('' === $relativePath || false !== strpos(explode('/', $relativePath, 2)[0], ':')) { + $relativePath = "./$relativePath"; + } elseif ('/' === $relativePath[0]) { + if ($base->getAuthority() != '' && $base->getPath() === '') { + // In this case an extra slash is added by resolve() automatically. So we must not add one here. + $relativePath = ".$relativePath"; + } else { + $relativePath = "./$relativePath"; + } + } + + return $relativePath; + } + + private function __construct() + { + // cannot be instantiated + } +} diff --git a/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Utils.php b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Utils.php new file mode 100644 index 0000000..3a4cf39 --- /dev/null +++ b/phpTest_20/componente/vendor/guzzlehttp/psr7/src/Utils.php @@ -0,0 +1,459 @@ + $v) { + if (!is_string($k) || !in_array(strtolower($k), $keys)) { + $result[$k] = $v; + } + } + + return $result; + } + + /** + * Copy the contents of a stream into another stream until the given number + * of bytes have been read. + * + * @param StreamInterface $source Stream to read from + * @param StreamInterface $dest Stream to write to + * @param int $maxLen Maximum number of bytes to read. Pass -1 + * to read the entire stream. + * + * @throws \RuntimeException on error. + */ + public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = -1): void + { + $bufferSize = 8192; + + if ($maxLen === -1) { + while (!$source->eof()) { + if (!$dest->write($source->read($bufferSize))) { + break; + } + } + } else { + $remaining = $maxLen; + while ($remaining > 0 && !$source->eof()) { + $buf = $source->read(min($bufferSize, $remaining)); + $len = strlen($buf); + if (!$len) { + break; + } + $remaining -= $len; + $dest->write($buf); + } + } + } + + /** + * Copy the contents of a stream into a string until the given number of + * bytes have been read. + * + * @param StreamInterface $stream Stream to read + * @param int $maxLen Maximum number of bytes to read. Pass -1 + * to read the entire stream. + * + * @throws \RuntimeException on error. + */ + public static function copyToString(StreamInterface $stream, int $maxLen = -1): string + { + $buffer = ''; + + if ($maxLen === -1) { + while (!$stream->eof()) { + $buf = $stream->read(1048576); + if ($buf === '') { + break; + } + $buffer .= $buf; + } + return $buffer; + } + + $len = 0; + while (!$stream->eof() && $len < $maxLen) { + $buf = $stream->read($maxLen - $len); + if ($buf === '') { + break; + } + $buffer .= $buf; + $len = strlen($buffer); + } + + return $buffer; + } + + /** + * Calculate a hash of a stream. + * + * This method reads the entire stream to calculate a rolling hash, based + * on PHP's `hash_init` functions. + * + * @param StreamInterface $stream Stream to calculate the hash for + * @param string $algo Hash algorithm (e.g. md5, crc32, etc) + * @param bool $rawOutput Whether or not to use raw output + * + * @throws \RuntimeException on error. + */ + public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string + { + $pos = $stream->tell(); + + if ($pos > 0) { + $stream->rewind(); + } + + $ctx = hash_init($algo); + while (!$stream->eof()) { + hash_update($ctx, $stream->read(1048576)); + } + + $out = hash_final($ctx, $rawOutput); + $stream->seek($pos); + + return $out; + } + + /** + * Clone and modify a request with the given changes. + * + * This method is useful for reducing the number of clones needed to mutate + * a message. + * + * The changes can be one of: + * - method: (string) Changes the HTTP method. + * - set_headers: (array) Sets the given headers. + * - remove_headers: (array) Remove the given headers. + * - body: (mixed) Sets the given body. + * - uri: (UriInterface) Set the URI. + * - query: (string) Set the query string value of the URI. + * - version: (string) Set the protocol version. + * + * @param RequestInterface $request Request to clone and modify. + * @param array $changes Changes to apply. + */ + public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface + { + if (!$changes) { + return $request; + } + + $headers = $request->getHeaders(); + + if (!isset($changes['uri'])) { + $uri = $request->getUri(); + } else { + // Remove the host header if one is on the URI + if ($host = $changes['uri']->getHost()) { + $changes['set_headers']['Host'] = $host; + + if ($port = $changes['uri']->getPort()) { + $standardPorts = ['http' => 80, 'https' => 443]; + $scheme = $changes['uri']->getScheme(); + if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) { + $changes['set_headers']['Host'] .= ':' . $port; + } + } + } + $uri = $changes['uri']; + } + + if (!empty($changes['remove_headers'])) { + $headers = self::caselessRemove($changes['remove_headers'], $headers); + } + + if (!empty($changes['set_headers'])) { + $headers = self::caselessRemove(array_keys($changes['set_headers']), $headers); + $headers = $changes['set_headers'] + $headers; + } + + if (isset($changes['query'])) { + $uri = $uri->withQuery($changes['query']); + } + + if ($request instanceof ServerRequestInterface) { + $new = (new ServerRequest( + $changes['method'] ?? $request->getMethod(), + $uri, + $headers, + $changes['body'] ?? $request->getBody(), + $changes['version'] ?? $request->getProtocolVersion(), + $request->getServerParams() + )) + ->withParsedBody($request->getParsedBody()) + ->withQueryParams($request->getQueryParams()) + ->withCookieParams($request->getCookieParams()) + ->withUploadedFiles($request->getUploadedFiles()); + + foreach ($request->getAttributes() as $key => $value) { + $new = $new->withAttribute($key, $value); + } + + return $new; + } + + return new Request( + $changes['method'] ?? $request->getMethod(), + $uri, + $headers, + $changes['body'] ?? $request->getBody(), + $changes['version'] ?? $request->getProtocolVersion() + ); + } + + /** + * Read a line from the stream up to the maximum allowed buffer length. + * + * @param StreamInterface $stream Stream to read from + * @param int|null $maxLength Maximum buffer length + */ + public static function readLine(StreamInterface $stream, ?int $maxLength = null): string + { + $buffer = ''; + $size = 0; + + while (!$stream->eof()) { + if ('' === ($byte = $stream->read(1))) { + return $buffer; + } + $buffer .= $byte; + // Break when a new line is found or the max length - 1 is reached + if ($byte === "\n" || ++$size === $maxLength - 1) { + break; + } + } + + return $buffer; + } + + /** + * Create a new stream based on the input type. + * + * Options is an associative array that can contain the following keys: + * - metadata: Array of custom metadata. + * - size: Size of the stream. + * + * This method accepts the following `$resource` types: + * - `Psr\Http\Message\StreamInterface`: Returns the value as-is. + * - `string`: Creates a stream object that uses the given string as the contents. + * - `resource`: Creates a stream object that wraps the given PHP stream resource. + * - `Iterator`: If the provided value implements `Iterator`, then a read-only + * stream object will be created that wraps the given iterable. Each time the + * stream is read from, data from the iterator will fill a buffer and will be + * continuously called until the buffer is equal to the requested read size. + * Subsequent read calls will first read from the buffer and then call `next` + * on the underlying iterator until it is exhausted. + * - `object` with `__toString()`: If the object has the `__toString()` method, + * the object will be cast to a string and then a stream will be returned that + * uses the string value. + * - `NULL`: When `null` is passed, an empty stream object is returned. + * - `callable` When a callable is passed, a read-only stream object will be + * created that invokes the given callable. The callable is invoked with the + * number of suggested bytes to read. The callable can return any number of + * bytes, but MUST return `false` when there is no more data to return. The + * stream object that wraps the callable will invoke the callable until the + * number of requested bytes are available. Any additional bytes will be + * buffered and used in subsequent reads. + * + * @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity body data + * @param array{size?: int, metadata?: array} $options Additional options + * + * @throws \InvalidArgumentException if the $resource arg is not valid. + */ + public static function streamFor($resource = '', array $options = []): StreamInterface + { + if (is_scalar($resource)) { + $stream = self::tryFopen('php://temp', 'r+'); + if ($resource !== '') { + fwrite($stream, (string) $resource); + fseek($stream, 0); + } + return new Stream($stream, $options); + } + + switch (gettype($resource)) { + case 'resource': + /* + * The 'php://input' is a special stream with quirks and inconsistencies. + * We avoid using that stream by reading it into php://temp + */ + + /** @var resource $resource */ + if ((\stream_get_meta_data($resource)['uri'] ?? '') === 'php://input') { + $stream = self::tryFopen('php://temp', 'w+'); + stream_copy_to_stream($resource, $stream); + fseek($stream, 0); + $resource = $stream; + } + return new Stream($resource, $options); + case 'object': + /** @var object $resource */ + if ($resource instanceof StreamInterface) { + return $resource; + } elseif ($resource instanceof \Iterator) { + return new PumpStream(function () use ($resource) { + if (!$resource->valid()) { + return false; + } + $result = $resource->current(); + $resource->next(); + return $result; + }, $options); + } elseif (method_exists($resource, '__toString')) { + return self::streamFor((string) $resource, $options); + } + break; + case 'NULL': + return new Stream(self::tryFopen('php://temp', 'r+'), $options); + } + + if (is_callable($resource)) { + return new PumpStream($resource, $options); + } + + throw new \InvalidArgumentException('Invalid resource type: ' . gettype($resource)); + } + + /** + * Safely opens a PHP stream resource using a filename. + * + * When fopen fails, PHP normally raises a warning. This function adds an + * error handler that checks for errors and throws an exception instead. + * + * @param string $filename File to open + * @param string $mode Mode used to open the file + * + * @return resource + * + * @throws \RuntimeException if the file cannot be opened + */ + public static function tryFopen(string $filename, string $mode) + { + $ex = null; + set_error_handler(static function (int $errno, string $errstr) use ($filename, $mode, &$ex): bool { + $ex = new \RuntimeException(sprintf( + 'Unable to open "%s" using mode "%s": %s', + $filename, + $mode, + $errstr + )); + + return true; + }); + + try { + /** @var resource $handle */ + $handle = fopen($filename, $mode); + } catch (\Throwable $e) { + $ex = new \RuntimeException(sprintf( + 'Unable to open "%s" using mode "%s": %s', + $filename, + $mode, + $e->getMessage() + ), 0, $e); + } + + restore_error_handler(); + + if ($ex) { + /** @var $ex \RuntimeException */ + throw $ex; + } + + return $handle; + } + + /** + * Safely gets the contents of a given stream. + * + * When stream_get_contents fails, PHP normally raises a warning. This + * function adds an error handler that checks for errors and throws an + * exception instead. + * + * @param resource $stream + * + * @throws \RuntimeException if the stream cannot be read + */ + public static function tryGetContents($stream): string + { + $ex = null; + set_error_handler(static function (int $errno, string $errstr) use (&$ex): bool { + $ex = new \RuntimeException(sprintf( + 'Unable to read stream contents: %s', + $errstr + )); + + return true; + }); + + try { + /** @var string|false $contents */ + $contents = stream_get_contents($stream); + + if ($contents === false) { + $ex = new \RuntimeException('Unable to read stream contents'); + } + } catch (\Throwable $e) { + $ex = new \RuntimeException(sprintf( + 'Unable to read stream contents: %s', + $e->getMessage() + ), 0, $e); + } + + restore_error_handler(); + + if ($ex) { + /** @var $ex \RuntimeException */ + throw $ex; + } + + return $contents; + } + + /** + * Returns a UriInterface for the given value. + * + * This function accepts a string or UriInterface and returns a + * UriInterface for the given value. If the value is already a + * UriInterface, it is returned as-is. + * + * @param string|UriInterface $uri + * + * @throws \InvalidArgumentException + */ + public static function uriFor($uri): UriInterface + { + if ($uri instanceof UriInterface) { + return $uri; + } + + if (is_string($uri)) { + return new Uri($uri); + } + + throw new \InvalidArgumentException('URI must be a string or UriInterface'); + } +} diff --git a/phpTest_20/componente/vendor/psr/http-client/CHANGELOG.md b/phpTest_20/componente/vendor/psr/http-client/CHANGELOG.md new file mode 100644 index 0000000..e2dc25f --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-client/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog + +All notable changes to this project will be documented in this file, in reverse chronological order by release. + +## 1.0.1 + +Allow installation with PHP 8. No code changes. + +## 1.0.0 + +First stable release. No changes since 0.3.0. + +## 0.3.0 + +Added Interface suffix on exceptions + +## 0.2.0 + +All exceptions are in `Psr\Http\Client` namespace + +## 0.1.0 + +First release diff --git a/phpTest_20/componente/vendor/psr/http-client/LICENSE b/phpTest_20/componente/vendor/psr/http-client/LICENSE new file mode 100644 index 0000000..cd5e002 --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-client/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2017 PHP Framework Interoperability Group + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/phpTest_20/componente/vendor/psr/http-client/README.md b/phpTest_20/componente/vendor/psr/http-client/README.md new file mode 100644 index 0000000..6876b84 --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-client/README.md @@ -0,0 +1,12 @@ +HTTP Client +=========== + +This repository holds all the common code related to [PSR-18 (HTTP Client)][psr-url]. + +Note that this is not a HTTP Client implementation of its own. It is merely abstractions that describe the components of a HTTP Client. + +The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. + +[psr-url]: http://www.php-fig.org/psr/psr-18 +[package-url]: https://packagist.org/packages/psr/http-client +[implementation-url]: https://packagist.org/providers/psr/http-client-implementation diff --git a/phpTest_20/componente/vendor/psr/http-client/composer.json b/phpTest_20/componente/vendor/psr/http-client/composer.json new file mode 100644 index 0000000..c195f8f --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-client/composer.json @@ -0,0 +1,27 @@ +{ + "name": "psr/http-client", + "description": "Common interface for HTTP clients", + "keywords": ["psr", "psr-18", "http", "http-client"], + "homepage": "https://github.com/php-fig/http-client", + "license": "MIT", + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/phpTest_20/componente/vendor/psr/http-client/src/ClientExceptionInterface.php b/phpTest_20/componente/vendor/psr/http-client/src/ClientExceptionInterface.php new file mode 100644 index 0000000..aa0b9cf --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-client/src/ClientExceptionInterface.php @@ -0,0 +1,10 @@ +=7.0.0", + "psr/http-message": "^1.0" + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/phpTest_20/componente/vendor/psr/http-factory/src/RequestFactoryInterface.php b/phpTest_20/componente/vendor/psr/http-factory/src/RequestFactoryInterface.php new file mode 100644 index 0000000..cb39a08 --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-factory/src/RequestFactoryInterface.php @@ -0,0 +1,18 @@ +=5.3.0" + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/phpTest_20/componente/vendor/psr/http-message/src/MessageInterface.php b/phpTest_20/componente/vendor/psr/http-message/src/MessageInterface.php new file mode 100644 index 0000000..dd46e5e --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-message/src/MessageInterface.php @@ -0,0 +1,187 @@ +getHeaders() as $name => $values) { + * echo $name . ": " . implode(", ", $values); + * } + * + * // Emit headers iteratively: + * foreach ($message->getHeaders() as $name => $values) { + * foreach ($values as $value) { + * header(sprintf('%s: %s', $name, $value), false); + * } + * } + * + * While header names are not case-sensitive, getHeaders() will preserve the + * exact case in which headers were originally specified. + * + * @return string[][] Returns an associative array of the message's headers. Each + * key MUST be a header name, and each value MUST be an array of strings + * for that header. + */ + public function getHeaders(); + + /** + * Checks if a header exists by the given case-insensitive name. + * + * @param string $name Case-insensitive header field name. + * @return bool Returns true if any header names match the given header + * name using a case-insensitive string comparison. Returns false if + * no matching header name is found in the message. + */ + public function hasHeader($name); + + /** + * Retrieves a message header value by the given case-insensitive name. + * + * This method returns an array of all the header values of the given + * case-insensitive header name. + * + * If the header does not appear in the message, this method MUST return an + * empty array. + * + * @param string $name Case-insensitive header field name. + * @return string[] An array of string values as provided for the given + * header. If the header does not appear in the message, this method MUST + * return an empty array. + */ + public function getHeader($name); + + /** + * Retrieves a comma-separated string of the values for a single header. + * + * This method returns all of the header values of the given + * case-insensitive header name as a string concatenated together using + * a comma. + * + * NOTE: Not all header values may be appropriately represented using + * comma concatenation. For such headers, use getHeader() instead + * and supply your own delimiter when concatenating. + * + * If the header does not appear in the message, this method MUST return + * an empty string. + * + * @param string $name Case-insensitive header field name. + * @return string A string of values as provided for the given header + * concatenated together using a comma. If the header does not appear in + * the message, this method MUST return an empty string. + */ + public function getHeaderLine($name); + + /** + * Return an instance with the provided value replacing the specified header. + * + * While header names are case-insensitive, the casing of the header will + * be preserved by this function, and returned from getHeaders(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * new and/or updated header and value. + * + * @param string $name Case-insensitive header field name. + * @param string|string[] $value Header value(s). + * @return static + * @throws \InvalidArgumentException for invalid header names or values. + */ + public function withHeader($name, $value); + + /** + * Return an instance with the specified header appended with the given value. + * + * Existing values for the specified header will be maintained. The new + * value(s) will be appended to the existing list. If the header did not + * exist previously, it will be added. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * new header and/or value. + * + * @param string $name Case-insensitive header field name to add. + * @param string|string[] $value Header value(s). + * @return static + * @throws \InvalidArgumentException for invalid header names or values. + */ + public function withAddedHeader($name, $value); + + /** + * Return an instance without the specified header. + * + * Header resolution MUST be done without case-sensitivity. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that removes + * the named header. + * + * @param string $name Case-insensitive header field name to remove. + * @return static + */ + public function withoutHeader($name); + + /** + * Gets the body of the message. + * + * @return StreamInterface Returns the body as a stream. + */ + public function getBody(); + + /** + * Return an instance with the specified message body. + * + * The body MUST be a StreamInterface object. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return a new instance that has the + * new body stream. + * + * @param StreamInterface $body Body. + * @return static + * @throws \InvalidArgumentException When the body is not valid. + */ + public function withBody(StreamInterface $body); +} diff --git a/phpTest_20/componente/vendor/psr/http-message/src/RequestInterface.php b/phpTest_20/componente/vendor/psr/http-message/src/RequestInterface.php new file mode 100644 index 0000000..a96d4fd --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-message/src/RequestInterface.php @@ -0,0 +1,129 @@ +getQuery()` + * or from the `QUERY_STRING` server param. + * + * @return array + */ + public function getQueryParams(); + + /** + * Return an instance with the specified query string arguments. + * + * These values SHOULD remain immutable over the course of the incoming + * request. They MAY be injected during instantiation, such as from PHP's + * $_GET superglobal, or MAY be derived from some other value such as the + * URI. In cases where the arguments are parsed from the URI, the data + * MUST be compatible with what PHP's parse_str() would return for + * purposes of how duplicate query parameters are handled, and how nested + * sets are handled. + * + * Setting query string arguments MUST NOT change the URI stored by the + * request, nor the values in the server params. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated query string arguments. + * + * @param array $query Array of query string arguments, typically from + * $_GET. + * @return static + */ + public function withQueryParams(array $query); + + /** + * Retrieve normalized file upload data. + * + * This method returns upload metadata in a normalized tree, with each leaf + * an instance of Psr\Http\Message\UploadedFileInterface. + * + * These values MAY be prepared from $_FILES or the message body during + * instantiation, or MAY be injected via withUploadedFiles(). + * + * @return array An array tree of UploadedFileInterface instances; an empty + * array MUST be returned if no data is present. + */ + public function getUploadedFiles(); + + /** + * Create a new instance with the specified uploaded files. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated body parameters. + * + * @param array $uploadedFiles An array tree of UploadedFileInterface instances. + * @return static + * @throws \InvalidArgumentException if an invalid structure is provided. + */ + public function withUploadedFiles(array $uploadedFiles); + + /** + * Retrieve any parameters provided in the request body. + * + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, this method MUST + * return the contents of $_POST. + * + * Otherwise, this method may return any results of deserializing + * the request body content; as parsing returns structured content, the + * potential types MUST be arrays or objects only. A null value indicates + * the absence of body content. + * + * @return null|array|object The deserialized body parameters, if any. + * These will typically be an array or object. + */ + public function getParsedBody(); + + /** + * Return an instance with the specified body parameters. + * + * These MAY be injected during instantiation. + * + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, use this method + * ONLY to inject the contents of $_POST. + * + * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of + * deserializing the request body content. Deserialization/parsing returns + * structured data, and, as such, this method ONLY accepts arrays or objects, + * or a null value if nothing was available to parse. + * + * As an example, if content negotiation determines that the request data + * is a JSON payload, this method could be used to create a request + * instance with the deserialized parameters. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated body parameters. + * + * @param null|array|object $data The deserialized body data. This will + * typically be in an array or object. + * @return static + * @throws \InvalidArgumentException if an unsupported argument type is + * provided. + */ + public function withParsedBody($data); + + /** + * Retrieve attributes derived from the request. + * + * The request "attributes" may be used to allow injection of any + * parameters derived from the request: e.g., the results of path + * match operations; the results of decrypting cookies; the results of + * deserializing non-form-encoded message bodies; etc. Attributes + * will be application and request specific, and CAN be mutable. + * + * @return array Attributes derived from the request. + */ + public function getAttributes(); + + /** + * Retrieve a single derived request attribute. + * + * Retrieves a single derived request attribute as described in + * getAttributes(). If the attribute has not been previously set, returns + * the default value as provided. + * + * This method obviates the need for a hasAttribute() method, as it allows + * specifying a default value to return if the attribute is not found. + * + * @see getAttributes() + * @param string $name The attribute name. + * @param mixed $default Default value to return if the attribute does not exist. + * @return mixed + */ + public function getAttribute($name, $default = null); + + /** + * Return an instance with the specified derived request attribute. + * + * This method allows setting a single derived request attribute as + * described in getAttributes(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated attribute. + * + * @see getAttributes() + * @param string $name The attribute name. + * @param mixed $value The value of the attribute. + * @return static + */ + public function withAttribute($name, $value); + + /** + * Return an instance that removes the specified derived request attribute. + * + * This method allows removing a single derived request attribute as + * described in getAttributes(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that removes + * the attribute. + * + * @see getAttributes() + * @param string $name The attribute name. + * @return static + */ + public function withoutAttribute($name); +} diff --git a/phpTest_20/componente/vendor/psr/http-message/src/StreamInterface.php b/phpTest_20/componente/vendor/psr/http-message/src/StreamInterface.php new file mode 100644 index 0000000..f68f391 --- /dev/null +++ b/phpTest_20/componente/vendor/psr/http-message/src/StreamInterface.php @@ -0,0 +1,158 @@ + + * [user-info@]host[:port] + * + * + * If the port component is not set or is the standard port for the current + * scheme, it SHOULD NOT be included. + * + * @see https://tools.ietf.org/html/rfc3986#section-3.2 + * @return string The URI authority, in "[user-info@]host[:port]" format. + */ + public function getAuthority(); + + /** + * Retrieve the user information component of the URI. + * + * If no user information is present, this method MUST return an empty + * string. + * + * If a user is present in the URI, this will return that value; + * additionally, if the password is also present, it will be appended to the + * user value, with a colon (":") separating the values. + * + * The trailing "@" character is not part of the user information and MUST + * NOT be added. + * + * @return string The URI user information, in "username[:password]" format. + */ + public function getUserInfo(); + + /** + * Retrieve the host component of the URI. + * + * If no host is present, this method MUST return an empty string. + * + * The value returned MUST be normalized to lowercase, per RFC 3986 + * Section 3.2.2. + * + * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 + * @return string The URI host. + */ + public function getHost(); + + /** + * Retrieve the port component of the URI. + * + * If a port is present, and it is non-standard for the current scheme, + * this method MUST return it as an integer. If the port is the standard port + * used with the current scheme, this method SHOULD return null. + * + * If no port is present, and no scheme is present, this method MUST return + * a null value. + * + * If no port is present, but a scheme is present, this method MAY return + * the standard port for that scheme, but SHOULD return null. + * + * @return null|int The URI port. + */ + public function getPort(); + + /** + * Retrieve the path component of the URI. + * + * The path can either be empty or absolute (starting with a slash) or + * rootless (not starting with a slash). Implementations MUST support all + * three syntaxes. + * + * Normally, the empty path "" and absolute path "/" are considered equal as + * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically + * do this normalization because in contexts with a trimmed base path, e.g. + * the front controller, this difference becomes significant. It's the task + * of the user to handle both "" and "/". + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.3. + * + * As an example, if the value should include a slash ("/") not intended as + * delimiter between path segments, that value MUST be passed in encoded + * form (e.g., "%2F") to the instance. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.3 + * @return string The URI path. + */ + public function getPath(); + + /** + * Retrieve the query string of the URI. + * + * If no query string is present, this method MUST return an empty string. + * + * The leading "?" character is not part of the query and MUST NOT be + * added. + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.4. + * + * As an example, if a value in a key/value pair of the query string should + * include an ampersand ("&") not intended as a delimiter between values, + * that value MUST be passed in encoded form (e.g., "%26") to the instance. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.4 + * @return string The URI query string. + */ + public function getQuery(); + + /** + * Retrieve the fragment component of the URI. + * + * If no fragment is present, this method MUST return an empty string. + * + * The leading "#" character is not part of the fragment and MUST NOT be + * added. + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.5. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.5 + * @return string The URI fragment. + */ + public function getFragment(); + + /** + * Return an instance with the specified scheme. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified scheme. + * + * Implementations MUST support the schemes "http" and "https" case + * insensitively, and MAY accommodate other schemes if required. + * + * An empty scheme is equivalent to removing the scheme. + * + * @param string $scheme The scheme to use with the new instance. + * @return static A new instance with the specified scheme. + * @throws \InvalidArgumentException for invalid or unsupported schemes. + */ + public function withScheme($scheme); + + /** + * Return an instance with the specified user information. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified user information. + * + * Password is optional, but the user information MUST include the + * user; an empty string for the user is equivalent to removing user + * information. + * + * @param string $user The user name to use for authority. + * @param null|string $password The password associated with $user. + * @return static A new instance with the specified user information. + */ + public function withUserInfo($user, $password = null); + + /** + * Return an instance with the specified host. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified host. + * + * An empty host value is equivalent to removing the host. + * + * @param string $host The hostname to use with the new instance. + * @return static A new instance with the specified host. + * @throws \InvalidArgumentException for invalid hostnames. + */ + public function withHost($host); + + /** + * Return an instance with the specified port. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified port. + * + * Implementations MUST raise an exception for ports outside the + * established TCP and UDP port ranges. + * + * A null value provided for the port is equivalent to removing the port + * information. + * + * @param null|int $port The port to use with the new instance; a null value + * removes the port information. + * @return static A new instance with the specified port. + * @throws \InvalidArgumentException for invalid ports. + */ + public function withPort($port); + + /** + * Return an instance with the specified path. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified path. + * + * The path can either be empty or absolute (starting with a slash) or + * rootless (not starting with a slash). Implementations MUST support all + * three syntaxes. + * + * If the path is intended to be domain-relative rather than path relative then + * it must begin with a slash ("/"). Paths not starting with a slash ("/") + * are assumed to be relative to some base path known to the application or + * consumer. + * + * Users can provide both encoded and decoded path characters. + * Implementations ensure the correct encoding as outlined in getPath(). + * + * @param string $path The path to use with the new instance. + * @return static A new instance with the specified path. + * @throws \InvalidArgumentException for invalid paths. + */ + public function withPath($path); + + /** + * Return an instance with the specified query string. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified query string. + * + * Users can provide both encoded and decoded query characters. + * Implementations ensure the correct encoding as outlined in getQuery(). + * + * An empty query string value is equivalent to removing the query string. + * + * @param string $query The query string to use with the new instance. + * @return static A new instance with the specified query string. + * @throws \InvalidArgumentException for invalid query strings. + */ + public function withQuery($query); + + /** + * Return an instance with the specified URI fragment. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified URI fragment. + * + * Users can provide both encoded and decoded fragment characters. + * Implementations ensure the correct encoding as outlined in getFragment(). + * + * An empty fragment value is equivalent to removing the fragment. + * + * @param string $fragment The fragment to use with the new instance. + * @return static A new instance with the specified fragment. + */ + public function withFragment($fragment); + + /** + * Return the string representation as a URI reference. + * + * Depending on which components of the URI are present, the resulting + * string is either a full URI or relative reference according to RFC 3986, + * Section 4.1. The method concatenates the various components of the URI, + * using the appropriate delimiters: + * + * - If a scheme is present, it MUST be suffixed by ":". + * - If an authority is present, it MUST be prefixed by "//". + * - The path can be concatenated without delimiters. But there are two + * cases where the path has to be adjusted to make the URI reference + * valid as PHP does not allow to throw an exception in __toString(): + * - If the path is rootless and an authority is present, the path MUST + * be prefixed by "/". + * - If the path is starting with more than one "/" and no authority is + * present, the starting slashes MUST be reduced to one. + * - If a query is present, it MUST be prefixed by "?". + * - If a fragment is present, it MUST be prefixed by "#". + * + * @see http://tools.ietf.org/html/rfc3986#section-4.1 + * @return string + */ + public function __toString(); +} diff --git a/phpTest_20/componente/vendor/ralouphie/getallheaders/LICENSE b/phpTest_20/componente/vendor/ralouphie/getallheaders/LICENSE new file mode 100644 index 0000000..be5540c --- /dev/null +++ b/phpTest_20/componente/vendor/ralouphie/getallheaders/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Ralph Khattar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/phpTest_20/componente/vendor/ralouphie/getallheaders/README.md b/phpTest_20/componente/vendor/ralouphie/getallheaders/README.md new file mode 100644 index 0000000..9430d76 --- /dev/null +++ b/phpTest_20/componente/vendor/ralouphie/getallheaders/README.md @@ -0,0 +1,27 @@ +getallheaders +============= + +PHP `getallheaders()` polyfill. Compatible with PHP >= 5.3. + +[![Build Status](https://travis-ci.org/ralouphie/getallheaders.svg?branch=master)](https://travis-ci.org/ralouphie/getallheaders) +[![Coverage Status](https://coveralls.io/repos/ralouphie/getallheaders/badge.png?branch=master)](https://coveralls.io/r/ralouphie/getallheaders?branch=master) +[![Latest Stable Version](https://poser.pugx.org/ralouphie/getallheaders/v/stable.png)](https://packagist.org/packages/ralouphie/getallheaders) +[![Latest Unstable Version](https://poser.pugx.org/ralouphie/getallheaders/v/unstable.png)](https://packagist.org/packages/ralouphie/getallheaders) +[![License](https://poser.pugx.org/ralouphie/getallheaders/license.png)](https://packagist.org/packages/ralouphie/getallheaders) + + +This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php). + +## Install + +For PHP version **`>= 5.6`**: + +``` +composer require ralouphie/getallheaders +``` + +For PHP version **`< 5.6`**: + +``` +composer require ralouphie/getallheaders "^2" +``` diff --git a/phpTest_20/componente/vendor/ralouphie/getallheaders/composer.json b/phpTest_20/componente/vendor/ralouphie/getallheaders/composer.json new file mode 100644 index 0000000..de8ce62 --- /dev/null +++ b/phpTest_20/componente/vendor/ralouphie/getallheaders/composer.json @@ -0,0 +1,26 @@ +{ + "name": "ralouphie/getallheaders", + "description": "A polyfill for getallheaders.", + "license": "MIT", + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^5 || ^6.5", + "php-coveralls/php-coveralls": "^2.1" + }, + "autoload": { + "files": ["src/getallheaders.php"] + }, + "autoload-dev": { + "psr-4": { + "getallheaders\\Tests\\": "tests/" + } + } +} diff --git a/phpTest_20/componente/vendor/ralouphie/getallheaders/src/getallheaders.php b/phpTest_20/componente/vendor/ralouphie/getallheaders/src/getallheaders.php new file mode 100644 index 0000000..c7285a5 --- /dev/null +++ b/phpTest_20/componente/vendor/ralouphie/getallheaders/src/getallheaders.php @@ -0,0 +1,46 @@ + 'Content-Type', + 'CONTENT_LENGTH' => 'Content-Length', + 'CONTENT_MD5' => 'Content-Md5', + ); + + foreach ($_SERVER as $key => $value) { + if (substr($key, 0, 5) === 'HTTP_') { + $key = substr($key, 5); + if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { + $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); + $headers[$key] = $value; + } + } elseif (isset($copy_server[$key])) { + $headers[$copy_server[$key]] = $value; + } + } + + if (!isset($headers['Authorization'])) { + if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { + $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; + } elseif (isset($_SERVER['PHP_AUTH_USER'])) { + $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; + $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass); + } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) { + $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST']; + } + } + + return $headers; + } + +} diff --git a/phpTest_20/componente/vendor/symfony/deprecation-contracts/.gitignore b/phpTest_20/componente/vendor/symfony/deprecation-contracts/.gitignore new file mode 100644 index 0000000..c49a5d8 --- /dev/null +++ b/phpTest_20/componente/vendor/symfony/deprecation-contracts/.gitignore @@ -0,0 +1,3 @@ +vendor/ +composer.lock +phpunit.xml diff --git a/phpTest_20/componente/vendor/symfony/deprecation-contracts/CHANGELOG.md b/phpTest_20/componente/vendor/symfony/deprecation-contracts/CHANGELOG.md new file mode 100644 index 0000000..7932e26 --- /dev/null +++ b/phpTest_20/componente/vendor/symfony/deprecation-contracts/CHANGELOG.md @@ -0,0 +1,5 @@ +CHANGELOG +========= + +The changelog is maintained for all Symfony contracts at the following URL: +https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/phpTest_20/componente/vendor/symfony/deprecation-contracts/LICENSE b/phpTest_20/componente/vendor/symfony/deprecation-contracts/LICENSE new file mode 100644 index 0000000..406242f --- /dev/null +++ b/phpTest_20/componente/vendor/symfony/deprecation-contracts/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020-2022 Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/phpTest_20/componente/vendor/symfony/deprecation-contracts/README.md b/phpTest_20/componente/vendor/symfony/deprecation-contracts/README.md new file mode 100644 index 0000000..4957933 --- /dev/null +++ b/phpTest_20/componente/vendor/symfony/deprecation-contracts/README.md @@ -0,0 +1,26 @@ +Symfony Deprecation Contracts +============================= + +A generic function and convention to trigger deprecation notices. + +This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices. + +By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component, +the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments. + +The function requires at least 3 arguments: + - the name of the Composer package that is triggering the deprecation + - the version of the package that introduced the deprecation + - the message of the deprecation + - more arguments can be provided: they will be inserted in the message using `printf()` formatting + +Example: +```php +trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin'); +``` + +This will generate the following message: +`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.` + +While not necessarily recommended, the deprecation notices can be completely ignored by declaring an empty +`function trigger_deprecation() {}` in your application. diff --git a/phpTest_20/componente/vendor/symfony/deprecation-contracts/composer.json b/phpTest_20/componente/vendor/symfony/deprecation-contracts/composer.json new file mode 100644 index 0000000..cc7cc12 --- /dev/null +++ b/phpTest_20/componente/vendor/symfony/deprecation-contracts/composer.json @@ -0,0 +1,35 @@ +{ + "name": "symfony/deprecation-contracts", + "type": "library", + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "require": { + "php": ">=7.1" + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + } +} diff --git a/phpTest_20/componente/vendor/symfony/deprecation-contracts/function.php b/phpTest_20/componente/vendor/symfony/deprecation-contracts/function.php new file mode 100644 index 0000000..d437150 --- /dev/null +++ b/phpTest_20/componente/vendor/symfony/deprecation-contracts/function.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +if (!function_exists('trigger_deprecation')) { + /** + * Triggers a silenced deprecation notice. + * + * @param string $package The name of the Composer package that is triggering the deprecation + * @param string $version The version of the package that introduced the deprecation + * @param string $message The message of the deprecation + * @param mixed ...$args Values to insert in the message using printf() formatting + * + * @author Nicolas Grekas + */ + function trigger_deprecation(string $package, string $version, string $message, ...$args): void + { + @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED); + } +} diff --git a/phpTest_20/composer.json b/phpTest_20/composer.json new file mode 100644 index 0000000..1dabf94 --- /dev/null +++ b/phpTest_20/composer.json @@ -0,0 +1,6 @@ +{ + "require": { + "phpmailer/phpmailer": "^6.6", + "league/plates": "^3.4" + } +} diff --git a/phpTest_20/composer.lock b/phpTest_20/composer.lock new file mode 100644 index 0000000..6c2c76b --- /dev/null +++ b/phpTest_20/composer.lock @@ -0,0 +1,161 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "6d1dffdb3014baea16e63910c4351c44", + "packages": [ + { + "name": "league/plates", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/plates.git", + "reference": "6d3ee31199b536a4e003b34a356ca20f6f75496a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/plates/zipball/6d3ee31199b536a4e003b34a356ca20f6f75496a", + "reference": "6d3ee31199b536a4e003b34a356ca20f6f75496a", + "shasum": "" + }, + "require": { + "php": "^7.0|^8.0" + }, + "require-dev": { + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Plates\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jonathan Reinink", + "email": "jonathan@reinink.ca", + "role": "Developer" + }, + { + "name": "RJ Garcia", + "email": "ragboyjr@icloud.com", + "role": "Developer" + } + ], + "description": "Plates, the native PHP template system that's fast, easy to use and easy to extend.", + "homepage": "https://platesphp.com", + "keywords": [ + "league", + "package", + "templates", + "templating", + "views" + ], + "support": { + "issues": "https://github.com/thephpleague/plates/issues", + "source": "https://github.com/thephpleague/plates/tree/v3.4.0" + }, + "time": "2020-12-25T05:00:37+00:00" + }, + { + "name": "phpmailer/phpmailer", + "version": "v6.6.0", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "e43bac82edc26ca04b36143a48bde1c051cfd5b1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/e43bac82edc26ca04b36143a48bde1c051cfd5b1", + "reference": "e43bac82edc26ca04b36143a48bde1c051cfd5b1", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.2", + "php-parallel-lint/php-console-highlighter": "^0.5.0", + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.6.2", + "yoast/phpunit-polyfills": "^1.0.0" + }, + "suggest": { + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.0" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "time": "2022-02-28T15:31:21+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/phpTest_20/dataBase/conf.php b/phpTest_20/dataBase/conf.php new file mode 100644 index 0000000..d7901bb --- /dev/null +++ b/phpTest_20/dataBase/conf.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/phpTest_20/dataBase/connec.php b/phpTest_20/dataBase/connec.php new file mode 100644 index 0000000..13b85df --- /dev/null +++ b/phpTest_20/dataBase/connec.php @@ -0,0 +1,14 @@ +getMessage(); +} + +?> + diff --git a/phpTest_20/dataBase/db_phptest.sql b/phpTest_20/dataBase/db_phptest.sql new file mode 100644 index 0000000..b006568 --- /dev/null +++ b/phpTest_20/dataBase/db_phptest.sql @@ -0,0 +1,3468 @@ +-- phpMyAdmin SQL Dump +-- version 5.0.3 +-- https://www.phpmyadmin.net/ +-- +-- Servidor: 127.0.0.1 +-- Tiempo de generación: 27-05-2022 a las 14:47:11 +-- Versión del servidor: 10.4.14-MariaDB +-- Versión de PHP: 7.4.11 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Base de datos: `db_phptest` +-- + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `cpt` +-- + +CREATE TABLE `cpt` ( + `id` int(11) NOT NULL, + `code` varchar(255) NOT NULL, + `description` varchar(800) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Volcado de datos para la tabla `cpt` +-- + +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(1, '00100', 'Anesthesia for procedures on salivary glands, including biopsy'), +(2, '00102', 'Anesthesia for procedures involving plastic repair of cleft lip'), +(3, '00103', 'Anesthesia For Reconstructive Procedures of Eyelid (eg, blepharoplasty, ptosis surgery)'), +(4, '00104', 'Anesthesia for electroconvulsive therapy'), +(5, '00120', 'Anesthesia For Procedures on External, Middle, & Inner Ear Including Biopsy; Not Otherwise Specified'), +(6, '00124', 'Anesthesia For Procedures on External, Middle, & Inner Ear Including Biopsy; Otoscopy'), +(7, '00126', 'Anesthesia For Procedures on External, Middle, & Inner Ear Including Biopsy; Tympanotomy'), +(8, '00140', 'Anesthesia For Procedures on Eye; Not Otherwise Specified'), +(9, '00142', 'Anesthesia For Procedures on Eye; Lens Surgery'), +(10, '01962', 'Anesthesia for urgent hysterectomy following delivery'), +(11, '01963', 'Anesthesia for cesarean hysterectomy without any labor analgesia/anesthesia care'), +(12, '01965', 'Anesthesia for incomplete or missed abortion procedures'), +(13, '01966', 'Anesthesia for induced abortion procedures'), +(14, '01967', 'Neuraxial labor analgesia/anesthesia for planned vaginal delivery (this includes any repeat subarachnoid needle placement and drug injection and/or any necessary replacement of an epidural catheter during labor)'), +(15, '01968', 'Anesthesia for cesarean delivery following neuraxial labor analgesia/anesthesia (List separately in addition to code for primary procedure performed)'), +(16, '01969', 'Anesthesia for cesarean hysterectomy following neuraxial labor analgesia/anesthesia (List separately in addition to code for primary procedure performed)'), +(17, '01990', 'Physiological support for harvesting of organ(s) from brain-dead patient'), +(18, '01991', 'Anesthesia For Diagnostic or Therapeutic Nerve Blocks & Injections (when block or injection is performed by a different physician or other qualified health care professional); Other Than the Prone Position'), +(19, '01992', 'Anesthesia For Diagnostic or Therapeutic Nerve Blocks & Injections (when block or injection is performed by a different physician or other qualified health care professional); Prone Position'), +(20, '01996', 'Daily hospital management of epidural or subarachnoid continuous drug administration'), +(21, '01999', 'Anesthesia Not Otherwise Specified'), +(22, '10021', 'Fine Needle Aspiration; w/Out Imaging Guidance'), +(23, '10022', 'Fine Needle Aspiration; w/Imaging Guidance'), +(24, '10030', 'Image-Guided Fluid Collection Drainage by Catheter (eg, abscess, hematoma, seroma, lymphocele, cyst), Soft Tissue (eg, extremity, abdominal wall, neck), Percutaneous'), +(25, '10040', 'Acne Surgery (eg, marsupialization, opening or removal of multiple milia, comedones, cysts, pustules)'), +(26, '10060', 'Incision & Drainage Abscess (Simple/Single)'), +(27, '10061', 'Incision & Drainage Abscess (Complicated/Multiple)'), +(28, '10080', 'Incision & Drainage of Pilonidal Cyst; Simple'), +(29, '10081', 'Incision & Drainage of Pilonidal Cyst; Complicated'), +(30, '10120', 'Removal of Foreign Body in Foot (Simple)'), +(31, '10121', 'Incision & Removal of Foreign Body, Subcutaneous Tissues; Complicated'), +(32, '10140', 'Incision & Drainage of Hematoma, Seroma or Fluid Collection'), +(33, '10160', 'Aspiration of Cyst'), +(34, '10180', 'Incision and drainage, complex, postoperative wound infection'), +(35, '11000', 'Debride Infected Skin'), +(36, '11001', 'Debridement of extensive eczematous or infected skin; each additional 10% of the body surface, or part thereof (List separately in addition to code for primary procedure)'), +(37, '11004', 'Debridement of skin, subcutaneous tissue, muscle and fascia for necrotizing soft tissue infection; external genitalia and perineum'), +(38, '11005', 'Debridement of skin, subcutaneous tissue, muscle and fascia for necrotizing soft tissue infection; abdominal wall, with or without fascial closure'), +(39, '11006', 'Debridement of skin, subcutaneous tissue, muscle and fascia for necrotizing soft tissue infection; external genitalia, perineum and abdominal wall, with or without fascial closure'), +(40, '11008', 'Removal of prosthetic material or mesh, abdominal wall for infection (eg, for chronic or recurrent mesh infection or necrotizing soft tissue infection) (List separately in addition to code for primary procedure)'), +(41, '11010', 'Debridement including removal of foreign material at the site of an open fracture and/or an open dislocation (eg, excisional debridement); skin and subcutaneous tissues'), +(42, '11011', 'Debridement including removal of foreign material at the site of an open fracture and/or an open dislocation (eg, excisional debridement); skin, subcutaneous tissue, muscle fascia, and muscle'), +(43, '11012', 'Debridement including removal of foreign material at the site of an open fracture and/or an open dislocation (eg, excisional debridement); skin, subcutaneous tissue, muscle fascia, muscle, and bone'), +(44, '11040', 'Debridement; Skin, Partial Thickness'), +(45, '11041', 'Debridement; Skin, Full Thickness'), +(46, '11042', 'Debridement, Subcutaneous Tissue (includes epidermis and dermis, if performed); First 20 sq cm or Less'), +(47, '11043', 'Debride Skin Tissue Muscle'), +(48, '11044', 'Debridement, bone (includes epidermis, dermis, subcutaneous tissue, muscle and/or fascia, if performed); first 20 sq cm or less'), +(49, '11045', 'Debridement, Subcutaneous Tissue (includes epidermis and dermis, if performed); Each Addtl 20 sq cm, or Part Thereof'), +(50, '11046', 'Debridement, muscle and/or fascia (includes epidermis, dermis, and subcutaneous tissue, if performed); each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)'), +(51, '11047', 'Debridement, bone (includes epidermis, dermis, subcutaneous tissue, muscle and/or fascia, if performed); each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)'), +(52, '11055', 'Debride Hyperkeratotic Lesion'), +(53, '11056', 'Debride Hyperkeratotic Lesion (2-4)'), +(54, '11057', 'Debride Hyperkeratotic Lesions (>4)'), +(55, '11100', 'Biopsy of Skin Subq Tissue 1 Lesion'), +(56, '11101', 'Biopsy of Skin, Subcutaneous Tissue and/or Mucous Membrane (including simple closure), Unless Otherwise Listed; Each Separate/Addtl Lesion'), +(57, '11200', 'Removal of Skin Tag (up to 15)'), +(58, '11201', 'Removal, Skin Tags, Multiple Fibrocutaneous Tags, Any Area'), +(59, '11300', 'Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter 0.5 cm or Less'), +(60, '11301', 'Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter 0.6 to 1.0 cm'), +(61, '11302', 'Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter 1.1 to 2.0 cm'), +(62, '11303', 'Shaving of Epidermal/Dermal Lesion, Single Lesion, Trunk, Arms/Legs; Lesion Diameter Over 2.0 cm'), +(63, '11305', 'Shaving Skin Lesion Diam 0.5 cm'), +(64, '11306', 'Shaving Skin Lesion Diam 0.6-1.0 cm'), +(65, '11307', 'Shaving Skin Lesion Diam 1.1-2.0 cm'), +(66, '11450', 'Excision of Skin/Subcutaneous Tissue Axillary; Simple or Intermediate Repair'), +(67, '11451', 'Excision of Skin/Subcutaneous Tissue for Hidradenitis, Axillary; Complex Repair'), +(68, '11462', 'Excision of Skin/Subcutaneous Tissue for Hidradenitis, Inguinal; Simple or Intermediate Repair'), +(69, '11463', 'Excision of Skin/Subcutaneous Tissue for Hidradenitis, Inguinal; Complex Repair'), +(70, '11470', 'Excision of Skin/Subcutaneous Tissue for Hidradenitis, Perianal, Perineal, or Umbilical; Simple or Intermediate Repair'), +(71, '11471', 'Excision of Skin/Subcutaneous Tissue for Hidradenitis, Perianal, Perineal, or Umbilical; Complex Repair'), +(72, '11600', 'Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 0.5 cm or Less'), +(73, '11601', 'Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 0.6 to 1.0 cm'), +(74, '11602', 'Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 1.1 to 2.0 cm'), +(75, '11603', 'Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 2.1 to 3.0 cm'), +(76, '11604', 'Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter 3.1 to 4.0 cm'), +(77, '11606', 'Excision, Malignant Lesion Including Margins, Trunk, Arms/Legs; Excised Diameter Over 4.0 cm'), +(78, '11620', 'Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 0.5 cm or Less'), +(79, '11621', 'Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 0.6 to 1.0 cm'), +(80, '11622', 'Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 1.1 to 2.0 cm'), +(81, '11623', 'Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 2.1 to 3.0 cm'), +(82, '11624', 'Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter 3.1 to 4.0 cm'), +(83, '11626', 'Excision, Malignant Lesion Including Margins, Scalp, Neck, Hands, Feet, Genitalia; Excised Diameter Over 4.0 cm'), +(84, '11640', 'Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 0.5 cm or Less'), +(85, '11641', 'Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 0.6 to 1.0 cm'), +(86, '11642', 'Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 1.1 to 2.0 cm'), +(87, '11643', 'Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 2.1 to 3.0 cm'), +(88, '11644', 'Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter 3.1 to 4.0 cm'), +(89, '11646', 'Excision, Malignant Lesion Including Margins, Face, Ears, Eyelids, Nose, Lips; Excised Diameter Over 4.0 cm'), +(90, '11719', 'Trimming of Nondystrophic Nnails, Any Number'), +(91, '11720', 'Debridement of Toenails'), +(92, '11721', 'Debridement of Toenails 6 or More'), +(93, '11730', 'Nail Avulsion (Single)'), +(94, '11732', 'Avulsion Nail Plate Partial/Comp Simple Ea Addtl'), +(95, '11740', 'Evacuation of Subungual Hematoma'), +(96, '11750', 'Excision on Toenail'), +(97, '11752', 'Excision of Nail and Nail Matrix, Partial or Complete (eg, ingrown or deformed nail), for Permanent Removal; w/Amputation of Tuft of Distal Phalanx'), +(98, '11755', 'Biopsy Nail Unit Sperarate Procedure'), +(99, '11760', 'Repair of Nail Bed'), +(100, '11762', 'Reconstruction of Nail Bed w/Graft'), +(101, '11765', 'Wedge Excision Skin Nail Fold'), +(102, '11770', 'Excision of Pilonidal Cyst or Sinus; Simple'), +(103, '11771', 'Excision of Pilonidal Cyst or Sinus; Extensive'), +(104, '11772', 'Excision of Pilonidal Cyst or Sinus; Complicated'), +(105, '11900', 'Injection Intralesional Up to & Include 7 Lesions'), +(106, '11901', 'Injection Intralesional; More Than 7 Lesions'), +(107, '11920', 'Tattooing, Intradermal Introduction of Insoluble Opaque Pigments to Correct Color Defects of Skin, Including Micropigmentation; 6.0 sq cm or Less'), +(108, '11921', 'Tattooing, Intradermal Introduction of Insoluble Opaque Pigments to Correct Color Defects of Skin, Including Micropigmentation; 6.1 to 20.0 sq cm'), +(109, '11922', 'Tattooing, Intradermal Introduction of Insoluble Opaque Pigments to Correct Color Defects of Skin, Including Micropigmentation; Each Addtl 20.0 sq cm, or Part thereof'), +(110, '11950', 'Subcutaneous Injection of Filling Material (eg, collagen); 1 cc or Less'), +(111, '11951', 'Subcutaneous Injection of Filling Material (eg, collagen); 1.1 to 5.0 cc'), +(112, '11952', 'Subcutaneous Injection of Filling Material (eg, collagen); 5.1 to 10.0 cc'), +(113, '11954', 'Subcutaneous Injection of Filling Material (eg, collagen); Over 10.0 cc'), +(114, '11960', 'Insertion of Tissue Expander(s) for Other Than Breast, Including Subsequent Expansion'), +(115, '11970', 'Replacement of Tissue Expander w/Permanent Prosthesis'), +(116, '11971', 'Removal of Tissue Expander(s) w/Out Insertion of Prosthesis'), +(117, '11976', 'Removal, Implantable Contraceptive Capsules'), +(118, '11980', 'Subcutaneous Hormone Pellet Implantation (implantation of estradiol and/or testosterone pellets beneath the skin)'), +(119, '11981', 'Insertion, Non-Biodegradable Drug Delivery Implant'), +(120, '11982', 'Removal, Non-Biodegradable Drug Delivery Implant'), +(121, '11983', 'Removal w/Reinsertion, Non-Biodegradable Drug Delivery Implant'), +(122, '12001', 'Simple Repair, Superficial Wounds, Scalp/Neck/Axillae/Genitalia 2.5-cm/<'), +(123, '12002', 'Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); 2.6 cm to 7.5 cm'), +(124, '12004', 'Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); 7.6 cm to 12.5 cm'), +(125, '12005', 'Simple Repair, Superficial Wounds, Scalp/Neck/Axillae/Genitalia/Trunk/Extremities; 12.6-20.0cm'), +(126, '12006', 'Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); 20.1 cm to 30.0 cm'), +(127, '12007', 'Simple Repair of Superficial Wounds of Scalp, Neck, Axillae, External Genitalia, Trunk and/or Extremities (including hands and feet); Over 30.0 cm'), +(128, '12011', 'Simple Repair, Superficial Wounds, Face/Ears/Eyelids/Nose/Lips/Mouth 2.5cm /<'), +(129, '12013', 'Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Llips and/or Mucous Membranes; 2.6 cm to 5.0 cm'), +(130, '12014', 'Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 5.1 cm to 7.5 cm'), +(131, '12015', 'Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 7.6 cm to 12.5 cm'), +(132, '12016', 'Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 12.6 cm to 20.0 cm'), +(133, '12017', 'Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 20.1 cm to 30.0 cm'), +(134, '12018', 'Simple Repair of Superficial Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; Over 30.0 cm'), +(135, '12020', 'Treatment of Superficial Wound Dehiscence; Simple Closure'), +(136, '12021', 'Treatment of Superficial Wound Dehiscence; w/ Packing'), +(137, '12031', 'Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 2.5 cm or Less'), +(138, '12032', 'Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 2.6 cm to 7.5 cm'), +(139, '12034', 'Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 7.6 cm to 12.5 cm'), +(140, '12035', 'Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 12.6 cm to 20.0 cm'), +(141, '12036', 'Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); 20.1 cm to 30.0 cm'), +(142, '12037', 'Repair, Intermediate, Wounds of Scalp, Axillae, Trunk and/or Extremities (excluding hands and feet); Over 30.0 cm'), +(143, '12041', 'Wound Closure <2.5cm'), +(144, '12042', 'Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 2.6 cm to 7.5 cm'), +(145, '12044', 'Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 7.6 cm to 12.5 cm'), +(146, '12045', 'Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 12.6 cm to 20.0 cm'), +(147, '12046', 'Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; 20.1 cm to 30.0 cm'), +(148, '12047', 'Repair, Intermediate, Wounds of Neck, Hands, Feet and/or External Genitalia; Over 30.0 cm'), +(149, '12051', 'Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 2.5 cm or Less'), +(150, '12052', 'Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 2.6 cm to 5.0 cm'), +(151, '12053', 'Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 5.1 cm to 7.5 cm'), +(152, '12054', 'Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 7.6 cm to 12.5 cm'), +(153, '12055', 'Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 12.6 cm to 20.0 cm'), +(154, '12056', 'Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; 20.1 cm to 30.0 cm'), +(155, '12057', 'Repair, Intermediate, Wounds of Face, Ears, Eyelids, Nose, Lips and/or Mucous Membranes; Over 30.0 cm'), +(156, '13100', 'Repair, Complex, Trunk; 1.1 cm to 2.5 cm'), +(157, '13101', 'Repair, Complex, Trunk; 2.6 cm to 7.5 cm'), +(158, '13102', 'Repair, Complex, Trunk; Each Addtl 5 cm or Less'), +(159, '13120', 'Repair, Complex, Scalp, Arms, and/or Legs; 1.1 cm to 2.5 cm'), +(160, '13121', 'Repair, Complex, Scalp, Arms, and/or Legs; 2.6 cm to 7.5 cm'), +(161, '13122', 'Repair, Complex, Scalp, Arms, and/or Legs; Each Addtl 5 cm or Less'), +(162, '13131', 'Repair, Complex, Forehead, Cheeks, Chin, Mouth, Neck, Axillae, Genitalia, Hands and/or Feet; 1.1 cm to 2.5 cm'), +(163, '13132', 'Repair, Complex, Forehead, Cheeks, Chin, Mouth, Neck, Axillae, Genitalia, Hands and/or Feet; 2.6 cm to 7.5 cm'), +(164, '13133', 'Repair, Complex, Forehead, Cheeks, Chin, Mouth, Neck, Axillae, Genitalia, Hands and/or Feet; Each Addtl 5 cm or Less'), +(165, '13151', 'Repair, complex, eyelids, nose, ears and/or lips; 1.1 cm to 2.5 cm'), +(166, '13152', 'Repair, complex, eyelids, nose, ears and/or lips; 2.6 cm to 7.5 cm'), +(167, '13153', 'Repair, complex, eyelids, nose, ears and/or lips; each additional 5 cm or less (List separately in addition to code for primary procedure)'), +(168, '13160', 'Secondary closure of surgical wound or dehiscence, extensive or complicated'), +(169, '14000', 'Adjacent tissue transfer or rearrangement, trunk; defect 10 sq cm or less'), +(170, '14001', 'Adjacent tissue transfer or rearrangement, trunk; defect 10.1 sq cm to 30.0 sq cm'), +(171, '14020', 'Adjacent tissue transfer or rearrangement, scalp, arms and/or legs; defect 10 sq cm or less'), +(172, '14021', 'Adjacent tissue transfer or rearrangement, scalp, arms and/or legs; defect 10.1 sq cm to 30.0 sq cm'), +(173, '14040', 'Adjacent tissue transfer or rearrangement, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands and/or feet; defect 10 sq cm or less'), +(174, '14041', 'Adjacent tissue transfer or rearrangement, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands and/or feet; defect 10.1 sq cm to 30.0 sq cm'), +(175, '14060', 'Adjacent tissue transfer or rearrangement, eyelids, nose, ears and/or lips; defect 10 sq cm or less'), +(176, '14061', 'Adjacent tissue transfer or rearrangement, eyelids, nose, ears and/or lips; defect 10.1 sq cm to 30.0 sq cm'), +(177, '14301', 'Adjacent tissue transfer or rearrangement, any area; defect 30.1 sq cm to 60.0 sq cm'), +(178, '14302', 'Adjacent tissue transfer or rearrangement, any area; each additional 30.0 sq cm, or part thereof (List separately in addition to code for primary procedure)'), +(179, '14350', 'Filleted finger or toe flap, including preparation of recipient site'), +(180, '15002', 'Surgical preparation or creation of recipient site by excision of open wounds, burn eschar, or scar (including subcutaneous tissues), or incisional release of scar contracture, trunk, arms, legs; first 100 sq cm or 1% of body area of infants and children'), +(181, '15003', 'Surgical preparation or creation of recipient site by excision of open wounds, burn eschar, or scar (including subcutaneous tissues), or incisional release of scar contracture, trunk, arms, legs; each additional 100 sq cm, or part thereof, or each additional 1% of body area of infants and children (List separately in addition to code for primary procedure)'), +(182, '15004', 'Prep Site F/S/N/H/F/G/M/D gt 1st 100 sq cm/1pct'), +(183, '15005', 'Surgical preparation or creation of recipient site by excision of open wounds, burn eschar, or scar (including subcutaneous tissues), or incisional release of scar contracture, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet and/or multiple digits; each additional 100 sq cm, or part thereof, or each additional 1% of body area of infants and children (List separately in addition to code for primary procedure)'), +(184, '15040', 'Harvest of skin for tissue cultured skin autograft, 100 sq cm or less'), +(185, '15050', 'Pinch graft, single or multiple, to cover small ulcer, tip of digit, or other minimal open area (except on face), up to defect size 2 cm diameter'), +(186, '15100', 'Split-thickness autograft, trunk, arms, legs; first 100 sq cm or less, or 1% of body area of infants and children (except 15050)'), +(187, '15101', 'Split-thickness autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(188, '15110', 'Epidermal autograft, trunk, arms, legs; first 100 sq cm or less, or 1% of body area of infants and children'), +(189, '15111', 'Epidermal autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(190, '15115', 'Epidermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 100 sq cm or less, or 1% of body area of infants and children'), +(191, '15116', 'Epidermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(192, '15120', 'Split-thickness autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 100 sq cm or less, or 1% of body area of infants and children (except 15050)'), +(193, '15121', 'Split-thickness autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(194, '15130', 'Dermal autograft, trunk, arms, legs; first 100 sq cm or less, or 1% of body area of infants and children'), +(195, '15131', 'Dermal autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(196, '15135', 'Dermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 100 sq cm or less, or 1% of body area of infants and children'), +(197, '15136', 'Dermal autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(198, '15150', 'Tissue cultured skin autograft, trunk, arms, legs; first 25 sq cm or less'), +(199, '15151', 'Tissue cultured skin autograft, trunk, arms, legs; additional 1 sq cm to 75 sq cm (List separately in addition to code for primary procedure)'), +(200, '15152', 'Tissue cultured skin autograft, trunk, arms, legs; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(201, '15155', 'Tissue cultured skin autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; first 25 sq cm or less'), +(202, '15156', 'Tissue cultured skin autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; additional 1 sq cm to 75 sq cm (List separately in addition to code for primary procedure)'), +(203, '15157', 'Tissue cultured skin autograft, face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits; each additional 100 sq cm, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(204, '15200', 'Full thickness graft, free, including direct closure of donor site, trunk; 20 sq cm or less'), +(205, '15201', 'Full thickness graft, free, including direct closure of donor site, trunk; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)'), +(206, '15220', 'Full thickness graft, free, including direct closure of donor site, scalp, arms, and/or legs; 20 sq cm or less'), +(207, '15221', 'Full thickness graft, free, including direct closure of donor site, scalp, arms, and/or legs; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)'), +(208, '15240', 'Full thickness graft, free, including direct closure of donor site, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands, and/or feet; 20 sq cm or less'), +(209, '15241', 'Full thickness graft, free, including direct closure of donor site, forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands, and/or feet; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)'), +(210, '15260', 'Full thickness graft, free, including direct closure of donor site, nose, ears, eyelids, and/or lips; 20 sq cm or less'), +(211, '15261', 'Full thickness graft, free, including direct closure of donor site, nose, ears, eyelids, and/or lips; each additional 20 sq cm, or part thereof (List separately in addition to code for primary procedure)'), +(212, '15271', 'Application of skin substitute graft to trunk, arms, legs, total wound surface area up to 100 sq cm; first 25 sq cm or less wound surface area'), +(213, '15272', 'Application of skin substitute graft to trunk, arms, legs, total wound surface area up to 100 sq cm; each additional 25 sq cm wound surface area, or part thereof (List separately in addition to code for primary procedure)'), +(214, '15273', 'Application of skin substitute graft to trunk, arms, legs, total wound surface area greater than or equal to 100 sq cm; first 100 sq cm wound surface area, or 1% of body area of infants and children'), +(215, '15274', 'Application of skin substitute graft to trunk, arms, legs, total wound surface area greater than or equal to 100 sq cm; each additional 100 sq cm wound surface area, or part thereof, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(216, '15275', 'Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area up to 100 sq cm; first 25 sq cm or less wound surface area'), +(217, '15276', 'Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area up to 100 sq cm; each additional 25 sq cm wound surface area, or part thereof (List separately in addition to code for primary procedure)'), +(218, '15277', 'Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area greater than or equal to 100 sq cm; first 100 sq cm wound surface area, or 1% of body area of infants and children'), +(219, '15278', 'Application of skin substitute graft to face, scalp, eyelids, mouth, neck, ears, orbits, genitalia, hands, feet, and/or multiple digits, total wound surface area greater than or equal to 100 sq cm; each additional 100 sq cm wound surface area, or part thereof, or each additional 1% of body area of infants and children, or part thereof (List separately in addition to code for primary procedure)'), +(220, '15570', 'Formation of direct or tubed pedicle, with or without transfer; trunk'), +(221, '15572', 'Formation of direct or tubed pedicle, with or without transfer; scalp, arms, or legs'), +(222, '15574', 'Formation of direct or tubed pedicle, with or without transfer; forehead, cheeks, chin, mouth, neck, axillae, genitalia, hands or feet'), +(223, '15576', 'Formation of direct or tubed pedicle, with or without transfer; eyelids, nose, ears, lips, or intraoral'), +(224, '15600', 'Delay of flap or sectioning of flap (division and inset); at trunk'), +(225, '15610', 'Delay of flap or sectioning of flap (division and inset); at scalp, arms, or legs'), +(226, '15620', 'Delay of flap or sectioning of flap (division and inset); at forehead, cheeks, chin, neck, axillae, genitalia, hands, or feet'), +(227, '15630', 'Delay of flap or sectioning of flap (division and inset); at eyelids, nose, ears, or lips'), +(228, '15650', 'Transfer, intermediate, of any pedicle flap (eg, abdomen to wrist, Walking tube), any location'), +(229, '15731', 'Forehead flap with preservation of vascular pedicle (eg, axial pattern flap, paramedian forehead flap)'), +(230, '15732', 'Muscle, myocutaneous, or fasciocutaneous flap; head and neck (eg, temporalis, masseter muscle, sternocleidomastoid, levator scapulae)'), +(231, '15734', 'Muscle, myocutaneous, or fasciocutaneous flap; trunk'), +(232, '15736', 'Muscle, myocutaneous, or fasciocutaneous flap; upper extremity'), +(233, '15738', 'Muscle, myocutaneous, or fasciocutaneous flap; lower extremity'), +(234, '15740', 'Flap; island pedicle requiring identification and dissection of an anatomically named axial vessel'), +(235, '15750', 'Flap; neurovascular pedicle'), +(236, '15756', 'Free muscle or myocutaneous flap with microvascular anastomosis'), +(237, '15757', 'Free skin flap with microvascular anastomosis'), +(238, '15758', 'Free fascial flap with microvascular anastomosis'), +(239, '15760', 'Graft; composite (eg, full thickness of external ear or nasal ala), including primary closure, donor area'), +(240, '15770', 'Graft; derma-fat-fascia'), +(241, '15775', 'Punch graft for hair transplant; 1 to 15 punch grafts'), +(242, '15776', 'Punch graft for hair transplant; more than 15 punch grafts'), +(243, '15777', 'Implantation of biologic implant (eg, acellular dermal matrix) for soft tissue reinforcement (ie, breast, trunk) (List separately in addition to code for primary procedure)'), +(244, '15780', 'Dermabrasion; total face (eg, for acne scarring, fine wrinkling, rhytids, general keratosis)'), +(245, '15781', 'Dermabrasion; segmental, face'), +(246, '15782', 'Dermabrasion; regional, other than face'), +(247, '15783', 'Dermabrasion; superficial, any site (eg, tattoo removal)'), +(248, '15786', 'Abrasion; Single Lesion (eg, keratosis, scar)'), +(249, '15787', 'Abrasion; Each Addtl 4 Lesions or Less'), +(250, '15788', 'Chemical Peel, Facial; Epidermal'), +(251, '15789', 'Chemical Peel, Facial; Dermal'), +(252, '15792', 'Chemical Peel, Nonfacial; Epidermal'), +(253, '15793', 'Chemical Peel, Nonfacial; Dermal'), +(254, '15819', 'Cervicoplasty'), +(255, '15820', 'Blepharoplasty, Lower Eyelid'), +(256, '15821', 'Blepharoplasty, lower eyelid; with extensive herniated fat pad'), +(257, '15822', 'Blepharoplasty, upper eyelid;'), +(258, '15823', 'Blepharoplasty, upper eyelid; with excessive skin weighting down lid'), +(259, '15824', 'Rhytidectomy; forehead'), +(260, '15825', 'Rhytidectomy; neck with platysmal tightening (platysmal flap, P-flap)'), +(261, '15826', 'Rhytidectomy; glabellar frown lines'), +(262, '15828', 'Rhytidectomy; cheek, chin, and neck'), +(263, '15829', 'Rhytidectomy; superficial musculoaponeurotic system (SMAS) flap'), +(264, '15830', 'Excision Skin & Infraumbilical Panniculectomy'), +(265, '15832', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); thigh'), +(266, '15833', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); leg'), +(267, '15834', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); hip'), +(268, '15835', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); buttock'), +(269, '15836', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); arm'), +(270, '15837', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); forearm or hand'), +(271, '15838', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); submental fat pad'), +(272, '15839', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy); other area'), +(273, '15840', 'Graft for facial nerve paralysis; free fascia graft (including obtaining fascia)'), +(274, '15841', 'Graft for facial nerve paralysis; free muscle graft (including obtaining graft)'), +(275, '15842', 'Graft for facial nerve paralysis; free muscle flap by microsurgical technique'), +(276, '15845', 'Graft for facial nerve paralysis; regional muscle transfer'), +(277, '15847', 'Excision, excessive skin and subcutaneous tissue (includes lipectomy), abdomen (eg, abdominoplasty) (includes umbilical transposition and fascial plication) (List separately in addition to code for primary procedure)'), +(278, '15850', 'Removal Sutures Under Anesthesia Same Surgeon'), +(279, '15851', 'Removal of Sutures Under Anesthesia (other than local), Other Surgeon'), +(280, '15852', 'Dressing Change Under Anesthesia'), +(281, '15860', 'Intravenous Injection of Agent (eg, fluorescein) to Test Vascular Flow in Flap or Graft'), +(282, '15876', 'Suction Assisted Lipectomy; Head and Neck'), +(283, '15877', 'Suction Assisted Lipectomy; Trunk'), +(284, '15878', 'Suction Assisted Lipectomy; Uupper Extremity'), +(285, '15879', 'Suction Assisted Lipectomy; Lower Extremity'), +(286, '15920', 'Excision, Coccygeal Pressure Ulcer, w/Coccygectomy; w/Primary Suture'), +(287, '15922', 'Excision, Coccygeal Pressure Ulcer, w/Coccygectomy; w/Flap Closure'), +(288, '15931', 'Excision Sacral Pressure Ulcer, w/Primary Suture'), +(289, '15933', 'Excision Sacral Pressure Ulcer, w/Primary Suture; w/Ostectomy'), +(290, '15934', 'Excision Sacral Pressure Ulcer, w/Skin Flap Closure'), +(291, '15935', 'Excision Sacral Pressure Ulcer, w/Skin Flap Closure; w/Ostectomy'), +(292, '15936', 'Excision Sacral Pressure Ulcer, in Preparation for Muscle or Myocutaneous Flap or Skin Graft Closure'), +(293, '15937', 'Excision Sacral Pressure Ulcer, in Preparation for Muscle or Myocutaneous Flap or Skin Graft Closure; w/Ostectomy'), +(294, '15940', 'Excision Ischial Pressure Ulcer, w/Primary Suture'), +(295, '15941', 'Excision Ischial Pressure Ulcer, w/Primary Suture; w/Ostectomy'), +(296, '15944', 'Excision Ischial Ressure Ulcer, w/Skin Flap Closure'), +(297, '15945', 'Excision Ischial Pressure Ulcer, w/Skin Flap Closure; w/Ostectomy'), +(298, '15946', 'Excision Ischial Pressure Ulcer, w/Ostectomy, in Preparation for Muscle or Myocutaneous Flap or Skin Graft Closure'), +(299, '15950', 'Excision Trochanteric Pressure Ulcer, w/Primary Suture'), +(300, '15951', 'Excision Trochanteric Pressure Ulcer w/Primary Suture; w/Ostectomy'), +(301, '15952', 'Excision Trochanteric Pressure Ulcer, w/Skin Flap Closure'), +(302, '15953', 'Excision Trochanteric Pressure Ulcer, w/Skin Flap Closure; w/Ostectomy'), +(303, '15956', 'Excision, trochanteric pressure ulcer, in preparation for muscle or myocutaneous flap or skin graft closure;'), +(304, '15958', 'Excision, trochanteric pressure ulcer, in preparation for muscle or myocutaneous flap or skin graft closure; with ostectomy'), +(305, '15999', 'Unlisted Procedure, Excision Pressure Ulcer'), +(306, '16000', 'Initial Treatment, 1st Degree Burn, When No More Than Local Trea'), +(307, '16020', 'Dressings &/or Debridement, Initial/Subquent w/o Anesthesia'), +(308, '16025', 'Dressings and/or Debridement of Partial-Thickness Burns, Initial or Subsequent; Medium'), +(309, '16030', 'Dressings and/or Debridement of Partial-Thickness Burns, Initial or Subsequent; Large'), +(310, '16035', 'Escharotomy; Initial Incision'), +(311, '16036', 'Escharotomy; Each Addtl Incision'), +(312, '17000', 'Destruction (skin) 1'), +(313, '17003', 'Destruction (skin) >2 up to 15'), +(314, '17004', 'Destruction Premalignant Lesion 15/>'), +(315, '17106', 'Destruction of Cutaneous Vascular Proliferative Lesions (eg, laser technique); Less Than 10 sq cm'), +(316, '17107', 'Destruction of Cutaneous Vascular Proliferative Lesions (eg, laser technique); 10.0 to 50.0 sq cm'), +(317, '17108', 'Destruction of Cutaneous Vascular Proliferative Lesions (eg, laser technique); Over 50.0 sq cm'), +(318, '17110', 'Destruct of Benign Lesion'), +(319, '17111', 'Destruction Benign Lesions 15 or More'), +(320, '17250', 'Chemical Cautery Tissue'), +(321, '17260', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Aarms or Legs; Lesion Diameter 0.5 cm or Less'), +(322, '17261', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 0.6 to 1.0 cm'), +(323, '17262', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 1.1 to 2.0 cm'), +(324, '17263', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 2.1 to 3.0 cm'), +(325, '17264', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter 3.1 to 4.0 cm'), +(326, '17266', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Trunk, Arms or Legs; Lesion Diameter over 4.0 cm'), +(327, '17270', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 0.5 cm or Less'), +(328, '17271', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 0.6 to 1.0 cm'), +(329, '17272', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 1.1 to 2.0 cm'), +(330, '17273', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 2.1 to 3.0 cm'), +(331, '17274', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter 3.1 to 4.0 cm'), +(332, '17276', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Scalp, Neck, Hands, Feet, Genitalia; Lesion Diameter over 4.0 cm'), +(333, '17280', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 0.5 cm or Less'), +(334, '17281', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 0.6 to 1.0 cm'), +(335, '17282', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 1.1 to 2.0 cm'), +(336, '17283', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 2.1 to 3.0 cm'), +(337, '17284', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter 3.1 to 4.0 cm'), +(338, '17286', 'Destruction, Malignant Lesion (eg, laser surgery, electrosurgery, cryosurgery, chemosurgery, surgical curettement), Face, Ears, Eyelids, Nose, Lips, Mucous Membrane; Lesion Diameter Over 4.0 cm'), +(339, '17311', 'Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), Head, Neck, Hands, Feet, Genitalia, or any Location w/Surgery Directly Involving Muscle, Cartilage, Bone, Tendon, Major Nerves, or Vessels; First Stage, up to 5 Tissue Blocks'), +(340, '17312', 'Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), Head, Neck, Hands, Feet, Genitalia, or Any Location w/Surgery Directly Involving Muscle, Cartilage, Bone, Tendon, Major Nerves, or Vessels; Each Addtl Stage After the First Stage, up to 5 Tissue Blocks (List separately in addition to code for primary procedure)'), +(341, '17313', 'Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), of the Trunk, Arms, or Legs; First Stage, up to 5 tissue Blocks'), +(342, '17314', 'Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), of the Trunk, Arms, or Legs; Each Addtl Stage After the First Stage, up to 5 Ttissue Blocks'), +(343, '17315', 'Mohs Micrographic Technique, Including Removal of All Gross Tumor, Surgical Excision of Tissue Specimens, Mapping, Color Coding of Specimens, Microscopic Examination of Specimens by the Surgeon, and Histopathologic Preparation Including Routine Stain(s) (eg, hematoxylin and eosin, toluidine blue), Each Addtl Block After the First 5 Tissue Blocks, Any Stage'), +(344, '17340', 'Cryotherapy (CO2 slush, liquid N2) for Acne'), +(345, '17360', 'Chemical Exfoliation for Acne (eg, acne paste, acid)'), +(346, '17380', 'Electrolysis Epilation, Each 30 min'), +(347, '17999', 'Unlisted Procedure, Skin, Mucous Membrane & Subcutaneous Tissue'), +(348, '19000', 'Puncture Aspiration Cyst of Breast'), +(349, '19001', 'Needle/Punct Cyst of Breast Addtl'), +(350, '19020', 'Mastotomy w/Exploration or Drainage of Abscess, Deep'), +(351, '19030', 'Injection Procedure Only for Mammary Ductogram or Galactogram'), +(352, '19081', 'Biopsy Breast 1st Lesion Stereotactic'), +(353, '19082', 'Biopsy Breast Addtl Lesion Stereotactic'), +(354, '19083', 'Biopsy Breast 1st Lesion Ultrasound Imaging'), +(355, '19084', 'Biopsy Breast Addtl Lesion Ultrasound Imaging'), +(356, '19085', 'Biopsy Breast 1st Lesion MR Imaging'), +(357, '19086', 'Biopsy Breast Addtl Lesion MR Imaging'), +(358, '19100', 'Biopsy of Breast; Percutaneous, Needle Core, Not Using Imaging Guidance (separate procedure)'), +(359, '19101', 'Biopsy of Breast; Open, Incisional'), +(360, '19105', 'Ablation, Cryosurgical, of Fibroadenoma, Including Ultrasound Guidance, Each Fibroadenoma'), +(361, '19110', 'Nipple Exploration, w/ or w/Out Excision of a Solitary Lactiferous Duct or a Papilloma Lactiferous Duct'), +(362, '19112', 'Excision of Lactiferous Duct Fistula'), +(363, '19120', 'Excision of Cyst, Fibroadenoma, or Other Benign or Malignant Tumor, Aberrant Breast Tissue, Duct Lesion, Nipple or Areolar Lesion (except Mastectomy for Gynecomastia), Open, Male or Female, 1 or More Lesions'), +(364, '19125', 'Excision of Breast Lesion Identified by Preoperative Placement of Radiological Marker, Open; Single Lesion'), +(365, '19126', 'Excision of Breast Lesion Identified by Preoperative Placement of Radiological Marker, Open; Each Addtl Lesion Separately Identified by a Preoperative Radiological Marker (List separately in addition to code for primary procedure)'), +(366, '19260', 'Excision of Chest Wall Tumor Including Ribs'), +(367, '19271', 'Excision of chest wall tumor involving ribs, with plastic reconstruction; without mediastinal lymphadenectomy'), +(368, '19272', 'Excision of chest wall tumor involving ribs, with plastic reconstruction; with mediastinal lymphadenectomy'), +(369, '19281', 'Placement Breast Local Device 1st Lesion Per Cut'), +(370, '19282', 'Placement Breast Local Device Addtl Lesion Per Cut'), +(371, '19283', 'Placement Breast Local Device 1st Lesion Stereotactic'), +(372, '19284', 'Placement Breast Local Device Addtl Lesion Stereotactic'), +(373, '19285', 'Placement Breast Local Device 1st Lesion Ultrasound Guidance'), +(374, '19286', 'Placement Breast Local Device Addtl Lesion Ultrasound Guidance'), +(375, '19287', 'Placement Breast Local Device 1st Lesion MR Guidance'), +(376, '19288', 'Placement Breast Local Device Addtl Lesion MR Guidance'), +(377, '19296', 'Placement of Radiotherapy Afterloading Expandable Catheter (single or multichannel) Into the Breast for Interstitial Radioelement Application Following Partial Mastectomy, Includes Imaging Guidance; on Date Separate from Partial Mastectomy'), +(378, '19297', 'Placement of Radiotherapy Afterloading Expandable Catheter (single or multichannel) Into the Breast for Interstitial Radioelement Application following Partial Mastectomy, Includes Imaging Guidance; Concurrent w/Partial Mastectomy (List separately in addition to code for primary procedure)'), +(379, '19298', 'Placement of Radiotherapy Afterloading Brachytherapy Catheters (multiple tube and button type) Into the Breast for Interstitial Radioelement Application following (at the time of or subsequent to) Partial Mastectomy, Includes Imaging Guidance'), +(380, '19300', 'Mastectomy for Gynecomastia'), +(381, '19301', 'Mastectomy, partial (eg, lumpectomy, tylectomy, quadrantectomy, segmentectomy);'), +(382, '19302', 'Mastectomy, partial (eg, lumpectomy, tylectomy, quadrantectomy, segmentectomy); with axillary lymphadenectomy'), +(383, '19303', 'Mastectomy, simple, complete'), +(384, '19304', 'Mastectomy, subcutaneous'), +(385, '19305', 'Mastectomy, radical, including pectoral muscles, axillary lymph nodes'), +(386, '19306', 'Mastectomy, radical, including pectoral muscles, axillary and internal mammary lymph nodes (Urban type operation)'), +(387, '19307', 'Mastectomy, modified radical, including axillary lymph nodes, with or without pectoralis minor muscle, but excluding pectoralis major muscle'), +(388, '19316', 'Mastopexy'), +(389, '19318', 'Reduction mammaplasty'), +(390, '19324', 'Mammaplasty, augmentation; without prosthetic implant'), +(391, '19325', 'Mammaplasty, augmentation; with prosthetic implant'), +(392, '19328', 'Removal of intact mammary implant'), +(393, '19330', 'Removal of mammary implant material'), +(394, '19340', 'Immediate insertion of breast prosthesis following mastopexy, mastectomy or in reconstruction'), +(395, '19342', 'Delayed insertion of breast prosthesis following mastopexy, mastectomy or in reconstruction'), +(396, '19350', 'Nipple/areola reconstruction'), +(397, '19355', 'Correction of inverted nipples'), +(398, '19357', 'Breast reconstruction, immediate or delayed, with tissue expander, including subsequent expansion'), +(399, '19361', 'Breast reconstruction with latissimus dorsi flap, without prosthetic implant'), +(400, '19364', 'Breast reconstruction with free flap'), +(401, '19366', 'Breast reconstruction with other technique'), +(402, '19367', 'Breast reconstruction with transverse rectus abdominis myocutaneous flap (TRAM), single pedicle, including closure of donor site;'), +(403, '19368', 'Breast reconstruction with transverse rectus abdominis myocutaneous flap (TRAM), single pedicle, including closure of donor site; with microvascular anastomosis (supercharging)'), +(404, '19369', 'Breast reconstruction with transverse rectus abdominis myocutaneous flap (TRAM), double pedicle, including closure of donor site'), +(405, '19370', 'Open periprosthetic capsulotomy, breast'), +(406, '19371', 'Periprosthetic capsulectomy, breast'), +(407, '19380', 'Revision of reconstructed breast'), +(408, '19396', 'Preparation of moulage for custom breast implant'), +(409, '19499', 'Unlisted procedure, breast'), +(410, '20005', 'Incision & Drainage of Soft tissue Abscess, Subfascial (ie, involves the soft tissue below the deep fascia)'), +(411, '20100', 'Exploration of penetrating wound (separate procedure); neck'), +(412, '20101', 'Exploration of penetrating wound (separate procedure); chest'), +(413, '20102', 'Exploration of penetrating wound (separate procedure); abdomen/flank/back'), +(414, '20103', 'Exploration of penetrating wound (separate procedure); extremity'), +(415, '20150', 'Excision of Epiphyseal Bar, w/ or w/Out Autogenous Soft Tissue Graft oObtained Through Same Fascial Incision'), +(416, '20200', 'Biopsy, Muscle; Superficial'), +(417, '20205', 'Biopsy, Muscle; Deep'), +(418, '20206', 'Biopsy, Muscle, Percutaneous Needle'), +(419, '20220', 'Biopsy, Bone, Trocar, or Needle; Superficial (eg, ilium, sternum, spinous process, ribs)'), +(420, '20225', 'Biopsy, Bone, Trocar, or Needle; Deep (eg, vertebral body, femur)'), +(421, '20240', 'Biopsy, Bone, Open; Superficial (eg, ilium, sternum, spinous process, ribs, trochanter of femur)'), +(422, '20245', 'Biopsy, Bone, Open; Deep (eg, humerus, ischium, femur)'), +(423, '20250', 'Biopsy, Vertebral Body, Open; Thoracic'), +(424, '20251', 'Biopsy, Vertebral Body, Open; Lumbar or Cervical'), +(425, '20500', 'Injection Sinus Tract Therapeutic Separate Proc'), +(426, '20501', 'Inject Sinus Tract for X-Ray'), +(427, '20520', 'Removal of Foreign Body in Muscle or Tendon Sheath; Simple'), +(428, '20525', 'Removal of Foreign Body in Muscle or Tendon Sheath; Deep or Complicated'), +(429, '20526', 'Carpal Tunnel Injection'), +(430, '20550', 'Tendon and/or Ligament Injection'), +(431, '20551', 'Injection Single Tendon Origin/Insertion'), +(432, '20552', 'Trigger Point Injections Focused'); +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(433, '20553', 'Trigger Point Injection Comprehensive'), +(434, '20555', 'Placement of Needles or Catheters Into Muscle and/or Soft Tissue for Subsequent Interstitial Radioelement Application'), +(435, '20600', 'Joint/Bursa Injection w/Out Fluoroscopy'), +(436, '20604', 'Arthrocentesis/Aspiration Small Joint w/Ultrasound Guidance'), +(437, '20605', 'Asp/Injection Intermediate Joint/Bursa'), +(438, '20606', 'Arthrocentesis Aspiration Tntermediate Joint w/Ultrasound Guidance'), +(439, '20610', 'Arthrocentesis Major Asp/Inj Major Joint/Bursa'), +(440, '20611', 'Arthrocentesis Aspiration Major Joint w/Ultrasound Guidance'), +(441, '20612', 'Aspiration& Injection Ganglion Cyst Any Location'), +(442, '20615', 'Aspiration & Injection for Treatment of Bone Cyst'), +(443, '20650', 'Insertion Wire/Pin w/Appl Skeletal Traction Spx'), +(444, '20660', 'Application of cranial tongs, caliper, or stereotactic frame, including removal (separate procedure)'), +(445, '20661', 'Application of halo, including removal; cranial'), +(446, '20662', 'Application of halo, including removal; pelvic'), +(447, '20663', 'Application of halo, including removal; femoral'), +(448, '20664', 'Application of halo, including removal, cranial, 6 or more pins placed, for thin skull osteology (eg, pediatric patients, hydrocephalus, osteogenesis imperfecta)'), +(449, '20665', 'Removal of Tongs or Halo Applied by Another Individual'), +(450, '20670', 'Removal of Implant; Superficial (eg, buried wire, pin or rod)'), +(451, '20680', 'Removal Hardware'), +(452, '20690', 'Application of a uniplane (pins or wires in 1 plane), unilateral, external fixation system'), +(453, '20692', 'Application of a multiplane (pins or wires in more than 1 plane), unilateral, external fixation system (eg, Ilizarov, Monticelli type)'), +(454, '20693', 'Adjustment or revision of external fixation system requiring anesthesia (eg, new pin[s] or wire[s] and/or new ring[s] or bar[s])'), +(455, '20694', 'Removal, Under Anesthesia, of External Fixation System'), +(456, '20696', 'Application of multiplane (pins or wires in more than 1 plane), unilateral, external fixation with stereotactic computer-assisted adjustment (eg, spatial frame), including imaging; initial and subsequent alignment(s), assessment(s), and computation(s) of adjustment schedule(s)'), +(457, '20697', 'Application of multiplane (pins or wires in more than 1 plane), unilateral, external fixation with stereotactic computer-assisted adjustment (eg, spatial frame), including imaging; exchange (ie, removal and replacement) of strut, each'), +(458, '20802', 'Replantation, arm (includes surgical neck of humerus through elbow joint), complete amputation'), +(459, '20805', 'Replantation, forearm (includes radius and ulna to radial carpal joint), complete amputation'), +(460, '20808', 'Replantation, hand (includes hand through metacarpophalangeal joints), complete amputation'), +(461, '20816', 'Replantation, digit, excluding thumb (includes metacarpophalangeal joint to insertion of flexor sublimis tendon), complete amputation'), +(462, '20822', 'Replantation, digit, excluding thumb (includes distal tip to sublimis tendon insertion), complete amputation'), +(463, '20824', 'Replantation, thumb (includes carpometacarpal joint to MP joint), complete amputation'), +(464, '20827', 'Replantation, thumb (includes distal tip to MP joint), complete amputation'), +(465, '20838', 'Replantation, foot, complete amputation'), +(466, '20900', 'Bone graft, any donor area; minor or small (eg, dowel or button)'), +(467, '20902', 'Bone graft, any donor area; major or large'), +(468, '20910', 'Cartilage graft; costochondral'), +(469, '20912', 'Cartilage graft; nasal septum'), +(470, '20920', 'Fascia lata graft; by stripper'), +(471, '20922', 'Fascia lata graft; by incision and area exposure, complex or sheet'), +(472, '20924', 'Tendon graft, from a distance (eg, palmaris, toe extensor, plantaris)'), +(473, '20926', 'Tissue grafts, other (eg, paratenon, fat, dermis)'), +(474, '20930', 'Allograft, morselized, or placement of osteopromotive material, for spine surgery only (List separately in addition to code for primary procedure)'), +(475, '20931', 'Allograft, structural, for spine surgery only (List separately in addition to code for primary procedure)'), +(476, '20936', 'Autograft for spine surgery only (includes harvesting the graft); local (eg, ribs, spinous process, or laminar fragments) obtained from same incision (List separately in addition to code for primary procedure)'), +(477, '20937', 'Autograft for spine surgery only (includes harvesting the graft); morselized (through separate skin or fascial incision) (List separately in addition to code for primary procedure)'), +(478, '20938', 'Autograft for spine surgery only (includes harvesting the graft); structural, bicortical or tricortical (through separate skin or fascial incision) (List separately in addition to code for primary procedure)'), +(479, '20950', 'Monitoring of interstitial fluid pressure (includes insertion of device, eg, wick catheter technique, needle manometer technique) in detection of muscle compartment syndrome'), +(480, '20955', 'Bone graft with microvascular anastomosis; fibula'), +(481, '20956', 'Bone graft with microvascular anastomosis; iliac crest'), +(482, '20957', 'Bone graft with microvascular anastomosis; metatarsal'), +(483, '20962', 'Bone graft with microvascular anastomosis; other than fibula, iliac crest, or metatarsal'), +(484, '20969', 'Free osteocutaneous flap with microvascular anastomosis; other than iliac crest, metatarsal, or great toe'), +(485, '20970', 'Free osteocutaneous flap with microvascular anastomosis; iliac crest'), +(486, '20972', 'Free osteocutaneous flap with microvascular anastomosis; metatarsal'), +(487, '20973', 'Free osteocutaneous flap with microvascular anastomosis; great toe with web space'), +(488, '20974', 'Electrical Stimulation to Aid Bone Healing; Noninvasive (nonoperative)'), +(489, '20975', 'Electrical Stimulation to Aid Bone Healing; Invasive (operative)'), +(490, '20979', 'Low Intensity Ultrasound Stimulation to Aid Bone Healing, Noninvasive (nonoperative)'), +(491, '20982', 'Ablation Therapy for Reduction or Eradication of 1 or More Bone Tumors (eg, metastasis) Including Adjacent Soft Tissue When Involved by Tumor Extension, Percutaneous, Including Imaging Guidance When Performed; Radiofrequency'), +(492, '20983', 'Ablation therapy for reduction or eradication of 1 or more bone tumors (eg, metastasis) including adjacent soft tissue when involved by tumor extension, percutaneous, including imaging guidance when performed; cryoablation'), +(493, '20985', 'Computer-assisted surgical navigational procedure for musculoskeletal procedures, image-less (List separately in addition to code for primary procedure)'), +(494, '20999', 'Unlisted Procedure, Musculoskeletal System, General'), +(495, '21010', 'Arthrotomy, Temporomandibular Joint'), +(496, '21011', 'Excision, Tumor, Soft Tissue of Face or Scalp, Subcutaneous; Less Than 2 cm'), +(497, '21012', 'Excision, Tumor, Soft Tissue of Face or Scalp, Subcutaneous; 2 cm or Greater'), +(498, '21013', 'Excision, Tumor, Soft Tissue of Face & Scalp, Subfascial (eg, subgaleal, intramuscular); Less Than 2 cm'), +(499, '21014', 'Excision, Tumor, Soft Tissue of Face & Scalp, Subfascial (eg, Subgaleal, Intramuscular); 2 cm or Greater'), +(500, '21015', 'Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Face or Scalp; Less Than 2 cm'), +(501, '21016', 'Radical resection of tumor (eg, sarcoma), soft tissue of face or scalp; 2 cm or greater'), +(502, '21025', 'Excision of bone (eg, for osteomyelitis or bone abscess); mandible'), +(503, '21026', 'Excision of bone (eg, for osteomyelitis or bone abscess); facial bone(s)'), +(504, '21029', 'Removal by contouring of benign tumor of facial bone (eg, fibrous dysplasia)'), +(505, '21030', 'Excision of Benign Tumor or Cyst of Maxilla or Zygoma by Enucleation & Curettage'), +(506, '21031', 'Excision of Torus Mandibularis'), +(507, '21032', 'Excision of Maxillary Torus Palatinus'), +(508, '21034', 'Excision of Malignant Tumor of Maxilla or Zygoma'), +(509, '21040', 'Excision of Benign Tumor or Cyst of Mandible, by Enucleation and/or Curettage'), +(510, '21044', 'Excision of Malignant Tumor of Mandible'), +(511, '21045', 'Excision of Malignant Tumor of Mandible; Radical Resection'), +(512, '21046', 'Excision of Benign Tumor or Cyst of Mandible; Requiring Intra-Oral Osteotomy (eg, locally aggressive or destructive lesion[s])'), +(513, '21047', 'Excision of Benign Tumor or Cyst of Mandible; Requiring Extra-Oral Osteotomy and Partial Mandibulectomy (eg, locally aggressive or destructive lesion[s])'), +(514, '21048', 'Excision of Benign Tumor or Cyst of Maxilla; Requiring Intra-Oral Osteotomy (eg, locally aggressive or destructive lesion[s])'), +(515, '21049', 'Excision of Benign Tumor or Cyst of Maxilla; Requiring Extra-Oral Osteotomy & Partial Maxillectomy (eg, locally aggressive or destructive lesion[s])'), +(516, '21050', 'Condylectomy, Temporomandibular Joint (separate procedure)'), +(517, '21060', 'Meniscectomy, Partial or Complete, Temporomandibular Joint (separate procedure)'), +(518, '21070', 'Coronoidectomy (separate procedure)'), +(519, '21073', 'Manipulation of Temporomandibular Joint(s) (TMJ), Therapeutic, Requiring an Anesthesia Service (ie, general or monitored anesthesia care)'), +(520, '21076', 'Impression & Custom Preparation; Surgical Obturator Prosthesis'), +(521, '21077', 'Impression & Custom Preparation; Orbital Prosthesis'), +(522, '21079', 'Impression & Custom Preparation; Interim Obturator Prosthesis'), +(523, '21080', 'Impression & Custom Preparation; Definitive Obturator Prosthesis'), +(524, '21081', 'Impression & Custom Preparation; Mandibular Resection Prosthesis'), +(525, '21082', 'Impression & Custom Preparation; Palatal Augmentation Prosthesis'), +(526, '21083', 'Impression & Custom Preparation; Palatal Lift Prosthesis'), +(527, '21084', 'Impression & Custom Preparation; Speech Aid Prosthesis'), +(528, '21085', 'Impression & Custom Preparation; Oral Surgical Splint'), +(529, '21086', 'Impression & Custom Preparation; Auricular Prosthesis'), +(530, '21087', 'Impression & Custom Preparation; Nasal Prosthesis'), +(531, '21088', 'Impression & Custom Preparation; Facial Prosthesis'), +(532, '21089', 'Unlisted Maxillofacial Prosthetic Procedure'), +(533, '21100', 'Application of Halo Type Appliance for Maxillofacial Fixation, Includes Removal (separate procedure)'), +(534, '21110', 'Application of Interdental Fixation Device for Conditions Other Than Fracture or Dislocation, Includes Removal'), +(535, '21116', 'Injection Procedure for Temporomandibular Joint Arthrography'), +(536, '21120', 'Genioplasty; augmentation (autograft, allograft, prosthetic material)'), +(537, '21121', 'Genioplasty; sliding osteotomy, single piece'), +(538, '21122', 'Genioplasty; sliding osteotomies, 2 or more osteotomies (eg, wedge excision or bone wedge reversal for asymmetrical chin)'), +(539, '21123', 'Genioplasty; sliding, augmentation with interpositional bone grafts (includes obtaining autografts)'), +(540, '21125', 'Augmentation, mandibular body or angle; prosthetic material'), +(541, '21127', 'Augmentation, mandibular body or angle; with bone graft, onlay or interpositional (includes obtaining autograft)'), +(542, '21137', 'Reduction forehead; contouring only'), +(543, '21138', 'Reduction forehead; contouring and application of prosthetic material or bone graft (includes obtaining autograft)'), +(544, '21139', 'Reduction forehead; contouring and setback of anterior frontal sinus wall'), +(545, '21141', 'Reconstruction midface, LeFort I; single piece, segment movement in any direction (eg, for Long Face Syndrome), without bone graft'), +(546, '21142', 'Reconstruction midface, LeFort I; 2 pieces, segment movement in any direction, without bone graft'), +(547, '21143', 'Reconstruction midface, LeFort I; 3 or more pieces, segment movement in any direction, without bone graft'), +(548, '21145', 'Reconstruction midface, LeFort I; single piece, segment movement in any direction, requiring bone grafts (includes obtaining autografts)'), +(549, '21146', 'Reconstruction midface, LeFort I; 2 pieces, segment movement in any direction, requiring bone grafts (includes obtaining autografts) (eg, ungrafted unilateral alveolar cleft)'), +(550, '21147', 'Reconstruction midface, LeFort I; 3 or more pieces, segment movement in any direction, requiring bone grafts (includes obtaining autografts) (eg, ungrafted bilateral alveolar cleft or multiple osteotomies)'), +(551, '21150', 'Reconstruction midface, LeFort II; anterior intrusion (eg, Treacher-Collins Syndrome)'), +(552, '21151', 'Reconstruction midface, LeFort II; any direction, requiring bone grafts (includes obtaining autografts)'), +(553, '21154', 'Reconstruction midface, LeFort III (extracranial), any type, requiring bone grafts (includes obtaining autografts); without LeFort I'), +(554, '21155', 'Reconstruction midface, LeFort III (extracranial), any type, requiring bone grafts (includes obtaining autografts); with LeFort I'), +(555, '21159', 'Reconstruction midface, LeFort III (extra and intracranial) with forehead advancement (eg, mono bloc), requiring bone grafts (includes obtaining autografts); without LeFort I'), +(556, '21160', 'Reconstruction midface, LeFort III (extra and intracranial) with forehead advancement (eg, mono bloc), requiring bone grafts (includes obtaining autografts); with LeFort I'), +(557, '21172', 'Reconstruction superior-lateral orbital rim and lower forehead, advancement or alteration, with or without grafts (includes obtaining autografts)'), +(558, '21175', 'Reconstruction, bifrontal, superior-lateral orbital rims and lower forehead, advancement or alteration (eg, plagiocephaly, trigonocephaly, brachycephaly), with or without grafts (includes obtaining autografts)'), +(559, '21179', 'Reconstruction, entire or majority of forehead and/or supraorbital rims; with grafts (allograft or prosthetic material)'), +(560, '21180', 'Reconstruction, entire or majority of forehead and/or supraorbital rims; with autograft (includes obtaining grafts)'), +(561, '21181', 'Reconstruction by contouring of benign tumor of cranial bones (eg, fibrous dysplasia), extracranial'), +(562, '21182', 'Reconstruction of orbital walls, rims, forehead, nasoethmoid complex following intra- and extracranial excision of benign tumor of cranial bone (eg, fibrous dysplasia), with multiple autografts (includes obtaining grafts); total area of bone grafting less than 40 sq cm'), +(563, '21183', 'Reconstruction of orbital walls, rims, forehead, nasoethmoid complex following intra- and extracranial excision of benign tumor of cranial bone (eg, fibrous dysplasia), with multiple autografts (includes obtaining grafts); total area of bone grafting greater than 40 sq cm but less than 80 sq cm'), +(564, '21184', 'Reconstruction of orbital walls, rims, forehead, nasoethmoid complex following intra- and extracranial excision of benign tumor of cranial bone (eg, fibrous dysplasia), with multiple autografts (includes obtaining grafts); total area of bone grafting greater than 80 sq cm'), +(565, '21188', 'Reconstruction midface, osteotomies (other than LeFort type) and bone grafts (includes obtaining autografts)'), +(566, '21193', 'Reconstruction of mandibular rami, horizontal, vertical, C, or L osteotomy; without bone graft'), +(567, '21194', 'Reconstruction of mandibular rami, horizontal, vertical, C, or L osteotomy; with bone graft (includes obtaining graft)'), +(568, '21195', 'Reconstruction of mandibular rami and/or body, sagittal split; without internal rigid fixation'), +(569, '21196', 'Reconstruction of mandibular rami and/or body, sagittal split; with internal rigid fixation'), +(570, '21198', 'Osteotomy, Mandible, Segmental'), +(571, '21199', 'Osteotomy, Mandible, Segmental; w/Genioglossus Advancement'), +(572, '21206', 'Osteotomy, Maxilla, Segmental (eg, Wassmund or Schuchard)'), +(573, '21208', 'Osteoplasty, Facial Bones; Augmentation (autograft, allograft, or prosthetic implant)'), +(574, '21209', 'Osteoplasty, Facial Bones; Reduction'), +(575, '21210', 'Graft, bone; nasal, maxillary or malar areas (includes obtaining graft)'), +(576, '21215', 'Graft, bone; mandible (includes obtaining graft)'), +(577, '21230', 'Graft; rib cartilage, autogenous, to face, chin, nose or ear (includes obtaining graft)'), +(578, '21235', 'Graft; ear cartilage, autogenous, to nose or ear (includes obtaining graft)'), +(579, '21240', 'Arthroplasty, temporomandibular joint, with or without autograft (includes obtaining graft)'), +(580, '21242', 'Arthroplasty, temporomandibular joint, with allograft'), +(581, '21243', 'Arthroplasty, temporomandibular joint, with prosthetic joint replacement'), +(582, '21244', 'Reconstruction of mandible, extraoral, with transosteal bone plate (eg, mandibular staple bone plate)'), +(583, '21245', 'Reconstruction of mandible or maxilla, subperiosteal implant; partial'), +(584, '21246', 'Reconstruction of mandible or maxilla, subperiosteal implant; complete'), +(585, '21247', 'Reconstruction of mandibular condyle with bone and cartilage autografts (includes obtaining grafts) (eg, for hemifacial microsomia)'), +(586, '21248', 'Reconstruction of mandible or maxilla, endosteal implant (eg, blade, cylinder); partial'), +(587, '21249', 'Reconstruction of mandible or maxilla, endosteal implant (eg, blade, cylinder); complete'), +(588, '21255', 'Reconstruction of zygomatic arch and glenoid fossa with bone and cartilage (includes obtaining autografts)'), +(589, '21256', 'Reconstruction of orbit with osteotomies (extracranial) and with bone grafts (includes obtaining autografts) (eg, micro-ophthalmia)'), +(590, '21260', 'Periorbital osteotomies for orbital hypertelorism, with bone grafts; extracranial approach'), +(591, '21261', 'Periorbital osteotomies for orbital hypertelorism, with bone grafts; combined intra- and extracranial approach'), +(592, '21263', 'Periorbital osteotomies for orbital hypertelorism, with bone grafts; with forehead advancement'), +(593, '21267', 'Orbital repositioning, periorbital osteotomies, unilateral, with bone grafts; extracranial approach'), +(594, '21268', 'Orbital repositioning, periorbital osteotomies, unilateral, with bone grafts; combined intra- and extracranial approach'), +(595, '21270', 'Malar augmentation, prosthetic material'), +(596, '21275', 'Secondary revision of orbitocraniofacial reconstruction'), +(597, '21280', 'Medial canthopexy (separate procedure)'), +(598, '21282', 'Lateral canthopexy'), +(599, '21295', 'Reduction of masseter muscle and bone (eg, for treatment of benign masseteric hypertrophy); extraoral approach'), +(600, '21296', 'Reduction of masseter muscle and bone (eg, for treatment of benign masseteric hypertrophy); intraoral approach'), +(601, '21299', 'Unlisted craniofacial and maxillofacial procedure'), +(602, '21310', 'Closed Treatment of Nasal Bone Fracture w/Out Manipulation'), +(603, '21315', 'Closed Treatment of Nasal Bone Fracture; w/Out Stabilization'), +(604, '21320', 'Closed Treatment of Nasal Bone Fracture; w/Stabilization'), +(605, '21325', 'Open Treatment of Nasal Fracture; Uncomplicated'), +(606, '21330', 'Open treatment of nasal fracture; complicated, with internal and/or external skeletal fixation'), +(607, '21335', 'Open treatment of nasal fracture; with concomitant open treatment of fractured septum'), +(608, '21336', 'Open treatment of nasal septal fracture, with or without stabilization'), +(609, '21337', 'Closed treatment of nasal septal fracture, with or without stabilization'), +(610, '21338', 'Open treatment of nasoethmoid fracture; without external fixation'), +(611, '21339', 'Open treatment of nasoethmoid fracture; with external fixation'), +(612, '21340', 'Percutaneous treatment of nasoethmoid complex fracture, with splint, wire or headcap fixation, including repair of canthal ligaments and/or the nasolacrimal apparatus'), +(613, '21343', 'Open treatment of depressed frontal sinus fracture'), +(614, '21344', 'Open treatment of complicated (eg, comminuted or involving posterior wall) frontal sinus fracture, via coronal or multiple approaches'), +(615, '21345', 'Closed Treatment of Nasomaxillary Complex Fracture (LeFort II type), w/Interdental Wire Fixation or Fixation of Denture or Splint'), +(616, '21346', 'Open Treatment of Nasomaxillary Complex Fracture (LeFort II type); w/Wiring and/or Local Fixation'), +(617, '21347', 'Open treatment of nasomaxillary complex fracture (LeFort II type); requiring multiple open approaches'), +(618, '21348', 'Open treatment of nasomaxillary complex fracture (LeFort II type); with bone grafting (includes obtaining graft)'), +(619, '21355', 'Percutaneous Treatment of Fracture of Malar Area, Including Zygomatic Arch & Malar Tripod, w/Manipulation'), +(620, '21356', 'Open treatment of depressed zygomatic arch fracture (eg, Gillies approach)'), +(621, '21360', 'Open treatment of depressed malar fracture, including zygomatic arch and malar tripod'), +(622, '21365', 'Open treatment of complicated (eg, comminuted or involving cranial nerve foramina) fracture(s) of malar area, including zygomatic arch and malar tripod; with internal fixation and multiple surgical approaches'), +(623, '21366', 'Open treatment of complicated (eg, comminuted or involving cranial nerve foramina) fracture(s) of malar area, including zygomatic arch and malar tripod; with bone grafting (includes obtaining graft)'), +(624, '21385', 'Open treatment of orbital floor blowout fracture; transantral approach (Caldwell-Luc type operation)'), +(625, '21386', 'Open treatment of orbital floor blowout fracture; periorbital approach'), +(626, '21387', 'Open treatment of orbital floor blowout fracture; combined approach'), +(627, '21390', 'Open treatment of orbital floor blowout fracture; periorbital approach, with alloplastic or other implant'), +(628, '21395', 'Open treatment of orbital floor blowout fracture; periorbital approach with bone graft (includes obtaining graft)'), +(629, '21400', 'Closed Treatment of Fracture of Orbit, Except Blowout; w/Out Manipulation'), +(630, '21401', 'Closed Treatment of Fracture of Orbit, Except Blowout; w/Manipulation'), +(631, '21406', 'Open treatment of fracture of orbit, except blowout; without implant'), +(632, '21407', 'Open treatment of fracture of orbit, except blowout; with implant'), +(633, '21408', 'Open treatment of fracture of orbit, except blowout; with bone grafting (includes obtaining graft)'), +(634, '21421', 'Closed Treatment of Palatal or Maxillary Fracture (LeFort I type), w/Interdental Wire Fixation or Fixation of Denture or Splint'), +(635, '21422', 'Open Treatment of Palatal or Maxillary Fracture (LeFort I type)'), +(636, '21423', 'Open Treatment of Palatal or Maxillary Fracture (LeFort I type); Ccomplicated (comminuted or involving cranial nerve foramina), Multiple Approaches'), +(637, '21431', 'Closed Treatment of Craniofacial Separation (LeFort III type) Using Interdental Wire Fixation of Denture or Splint'), +(638, '21432', 'Open Treatment of Craniofacial Separation (LeFort III type); w/Wiring and/or Internal Fixation'), +(639, '21433', 'Open treatment of craniofacial separation (LeFort III type); complicated (eg, comminuted or involving cranial nerve foramina), multiple surgical approaches'), +(640, '21435', 'Open treatment of craniofacial separation (LeFort III type); complicated, utilizing internal and/or external fixation techniques (eg, head cap, halo device, and/or intermaxillary fixation)'), +(641, '21436', 'Open treatment of craniofacial separation (LeFort III type); complicated, multiple surgical approaches, internal fixation, with bone grafting (includes obtaining graft)'), +(642, '21440', 'Closed Treatment of Mandibular or Maxillary Alveolar Ridge Fracture'), +(643, '21445', 'Open Treatment of Mandibular or Maxillary Alveolar Ridge Fracture (separate procedure)'), +(644, '21450', 'Closed Treatment of Mandibular Fracture; w/Out Manipulation'), +(645, '21451', 'Closed Treatment of Mandibular Fracture; w/Manipulation'), +(646, '21452', 'Percutaneous Treatment of Mandibular Fracture, w/External Fixation'), +(647, '21453', 'Closed Treatment of Mandibular Fracture w/Interdental Fixation'), +(648, '21454', 'Open treatment of mandibular fracture with external Fixation'), +(649, '21461', 'Open treatment of mandibular fracture; without interdental fixation'), +(650, '21462', 'Open treatment of mandibular fracture; with interdental fixation'), +(651, '21465', 'Open treatment of mandibular condylar fracture'), +(652, '21470', 'Open treatment of complicated mandibular fracture by multiple surgical approaches including internal fixation, interdental fixation, and/or wiring of dentures or splints'), +(653, '21480', 'Closed Treatment of Temporomandibular Dislocation; Initial or Subsequent'), +(654, '21485', 'Closed Treatment of Temporomandibular Dislocation; Complicated (eg, recurrent requiring intermaxillary fixation or splinting), Initial or Subsequent'), +(655, '21490', 'Open Treatment of Temporomandibular Dislocation'), +(656, '21495', 'Open Treatment of Hyoid Fracture'), +(657, '21497', 'Interdental Wiring, for Condition Other Than Fracture'), +(658, '21499', 'Unlisted musculoskeletal procedure, head'), +(659, '21501', 'Incision & Drainage, Deep Abscess or Hematoma, Soft Tissues of Neck or Thorax'), +(660, '21502', 'Incision & Drainage, Deep Abscess or Hematoma, Soft Tissues of Neck or Thorax; w/Partial Rib Ostectomy'), +(661, '21510', 'Incision, Deep, w/Opening of Bone Cortex (eg, for osteomyelitis or bone abscess), Thorax'), +(662, '21550', 'Biopsy, Soft Tissue of Neck or Thorax'), +(663, '21552', 'Excision, Tumor, Soft Tissue of Neck or Anterior Thorax, Subcutaneous; 3 cm or Greater'), +(664, '21554', 'Excision, Tumor, Soft Tissue of Neck or Anterior Thorax, Subfascial (eg, intramuscular); 5 cm or Greater'), +(665, '21555', 'Excision, Tumor, Soft Tissue of Neck or Interior Thorax, Subcutaneous; Less Than 3 cm'), +(666, '21556', 'Excision, Tumor, Soft Tissue of Neck or Anterior Thorax, Subfascial (eg, intramuscular); Less Than 5 cm'), +(667, '21557', 'Radical resection of tumor (eg, sarcoma), soft tissue of neck or anterior thorax; less than 5 cm'), +(668, '21558', 'Radical resection of tumor (eg, sarcoma), soft tissue of neck or anterior thorax; 5 cm or greater'), +(669, '21600', 'Excision of rib, partial'), +(670, '21610', 'Costotransversectomy (separate procedure)'), +(671, '21615', 'Excision first and/or cervical rib;'), +(672, '21616', 'Excision first and/or cervical rib; with sympathectomy'), +(673, '21620', 'Ostectomy of sternum, partial'), +(674, '21627', 'Sternal Debridement'), +(675, '21630', 'Radical resection of sternum;'), +(676, '21632', 'Radical resection of sternum; with mediastinal lymphadenectomy'), +(677, '21685', 'Hyoid myotomy and suspension'), +(678, '21700', 'Division of scalenus anticus; without resection of cervical rib'), +(679, '21705', 'Division of scalenus anticus; with resection of cervical rib'), +(680, '21720', 'Division of sternocleidomastoid for torticollis, open operation; without cast application'), +(681, '21725', 'Division of sternocleidomastoid for torticollis, open operation; with cast application'), +(682, '21740', 'Reconstructive repair of pectus excavatum or carinatum; open'), +(683, '21742', 'Reconstructive Repair of Pectus Excavatum or Carinatum; Minimally Invasive Approach (Nuss procedure), w/Out Thoracoscopy'), +(684, '21743', 'Reconstructive Repair of Pectus Excavatum or Carinatum; Minimally Invasive Approach (Nuss procedure), w/Thoracoscopy'), +(685, '21750', 'Closure of Median Sternotomy Separation w/ or w/o Debridement (separate procedure)'), +(686, '21805', 'Open treatment of rib fracture without fixation, each'), +(687, '21811', 'Open treatment of rib fracture(s) with internal fixation, includes thoracoscopic visualization when performed, unilateral; 1-3 ribs'), +(688, '21812', 'Open treatment of rib fracture(s) with internal fixation, includes thoracoscopic visualization when performed, unilateral; 4-6 ribs'), +(689, '21813', 'Open treatment of rib fracture(s) with internal fixation, includes thoracoscopic visualization when performed, unilateral; 7 or more ribs'), +(690, '21820', 'Closed Treatment of Sternum Fracture'), +(691, '21825', 'Open treatment of sternum fracture with or without skeletal fixation'), +(692, '21899', 'Unlisted procedure, neck or thorax'), +(693, '21920', 'Biopsy, soft tissue of back or flank; superficial'), +(694, '21925', 'Biopsy, soft tissue of back or flank; deep'), +(695, '21930', 'Excision, Tumor, Soft Tissue of Back or Flank, Subcutaneous; Less Than 3 cm'), +(696, '21931', 'Excision, Tumor, Soft Tissue of Back or Flank, Subcutaneous; 3 cm or Greater'), +(697, '21932', 'Excision, Tumor, Soft Tissue of Back or Flank, Subfascial (eg, intramuscular); Less Than 5 cm'), +(698, '21933', 'Excision, Tumor, Soft Tissue of Back or Flank, Subfascial (eg, intramuscular); 5 cm or Greater'), +(699, '21935', 'Radical resection of tumor (eg, sarcoma), soft tissue of back or flank; less than 5 cm'), +(700, '21936', 'Radical resection of tumor (eg, sarcoma), soft tissue of back or flank; 5 cm or greater'), +(701, '22010', 'Incision and drainage, open, of deep abscess (subfascial), posterior spine; cervical, thoracic, or cervicothoracic'), +(702, '22015', 'Incision and drainage, open, of deep abscess (subfascial), posterior spine; lumbar, sacral, or lumbosacral'), +(703, '22100', 'Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; cervical'), +(704, '22101', 'Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; thoracic'), +(705, '22102', 'Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; lumbar'), +(706, '22103', 'Partial excision of posterior vertebral component (eg, spinous process, lamina or facet) for intrinsic bony lesion, single vertebral segment; each additional segment (List separately in addition to code for primary procedure)'), +(707, '22110', 'Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; cervical'), +(708, '22112', 'Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; thoracic'), +(709, '22114', 'Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; lumbar'), +(710, '22116', 'Partial excision of vertebral body, for intrinsic bony lesion, without decompression of spinal cord or nerve root(s), single vertebral segment; each additional vertebral segment (List separately in addition to code for primary procedure)'), +(711, '22206', 'Osteotomy of spine, posterior or posterolateral approach, 3 columns, 1 vertebral segment (eg, pedicle/vertebral body subtraction); thoracic'), +(712, '22207', 'Osteotomy of spine, posterior or posterolateral approach, 3 columns, 1 vertebral segment (eg, pedicle/vertebral body subtraction); lumbar'), +(713, '22208', 'Osteotomy of spine, posterior or posterolateral approach, 3 columns, 1 vertebral segment (eg, pedicle/vertebral body subtraction); each additional vertebral segment (List separately in addition to code for primary procedure)'), +(714, '22210', 'Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; cervical'), +(715, '22212', 'Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; thoracic'), +(716, '22214', 'Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; lumbar'), +(717, '22216', 'Osteotomy of spine, posterior or posterolateral approach, 1 vertebral segment; each additional vertebral segment (List separately in addition to primary procedure)'), +(718, '22220', 'Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; cervical'), +(719, '22222', 'Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; thoracic'), +(720, '22224', 'Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; lumbar'), +(721, '22226', 'Osteotomy of spine, including discectomy, anterior approach, single vertebral segment; each additional vertebral segment (List separately in addition to code for primary procedure)'), +(722, '22305', 'Closed Treatment of Vertebral Process Fracture(s)'), +(723, '22310', 'Closed Treatment of Vertebral Body Fracture(s), w/o Manipulation, Requiring & Including Casting or Bracing'), +(724, '22315', 'Closed Treatment of Vertebral Fracture(s) and/or Dislocation(s) Requiring Casting or Bracing, w/ & Including Casting and/or Bracing by Manipulation or Traction'), +(725, '22318', 'Open treatment and/or reduction of odontoid fracture(s) and or dislocation(s) (including os odontoideum), anterior approach, including placement of internal fixation; without grafting'), +(726, '22319', 'Open treatment and/or reduction of odontoid fracture(s) and or dislocation(s) (including os odontoideum), anterior approach, including placement of internal fixation; with grafting'), +(727, '22325', 'Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; lumbar'), +(728, '22326', 'Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; cervical'), +(729, '22327', 'Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; thoracic'), +(730, '22328', 'Open treatment and/or reduction of vertebral fracture(s) and/or dislocation(s), posterior approach, 1 fractured vertebra or dislocated segment; each additional fractured vertebra or dislocated segment (List separately in addition to code for primary procedure)'), +(731, '22505', 'Manipulation of Spine Requiring Anesthesia, Any Region'), +(732, '22510', 'Percutaneous Vertebroplasty (bone biopsy included when performed), 1 Vertebral Body, Unilateral or Bilateral Injection, Inclusive of All Imaging Guidance; Cervicothoracic'), +(733, '22511', 'Percutaneous Vertebroplasty (bone biopsy included when performed), 1 Vertebral Body, Unilateral or Bilateral Injection, Inclusive of All Imaging Guidance; Lumbosacral'), +(734, '22512', 'Percutaneous Vertebroplasty (bone biopsy included when performed), 1 Vertebral Body, Unilateral or Bilateral Injection, Inclusive of All Imaging Guidance; Each Addtl Cervicothoracic or Lumbosacral Vertebral Body'), +(735, '22513', 'Percutaneous vertebral augmentation, including cavity creation (fracture reduction and bone biopsy included when performed) using mechanical device (eg, kyphoplasty), 1 vertebral body, unilateral or bilateral cannulation, inclusive of all imaging guidance; thoracic'), +(736, '22514', 'Percutaneous vertebral augmentation, including cavity creation (fracture reduction and bone biopsy included when performed) using mechanical device (eg, kyphoplasty), 1 vertebral body, unilateral or bilateral cannulation, inclusive of all imaging guidance; lumbar'), +(737, '22515', 'Percutaneous vertebral augmentation, including cavity creation (fracture reduction and bone biopsy included when performed) using mechanical device (eg, kyphoplasty), 1 vertebral body, unilateral or bilateral cannulation, inclusive of all imaging guidance; each additional thoracic or lumbar vertebral body (List separately in addition to code for primary procedure)'), +(738, '22526', 'Percutaneous Intradiscal Electrothermal Annuloplasty, Unilateral or Bilateral Including Fluoroscopic Guidance; Single Level'), +(739, '22527', 'Percutaneous Intradiscal Electrothermal Annuloplasty, Unilateral or Bilateral Including Fluoroscopic Guidance; 1 or More Addtl Levels'), +(740, '22532', 'Arthrodesis, Lateral Extracavitary Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Thoracic'), +(741, '22533', 'Arthrodesis, Lateral Extracavitary Technique, Iincluding Minimal Discectomy to Prepare Interspace (other than for decompression); Lumbar'), +(742, '22534', 'Arthrodesis, Lateral Extracavitary Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Thoracic or Lumbar, Each Addtl Vertebral Segment'), +(743, '22548', 'Arthrodesis, Anterior Transoral or Eextraoral Technique, Clivus-C1-C2 (atlas-axis), w/ or w/o Excision of Odontoid Process'), +(744, '22551', 'Arthrodesis, Anterior Interbody, Including Disc Space Preparation, Discectomy, Osteophytectomy & Decompression of Spinal Cord and/or Nerve Roots; Cervical Below C2'), +(745, '22552', 'Arthrodesis, Anterior Interbody, Including Disc Space Preparation, Discectomy, Osteophytectomy & Decompression of Spinal Cord and/or Nerve Roots; Cervical Below C2, Each Addtl Interspace'), +(746, '22554', 'Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Cervical Below C2'), +(747, '22556', 'Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Thoracic'), +(748, '22558', 'Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Lumbar'), +(749, '22585', 'Arthrodesis, Anterior Interbody Technique, Including Minimal Discectomy to Prepare Interspace (other than for decompression); Each Addtl Interspace'), +(750, '22586', 'Arthrodesis, Pre-Sacral Interbody Technique, Including Disc Space Preparation, Discectomy, w/Posterior Iinstrumentation, w/Image Guidance, Includes Bone Graft When Performed, L5-S1 Interspace'), +(751, '22590', 'Arthrodesis, Posterior Technique, Craniocervical (occiput-C2)'), +(752, '22595', 'Arthrodesis, Posterior Technique, Atlas-Axis (C1-C2)'), +(753, '22600', 'Arthrodesis, Posterior or Posterolateral Technique, Single Level; Cervical Below C2 Segment'), +(754, '22610', 'Arthrodesis, Posterior or Posterolateral Technique, Single Level; Thoracic (with lateral transverse technique, when performed)'), +(755, '22612', 'Arthrodesis, Posterior or Posterolateral Technique, Single Level; Lumbar (with lateral transverse technique, when performed)'), +(756, '22614', 'Arthrodesis, Posterior or Posterolateral Technique, Single Level; Each Addtl Vertebral Segment'), +(757, '22630', 'Arthrodesis, Posterior iInterbody Technique, Including Laminectomy and/or Discectomy to Pprepare Interspace (other than for decompression), Single Interspace; Lumbar'), +(758, '22632', 'Arthrodesis, Posterior Interbody Technique, Including Laminectomy and/or Discectomy to Prepare Interspace (other than for decompression), Single Interspace; Each Addtl Interspace'), +(759, '22633', 'Arthrodesis, Combined Posterior or Posterolateral Technique w/Posterior Interbody Technique Including Laminectomy and/or Discectomy Sufficient to Prepare Interspace (other than for decompression), Single Interspace & Segment; Lumbar'), +(760, '22634', 'Arthrodesis, Combined Posterior or Posterolateral Technique w/Posterior Interbody Technique Including Laminectomy and/or Discectomy Sufficient to Prepare Interspace (other than for decompression), Single Interspace & Segment; Each Addtl Interspace & Segment'), +(761, '22800', 'Arthrodesis, Posterior, for Spinal Deformity, w/ or w/Out Cast; up to 6 Vertebral Segments'), +(762, '22802', 'Arthrodesis, Posterior, for Spinal Deformity, w/ or w/o Cast; 7 to 12 Vertebral Segments'), +(763, '22804', 'Arthrodesis, Posterior, for Spinal Deformity, w/ or w/o Cast; 13 or More Vertebral Segments'), +(764, '22808', 'Arthrodesis, Anterior, for Spinal Deformity, w/ or w/o Cast; 2 to 3 Vertebral Segments'), +(765, '22810', 'Arthrodesis, Anterior, for Spinal Deformity, w/ or w/o Cast; 4 to 7 Vertebral Segments'), +(766, '22812', 'Arthrodesis, Anterior, for Spinal Deformity, w/ or w/o Cast; 8 or More Vertebral Segments'), +(767, '22818', 'Kyphectomy, circumferential exposure of spine and resection of vertebral segment(s) (including body and posterior elements); single or 2 segments'), +(768, '22819', 'Kyphectomy, circumferential exposure of spine and resection of vertebral segment(s) (including body and posterior elements); 3 or more segments'), +(769, '22830', 'Exploration of spinal fusion'), +(770, '22840', 'Posterior non-segmental instrumentation (eg, Harrington rod technique, pedicle fixation across 1 interspace, atlantoaxial transarticular screw fixation, sublaminar wiring at C1, facet screw fixation) (List separately in addition to code for primary procedure)'), +(771, '22841', 'Internal spinal fixation by wiring of spinous processes (List separately in addition to code for primary procedure)'), +(772, '22842', 'Posterior segmental instrumentation (eg, pedicle fixation, dual rods with multiple hooks and sublaminar wires); 3 to 6 vertebral segments (List separately in addition to code for primary procedure)'), +(773, '22843', 'Posterior segmental instrumentation (eg, pedicle fixation, dual rods with multiple hooks and sublaminar wires); 7 to 12 vertebral segments (List separately in addition to code for primary procedure)'), +(774, '22844', 'Posterior segmental instrumentation (eg, pedicle fixation, dual rods with multiple hooks and sublaminar wires); 13 or more vertebral segments (List separately in addition to code for primary procedure)'), +(775, '22845', 'Anterior instrumentation; 2 to 3 vertebral segments (List separately in addition to code for primary procedure)'), +(776, '22846', 'Anterior instrumentation; 4 to 7 vertebral segments (List separately in addition to code for primary procedure)'), +(777, '22847', 'Anterior instrumentation; 8 or more vertebral segments (List separately in addition to code for primary procedure)'), +(778, '22848', 'Pelvic fixation (attachment of caudal end of instrumentation to pelvic bony structures) other than sacrum (List separately in addition to code for primary procedure)'), +(779, '22849', 'Reinsertion of spinal fixation device'), +(780, '22850', 'Removal of posterior nonsegmental instrumentation (eg, Harrington rod)'), +(781, '22851', 'Application of intervertebral biomechanical device(s) (eg, synthetic cage(s), methylmethacrylate) to vertebral defect or interspace (List separately in addition to code for primary procedure)'), +(782, '22852', 'Removal of posterior segmental instrumentation'), +(783, '22855', 'Removal of anterior instrumentation'), +(784, '22856', 'Total disc arthroplasty (artificial disc), anterior approach, including discectomy with end plate preparation (includes osteophytectomy for nerve root or spinal cord decompression and microdissection); single interspace, cervical'), +(785, '22857', 'Total disc arthroplasty (artificial disc), anterior approach, including discectomy to prepare interspace (other than for decompression), single interspace, lumbar'), +(786, '22858', 'Total disc arthroplasty (artificial disc), anterior approach, including discectomy with end plate preparation (includes osteophytectomy for nerve root or spinal cord decompression and microdissection); second level, cervical (List separately in addition to code for primary procedure)'), +(787, '22861', 'Revision including replacement of total disc arthroplasty (artificial disc), anterior approach, single interspace; cervical'), +(788, '22862', 'Revision including replacement of total disc arthroplasty (artificial disc), anterior approach, single interspace; lumbar'), +(789, '22864', 'Removal of total disc arthroplasty (artificial disc), anterior approach, single interspace; cervical'), +(790, '22865', 'Removal of total disc arthroplasty (artificial disc), anterior approach, single interspace; lumbar'), +(791, '22899', 'Unlisted procedure, spine'), +(792, '22900', 'Excision, Tumor, Soft Tissue of Abdominal Wall, Subfascial (eg, intramuscular); Less Than 5 cm'), +(793, '22901', 'Excision, Tumor, Soft Tissue of Abdominal Wall, Subfascial (eg, intramuscular); 5 cm or Greater'), +(794, '22902', 'Excision, Tumor, Soft Tissue of Abdominal Wall, Subcutaneous; Less Than 3 cm'), +(795, '22903', 'Excision, Tumor, Soft Tissue of Abdominal Wall, Subcutaneous; 3 cm or Greater'), +(796, '22904', 'Radical resection of tumor (eg, sarcoma), soft tissue of abdominal wall; less than 5 cm'), +(797, '22905', 'Radical resection of tumor (eg, sarcoma), soft tissue of abdominal wall; 5 cm or greater'), +(798, '22999', 'Unlisted procedure, abdomen, musculoskeletal system'), +(799, '23000', 'Removal of Subdeltoid Calcareous Deposits, Open'), +(800, '23020', 'Capsular Contracture Release (eg, Sever type procedure)'), +(801, '23030', 'Incision & Drainage, Shoulder Area; Deep Abscess or Hematoma'), +(802, '23031', 'Incision & Drainage, Shoulder Area; Infected Bursa'), +(803, '23035', 'Incision, Bone Cortex (eg, osteomyelitis or bone abscess), Shoulder Area'), +(804, '23040', 'Arthrotomy, Glenohumeral Joint, Including Exploration, Drainage, or Removal of Foreign Body'), +(805, '23044', 'Arthrotomy, Acromioclavicular, Sternoclavicular Joint, Including Exploration, Drainage, or Removal of Foreign Body'), +(806, '23065', 'Biopsy, Soft Tissue of Shoulder Area; Superficial'), +(807, '23066', 'Biopsy, Soft Tissue of Shoulder Area; Deep'), +(808, '23071', 'Excision, Tumor, Soft Tissue of Shoulder Area, Subcutaneous; 3 cm or Greater'), +(809, '23073', 'Excision, Tumor, Soft Tissue of Shoulder Area, Subfascial (eg, intramuscular); 5 cm or Greater'), +(810, '23075', 'Excision, Tumor, Soft Tissue of Shoulder Area, Subcutaneous; Less Than 3 cm'), +(811, '23076', 'Excision, Tumor, Soft Tissue of Shoulder Area, Subfascial (eg, intramuscular); Less Than 5 cm'), +(812, '23077', 'Radical resection of tumor (eg, sarcoma), soft tissue of shoulder area; less than 5 cm'), +(813, '23078', 'Radical resection of tumor (eg, sarcoma), soft tissue of shoulder area; 5 cm or greater'), +(814, '23100', 'Arthrotomy, Glenohumeral Joint, Including Biopsy'), +(815, '23101', 'Arthrotomy, Acromioclavicular Joint or Sternoclavicular Joint, Including Biopsy and/or Excision of Torn Cartilage'), +(816, '23105', 'Arthrotomy; Glenohumeral Joint, w/ Synovectomy, w/ or w/Out Biopsy'), +(817, '23106', 'Arthrotomy; Sternoclavicular Joint, w/ Synovectomy, w/ or w/Out Biopsy'), +(818, '23107', 'Arthrotomy, Glenohumeral Joint, w/Joint Exploration, w/ or w/Out Rremoval of Loose or Foreign Body'), +(819, '23120', 'Claviculectomy; Partial'), +(820, '23125', 'Claviculectomy; Total'), +(821, '23130', 'Acromioplasty or Acromionectomy, Partial, w/ or w/Out Coracoacromial Ligament Release'), +(822, '23140', 'Excision or Curettage of Bone Cyst or Benign Tumor of Clavicle or Scapula'), +(823, '23145', 'Excision or Curettage of Bone Cyst or Benign Tumor of Clavicle or Scapula; w/Autograft (includes obtaining graft)'), +(824, '23146', 'Excision or Curettage of Bone Cyst or Benign Tumor of Clavicle or Scapula; w/Allograft'), +(825, '23150', 'Excision or Curettage of Bone Cyst or Benign Tumor of Proximal Humerus'), +(826, '23155', 'Excision or Curettage of Bone Cyst or Benign Tumor of Proximal Humerus; w/Autograft (includes obtaining graft)'), +(827, '23156', 'Excision or Curettage of Bone Cyst or Benign Tumor of Proximal Humerus; w/Allograft'), +(828, '23170', 'Sequestrectomy (eg, for osteomyelitis or bone abscess), Clavicle'), +(829, '23172', 'Sequestrectomy (eg, for osteomyelitis or bone abscess), Scapula'), +(830, '23174', 'Sequestrectomy (eg, for osteomyelitis or bone abscess), Humeral Head to Surgical Neck'), +(831, '23180', 'Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis), Clavicle'), +(832, '23182', 'Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis), Scapula'), +(833, '23184', 'Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis), Proximal Humerus'), +(834, '23190', 'Ostectomy of Scapula, Partial (eg, superior medial angle)'), +(835, '23195', 'Resection, Humeral Head'), +(836, '23200', 'Radical resection of tumor; clavicle'), +(837, '23210', 'Radical resection of tumor; scapula'), +(838, '23220', 'Radical resection of tumor, proximal humerus'), +(839, '23330', 'Removal of Foreign Body, Shoulder; Subcutaneous'), +(840, '23333', 'Removal of Foreign Body, Shoulder; Deep (subfascial or intramuscular)'), +(841, '23334', 'Removal of prosthesis, includes debridement and synovectomy when performed; humeral or glenoid component'), +(842, '23335', 'Removal of prosthesis, includes debridement and synovectomy when performed; humeral and glenoid components (eg, total shoulder)'), +(843, '23350', 'Shoulder Arthrogram'), +(844, '23395', 'Muscle transfer, any type, shoulder or upper arm; single'), +(845, '23397', 'Muscle transfer, any type, shoulder or upper arm; multiple'), +(846, '23400', 'Scapulopexy (eg, Sprengels deformity or for paralysis)'), +(847, '23405', 'Tenotomy, Shoulder Area; Single Tendon'), +(848, '23406', 'Tenotomy, Shoulder Area; Multiple Tendons Through Same Incision'), +(849, '23410', 'Repair of Ruptured Musculotendinous Cuff (eg, rotator cuff) Open; Acute'), +(850, '23412', 'Repair of Ruptured Musculotendinous Cuff (eg, rotator cuff) Open; Chronic'), +(851, '23415', 'Coracoacromial ligament release, with or without acromioplasty'), +(852, '23420', 'Reconstruction of complete shoulder (rotator) cuff avulsion, chronic (includes acromioplasty)'), +(853, '23430', 'Tenodesis of Long Tendon of Biceps'), +(854, '23440', 'Resection or Transplantation of Long Tendon of Biceps'), +(855, '23450', 'Capsulorrhaphy, anterior; Putti-Platt procedure or Magnuson type operation'), +(856, '23455', 'Capsulorrhaphy, anterior; with labral repair (eg, Bankart procedure)'), +(857, '23460', 'Capsulorrhaphy, anterior, any type; with bone block'), +(858, '23462', 'Capsulorrhaphy, anterior, any type; with coracoid process transfer'), +(859, '23465', 'Capsulorrhaphy, glenohumeral joint, posterior, with or without bone block'), +(860, '23466', 'Capsulorrhaphy, glenohumeral joint, any type multi-directional instability'), +(861, '23470', 'Arthroplasty, glenohumeral joint; hemiarthroplasty'), +(862, '23472', 'Arthroplasty, glenohumeral joint; total shoulder (glenoid and proximal humeral replacement (eg, total shoulder))'), +(863, '23473', 'Revision of total shoulder arthroplasty, including allograft when performed; humeral or glenoid component'), +(864, '23474', 'Revision of total shoulder arthroplasty, including allograft when performed; humeral and glenoid component'), +(865, '23480', 'Osteotomy, Clavicle, w/ or w/Out Internal Fixation'); +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(866, '23485', 'Osteotomy, clavicle, with or without internal fixation; with bone graft for nonunion or malunion (includes obtaining graft and/or necessary fixation)'), +(867, '23490', 'Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Clavicle'), +(868, '23491', 'Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Proximal Humerus'), +(869, '23500', 'Closed Treatment of Clavicular Fracture; w/Out Manipulation'), +(870, '23505', 'Closed Treatment of Clavicular Fracture; w/Manipulation'), +(871, '23515', 'Open treatment of clavicular fracture, includes internal fixation, when performed'), +(872, '23520', 'Closed Treatment of Sternoclavicular Dislocation; w/Out Manipulation'), +(873, '23525', 'Closed Treatment of Sternoclavicular Dislocation; w/Manipulation'), +(874, '23530', 'Open treatment of sternoclavicular dislocation, acute or chronic;'), +(875, '23532', 'Open treatment of sternoclavicular dislocation, acute or chronic; with fascial graft (includes obtaining graft)'), +(876, '23540', 'Closed Treatment of Acromioclavicular Dislocation; w/Out Manipulation'), +(877, '23545', 'Closed Treatment of Acromioclavicular Dislocation; w/Manipulation'), +(878, '23550', 'Open treatment of acromioclavicular dislocation, acute or chronic;'), +(879, '23552', 'Open treatment of acromioclavicular dislocation, acute or chronic; with fascial graft (includes obtaining graft)'), +(880, '23570', 'Closed Treatment of Scapular Fracture; w/Out Manipulation'), +(881, '23575', 'Closed Treatment of Scapular Fracture; w/Manipulation, w/ or w/Out Skeletal Traction (with or without shoulder joint involvement)'), +(882, '23585', 'Open Treatment of Scapular Fracture (body, glenoid or acromion) Includes Internal Fixation, when Performed'), +(883, '23600', 'Closed Treatment of Proximal Humeral (surgical or anatomical neck) Fracture; w/Out Manipulation'), +(884, '23605', 'Closed Treatment of Proximal Humeral (surgical or anatomical neck) Fracture; w/Manipulation, w/ or w/Out Skeletal Traction'), +(885, '23615', 'Open treatment of proximal humeral (surgical or anatomical neck) fracture, includes internal fixation, when performed, includes repair of tuberosity(s), when performed;'), +(886, '23616', 'Open treatment of proximal humeral (surgical or anatomical neck) fracture, includes internal fixation, when performed, includes repair of tuberosity(s), when performed; with proximal humeral prosthetic replacement'), +(887, '23620', 'Closed Treatment of Greater Humeral Tuberosity Fracture; w/Out Manipulation'), +(888, '23625', 'Closed Treatment of Greater Humeral Tuberosity Fracture; w/Manipulation'), +(889, '23630', 'Open treatment of greater humeral tuberosity fracture, includes internal fixation, when performed'), +(890, '23650', 'Closed Treatment of Shoulder Dislocation, w/Manipulation; w/Out Anesthesia'), +(891, '23655', 'Closed Treatment of Shoulder Dislocation, w/Manipulation; Requiring Anesthesia'), +(892, '23660', 'Open Treatment of Acute Shoulder Dislocation'), +(893, '23665', 'Closed Treatment of Shoulder Dislocation, w/Fracture of Greater Humeral Tuberosity, w/Manipulation'), +(894, '23670', 'Open treatment of shoulder dislocation, with fracture of greater humeral tuberosity, includes internal fixation, when performed'), +(895, '23675', 'Closed Treatment of Shoulder Dislocation, w/Surgical or Anatomical Neck Fracture, w/Manipulation'), +(896, '23680', 'Open treatment of shoulder dislocation, with surgical or anatomical neck fracture, includes internal fixation, when performed'), +(897, '23700', 'Manipulation Under Anesthesia, Shoulder Joint, Including Application of Fixation Apparatus (dislocation excluded)'), +(898, '23800', 'Arthrodesis, Glenohumeral Joint'), +(899, '23802', 'Arthrodesis, Glenohumeral Joint; w/Autogenous Graft'), +(900, '23900', 'Interthoracoscapular amputation (forequarter)'), +(901, '23920', 'Disarticulation of shoulder;'), +(902, '23921', 'Disarticulation of shoulder; secondary closure or scar revision'), +(903, '23929', 'Unlisted procedure, shoulder'), +(904, '23930', 'Incision & Drainage, Upper Arm or Elbow Area; Deep Abscess or Hematoma'), +(905, '23931', 'Incision & Drainage, Upper Arm or Elbow Area; Bursa'), +(906, '23935', 'Incision, Deep, w/Opening of Bone Cortex (eg, for osteomyelitis or bone abscess), Humerus or Elbow'), +(907, '24000', 'Arthrotomy, Elbow, Including Exploration, Drainage, or Removal of Foreign Body'), +(908, '24006', 'Arthrotomy of the Elbow, w/Capsular Excision for Capsular Release (separate procedure)'), +(909, '24065', 'Biopsy, Soft Tissue of Upper Arm or Elbow Area; Superficial'), +(910, '24066', 'Biopsy, Soft Tissue of Uupper Arm or Elbow Area; Deep (subfascial or intramuscular)'), +(911, '24071', 'Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subcutaneous; 3 cm or Greater'), +(912, '24073', 'Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subfascial (eg, intramuscular); 5 cm or Greater'), +(913, '24075', 'Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subcutaneous; Less Than 3 cm'), +(914, '24076', 'Excision, Tumor, Soft Tissue of Upper Arm or Elbow Area, Subfascial (eg, intramuscular); Less Than 5 cm'), +(915, '24077', 'Radical resection of tumor (eg, sarcoma), soft tissue of upper arm or elbow area; less than 5 cm'), +(916, '24079', 'Radical resection of tumor (eg, sarcoma), soft tissue of upper arm or elbow area; 5 cm or greater'), +(917, '24100', 'Arthrotomy, Elbow; w/Synovial Biopsy Only'), +(918, '24101', 'Arthrotomy, Elbow; w/Joint Exploration, w/ or w/Out Biopsy, w/ or w/Out Removal of Loose or Foreign Body'), +(919, '24102', 'Arthrotomy, Elbow; w/Synovectomy'), +(920, '24105', 'Excision, Olecranon Bursa'), +(921, '24110', 'Excision or Curettage of Bone Cyst or Benign Tumor, Humerus'), +(922, '24115', 'Excision or curettage of bone cyst or benign tumor, humerus; with autograft (includes obtaining graft)'), +(923, '24116', 'Excision or curettage of bone cyst or benign tumor, humerus; with allograft'), +(924, '24120', 'Excision or Curettage of Bone Cyst or Benign Tumor of Head or Neck of Radius or Olecranon Process'), +(925, '24125', 'Excision or curettage of bone cyst or benign tumor of head or neck of radius or olecranon process; with autograft (includes obtaining graft)'), +(926, '24126', 'Excision or curettage of bone cyst or benign tumor of head or neck of radius or olecranon process; with allograft'), +(927, '24130', 'Excision, radial head'), +(928, '24134', 'Sequestrectomy (eg, for osteomyelitis or bone abscess), shaft or distal humerus'), +(929, '24136', 'Sequestrectomy (eg, for osteomyelitis or bone abscess), radial head or neck'), +(930, '24138', 'Sequestrectomy (eg, for osteomyelitis or bone abscess), olecranon process'), +(931, '24140', 'Partial excision (craterization, saucerization, or diaphysectomy) bone (eg, osteomyelitis), humerus'), +(932, '24145', 'Partial excision (craterization, saucerization, or diaphysectomy) bone (eg, osteomyelitis), radial head or neck'), +(933, '24147', 'Partial excision (craterization, saucerization, or diaphysectomy) bone (eg, osteomyelitis), olecranon process'), +(934, '24149', 'Radical resection of capsule, soft tissue, and heterotopic bone, elbow, with contracture release (separate procedure)'), +(935, '24150', 'Radical resection of tumor, shaft or distal humerus'), +(936, '24152', 'Radical resection of tumor, radial head or neck'), +(937, '24155', 'Resection of elbow joint (arthrectomy)'), +(938, '24160', 'Removal of prosthesis, includes debridement and synovectomy when performed; humeral and ulnar components'), +(939, '24164', 'Removal of prosthesis, includes debridement and synovectomy when performed; radial head'), +(940, '24200', 'Removal of Foreign Body, Upper Arm or Elbow Area; Subcutaneous'), +(941, '24201', 'Removal of Foreign Body, Upper Arm or Elbow Area; Deep (subfascial or intramuscular)'), +(942, '24220', 'Injection Procedure for Elbow Arthrography'), +(943, '24300', 'Manipulation, Elbow, Under Anesthesia'), +(944, '24301', 'Muscle or tendon transfer, any type, upper arm or elbow, single (excluding 24320-24331)'), +(945, '24305', 'Tendon lengthening, upper arm or elbow, each tendon'), +(946, '24310', 'Tenotomy, open, elbow to shoulder, each tendon'), +(947, '24320', 'Tenoplasty, with muscle transfer, with or without free graft, elbow to shoulder, single (Seddon-Brookes type procedure)'), +(948, '24330', 'Flexor-plasty, elbow (eg, Steindler type advancement);'), +(949, '24331', 'Flexor-plasty, elbow (eg, Steindler type advancement); with extensor advancement'), +(950, '24332', 'Tenolysis, triceps'), +(951, '24340', 'Tenodesis of Biceps Tendon at Elbow'), +(952, '24341', 'Repair, Tendon or Muscle, Upper Arm or Elbow, Each Tendon or Muscle, Primary or Secondary (excludes rotator cuff)'), +(953, '24342', 'Reinsertion of ruptured biceps or triceps tendon, distal, with or without tendon graft'), +(954, '24343', 'Repair Lateral Collateral Ligament, Elbow, w/Local Tissue'), +(955, '24344', 'Reconstruction lateral collateral ligament, elbow, with tendon graft (includes harvesting of graft)'), +(956, '24345', 'Repair Medial Collateral Ligament, Elbow, w/Local Tissue'), +(957, '24346', 'Reconstruction Medial Collateral Ligament, Elbow, w/Tendon Graft (includes harvesting of graft)'), +(958, '24360', 'Arthroplasty, elbow; with membrane (eg, fascial)'), +(959, '24361', 'Arthroplasty, elbow; with distal humeral prosthetic replacement'), +(960, '24362', 'Arthroplasty, elbow; with implant and fascia lata ligament reconstruction'), +(961, '24363', 'Arthroplasty, elbow; with distal humerus and proximal ulnar prosthetic replacement (eg, total elbow)'), +(962, '24365', 'Arthroplasty, radial head;'), +(963, '24366', 'Arthroplasty, radial head; with implant'), +(964, '24370', 'Revision of total elbow arthroplasty, including allograft when performed; humeral or ulnar component'), +(965, '24371', 'Revision of total elbow arthroplasty, including allograft when performed; humeral and ulnar component'), +(966, '24400', 'Osteotomy, Humerus, w/ or w/Out Internal Fixation'), +(967, '24410', 'Multiple osteotomies with realignment on intramedullary rod, humeral shaft (Sofield type procedure)'), +(968, '24420', 'Osteoplasty, humerus (eg, shortening or lengthening) (excluding 64876)'), +(969, '24430', 'Repair of nonunion or malunion, humerus; without graft (eg, compression technique)'), +(970, '24435', 'Repair of nonunion or malunion, humerus; with iliac or other autograft (includes obtaining graft)'), +(971, '24470', 'Hemiepiphyseal arrest (eg, cubitus varus or valgus, distal humerus)'), +(972, '24495', 'Decompression fasciotomy, forearm, with brachial artery exploration'), +(973, '24498', 'Prophylactic treatment (nailing, pinning, plating or wiring), with or without methylmethacrylate, humeral shaft'), +(974, '24500', 'Closed Treatment of Humeral Shaft Fracture; w/Out Manipulation'), +(975, '24505', 'Closed Treatment of Humeral Shaft Fracture; w/Manipulation, w/ or w/Out Skeletal Traction'), +(976, '24515', 'Open treatment of humeral shaft fracture with plate/screws, with or without cerclage'), +(977, '24516', 'Treatment of humeral shaft fracture, with insertion of intramedullary implant, with or without cerclage and/or locking screws'), +(978, '24530', 'Closed Treatment of Supracondylar or Transcondylar Humeral Fracture, w/ or w/Out Intercondylar Extension; w/Out Manipulation'), +(979, '24535', 'Closed Treatment of Supracondylar or Transcondylar Humeral Fracture, w/ or w/Out Intercondylar Extension; w/Manipulation, w/ or w/Out Skin or Skeletal Traction'), +(980, '24538', 'Percutaneous Skeletal Fixation of Supracondylar or Transcondylar Humeral Fracture, w/ or w/Out Intercondylar Extension'), +(981, '24545', 'Open Treatment of Humeral Supracondylar or Transcondylar Fracture, Includes Internal Fixation, when Performed; w/o Intercondylar Extension'), +(982, '24546', 'Open treatment of humeral supracondylar or transcondylar fracture, includes internal fixation, when performed; with intercondylar extension'), +(983, '24560', 'Closed Treatment of Humeral Epicondylar Fracture, Medial or Lateral; w/Out Manipulation'), +(984, '24565', 'Closed Treatment of Humeral Epicondylar Fracture, Medial or Lateral; w/Manipulation'), +(985, '24566', 'Percutaneous Skeletal Fixation of Humeral Epicondylar Fracture, Medial or Lateral, w/Manipulation'), +(986, '24575', 'Open treatment of humeral epicondylar fracture, medial or lateral, includes internal fixation, when performed'), +(987, '24576', 'Closed Treatment of Humeral Condylar Fracture, Medial or Lateral; w/Out Manipulation'), +(988, '24577', 'Closed Treatment of Humeral Condylar Fracture, Medial or Lateral; w/Manipulation'), +(989, '24579', 'Open treatment of humeral condylar fracture, medial or lateral, includes internal fixation, when performed'), +(990, '24582', 'Percutaneous Skeletal Fixation of Humeral Condylar Fracture, Medial or Lateral, w/Manipulation'), +(991, '24586', 'Open treatment of periarticular fracture and/or dislocation of the elbow (fracture distal humerus and proximal ulna and/or proximal radius);'), +(992, '24587', 'Open treatment of periarticular fracture and/or dislocation of the elbow (fracture distal humerus and proximal ulna and/or proximal radius); with implant arthroplasty'), +(993, '24600', 'Treatment of Closed Elbow Dislocation; w/Out Anesthesia'), +(994, '24605', 'Treatment of Closed Elbow Dislocation; Requiring Anesthesia'), +(995, '24615', 'Open treatment of acute or chronic elbow dislocation'), +(996, '24620', 'Closed Treatment of Monteggia Type of Fracture Dislocation at Elbow (fracture proximal end of ulna with dislocation of radial head), w/Manipulation'), +(997, '24635', 'Open treatment of Monteggia type of fracture dislocation at elbow (fracture proximal end of ulna with dislocation of radial head), includes internal fixation, when performed'), +(998, '24640', 'Closed Treatment, Radial Head Subluxation, Nursemaid EL'), +(999, '24650', 'Closed Treatment of Radial Head or Neck Fracture; w/Out Manipulation'), +(1000, '24655', 'Closed Treatment of Radial Head or Neck Fracture; w/Manipulation'), +(1001, '24665', 'Open treatment of radial head or neck fracture, includes internal fixation or radial head excision, when performed;'), +(1002, '24666', 'Open treatment of radial head or neck fracture, includes internal fixation or radial head excision, when performed; with radial head prosthetic replacement'), +(1003, '24670', 'Closed Treatment of Ulnar Fracture, Proximal End (eg, olecranon or coronoid process[es]); w/Out Manipulation'), +(1004, '24675', 'Closed Treatment of Ulnar Fracture, Proximal End (eg, olecranon or coronoid process[es]); w/Manipulation'), +(1005, '24685', 'Open Treatment of Ulnar Fracture, Proximal End (eg, olecranon or coronoid process[es]), Includes Internal Fixation, When Performed'), +(1006, '24800', 'Arthrodesis, Elbow Joint; Local'), +(1007, '24802', 'Arthrodesis, Elbow Joint; w/Autogenous Graft (includes obtaining graft)'), +(1008, '24900', 'Amputation, arm through humerus; with primary closure'), +(1009, '24920', 'Amputation, arm through humerus; open, circular (guillotine)'), +(1010, '24925', 'Amputation, arm through humerus; secondary closure or scar revision'), +(1011, '24930', 'Amputation, arm through humerus; re-amputation'), +(1012, '24931', 'Amputation, arm through humerus; with implant'), +(1013, '24935', 'Stump elongation, upper extremity'), +(1014, '24940', 'Cineplasty, upper extremity, complete procedure'), +(1015, '24999', 'Unlisted procedure, humerus or elbow'), +(1016, '25000', 'Incision, Extensor Tendon Sheath, Wrist (eg, deQuervains disease)'), +(1017, '25001', 'Incision, Flexor Tendon Sheath, Wrist (eg, flexor carpi radialis)'), +(1018, '25020', 'Decompression fasciotomy, forearm and/or wrist, flexor OR extensor compartment; without debridement of nonviable muscle and/or nerve'), +(1019, '25023', 'Decompression fasciotomy, forearm and/or wrist, flexor OR extensor compartment; with debridement of nonviable muscle and/or nerve'), +(1020, '25024', 'Decompression fasciotomy, forearm and/or wrist, flexor AND extensor compartment; without debridement of nonviable muscle and/or nerve'), +(1021, '25025', 'Decompression fasciotomy, forearm and/or wrist, flexor AND extensor compartment; with debridement of nonviable muscle and/or nerve'), +(1022, '25028', 'Incision & Drainage, Forearm and/or Wrist; Deep Abscess or Hematoma'), +(1023, '25031', 'Incision & Drainage, Forearm and/or Wrist; Bursa'), +(1024, '25035', 'Incision, Deep, Bbone Cortex, Forearm and/or Wrist (eg, osteomyelitis or bone abscess)'), +(1025, '25040', 'Arthrotomy, Radiocarpal or Midcarpal Joint, w/Exploration, Drainage, or Removal of Foreign Body'), +(1026, '25065', 'Biopsy, Soft Tissue of Forearm and/or Wrist; Superficial'), +(1027, '25066', 'Biopsy, Soft Tissue of Forearm and/or Wrist; Deep (subfascial or intramuscular)'), +(1028, '25071', 'Excision, Tumor, Soft Tissue of Forearm and/or Wrist Area, Subcutaneous; 3 cm or Greater'), +(1029, '25073', 'Excision, Tumor, Soft Tissue of Forearm and/or Wrist Area, Subfascial (eg, intramuscular); 3 cm or Greater'), +(1030, '25075', 'Excision, Tumor, Soft Tissue of Forearm and/or Wrist Area, Subcutaneous; Less Than 3 cm'), +(1031, '25076', 'Excision, Tumor, Soft Ttissue of Forearm and/or Wrist Area, Subfascial (eg, intramuscular); Less Than 3 cm'), +(1032, '25077', 'Radical resection of tumor (eg, sarcoma), soft tissue of forearm and/or wrist area; less than 3 cm'), +(1033, '25078', 'Radical resection of tumor (eg, sarcoma), soft tissue of forearm and/or wrist area; 3 cm or greater'), +(1034, '25085', 'Capsulotomy, Wrist (eg, contracture)'), +(1035, '25100', 'Arthrotomy, Wrist Joint; w/Biopsy'), +(1036, '25101', 'Arthrotomy, Wrist Joint; w/Joint Exploration, w/ or w/Out Biopsy, w/ or w/Out Removal of Loose or Foreign Body'), +(1037, '25105', 'Arthrotomy, Wrist Joint; w/Synovectomy'), +(1038, '25107', 'Arthrotomy, distal radioulnar joint including repair of triangular cartilage, complex'), +(1039, '25109', 'Excision of Tendon, Forearm and/or Wrist, Flexor or Extensor, Each'), +(1040, '25110', 'Excision, Lesion of Tendon Sheath, Forearm and/or Wrist'), +(1041, '25111', 'Excision of Ganglion, Wrist (dorsal or volar); Primary'), +(1042, '25112', 'Excision of Ganglion, Wrist (dorsal or volar); Recurrent'), +(1043, '25115', 'Radical excision of bursa, synovia of wrist, or forearm tendon sheaths (eg, tenosynovitis, fungus, Tbc, or other granulomas, rheumatoid arthritis); flexors'), +(1044, '25116', 'Radical excision of bursa, synovia of wrist, or forearm tendon sheaths (eg, tenosynovitis, fungus, Tbc, or other granulomas, rheumatoid arthritis); extensors, with or without transposition of dorsal retinaculum'), +(1045, '25118', 'Synovectomy, Extensor Tendon Sheath, Wrist, Single Compartment'), +(1046, '25119', 'Synovectomy, Extensor Tendon Sheath, Wrist, Single Compartment; w/Resection of Distal Ulna'), +(1047, '25120', 'Excision or Curettage of Bone Cyst or Benign Tumor of Radius or Ulna (excluding head or neck of radius and olecranon process)'), +(1048, '25125', 'Excision or Curettage of Bone Cyst or Benign Tumor of Radius or Ulna (excluding head or neck of radius and olecranon process); w/Autograft'), +(1049, '25126', 'Excision or Curettage of Bone Cyst or Benign Tumor of Radius or Ulna (excluding head or neck of radius and olecranon process); w/Allograft'), +(1050, '25130', 'Excision or Curettage of Bone Cyst or Benign Tumor of Carpal Bones'), +(1051, '25135', 'Excision or Curettage of Bone Cyst or Benign Tumor of Carpal Bones; w/Autograft'), +(1052, '25136', 'Excision or Curettage of Bone Cyst or Benign Tumor of Carpal Bones; w/Allograft'), +(1053, '25145', 'Sequestrectomy (eg, for osteomyelitis or bone abscess), forearm and/or wrist'), +(1054, '25150', 'Partial excision (craterization, saucerization, or diaphysectomy) of bone (eg, for osteomyelitis); ulna'), +(1055, '25151', 'Partial excision (craterization, saucerization, or diaphysectomy) of bone (eg, for osteomyelitis); radius'), +(1056, '25170', 'Radical resection of tumor, radius or ulna'), +(1057, '25210', 'Carpectomy; 1 Bone'), +(1058, '25215', 'Carpectomy; All Bones of Proximal Row'), +(1059, '25230', 'Radial Styloidectomy (separate procedure)'), +(1060, '25240', 'Excision distal ulna partial or complete (eg, Darrach type or matched resection)'), +(1061, '25246', 'Wrist Arthrogram'), +(1062, '25248', 'Exploration w/Removal of Deep Foreign Body, Forearm or Wrist'), +(1063, '25250', 'Removal of Wrist Prosthesis'), +(1064, '25251', 'Removal of wrist prosthesis; complicated, including total wrist'), +(1065, '25259', 'Manipulation, Wrist, Under Anesthesia'), +(1066, '25260', 'Repair, Tendon or Muscle, Flexor, Forearm and/or Wrist; Primary, Single, Each Tendon or Muscle'), +(1067, '25263', 'Repair, Tendon or Muscle, Flexor, Forearm and/or Wrist; Secondary, Single, Each Tendon or Muscle'), +(1068, '25265', 'Repair, Tendon or Muscle, Flexor, Forearm and/or Wrist; Secondary, w/Free Graft (includes obtaining graft), Each Tendon or Muscle'), +(1069, '25270', 'Repair, Tendon or Muscle, Extensor, Forearm and/or Wrist; Primary, Single, Each Tendon or Muscle'), +(1070, '25272', 'Repair, Tendon or Muscle, Extensor, Forearm and/or Wrist; Secondary, Single, Each Tendon or Muscle'), +(1071, '25274', 'Repair, Tendon or Muscle, Extensor, Forearm and/or Wrist; Secondary, w/Free Graft (includes obtaining graft), Each Tendon or Muscle'), +(1072, '25275', 'Repair, Tendon Sheath, Extensor, Forearm and/or Wrist, w/Free Graft (includes obtaining graft) (eg, for extensor carpi ulnaris subluxation)'), +(1073, '25280', 'Lengthening or Shortening of Flexor or Extensor Tendon, Forearm and/or Wrist, Single, Each Tendon'), +(1074, '25290', 'Tenotomy, Open, Flexor or Extensor Tendon, Forearm and/or Wrist, Single, Each Tendon'), +(1075, '25295', 'Tenolysis, Flexor or Extensor Tendon, Forearm and/or Wrist, Single, Each Tendon'), +(1076, '25300', 'Tenodesis at Wrist; Flexors of Fingers'), +(1077, '25301', 'Tenodesis at Wrist; Extensors of Fingers'), +(1078, '25310', 'Tendon Transplantation or Transfer, Flexor or Extensor, Forearm and/or Wrist, Single; Each Tendon'), +(1079, '25312', 'Tendon transplantation or transfer, flexor or extensor, forearm and/or wrist, single; with tendon graft(s) (includes obtaining graft), each tendon'), +(1080, '25315', 'Flexor origin slide (eg, for cerebral palsy, Volkmann contracture), forearm and/or wrist;'), +(1081, '25316', 'Flexor origin slide (eg, for cerebral palsy, Volkmann contracture), forearm and/or wrist; with tendon(s) transfer'), +(1082, '25320', 'Capsulorrhaphy or reconstruction, wrist, open (eg, capsulodesis, ligament repair, tendon transfer or graft) (includes synovectomy, capsulotomy and open reduction) for carpal instability'), +(1083, '25332', 'Arthroplasty, wrist, with or without interposition, with or without external or internal fixation'), +(1084, '25335', 'Centralization of wrist on ulna (eg, radial club hand)'), +(1085, '25337', 'Reconstruction for stabilization of unstable distal ulna or distal radioulnar joint, secondary by soft tissue stabilization (eg, tendon transfer, tendon graft or weave, or tenodesis) with or without open reduction of distal radioulnar joint'), +(1086, '25350', 'Osteotomy, Radius; Distal Third'), +(1087, '25355', 'Osteotomy, Radius; Middle or Proximal Third'), +(1088, '25360', 'Osteotomy; Ulna'), +(1089, '25365', 'Osteotomy; Radius & ulna'), +(1090, '25370', 'Multiple Osteotomies, w/Realignment on Intramedullary Rod (Sofield type procedure); Radius or Ulna'), +(1091, '25375', 'Multiple Osteotomies, w/Realignment on Intramedullary Rod (Sofield type procedure); Radius & Ulna'), +(1092, '25390', 'Osteoplasty, Radius or Uulna; Shortening'), +(1093, '25391', 'Osteoplasty, Radius or Ulna; Lengthening w/Autograft'), +(1094, '25392', 'Osteoplasty, Radius & Ulna; Shortening (excluding 64876)'), +(1095, '25393', 'Osteoplasty, Radius & Ulna; Lengthening w/Autograft'), +(1096, '25394', 'Osteoplasty, Carpal Bone, Shortening'), +(1097, '25400', 'Repair of Nonunion or Malunion, Radius or Ulna; w/o Graft (eg, compression technique)'), +(1098, '25405', 'Repair of Nonunion or Malunion, Radius or Ulna; w/Autograft (includes obtaining graft)'), +(1099, '25415', 'Repair of Nonunion or Malunion, Radius & Ulna; w/o Graft (eg, compression technique)'), +(1100, '25420', 'Repair of Nonunion or Malunion, Radius & Ulna; w/Autograft (includes obtaining graft)'), +(1101, '25425', 'Repair of Defect w/Autograft; Radius or Ulna'), +(1102, '25426', 'Repair of Defect w/Autograft; Radius & Ulna'), +(1103, '25430', 'Insertion of Vascular Pedicle into Carpal Bone (eg, Hori procedure)'), +(1104, '25431', 'Repair of Nonunion of Carpal Bone (excluding carpal scaphoid (navicular)) (includes obtaining graft and necessary fixation), Each Bone'), +(1105, '25440', 'Repair of Nonunion, Scaphoid Carpal (navicular) Bone, w/ or w/Out Radial Styloidectomy'), +(1106, '25441', 'Arthroplasty w/Prosthetic Replacement; Distal Radius'), +(1107, '25442', 'Arthroplasty w/Prosthetic Replacement; Distal Ulna'), +(1108, '25443', 'Arthroplasty w/Prosthetic Replacement; Scaphoid Carpal (navicular)'), +(1109, '25444', 'Arthroplasty with prosthetic replacement; lunate'), +(1110, '25445', 'Arthroplasty with prosthetic replacement; trapezium'), +(1111, '25446', 'Arthroplasty with prosthetic replacement; distal radius and partial or entire carpus (total wrist)'), +(1112, '25447', 'Arthroplasty, interposition, intercarpal or carpometacarpal joints'), +(1113, '25449', 'Revision of arthroplasty, including removal of implant, wrist joint'), +(1114, '25450', 'Epiphyseal arrest by epiphysiodesis or stapling; distal radius OR ulna'), +(1115, '25455', 'Epiphyseal arrest by epiphysiodesis or stapling; distal radius AND ulna'), +(1116, '25490', 'Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Radius'), +(1117, '25491', 'Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Ulna'), +(1118, '25492', 'Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/Out Methylmethacrylate; Radius & Ulna'), +(1119, '25500', 'Closed Treatment of Radial Shaft Fracture; w/Out Manipulation'), +(1120, '25505', 'Closed Treatment of Radial Shaft Fracture; w/Manipulation'), +(1121, '25515', 'Open Treatment of Radial Shaft Fracture, Includes Internal Fixation, when Performed'), +(1122, '25520', 'Closed Treatment of Radial Shaft Fracture & Closed Treatment of Dislocation of Distal Radioulnar Joint (Galeazzi fracture/dislocation)'), +(1123, '25525', 'Open treatment of radial shaft fracture, includes internal fixation, when performed, and closed treatment of distal radioulnar joint Dislocation (Galeazzi fracture/ dislocation), includes Percutaneous Skeletal Fixation, when Performed'), +(1124, '25526', 'Open treatment of radial shaft fracture, includes internal fixation, when performed, and open treatment of distal radioulnar joint dislocation (Galeazzi fracture/ dislocation), includes internal fixation, when performed, includes repair of triangular fibrocartilage complex'), +(1125, '25530', 'Closed Treatment of Ulnar Shaft Fracture; w/Out Manipulation'), +(1126, '25535', 'Closed Treatment of Ulnar Shaft Fracture; w/Manipulation'), +(1127, '25545', 'Open treatment of ulnar shaft fracture, includes Internal Fixation, when Performed'), +(1128, '25560', 'Closed Treatment of Radial & Ulnar Shaft Fractures; w/Out Manipulation'), +(1129, '25565', 'Closed Treatment of Radial & Ulnar Shaft Fractures; w/Manipulation'), +(1130, '25574', 'Open treatment of radial AND ulnar shaft fractures, with internal fixation, when performed; of radius OR ulna'), +(1131, '25575', 'Open treatment of radial AND ulnar shaft fractures, with internal fixation, when performed; of radius AND ulna'), +(1132, '25600', 'Closed Treatment of Distal Radial Fracture (eg, Colles or Smith type) or Epiphyseal Separation, Includes Closed Treatment of Fracture of Ulnar Styloid, when Performed; w/Out Manipulation'), +(1133, '25605', 'Closed Treatment of Distal Radial Fracture (eg, Colles or Smith type) or Epiphyseal Separation, Includes Closed Treatment of Fracture of Ulnar Styloid, when Performed; w/Manipulation'), +(1134, '25606', 'Percutaneous Skeletal Fixation of Distal Radial Fracture or Epiphyseal Separation'), +(1135, '25607', 'Open treatment of distal radial extra-articular fracture or epiphyseal separation, with internal fixation'), +(1136, '25608', 'Open treatment of distal radial intra-articular fracture or epiphyseal separation; with internal fixation of 2 fragments'), +(1137, '25609', 'Open treatment of distal radial intra-articular fracture or epiphyseal separation; with internal fixation of 3 or more fragments'), +(1138, '25622', 'Closed Treatment of Carpal Scaphoid (navicular) Fracture; w/Out Manipulation'), +(1139, '25624', 'Closed Treatment of Carpal Scaphoid (navicular) Fracture; w/Manipulation'), +(1140, '25628', 'Open treatment of carpal scaphoid (navicular) fracture, includes internal fixation, when performed'), +(1141, '25630', 'Closed Treatment of Carpal Bone Fracture (Excluding Carpal Scaphoid [navicular]); w/o Manipulation, Each Bone'), +(1142, '25635', 'Closed Treatment of Carpal Bone Fracture (excluding carpal scaphoid [navicular]); w/Manipulation, Each Bone'), +(1143, '25645', 'Open treatment of carpal bone fracture (other than carpal scaphoid [navicular]), each bone'), +(1144, '25650', 'Closed Treatment of Ulnar Styloid Fracture'), +(1145, '25651', 'Percutaneous Skeletal Fixation of Ulnar Styloid Fracture'), +(1146, '25652', 'Open Treatment of Ulnar Styloid Fracture'), +(1147, '25660', 'Closed Treatment of Radiocarpal or Intercarpal Dislocation, 1 or More Bones, w/Manipulation'), +(1148, '25670', 'Open Treatment of Radiocarpal or Intercarpal Dislocation, 1 or More Bones'), +(1149, '25671', 'Percutaneous Skeletal Fixation of Distal Radioulnar Dislocation'), +(1150, '25675', 'Closed Treatment of Distal Radioulnar Dislocation w/Manipulation'), +(1151, '25676', 'Open treatment of Distal Radioulnar Dislocation, Acute or Chronic'), +(1152, '25680', 'Closed Treatment of Trans-Scaphoperilunar Type of Fracture Dislocation, w/Manipulation'), +(1153, '25685', 'Open Treatment of Trans-Scaphoperilunar Type of Fracture Dislocation'), +(1154, '25690', 'Closed Treatment of Lunate Dislocation, w/Manipulation'), +(1155, '25695', 'Open Treatment of Lunate Dislocation'), +(1156, '25800', 'Arthrodesis, Wrist; Complete, w/Out Bone Graft (includes radiocarpal and/or intercarpal and/or carpometacarpal joints)'), +(1157, '25805', 'Arthrodesis, Wrist; w/Sliding Graft'), +(1158, '25810', 'Arthrodesis, wrist; with iliac or other autograft (includes obtaining graft)'), +(1159, '25820', 'Arthrodesis, Wrist; Limited, w/o Bone Graft (eg, intercarpal or radiocarpal)'), +(1160, '25825', 'Arthrodesis, Wrist; w/Autograft (includes obtaining graft)'), +(1161, '25830', 'Arthrodesis, distal radioulnar joint with segmental resection of ulna, with or without bone graft (eg, Sauve-Kapandji procedure)'), +(1162, '25900', 'Amputation, forearm, through radius and ulna;'), +(1163, '25905', 'Amputation, forearm, through radius and ulna; open, circular (guillotine)'), +(1164, '25907', 'Amputation, forearm, through radius and ulna; secondary closure or scar revision'), +(1165, '25909', 'Amputation, forearm, through radius and ulna; re-amputation'), +(1166, '25915', 'Krukenberg procedure'), +(1167, '25920', 'Disarticulation Through Wrist'), +(1168, '25922', 'Disarticulation Through Wrist; Secondary Closure or Scar Revision'), +(1169, '25924', 'Disarticulation Through Wrist; Re-Amputation'), +(1170, '25927', 'Transmetacarpal Amputation'), +(1171, '25929', 'Transmetacarpal Amputation; Secondary Closure or Scar Revision'), +(1172, '25931', 'Transmetacarpal Amputation; Re-Amputation'), +(1173, '25999', 'Unlisted procedure, forearm or wrist'), +(1174, '26010', 'Drainage of Finger Abscess; Simple'), +(1175, '26011', 'Drainage of Finger Abscess; Complicated (eg, felon)'), +(1176, '26020', 'Drainage of Tendon Sheath, Digit and/or Palm, Each'), +(1177, '26025', 'Drainage of Palmar Bursa; Single, Bursa'), +(1178, '26030', 'Drainage of Palmar Bursa; Multiple Bursa'), +(1179, '26034', 'Incision, Bone Cortex, Hand or Finger (eg, osteomyelitis or bone abscess)'), +(1180, '26035', 'Decompression Fingers and/or Hand, Injection Injury (eg, grease gun)'), +(1181, '26037', 'Decompressive Fasciotomy, Hand'), +(1182, '26055', 'Tendon Sheath Incision (eg, for trigger finger)'), +(1183, '26060', 'Tenotomy, Percutaneous, Single, Each Digit'), +(1184, '26070', 'Arthrotomy, w/Exploration, Drainage, or Removal of Loose or Foreign Body; Carpometacarpal Joint'), +(1185, '26075', 'Arthrotomy, w/Exploration, Drainage, or Removal of Loose or Foreign Body; Metacarpophalangeal Joint, Each'), +(1186, '26080', 'Arthrotomy, w/Exploration, Drainage, or Removal of Loose or Foreign Body; Interphalangeal Joint, Each'), +(1187, '26100', 'Arthrotomy w/Biopsy; Carpometacarpal Joint, Each'), +(1188, '26105', 'Arthrotomy w/Biopsy; Metacarpophalangeal Joint, Each'), +(1189, '26110', 'Arthrotomy w/Biopsy; Interphalangeal Joint, Each'), +(1190, '26111', 'Excision, Tumor or Vascular Malformation, Soft Tissue of Hand or Finger, Subcutaneous; 1.5 cm or Greater'), +(1191, '26113', 'Excision, Tumor, Soft Tissue, or Vascular Malformation, of Hand or Finger, Subfascial (eg, intramuscular); 1.5 cm or Greater'), +(1192, '26115', 'Excision, Tumor or Vascular Malformation, Soft Tissue of Hand or Finger, Subcutaneous; Less Than 1.5 cm'), +(1193, '26116', 'Excision, Tumor, Soft Tissue, or Vascular Malformation, of Hand or Finger, Subfascial (eg, intramuscular); Less Than 1.5 cm'), +(1194, '26117', 'Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Hand or Finger; Less Than 3 cm'), +(1195, '26118', 'Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Hand or Finger; 3 cm or Greater'), +(1196, '26121', 'Fasciectomy, palm only, with or without Z-plasty, other local tissue rearrangement, or skin grafting (includes obtaining graft)'), +(1197, '26123', 'Fasciectomy, Partial Palmar w/Release of Single Digit Including Proximal Interphalangeal Joint, w/ or w/Out Z-Plasty, Other Local Tissue Rearrangement, or Skin Grafting'), +(1198, '26125', 'Fasciectomy, Partial Palmar w/Release of Ssingle Digit Including Proximal Interphalangeal Joint, w/ or w/Out Z-Plasty, Other Local Tissue Rearrangement, or Skin Grafting; Each addtl Digit'), +(1199, '26130', 'Synovectomy, Carpometacarpal Joint'), +(1200, '26135', 'Synovectomy, Metacarpophalangeal Joint Including Intrinsic Release & Extensor Hood Reconstruction, Each Digit'), +(1201, '26140', 'Synovectomy, Proximal Interphalangeal Joint, Including Extensor Reconstruction, Each Interphalangeal Joint'), +(1202, '26145', 'Synovectomy, Tendon Sheath, Radical (tenosynovectomy), Flexor Tendon, Palm and/or Finger, Each Tendon'), +(1203, '26160', 'Excision of Lesion of Tendon Sheath or Joint Capsule (eg, cyst, mucous cyst, or ganglion), Hand or Finger'), +(1204, '26170', 'Excision of Tendon, Palm, Flexor or Extensor, Single, Each Tendon'), +(1205, '26180', 'Excision of Tendon, Finger, Flexor or Extensor, Each Tendon'), +(1206, '26185', 'Sesamoidectomy, Thumb or Finger'), +(1207, '26200', 'Excision or Curettage of Bone Cyst or Benign Tumor of Metacarpal'), +(1208, '26205', 'Excision or Curettage of Bone Cyst or Benign Tumor of Metacarpal; w/Autograft'), +(1209, '26210', 'Excision or Curettage of Bone Cyst or Benign Tumor of Proximal, Middle, or Distal Phalanx of Finger'), +(1210, '26215', 'Excision or Curettage of Bone Cyst or Benign Tumor of Proximal, Middle, or Distal Phalanx of Finger; w/Autograft'), +(1211, '26230', 'Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis); Metacarpal'), +(1212, '26235', 'Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis); Proximal or Middle Phalanx of Finger'), +(1213, '26236', 'Partial Excision (craterization, saucerization, or diaphysectomy) Bone (eg, osteomyelitis); Distal Phalanx of Finger'), +(1214, '26250', 'Radical Resection of Tumor, Metacarpal'), +(1215, '26260', 'Radical Resection of Tumor, Proximal or Middle Phalanx of Finger'), +(1216, '26262', 'Radical Resection of Tumor, Distal Phalanx of Finger'), +(1217, '26320', 'Removal of Implant from Finger or Hand'), +(1218, '26340', 'Manipulation, Finger Joint, Under Anesthesia, Each Joint'), +(1219, '26370', 'Repair or Advancement of Profundus Tendon, w/Intact Superficialis Tendon; Primary, Each Tendon'), +(1220, '26372', 'Repair or Advancement of Profundus Tendon, w/Intact Superficialis Tendon; Secondary w/Free Graft, Each Tendon'), +(1221, '26373', 'Repair or Advancement of Profundus Tendon, w/Intact Superficialis Tendon; Secondary w/o Free Graft, Each Tendon'), +(1222, '26390', 'Excision Flexor Tendon, w/Implantation of Synthetic Rod for Delayed Tendon Graft, Hand or Finger, Each Rod'), +(1223, '26392', 'Removal of Synthetic Rod & Insertion of Flexor Tendon Graft, Hand or Finger, Each Rod'), +(1224, '26410', 'Repair, Extensor Tendon, Hand, Primary or Secondary; w/Out Free Graft, Each Tendon'), +(1225, '26412', 'Repair, Extensor Tendon, Hand, Primary or Secondary; w/Free Graft, Each Tendon'), +(1226, '26415', 'Excision of Extensor Tendon, w/Implantation of Synthetic Rod for Delayed Tendon Graft, Hand or Finger, Each Rod'), +(1227, '26416', 'Removal of Synthetic Rod & Insertion of Extensor Tendon Graft, Hand or Finger, Each Rod'), +(1228, '26418', 'Repair, Extensor Tendon, Finger, Primary or Secondary; w/Out Free Graft, Each Tendon'), +(1229, '26420', 'Repair, Extensor Tendon, Finger, Primary or Secondary; w/Free Graft (includes obtaining graft) Each Tendon'), +(1230, '26426', 'Repair of Extensor Tendon, Central Slip, Secondary (eg, boutonniere deformity); Using Local Tissue(s), Including Lateral Band(s), Each Finger'), +(1231, '26428', 'Repair of Extensor Tendon, Central Slip, Secondary (eg, boutonniere deformity); w/Free Graft (includes obtaining graft), Each Finger'), +(1232, '26432', 'Cltx Dstl Xtnsr Tdn Insj w/ & w/Out Percutan Pinning'), +(1233, '26433', 'Repair of Extensor Tendon, Distal Insertion, Primary or Secondary; w/o Graft (eg, mallet finger)'), +(1234, '26434', 'Repair Extensor Tendon Distal Insertion w/Graft'), +(1235, '26437', 'Realignment of Extensor Tendon, Hand, Each Tendon'), +(1236, '26440', 'Tenolysis, Flexor Tendon; Palm or Finger, Each Tendon'), +(1237, '26442', 'Tenolysis, Flexor Tendon; Palm & Finger, Each Tendon'), +(1238, '26445', 'Tenolysis, Extensor Tendon, Hand or Finger, Each Tendon'), +(1239, '26449', 'Tenolysis, Complex, Extensor Tendon, Finger, Including Forearm, Each Tendon'), +(1240, '26450', 'Tenotomy, Flexor, Palm, Open, Each Tendon'), +(1241, '26455', 'Tenotomy, Flexor, Finger, Open, Each Tendon'), +(1242, '26460', 'Tenotomy, Extensor, Hand or Finger, Open, Each Tendon'), +(1243, '26471', 'Tenodesis; of Proximal Interphalangeal Joint, Each Joint'), +(1244, '26474', 'Tenodesis; of Distal Joint, Each Joint'), +(1245, '26476', 'Lengthening of Tendon, Extensor, Hand or Finger, Each Tendon'), +(1246, '26477', 'Shortening of Tendon, Extensor, Hand or Finger, Each Tendon'), +(1247, '26478', 'Lengthening of Tendon, Flexor, Hand or Finger, Each Tendon'), +(1248, '26479', 'Shortening of Tendon, Flexor, Hand or Finger, Each Tendon'), +(1249, '26480', 'Transfer or Transplant of Tendon, Carpometacarpal Area or Dorsum of Hand; w/Out Free Graft, Each Tendon'), +(1250, '26483', 'Transfer or Transplant of Tendon, Carpometacarpal Area or Dorsum of Hand; w/Free Tendon Graft, Each Tendon'), +(1251, '26485', 'Transfer or Transplant of Tendon, Palmar; w/Out Free Tendon Graft, Each Tendon'), +(1252, '26489', 'Transfer or Transplant of Tendon, Palmar; w/Free Tendon Graft, Each Tendon'), +(1253, '26490', 'Opponensplasty; Superficialis Tendon Transfer Type, Each Tendon'), +(1254, '26492', 'Opponensplasty; Tendon Transfer w/Graft, Each Tendon'), +(1255, '26494', 'Opponensplasty; Hypothenar Muscle Transfer'), +(1256, '26496', 'Opponensplasty; Other Methods'), +(1257, '26497', 'Transfer of Tendon to Restore Intrinsic Function; Ring & Small Finger'), +(1258, '26498', 'Transfer of Tendon to Restore Intrinsic Function; All 4 Fingers'), +(1259, '26499', 'Correction Claw Finger, Other Methods'), +(1260, '26500', 'Reconstruction of Tendon Pulley, Each Tendon; w/Local Tissues'), +(1261, '26502', 'Reconstruction of Tendon Pulley, Each Tendon; w/Tendon or Fascial Graft'), +(1262, '26508', 'Release of Thenar Muscle(s) (eg, thumb contracture)'), +(1263, '26510', 'Cross Intrinsic Transfer, Each Tendon'), +(1264, '26516', 'Capsulodesis, Metacarpophalangeal Joint; Single Digit'), +(1265, '26517', 'Capsulodesis, Metacarpophalangeal Joint; 2 Digits'), +(1266, '26518', 'Capsulodesis, Metacarpophalangeal Joint; 3 or 4 Digits'), +(1267, '26520', 'Capsulectomy or Capsulotomy; Metacarpophalangeal Joint, Each Joint'), +(1268, '26525', 'Capsulectomy or Capsulotomy; Interphalangeal Joint, Each Joint'), +(1269, '26530', 'Arthroplasty, Metacarpophalangeal Joint; Each Joint'), +(1270, '26531', 'Arthroplasty, Metacarpophalangeal Joint; w/Prosthetic Implant, Each Joint'), +(1271, '26535', 'Arthroplasty, Interphalangeal Joint; Each Joint'), +(1272, '26536', 'Arthroplasty, Interphalangeal Joint; w/Prosthetic Implant, Each Joint'), +(1273, '26540', 'Repair of Collateral Ligament, Metacarpophalangeal or Interphalangeal Joint'), +(1274, '26541', 'Reconstruction, Collateral Ligament, Metacarpophalangeal Joint, Single; w/Tendon or Fascial Graft'), +(1275, '26542', 'Reconstruction, Collateral Ligament, Metacarpophalangeal Joint, Single; w/Local Tissue (eg, adductor advancement)'), +(1276, '26545', 'Reconstruction, Collateral Ligament, Interphalangeal Joint, Single, Including Graft, Each Joint'), +(1277, '26546', 'Repair Non-Union, Metacarpal or Phalanx'), +(1278, '26548', 'Repair & Reconstruction, Finger, Volar Plate, Interphalangeal Joint'), +(1279, '26550', 'Pollicization of a Digit'), +(1280, '26551', 'Transfer, Toe-to-Hand w/Microvascular Anastomosis; Great Toe Wrap-Around w/Bone Graft'), +(1281, '26553', 'Transfer, Toe-to-Hand w/Microvascular Anastomosis; Other Than Great Toe, Single'), +(1282, '26554', 'Transfer, Toe-to-Hand w/Microvascular Anastomosis; Other Than Great Toe, Double'), +(1283, '26555', 'Transfer, Finger to Another Position w/o Microvascular Anastomosis'), +(1284, '26556', 'Transfer, Free Toe Joint, w/Microvascular Anastomosis'), +(1285, '26560', 'Repair of Syndactyly (web finger) Each Web Space; w/Skin Flaps'), +(1286, '26561', 'Repair of Syndactyly (web finger) Each Web Space; wSkin Flaps & Grafts'), +(1287, '26562', 'Repair of Syndactyly (web finger) Each Web Space; Complex (eg, involving bone, nails)'), +(1288, '26565', 'Osteotomy; Metacarpal, Each'), +(1289, '26567', 'Osteotomy; Phalanx of Finger, Each'), +(1290, '26568', 'Osteoplasty, Lengthening, Metacarpal or Phalanx'), +(1291, '26580', 'Repair Cleft Hand'), +(1292, '26587', 'Reconstruction of Polydactylous Digit, Soft Tissue & Bone'), +(1293, '26590', 'Repair Macrodactylia, Each Digit'), +(1294, '26591', 'Repair, Intrinsic Muscles of Hand, Each Muscle'), +(1295, '26593', 'Release, Intrinsic Muscles of Hand, Each Muscle'), +(1296, '26596', 'Excision of Constricting Ring of Finger, w/Multiple Z-Plasties'), +(1297, '26600', 'Closed Treatment of Metacarpal Fracture, Single; w/Out Manipulation, Each Bone'), +(1298, '26605', 'Closed Treatment of Metacarpal Fracture, Single; w/Manipulation, Each Bone'), +(1299, '26607', 'Closed Treatment of Metacarpal Fracture, w/Manipulation, w/External Fixation, Each Bone'), +(1300, '26608', 'Percutaneous Skeletal Fixation of Metacarpal Fracture, Each Bone'), +(1301, '26615', 'Open Treatment of Metacarpal Fracture, Single, Includes Internal Fixation, when Performed, Each Bone'), +(1302, '26641', 'Closed Treatment of Carpometacarpal Dislocation, Thumb, w/Manipulation'), +(1303, '26645', 'Closed Treatment of Carpometacarpal Fracture Dislocation, Thumb (Bennett fracture), w/Manipulation'), +(1304, '26650', 'Percutaneous Skeletal Fixation of Carpometacarpal Fracture Dislocation, Thumb (Bennett fracture), w/Manipulation'), +(1305, '26665', 'Open Treatment of Carpometacarpal Fracture Dislocation, Thumb (Bennett fracture), Includes Internal Fixation, when Performed'), +(1306, '26670', 'Closed Treatment of Carpometacarpal Dislocation, Other than Thumb, w/Manipulation, Each Joint; w/o Anesthesia'), +(1307, '26675', 'Closed Treatment of Carpometacarpal Dislocation, Other than Thumb, w/Manipulation, Each Joint; Requiring Anesthesia'), +(1308, '26676', 'Percutaneous Skeletal Fixation of Carpometacarpal Dislocation, Other Than Thumb, w/Manipulation, Each Joint'), +(1309, '26685', 'Open Treatment of Carpometacarpal Dislocation, Other than Thumb; Includes Internal Fixation, when Performed, Each Joint'), +(1310, '26686', 'Open Treatment of Carpometacarpal Dislocation, Other than Thumb; Complex, Multiple, or Delayed Reduction'), +(1311, '26700', 'Closed Treatment of Metacarpophalangeal Dislocation, Single, w/Manipulation; w/Out Anesthesia'), +(1312, '26705', 'Cltx Metacarpophalangeal Dlslc w/Manj w/Anes'), +(1313, '26706', 'Percutaneous Skeletal Fixation of Metacarpophalangeal Dislocation, Single, w/Manipulation'), +(1314, '26715', 'Open Treatment of Metacarpophalangeal Dislocation, Single, Includes Internal Fixation, When Performed'), +(1315, '26720', 'Closed Treatment of Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb; w/Out Manipulation, Each'), +(1316, '26725', 'Closed Treatment of Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb; w/Manipulation, w/ or w/Out Skin or Skeletal Traction, Each'), +(1317, '26727', 'Percutaneous Skeletal Fixation of Unstable Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb, w/Manipulation, Each'), +(1318, '26735', 'Open Treatment of Phalangeal Shaft Fracture, Proximal or Middle Phalanx, Finger or Thumb, Includes Internal Fixation, when Performed, Each'), +(1319, '26740', 'Closed Treatment of Articular Fracture, Involving Metacarpophalangeal or Interphalangeal Joint; w/Out Manipulation, Each'), +(1320, '26742', 'Closed Treatment of Articular Fracture, Involving Metacarpophalangeal or Interphalangeal Joint; w/Manipulation, Each'), +(1321, '26746', 'Open Treatment of Articular Fracture, Involving Metacarpophalangeal or Interphalangeal Joint, Includes Internal Fixation, when Performed, Each'), +(1322, '26750', 'Closed Treatment of Distal Phalangeal Fracture, Finger or Thumb; w/Out Manipulation, Each'), +(1323, '26755', 'Closed Treatment of Distal Phalangeal Fracture, Finger or Thumb; w/Manipulation, Each'), +(1324, '26756', 'Percutaneous Skeletal Fixation of Distal Phalangeal Fracture, Finger or Thumb, Each'), +(1325, '26765', 'Open Treatment of Distal Phalangeal Fracture, Finger or Thumb, Includes Internal Fixation, when Performed, Each'), +(1326, '26770', 'Closed Treatment of Interphalangeal Joint Dislocation, Single, w/Manipulation; w/Out Anesthesia'), +(1327, '26775', 'Closed Treatment of Interphalangeal Joint Dislocation, Single, w/Manipulation; Requiring Anesthesia'), +(1328, '26776', 'Percutaneous Skeletal Fixation of Interphalangeal Joint Dislocation, Single, w/Manipulation'), +(1329, '26785', 'Open Treatment of Interphalangeal Joint Dislocation, Includes Internal Fixation, when Performed, Single'), +(1330, '26820', 'Fusion in Opposition, Thumb, w/Autogenous Graft'), +(1331, '26841', 'Arthrodesis, Carpometacarpal Joint, Thumb, w/ or w/Out Internal Fixation'), +(1332, '26842', 'Arthrodesis, Carpometacarpal Joint, Thumb, w/ or w/Out Internal Fixation; w/Autograft'), +(1333, '26843', 'Arthrodesis, Carpometacarpal Joint, Digit, Other than Thumb, Each'), +(1334, '26844', 'Arthrodesis, Carpometacarpal Joint, Digit, Other than Thumb, Each; w/Autograft'), +(1335, '26850', 'Arthrodesis, Metacarpophalangeal Joint, w/ or w/Out Internal Fixation'), +(1336, '26852', 'Arthrodesis, Mmetacarpophalangeal Joint, w/ or w/Out Internal Fixation; w/Autograft'), +(1337, '26860', 'Arthrodesis Interphalangeal jt w/ & w/Out Int Fixj'), +(1338, '26861', 'Arthrodesis, interphalangeal joint, w/ or w/Out Internal Fixation; Each Addtl Interphalangeal Joint'), +(1339, '26862', 'Arthrodesis, Interphalangeal Joint, w/ or w/Out Internal Fixation; w/Autograft'), +(1340, '26863', 'Arthrodesis, Interphalangeal Joint, w/ or w/Out Internal Fixation; w/Autograft, Each Addtl Joint'), +(1341, '26910', 'Amputation, Metacarpal, w/Finger or Thumb (ray amputation), Single, w/ or w/Out Interosseous Transfer'), +(1342, '26951', 'Amputation, Finger or Thumb, Primary or Secondary, Any Joint or Phalanx, Single, Including Neurectomies; w/Direct Closure'), +(1343, '26952', 'Amputation, Finger or Thumb, Primary or Secondary, Any Joint or Phalanx, Single, Including Neurectomies; w/Local Advancement Flaps (V-Y, hood)'), +(1344, '26989', 'Unlisted Procedure, Hands or Fingers'), +(1345, '26990', 'Incision & Drainage, Pelvis or Hip Joint Area; Deep Abscess or Hematoma'), +(1346, '26991', 'Incision & Drainage, Pelvis or Hip Joint Area; Infected Bursa'), +(1347, '26992', 'Incision, Bone Cortex, Pelvis and/or Hip Joint (eg, osteomyelitis or bone abscess)'), +(1348, '27000', 'Tenotomy, Adductor of Hip, Percutaneous'), +(1349, '27001', 'Tenotomy, Adductor of Hip, Open'), +(1350, '27003', 'Tenotomy, Adductor, Subcutaneous, Open, w/Obturator Neurectomy'), +(1351, '27005', 'Tenotomy, Hip Flexor(s), Open'), +(1352, '27006', 'Tenotomy, Abductors and/or Extensor(s) of hip, Open'), +(1353, '27025', 'Fasciotomy, Hip or Thigh, Any Type'), +(1354, '27027', 'Decompression Fasciotomy(ies), Pelvic (buttock) Compartment(s) (eg, gluteus medius-minimus, gluteus maximus, iliopsoas, and/or tensor fascia lata muscle), Unilateral'), +(1355, '27030', 'Arthrotomy, Hip, w/Drainage (eg, infection)'), +(1356, '27033', 'Arthrotomy, Hip, Including Exploration or Removal of Loose or Foreign Body'), +(1357, '27035', 'Denervation, Hip Joint, Intrapelvic or Extrapelvic Intra-Articular Branches of Sciatic, Femoral, or Obturator Nerves'), +(1358, '27036', 'Capsulectomy or Capsulotomy, Hip, w/ or w/o Excision of Heterotopic Bone, w/Release of Hip Flexor Muscles (ie, gluteus medius, gluteus minimus, tensor fascia latae, rectus femoris, sartorius, iliopsoas)'), +(1359, '27040', 'Biopsy, Soft Tissue of Pelvis & Hip Area; Superficial'), +(1360, '27041', 'Biopsy, Soft Tissue of Pelvis & Hip Area; Deep, Subfascial or Intramuscular'), +(1361, '27043', 'Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subcutaneous; 3 cm or Greater'), +(1362, '27045', 'Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subfascial (eg, intramuscular); 5 cm or Greater'), +(1363, '27047', 'Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subcutaneous; Less than 3 cm'), +(1364, '27048', 'Excision, Tumor, Soft Tissue of Pelvis & Hip Area, Subfascial (eg, intramuscular); Less than 5 cm'), +(1365, '27049', 'Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Pelvis & Hip Area; Less than 5 cm'), +(1366, '27050', 'Arthrotomy, w/Biopsy; Sacroiliac Joint'), +(1367, '27052', 'Arthrotomy, w/Biopsy; Hip Joint'), +(1368, '27054', 'Arthrotomy w/Synovectomy, Hip Joint'); +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(1369, '27057', 'Decompression fasciotomy(ies), pelvic (buttock) compartment(s) (eg, gluteus medius-minimus, gluteus maximus, iliopsoas, and/or tensor fascia lata muscle) with debridement of nonviable muscle, unilateral'), +(1370, '27059', 'Radical resection of tumor (eg, sarcoma), soft tissue of pelvis and hip area; 5 cm or greater'), +(1371, '27060', 'Excision; Ischial Bursa'), +(1372, '27062', 'Excision; Trochanteric Bursa or Calcification'), +(1373, '27065', 'Excision of Bone Cyst or Benign Tumor, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur; Superficial, Includes Autograft, when Performed'), +(1374, '27066', 'Excision of Bone Cyst or Benign Tumor, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur; Deep (subfascial), Includes Autograft, when Performed'), +(1375, '27067', 'Excision of Bone Cyst or Benign Tumor, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur; w/Autograft Requiring Separate Incision'), +(1376, '27070', 'Partial Excision, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur, (craterization, saucerization) (eg, osteomyelitis or bone abscess); Superficial'), +(1377, '27071', 'Partial Excision, Wing of Ilium, Symphysis Pubis, or Greater Trochanter of Femur, (craterization, saucerization) (eg, osteomyelitis or bone abscess); Deep (subfascial or intramuscular)'), +(1378, '27075', 'Radical Resection of Tumor; Wing of Ilium, 1 Pubic or Ischial Ramus or Symphysis Pubis'), +(1379, '27076', 'Radical Resection of Tumor; Ilium, Including Acetabulum, Both Pubic Rami, or Ischium & Acetabulum'), +(1380, '27077', 'Radical Resection of Tumor; Innominate Bone, Total'), +(1381, '27078', 'Radical Resection of Tumor; Ischial Tuberosity & Greater Trochanter of Femur'), +(1382, '27080', 'Coccygectomy, Primary'), +(1383, '27086', 'Removal of Foreign Body, Pelvis or Hip; Subcutaneous Tissue'), +(1384, '27087', 'Removal of Foreign Body, Pelvis or Hip; Deep (subfascial or intramuscular)'), +(1385, '27090', 'Removal of Hip Prosthesis; (separate procedure)'), +(1386, '27091', 'Removal of Hip Prosthesis; Complicated, Including Total Hip Prosthesis, Methylmethacrylate w/ or w/Out Insertion of Spacer'), +(1387, '27093', 'Injection for Hip X-Ray'), +(1388, '27095', 'Injection Procedure for Hip Arthrography; w/Anesthesia'), +(1389, '27096', 'Sacroiliac Joint Injection (SIJ)'), +(1390, '27097', 'Release or Recession, Hamstring, Proximal'), +(1391, '27098', 'Transfer, adductor to ischium'), +(1392, '27100', 'Transfer external oblique muscle to greater trochanter including fascial or tendon extension (graft)'), +(1393, '27105', 'Transfer paraspinal muscle to hip (includes fascial or tendon extension graft)'), +(1394, '27110', 'Transfer iliopsoas; to greater trochanter of femur'), +(1395, '27111', 'Transfer iliopsoas; to femoral neck'), +(1396, '27120', 'Acetabuloplasty; (eg, Whitman, Colonna, Haygroves, or cup type)'), +(1397, '27122', 'Acetabuloplasty; resection, femoral head (eg, Girdlestone procedure)'), +(1398, '27125', 'Hemiarthroplasty, hip, partial (eg, femoral stem prosthesis, bipolar arthroplasty)'), +(1399, '27130', 'Arthroplasty, acetabular and proximal femoral prosthetic replacement (total hip arthroplasty), with or without autograft or allograft'), +(1400, '27132', 'Conversion of previous hip surgery to total hip arthroplasty, with or without autograft or allograft'), +(1401, '27134', 'Revision of total hip arthroplasty; both components, with or without autograft or allograft'), +(1402, '27137', 'Revision of total hip arthroplasty; acetabular component only, with or without autograft or allograft'), +(1403, '27138', 'Revision of total hip arthroplasty; femoral component only, with or without allograft'), +(1404, '27140', 'Osteotomy and transfer of greater trochanter of femur (separate procedure)'), +(1405, '27146', 'Osteotomy, iliac, acetabular or innominate bone;'), +(1406, '27147', 'Osteotomy, iliac, acetabular or innominate bone; with open reduction of hip'), +(1407, '27151', 'Osteotomy, iliac, acetabular or innominate bone; with femoral osteotomy'), +(1408, '27156', 'Osteotomy, iliac, acetabular or innominate bone; with femoral osteotomy and with open reduction of hip'), +(1409, '27158', 'Osteotomy, pelvis, bilateral (eg, congenital malformation)'), +(1410, '27161', 'Osteotomy, femoral neck (separate procedure)'), +(1411, '27165', 'Osteotomy, intertrochanteric or subtrochanteric including internal or external fixation and/or cast'), +(1412, '27170', 'Bone graft, femoral head, neck, intertrochanteric or subtrochanteric area (includes obtaining bone graft)'), +(1413, '27175', 'Treatment of slipped femoral epiphysis; by traction, without reduction'), +(1414, '27176', 'Treatment of slipped femoral epiphysis; by single or multiple pinning, in situ'), +(1415, '27177', 'Open treatment of slipped femoral epiphysis; single or multiple pinning or bone graft (includes obtaining graft)'), +(1416, '27178', 'Open treatment of slipped femoral epiphysis; closed manipulation with single or multiple pinning'), +(1417, '27179', 'Open treatment of slipped femoral epiphysis; osteoplasty of femoral neck (Heyman type procedure)'), +(1418, '27181', 'Open treatment of slipped femoral epiphysis; osteotomy and internal fixation'), +(1419, '27185', 'Epiphyseal arrest by epiphysiodesis or stapling, greater trochanter of femur'), +(1420, '27187', 'Prophylactic treatment (nailing, pinning, plating or wiring) with or without methylmethacrylate, femoral neck and proximal femur'), +(1421, '27193', 'Closed treatment of pelvic ring fracture, dislocation, diastasis or subluxation; without manipulation'), +(1422, '27194', 'Closed treatment of pelvic ring fracture, dislocation, diastasis or subluxation; with manipulation, requiring more than local anesthesia'), +(1423, '27200', 'Closed Treatment of Coccygeal Fracture'), +(1424, '27202', 'Open Treatment of Coccygeal Fracture'), +(1425, '27215', 'Open treatment of iliac spine(s), tuberosity avulsion, or iliac wing fracture(s), unilateral, for pelvic bone fracture patterns that do not disrupt the pelvic ring, includes internal fixation, when performed'), +(1426, '27216', 'Percutaneous skeletal fixation of posterior pelvic bone fracture and/or dislocation, for fracture patterns that disrupt the pelvic ring, unilateral (includes ipsilateral ilium, sacroiliac joint and/or sacrum)'), +(1427, '27217', 'Open treatment of anterior pelvic bone fracture and/or dislocation for fracture patterns that disrupt the pelvic ring, unilateral, includes internal fixation, when performed (includes pubic symphysis and/or ipsilateral superior/inferior rami)'), +(1428, '27218', 'Open treatment of posterior pelvic bone fracture and/or dislocation, for fracture patterns that disrupt the pelvic ring, unilateral, includes internal fixation, when performed (includes ipsilateral ilium, sacroiliac joint and/or sacrum)'), +(1429, '27220', 'Closed treatment of acetabulum (hip socket) fracture(s); without manipulation'), +(1430, '27222', 'Closed treatment of acetabulum (hip socket) fracture(s); with manipulation, with or without skeletal traction'), +(1431, '27226', 'Open treatment of posterior or anterior acetabular wall fracture, with internal fixation'), +(1432, '27227', 'Open treatment of acetabular fracture(s) involving anterior or posterior (one) column, or a fracture running transversely across the acetabulum, with internal fixation'), +(1433, '27228', 'Open treatment of acetabular fracture(s) involving anterior and posterior (two) columns, includes T-fracture and both column fracture with complete articular detachment, or single column or transverse fracture with associated acetabular wall fracture, with internal fixation'), +(1434, '27230', 'Closed treatment of femoral fracture, proximal end, neck; without manipulation'), +(1435, '27232', 'Closed treatment of femoral fracture, proximal end, neck; with manipulation, with or without skeletal traction'), +(1436, '27235', 'Percutaneous skeletal fixation of femoral fracture, proximal end, neck'), +(1437, '27236', 'Open treatment of femoral fracture, proximal end, neck, internal fixation or prosthetic replacement'), +(1438, '27238', 'Closed treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; without manipulation'), +(1439, '27240', 'Closed treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; with manipulation, with or without skin or skeletal traction'), +(1440, '27244', 'Treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; with plate/screw type implant, with or without cerclage'), +(1441, '27245', 'Treatment of intertrochanteric, peritrochanteric, or subtrochanteric femoral fracture; with intramedullary implant, with or without interlocking screws and/or cerclage'), +(1442, '27246', 'Closed treatment of greater trochanteric fracture, without manipulation'), +(1443, '27248', 'Open treatment of greater trochanteric fracture, includes internal fixation, when performed'), +(1444, '27250', 'Closed treatment of hip dislocation, traumatic; without anesthesia'), +(1445, '27252', 'Closed treatment of hip dislocation, traumatic; requiring anesthesia'), +(1446, '27253', 'Open treatment of hip dislocation, traumatic, without internal fixation'), +(1447, '27254', 'Open treatment of hip dislocation, traumatic, with acetabular wall and femoral head fracture, with or without internal or external fixation'), +(1448, '27256', 'Treatment of spontaneous hip dislocation (developmental, including congenital or pathological), by abduction, splint or traction; without anesthesia, without manipulation'), +(1449, '27257', 'Treatment of spontaneous hip dislocation (developmental, including congenital or pathological), by abduction, splint or traction; with manipulation, requiring anesthesia'), +(1450, '27258', 'Open treatment of spontaneous hip dislocation (developmental, including congenital or pathological), replacement of femoral head in acetabulum (including tenotomy, etc);'), +(1451, '27259', 'Open treatment of spontaneous hip dislocation (developmental, including congenital or pathological), replacement of femoral head in acetabulum (including tenotomy, etc); with femoral shaft shortening'), +(1452, '27265', 'Closed treatment of post hip arthroplasty dislocation; without anesthesia'), +(1453, '27266', 'Closed treatment of post hip arthroplasty dislocation; requiring regional or general anesthesia'), +(1454, '27267', 'Closed treatment of femoral fracture, proximal end, head; without manipulation'), +(1455, '27268', 'Closed treatment of femoral fracture, proximal end, head; with manipulation'), +(1456, '27269', 'Open treatment of femoral fracture, proximal end, head, includes internal fixation, when performed'), +(1457, '27275', 'Manipulation, Hip Joint, Requiring General Anesthesia'), +(1458, '27279', 'Arthrodesis, Sacroiliac Joint, Percutaneous or Minimally Invasive (indirect visualization), w/Image Guidance, Includes Obtaining Bone Graft when Performed, & Placement of Transfixing Device'), +(1459, '27280', 'Arthrodesis, Open, Sacroiliac Joint, Including Obtaining Bone Graft, Including Instrumentation, when Performed'), +(1460, '27282', 'Arthrodesis, symphysis pubis (including obtaining graft)'), +(1461, '27284', 'Arthrodesis, hip joint (including obtaining graft);'), +(1462, '27286', 'Arthrodesis, hip joint (including obtaining graft); with subtrochanteric osteotomy'), +(1463, '27290', 'Interpelviabdominal amputation (hindquarter amputation)'), +(1464, '27295', 'Disarticulation of hip'), +(1465, '27299', 'Unlisted procedure, pelvis or hip joint'), +(1466, '27301', 'Incision & Drainage, Deep Abscess, Bursa, or Hematoma, Thigh or Knee Region'), +(1467, '27303', 'Incision, deep, with opening of Bone Cortex, Femur or Knee (eg, osteomyelitis or bone abscess)'), +(1468, '27305', 'Fasciotomy, iliotibial (tenotomy), open'), +(1469, '27306', 'Tenotomy, Percutaneous, Adductor or Hamstring; Single Tendon'), +(1470, '27307', 'Tenotomy, Percutaneous, Adductor or Hamstring; Multiple Tendons'), +(1471, '27310', 'Arthrotomy, Knee, w/Exploration, Drainage, or Removal of Foreign Body (eg, infection)'), +(1472, '27323', 'Biopsy, Soft Tissue of Thigh or Knee Area; Superficial'), +(1473, '27324', 'Biopsy, Soft Tissue of Thigh or Knee Area; Deep (subfascial or intramuscular)'), +(1474, '27325', 'Neurectomy, Hamstring Muscle'), +(1475, '27326', 'Neurectomy, Popliteal (gastrocnemius)'), +(1476, '27327', 'Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subcutaneous; Less than 3 cm'), +(1477, '27328', 'Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subfascial (eg, intramuscular); Less than 5 cm'), +(1478, '27329', 'Radical Resection of Tumor (eg, sarcoma), Soft Tissue of Thigh or Knee Area; Less than 5 cm'), +(1479, '27330', 'Arthrotomy, Knee; w/Synovial Biopsy Only'), +(1480, '27331', 'Arthrotomy, Knee; Including Joint Exploration, Biopsy, or Removal of Loose or Foreign Bodies'), +(1481, '27332', 'Arthrotomy, w/Excision of Semilunar Cartilage (meniscectomy) Knee; Medial or Lateral'), +(1482, '27333', 'Arthrotomy, w/Excision of Semilunar Cartilage (meniscectomy) Knee; Medial & Lateral'), +(1483, '27334', 'Arthrotomy, w/Synovectomy, Knee; Anterior or Posterior'), +(1484, '27335', 'Arthrotomy, w/Synovectomy, Knee; Anterior & Posterior Including Popliteal Area'), +(1485, '27337', 'Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subcutaneous; 3 cm or Greater'), +(1486, '27339', 'Excision, Tumor, Soft Tissue of Thigh or Knee Area, Subfascial (eg, intramuscular); 5 cm or Greater'), +(1487, '27340', 'Excision, Prepatellar Bursa'), +(1488, '27347', 'Excision of Lesion of Meniscus or Capsule (eg, cyst, ganglion), Knee'), +(1489, '27350', 'Patellectomy or Hemipatellectomy'), +(1490, '27355', 'Excision or Curettage of Bbone Cyst or Benign Tumor of Femur'), +(1491, '27356', 'Excision or Curettage of Bone Cyst or Benign Tumor of Femur; w/Allograft'), +(1492, '27357', 'Excision or Curettage of Bone Cyst or Benign Tumor of Femur; w/Autograft (includes obtaining graft)'), +(1493, '27358', 'Excision or Curettage of Bone Cyst or Benign Tumor of Femur; w/Internal Fixation'), +(1494, '27360', 'Partial excision (craterization, saucerization, or diaphysectomy) bone, femur, proximal tibia and/or fibula (eg, osteomyelitis or bone abscess)'), +(1495, '27364', 'Radical resection of tumor (eg, sarcoma), soft tissue of thigh or knee area; 5 cm or greater'), +(1496, '27365', 'Radical resection of tumor, femur or knee'), +(1497, '27370', 'Injection of Contrast for Knee Arthrogram'), +(1498, '27372', 'Removal of Foreign Body, Deep, Thigh Region or Knee Area'), +(1499, '27380', 'Suture of Infrapatellar Tendon; Primary'), +(1500, '27381', 'Suture of Infrapatellar Tendon; Secondary Reconstruction, Including Fascial or Tendon Graft'), +(1501, '27385', 'Suture of Quadriceps or Hamstring Muscle Rupture; Primary'), +(1502, '27386', 'Suture of Quadriceps or Hamstring Muscle Rupture; Secondary Reconstruction, Including Fascial or Tendon Graft'), +(1503, '27390', 'Tenotomy, open, hamstring, knee to hip; single tendon'), +(1504, '27391', 'Tenotomy, open, hamstring, knee to hip; multiple tendons, 1 leg'), +(1505, '27392', 'Tenotomy, open, hamstring, knee to hip; multiple tendons, bilateral'), +(1506, '27393', 'Lengthening of hamstring tendon; single tendon'), +(1507, '27394', 'Lengthening of hamstring tendon; multiple tendons, 1 leg'), +(1508, '27395', 'Lengthening of hamstring tendon; multiple tendons, bilateral'), +(1509, '27396', 'Transplant or transfer (with muscle redirection or rerouting), thigh (eg, extensor to flexor); single tendon'), +(1510, '27397', 'Transplant or transfer (with muscle redirection or rerouting), thigh (eg, extensor to flexor); multiple tendons'), +(1511, '27403', 'Arthrotomy w/Meniscus Repair, Knee'), +(1512, '27405', 'Repair, primary, Torn Ligament and/or Capsule, Knee; Collateral'), +(1513, '27407', 'Repair, Primary, Torn Ligament and/or Capsule, Knee; Cruciate'), +(1514, '27409', 'Repair, Primary, Torn Ligament and/or Capsule, Knee; Collateral & Cruciate Ligaments'), +(1515, '27412', 'Autologous Chondrocyte Implantation, Knee'), +(1516, '27415', 'Osteochondral Allograft, Knee, Open'), +(1517, '27416', 'Osteochondral Autograft(s), Knee, Open (eg, mosaicplasty'), +(1518, '27418', 'Anterior tibial tubercleplasty (eg, Maquet type procedure)'), +(1519, '27420', 'Reconstruction of Dislocating Patella; (eg, Hauser type procedure)'), +(1520, '27422', 'Reconstruction of Dislocating Patella; w/Extensor Realignment and/or Muscle Advancement or Release (eg, Campbell, Goldwaite type procedure)'), +(1521, '27424', 'Reconstruction of Dislocating Patella; w/Patellectomy'), +(1522, '27425', 'Lateral Retinacular Release, Open'), +(1523, '27427', 'Ligamentous Reconstruction (augmentation), Knee; Extra-Articular'), +(1524, '27428', 'Ligamentous Reconstruction (augmentation), Knee; Intra-Articular (open)'), +(1525, '27429', 'Ligamentous Reconstruction (augmentation), Knee; Intra-Articular (open) & Extra-Articular'), +(1526, '27430', 'Quadricepsplasty (eg, Bennett or Thompson type)'), +(1527, '27435', 'Capsulotomy, Posterior Capsular Release, Knee'), +(1528, '27437', 'Arthroplasty, patella; without prosthesis'), +(1529, '27438', 'Arthroplasty, patella; with prosthesis'), +(1530, '27440', 'Arthroplasty, knee, tibial plateau;'), +(1531, '27441', 'Arthroplasty, knee, tibial plateau; with debridement and partial synovectomy'), +(1532, '27442', 'Arthroplasty, femoral condyles or tibial plateau(s), knee;'), +(1533, '27443', 'Arthroplasty, femoral condyles or tibial plateau(s), knee; with debridement and partial synovectomy'), +(1534, '27445', 'Arthroplasty, knee, hinge prosthesis (eg, Walldius type)'), +(1535, '27446', 'Arthroplasty, knee, condyle and plateau; medial OR lateral compartment'), +(1536, '27447', 'Arthroplasty, knee, condyle and plateau; medial AND lateral compartments with or without patella resurfacing (total knee arthroplasty)'), +(1537, '27448', 'Osteotomy, femur, shaft or supracondylar; without fixation'), +(1538, '27450', 'Osteotomy, femur, shaft or supracondylar; with fixation'), +(1539, '27454', 'Osteotomy, multiple, with realignment on intramedullary rod, femoral shaft (eg, Sofield type procedure)'), +(1540, '27455', 'Osteotomy, proximal tibia, including fibular excision or osteotomy (includes correction of genu varus [bowleg] or genu valgus [knock-knee]); before epiphyseal closure'), +(1541, '27457', 'Osteotomy, proximal tibia, including fibular excision or osteotomy (includes correction of genu varus [bowleg] or genu valgus [knock-knee]); after epiphyseal closure'), +(1542, '27465', 'Osteoplasty, femur; shortening (excluding 64876)'), +(1543, '27466', 'Osteoplasty, femur; lengthening'), +(1544, '27468', 'Osteoplasty, femur; combined, lengthening and shortening with femoral segment transfer'), +(1545, '27470', 'Repair, nonunion or malunion, femur, distal to head and neck; without graft (eg, compression technique)'), +(1546, '27472', 'Repair, nonunion or malunion, femur, distal to head and neck; with iliac or other autogenous bone graft (includes obtaining graft)'), +(1547, '27475', 'Arrest, epiphyseal, any method (eg, epiphysiodesis); distal femur'), +(1548, '27477', 'Arrest, epiphyseal, any method (eg, epiphysiodesis); tibia and fibula, proximal'), +(1549, '27479', 'Arrest, epiphyseal, any method (eg, epiphysiodesis); combined distal femur, proximal tibia and fibula'), +(1550, '27485', 'Arrest, hemiepiphyseal, distal femur or proximal tibia or fibula (eg, genu varus or valgus)'), +(1551, '27486', 'Revision of total knee arthroplasty, with or without allograft; 1 component'), +(1552, '27487', 'Revision of total knee arthroplasty, with or without allograft; femoral and entire tibial component'), +(1553, '27488', 'Removal of prosthesis, including total knee prosthesis, methylmethacrylate with or without insertion of spacer, knee'), +(1554, '27495', 'Prophylactic Treatment (nailing, pinning, plating, or wiring) w/ or w/o Methylmethacrylate, Femur'), +(1555, '27496', 'Decompression fasciotomy, thigh and/or knee, 1 compartment (flexor or extensor or adductor);'), +(1556, '27497', 'Decompression fasciotomy, thigh and/or knee, 1 compartment (flexor or extensor or adductor); with debridement of nonviable muscle and/or nerve'), +(1557, '27498', 'Decompression fasciotomy, thigh and/or knee, multiple compartments;'), +(1558, '27499', 'Decompression fasciotomy, thigh and/or knee, multiple compartments; with debridement of nonviable muscle and/or nerve'), +(1559, '27500', 'Closed treatment of femoral shaft fracture, without manipulation'), +(1560, '27501', 'Closed treatment of supracondylar or transcondylar femoral fracture with or without intercondylar extension, without manipulation'), +(1561, '27502', 'Closed treatment of femoral shaft fracture, with manipulation, with or without skin or skeletal traction'), +(1562, '27503', 'Closed treatment of supracondylar or transcondylar femoral fracture with or without intercondylar extension, with manipulation, with or without skin or skeletal traction'), +(1563, '27506', 'Open treatment of femoral shaft fracture, with or without external fixation, with insertion of intramedullary implant, with or without cerclage and/or locking screws'), +(1564, '27507', 'Open treatment of femoral shaft fracture with plate/screws, with or without cerclage'), +(1565, '27508', 'Closed treatment of femoral fracture, distal end, medial or lateral condyle, without manipulation'), +(1566, '27509', 'Percutaneous skeletal fixation of femoral fracture, distal end, medial or lateral condyle, or supracondylar or transcondylar, with or without intercondylar extension, or distal femoral epiphyseal separation'), +(1567, '27510', 'Closed treatment of femoral fracture, distal end, medial or lateral condyle, with manipulation'), +(1568, '27511', 'Open treatment of femoral supracondylar or transcondylar fracture without intercondylar extension, includes internal fixation, when performed'), +(1569, '27513', 'Open treatment of femoral supracondylar or transcondylar fracture with intercondylar extension, includes internal fixation, when performed'), +(1570, '27514', 'Open treatment of femoral fracture, distal end, medial or lateral condyle, includes internal fixation, when performed'), +(1571, '27516', 'Closed treatment of distal femoral epiphyseal separation; without manipulation'), +(1572, '27517', 'Closed treatment of distal femoral epiphyseal separation; with manipulation, with or without skin or skeletal traction'), +(1573, '27519', 'Open treatment of distal femoral epiphyseal separation, includes internal fixation, when performed'), +(1574, '27520', 'Closed Treatment of Patellar Fracture, w/Out Manipulation'), +(1575, '27524', 'Open Treatment of Patellar Fracture, w/Internal Fixation and/or Partial or Complete Patellectomy & Soft Tissue Repair'), +(1576, '27530', 'Closed Treatment of Tibial Fracture, Proximal (plateau); w/Out Manipulation'), +(1577, '27532', 'Closed Treatment of Tibial Fracture, Proximal (plateau); w/ or w/Out Manipulation, w/Skeletal Traction'), +(1578, '27535', 'Open treatment of tibial fracture, proximal (plateau); unicondylar, includes internal fixation, when performed'), +(1579, '27536', 'Open treatment of tibial fracture, proximal (plateau); bicondylar, with or without internal fixation'), +(1580, '27538', 'Closed Treatment of Intercondylar Spine(s) and/or Tuberosity Fracture(s) of Knee, w/ or w/Out Manipulation'), +(1581, '27540', 'Open treatment of intercondylar spine(s) and/or tuberosity fracture(s) of the knee, includes internal fixation, when performed'), +(1582, '27550', 'Closed Treatment of Knee Dislocation; w/Out Anesthesia'), +(1583, '27552', 'Closed Treatment of Knee Dislocation; Requiring Anesthesia'), +(1584, '27556', 'Open treatment of knee dislocation, includes internal fixation, when performed; without primary ligamentous repair or augmentation/reconstruction'), +(1585, '27557', 'Open treatment of knee dislocation, includes internal fixation, when performed; with primary ligamentous repair'), +(1586, '27558', 'Open treatment of knee dislocation, includes internal fixation, when performed; with primary ligamentous repair, with augmentation/reconstruction'), +(1587, '27560', 'Closed Treatment of Patellar Dislocation; w/Out Anesthesia'), +(1588, '27562', 'Closed Treatment of Patellar Dislocation; Requiring Anesthesia'), +(1589, '27566', 'Open treatment of patellar dislocation, with or without partial or total patellectomy'), +(1590, '27570', 'Manipulation of Knee Joint Under General Anesthesia'), +(1591, '27580', 'Arthrodesis, Knee, Any Technique'), +(1592, '27590', 'Amputation, thigh, through femur, any level;'), +(1593, '27591', 'Amputation, thigh, through femur, any level; immediate fitting technique including first cast'), +(1594, '27592', 'Amputation, thigh, through femur, any level; open, circular (guillotine)'), +(1595, '27594', 'Amputation, thigh, through femur, any level; secondary closure or scar revision'), +(1596, '27596', 'Amputation, thigh, through femur, any level; re-amputation'), +(1597, '27598', 'Disarticulation at knee'), +(1598, '27599', 'Unlisted procedure, femur or knee'), +(1599, '27600', 'Decompression fasciotomy, leg; anterior and/or lateral compartments only'), +(1600, '27601', 'Decompression fasciotomy, leg; posterior compartment(s) only'), +(1601, '27602', 'Decompression fasciotomy, leg; anterior and/or lateral, and posterior compartment(s)'), +(1602, '27603', 'Incision & Drainage, Leg or Ankle; Deep Abscess or Hematoma'), +(1603, '27604', 'Incisions & Drainage Leg/Ankle Infected Bursa'), +(1604, '27605', 'Tenotomy, Percutaneous, Achilles Tendon; Local Anesthesia'), +(1605, '27606', 'Tenotomy, Percutaneous, Achilles Tendon; General Anesthesia'), +(1606, '27607', 'Incision (eg, osteomyelitis or bone abscess), Leg or Ankle'), +(1607, '27610', 'Arthrotomy, Ankle, Including Exploration, Drainage, or Removal of Foreign Body'), +(1608, '27612', 'Arthrotomy, Posterior Capsular Release, Ankle, w/ or w/Out Achilles Tendon Lengthening'), +(1609, '27613', 'Biopsy Soft Tissue Leg/Ankle Area Superficial'), +(1610, '27614', 'Biopsy, Soft Tissue of Leg or Ankle Area; Deep (subfascial or intramuscular)'), +(1611, '27615', 'Radical resection of tumor (eg, sarcoma), soft tissue of leg or ankle area; less than 5 cm'), +(1612, '27616', 'Radical resection of tumor (eg, sarcoma), soft tissue of leg or ankle area; 5 cm or greater'), +(1613, '27618', 'Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subcutaneous; Less than 3 cm'), +(1614, '27619', 'Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subfascial (eg, intramuscular); Less than 5 cm'), +(1615, '27620', 'Arthrotomy, Ankle, w/Joint Exploration, w/ or w/Out Biopsy, w/or w/Out Removal of Loose or Foreign Body'), +(1616, '27625', 'Arthrotomy Ankle for Synovectomy'), +(1617, '27626', 'Arthrotomy, w/Synovectomy, Ankle; Including Tenosynovectomy'), +(1618, '27630', 'Excision of Lesion of Tendon Sheath or Capsule (eg, cyst or ganglion), Leg and/or Ankle'), +(1619, '27632', 'Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subcutaneous; 3 cm or Greater'), +(1620, '27634', 'Excision, Tumor, Soft Tissue of Leg or Ankle Area, Subfascial (eg, intramuscular); 5 cm or Greater'), +(1621, '27635', 'Excision or Curettage of Bone Cyst or Benign Tumor, Tibia or Fibula'), +(1622, '27637', 'Excision or Curettage of Bone Cyst or Benign Tumor, Tibia or Fibula; w/Autograft'), +(1623, '27638', 'Excision or Curettage of Bone Cyst or Benign Tumor, Tibia or Fibula; w/Allograft'), +(1624, '27640', 'Partial Excision (craterization, saucerization, or diaphysectomy), Bone (eg, osteomyelitis); Tibia'), +(1625, '27641', 'Partial Excision (craterization, saucerization, or diaphysectomy), Bone (eg, osteomyelitis); Fibula'), +(1626, '27645', 'Radical resection of tumor; tibia'), +(1627, '27646', 'Radical resection of tumor; fibula'), +(1628, '27647', 'Radical resection of tumor; talus or calcaneus'), +(1629, '27648', 'Injection Procedure for Ankle Arthrography'), +(1630, '27650', 'Achilles Tendon Primary Repair'), +(1631, '27652', 'Achilles Tendon Primary w/Graft'), +(1632, '27654', 'Repair, Secondary, Achilles Tendon, w/ or w/Out Graft'), +(1633, '27656', 'Repair, Fascial Defect of Leg'), +(1634, '27658', 'Repair Flexor Tendon Leg Primary w/Out Graft Each'), +(1635, '27659', 'Rpr Flexor Tendon Leg Secondary w/Out Graft'), +(1636, '27664', 'Repair, Extensor Tendon, Leg; Primary, w/Out Graft, Each Tendon'), +(1637, '27665', 'Repair, Extensor Tendon, Leg; Secondary, w/ or w/Out Graft, Each Tendon'), +(1638, '27675', 'Repair Dislocating Peroneal Tendon'), +(1639, '27676', 'Repair, Dislocating Peroneal Tendons; w/Fibular Osteotomy'), +(1640, '27680', 'Tenolysis, Flexor or Extensor Tendon, Leg and/or Ankle; Single, Each Tendon'), +(1641, '27681', 'Tenolysis, Flexor or Extensor Tendon, Leg and/or Ankle; Multiple Tendons'), +(1642, '27685', 'Achilles Lengthening'), +(1643, '27686', 'Lengthening or Shortening of Tendon, Leg or Ankle; Multiple Tendons, Each'), +(1644, '27687', 'Gastrocnemius Recession'), +(1645, '27690', 'Transfer or Transplant of Single Tendon (with muscle redirection or rerouting); Superficial (eg, anterior tibial extensors into midfoot)'), +(1646, '27691', 'Transfer or Transplant of Single Tendon (with muscle redirection or rerouting); Deep (eg, anterior tibial or posterior tibial through interosseous space, flexor digitorum longus, flexor hallucis longus, or peroneal tendon to midfoot or hindfoot)'), +(1647, '27692', 'Transfer or Transplant of Single Tendon (with muscle redirection or rerouting); Each Addtl Tendon'), +(1648, '27695', 'Repair, Primary, Disrupted Ligament, Ankle; Collateral'), +(1649, '27696', 'Repair, Primary, Disrupted Ligament, Ankle; Both Collateral Ligaments'), +(1650, '27698', 'Lateral Ankle Stabilization Procedure'), +(1651, '27700', 'Arthroplasty, ankle;'), +(1652, '27702', 'Arthroplasty, ankle; with implant (total ankle)'), +(1653, '27703', 'Arthroplasty, ankle; revision, total ankle'), +(1654, '27704', 'Removal of ankle implant'), +(1655, '27705', 'Osteotomy; Tibia'), +(1656, '27707', 'Osteotomy; Fibula'), +(1657, '27709', 'Osteotomy; Tibia & Fibula'), +(1658, '27712', 'Osteotomy; Multiple, w/Realignment on Intramedullary Rod (eg, Sofield type procedure)'), +(1659, '27715', 'Osteoplasty, tibia and fibula, lengthening or shortening'), +(1660, '27720', 'Repair of nonunion or malunion, tibia; without graft, (eg, compression technique)'), +(1661, '27722', 'Repair of nonunion or malunion, tibia; with sliding graft'), +(1662, '27724', 'Repair of nonunion or malunion, tibia; with iliac or other autograft (includes obtaining graft)'), +(1663, '27725', 'Repair of nonunion or malunion, tibia; by synostosis, with fibula, any method'), +(1664, '27726', 'Repair of fibula nonunion and/or malunion with internal fixation'), +(1665, '27727', 'Repair of congenital pseudarthrosis, tibia'), +(1666, '27730', 'Arrest, epiphyseal (epiphysiodesis), open; distal tibia'), +(1667, '27732', 'Arrest, epiphyseal (epiphysiodesis), open; distal fibula'), +(1668, '27734', 'Arrest, epiphyseal (epiphysiodesis), open; distal tibia and fibula'), +(1669, '27740', 'Arrest, epiphyseal (epiphysiodesis), any method, combined, proximal and distal tibia and fibula;'), +(1670, '27742', 'Arrest, epiphyseal (epiphysiodesis), any method, combined, proximal and distal tibia and fibula; and distal femur'), +(1671, '27745', 'Prophylactic Treatment (nailing, pinning, plating or wiring) w/ or w/o Methylmethacrylate, Tibia'), +(1672, '27750', 'Closed Treatment of Tibial Shaft Fracture (with or without fibular fracture); w/Out Manipulation'), +(1673, '27752', 'Closed Treatment of Tibial Shaft Fracture (with or without fibular fracture); w/Manipulation, w/ or w/Out Skeletal Traction'), +(1674, '27756', 'Percutaneous Skeletal Fixation of Tibial Shaft Fracture (with or without fibular fracture) (eg, pins or screws)'), +(1675, '27758', 'Open treatment of tibial shaft fracture (with or without fibular fracture), with plate/screws, with or without cerclage'), +(1676, '27759', 'Treatment of tibial shaft fracture (with or without fibular fracture) by intramedullary implant, with or without interlocking screws and/or cerclage'), +(1677, '27760', 'Closed Treatment of Medial Malleolus Fracture; w/Out Manipulation'), +(1678, '27762', 'Closed Treatment of Medial Malleolus Fracture; w/Manipulation, w/ or w/Out Skin or Skeletal Traction'), +(1679, '27766', 'Open Treatment of Medial Malleolus Fracture, Includes Internal Fixation, when Performed'), +(1680, '27767', 'Closed Treatment of Posterior Malleolus Fracture; w/Out Manipulation'), +(1681, '27768', 'Closed Treatment of Posterior Malleolus Fracture; w/Manipulation'), +(1682, '27769', 'Open Treatment of Posterior Malleolus Fracture, Includes Internal Fixation, when Performed'), +(1683, '27780', 'Closed Treatment of Proximal Fibula or Shaft Fracture; w/Out Manipulation'), +(1684, '27781', 'Closed Treatment of Proximal Fibula or Shaft Fracture; w/Manipulation'), +(1685, '27784', 'Open Treatment of Proximal Fibula or Shaft Fracture, Includes Internal Fixation, when Performed'), +(1686, '27786', 'Closed Treatment of Distal Fibular Fracture (lateral malleolus); w/Out Manipulation'), +(1687, '27788', 'Closed Treatment of Distal Fibular Fracture (lateral malleolus); w/Manipulation'), +(1688, '27792', 'Open tx Distal Fib fx (Lat Malleolus) w & w/Out Int Fix'), +(1689, '27808', 'Closed Treatment of Bimalleolar Ankle Fracture (eg, lateral and medial malleoli, or lateral and posterior malleoli or medial and posterior malleoli); w/Out Manipulation'), +(1690, '27810', 'Closed Treatment of Bimalleolar Ankle Fracture (eg, lateral and medial malleoli, or lateral and posterior malleoli or medial and posterior malleoli); w/Manipulation'), +(1691, '27814', 'Open treatment of bimalleolar ankle fracture (eg, lateral and medial malleoli, or lateral and posterior malleoli, or medial and posterior malleoli), includes internal fixation, when performed'), +(1692, '27816', 'Closed Treatment of Trimalleolar Ankle Fracture; w/Out Manipulation'), +(1693, '27818', 'Closed Treatment of Trimalleolar Ankle Fracture; w/Manipulation'), +(1694, '27822', 'Open treatment of trimalleolar ankle fracture, includes internal fixation, when performed, medial and/or lateral malleolus; without Fixation of Posterior Lip'), +(1695, '27823', 'Open treatment of trimalleolar ankle fracture, includes internal fixation, when performed, medial and/or lateral malleolus; with fixation of posterior lip'), +(1696, '27824', 'Closed Treatment of Fracture of Weight Bearing Articular Portion of Distal Tibia (eg, pilon or tibial plafond), W/ or w/Out Anesthesia; w/Out Manipulation'), +(1697, '27825', 'Closed Treatment of Fracture of Weight Bearing Articular Portion of Distal Tibia (eg, pilon or tibial plafond), w/ or w/Out Anesthesia; w/Skeletal Traction and/or Requiring Manipulation'), +(1698, '27826', 'Open treatment of fracture of weight bearing articular Surface/Portion of Distal Tibia (eg, pilon or tibial plafond), w/Internal Fixation, when Performed; of Fibula Only'), +(1699, '27827', 'Open treatment of fracture of weight bearing articular surface/portion of distal tibia (eg, pilon or tibial plafond), with internal fixation, when performed; of tibia only'), +(1700, '27828', 'Open treatment of fracture of weight bearing articular surface/portion of distal tibia (eg, pilon or tibial plafond), with internal fixation, when performed; of both tibia and fibula'), +(1701, '27829', 'Open treatment of distal tibiofibular joint (syndesmosis) disruption, includes internal fixation, when performed'), +(1702, '27830', 'Closed Treatment of Proximal Tibiofibular Joint Dislocation; w/Out Anesthesia'), +(1703, '27831', 'Closed Treatment of Proximal Tibiofibular Joint Dislocation; Requiring Anesthesia'), +(1704, '27832', 'Open treatment of proximal tibiofibular joint dislocation, includes internal fixation, when performed, or with excision of proximal fibula'), +(1705, '27840', 'Closed Treatment of Ankle Dislocation; w/Out Anesthesia'), +(1706, '27842', 'Closed Treatment of Ankle Dislocation; Requiring Anesthesia, w/ or w/Out Percutaneous Skeletal Fixation'), +(1707, '27846', 'Open treatment of ankle dislocation, with or without percutaneous skeletal fixation; without repair or internal fixation'), +(1708, '27848', 'Open treatment of ankle dislocation, with or without percutaneous skeletal fixation; with repair or internal or external fixation'), +(1709, '27860', 'Manipulation of Ankle Under General Anesthesia'), +(1710, '27870', 'Arthrodesis, Ankle, Open'), +(1711, '27871', 'Arthrodesis, Tibiofibular Joint, Proximal or Distal'), +(1712, '27880', 'Amputation, leg, through tibia and fibula;'), +(1713, '27881', 'Amputation, leg, through tibia and fibula; with immediate fitting technique including application of first cast'), +(1714, '27882', 'Amputation, leg, through tibia and fibula; open, circular (guillotine)'), +(1715, '27884', 'Amputation, leg, through tibia and fibula; secondary closure or scar revision'), +(1716, '27886', 'Amputation, leg, through tibia and fibula; re-amputation'), +(1717, '27888', 'Amputation, ankle, through malleoli of tibia and fibula (eg, Syme, Pirogoff type procedures), with plastic closure and resection of nerves'), +(1718, '27889', 'Ankle disarticulation'), +(1719, '27892', 'Decompression fasciotomy, leg; anterior and/or lateral compartments only, with debridement of nonviable muscle and/or nerve'), +(1720, '27893', 'Decompression fasciotomy, leg; posterior compartment(s) only, with debridement of nonviable muscle and/or nerve'), +(1721, '27894', 'Decompression fasciotomy, leg; anterior and/or lateral, and posterior compartment(s), with debridement of nonviable muscle and/or nerve'), +(1722, '27899', 'Unlisted procedure, leg or ankle'), +(1723, '28001', 'Drainage of Bursa Foot'), +(1724, '28002', 'Incision and drainage below fascia, with or without tendon sheath involvement, foot; single bursal space'), +(1725, '28003', 'Incision and drainage below fascia, with or without tendon sheath involvement, foot; multiple areas'), +(1726, '28005', 'Incision, bone cortex (eg, osteomyelitis or bone abscess), foot'), +(1727, '28008', 'Fasciotomy, foot and/or toe'), +(1728, '28010', 'Tenotomy, Percutaneous, Toe; Single Tendon'), +(1729, '28011', 'Tenotomy, Percutaneous, Toe; Multiple Tendons'), +(1730, '28020', 'Arthrotomy, Including Exploration, Drainage, or Removal of Loose or Foreign Body; Intertarsal or Tarsometatarsal Joint'), +(1731, '28022', 'Arthrotomy, Including Exploration, Drainage, or Removal of Loose or Foreign Body; Metatarsophalangeal Joint'), +(1732, '28024', 'Arthrotomy, Including Exploration, Drainage, or Removal of Loose or Foreign Body; Interphalangeal Joint'), +(1733, '28035', 'Decompression of Tibia Nerve'), +(1734, '28039', 'Excision, Tumor, Soft Tissue of Foot or Toe, Subcutaneous; 1.5 cm or Greater'), +(1735, '28041', 'Excision, Tumor, Soft Tissue of Foot or Toe, Subfascial (eg, intramuscular); 1.5 cm or Greater'), +(1736, '28043', 'Excision Tumor Subcutaneous of the Foot Less than 1.5 cm'), +(1737, '28045', 'Excision, Tumor, Soft Tissue of Foot or Toe, Subfascial (eg, intramuscular); Less than 1.5 cm'), +(1738, '28046', 'Radical resection of tumor (eg, sarcoma), soft tissue of foot or toe; less than 3 cm'), +(1739, '28047', 'Radical resection of tumor (eg, sarcoma), soft tissue of foot or toe; 3 cm or greater'), +(1740, '28050', 'Arthrotomy w/Biopsy; Intertarsal or Tarsometatarsal Joint'), +(1741, '28052', 'Arthrotomy Metatarsophalangeal Joint'), +(1742, '28054', 'Arthrotomy w/Biopsy; interphalangeal Joint'), +(1743, '28055', 'Neurectomy, Intrinsic Musculature of Foot'), +(1744, '28060', 'Fasciectomy, Plantar Fascia; Partial'), +(1745, '28062', 'Fasciectomy, Plantar Fascia; Radical'), +(1746, '28070', 'Synovectomy; Intertarsal or Tarsometatarsal Joint, Each'), +(1747, '28072', 'Synovectomy; Metatarsophalangeal Joint, Each'), +(1748, '28086', 'Synovectomy, Tendon Sheath, Foot; Flexor'), +(1749, '28088', 'Synovectomy, Tendon Sheath, Foot; Extensor'), +(1750, '28090', 'Exc Lesion Tendon Sheath/Capsule w/Synvct Foot'), +(1751, '28092', 'Excision Synovial/Gangln Cyst Toe'), +(1752, '28100', 'Excision or Curettage of Bone Cyst or Benign Tumor, Talus or Calcaneus'), +(1753, '28102', 'Excision or Curettage of Bone Cyst or Benign Tumor, Talus or Calcaneus; w/Iliac or Other Autograft'), +(1754, '28103', 'Excision or Curettage of Bone Cyst or Benign Tumor, Talus or Calcaneus; w/Allograft'), +(1755, '28104', 'Excision Bone Cyst Metatarsals'), +(1756, '28106', 'Excision or Curettage of Bone Cyst or Benign Tumor, Tarsal or Metatarsal, Except Talus or Calcaneus; w/Iliac or Other Autograft'), +(1757, '28107', 'Excision or Curettage of Bone Cyst or Benign Tumor, Tarsal or Metatarsal, Except Talus or Calcaneus; w/Allograft'), +(1758, '28108', 'Excision Bone Cyst Phalanges'), +(1759, '28110', 'Bunionette Ostectomy'), +(1760, '28111', 'Ostectomy, Complete Excision; First Metatarsal Head'), +(1761, '28112', 'Ostectomy, Complete Excision; Other Metatarsal Head (second, third or fourth)'), +(1762, '28113', 'Ostectomy Complete 5th Meta Head'), +(1763, '28114', 'Ostectomy, Complete Excision; all Metatarsal Heads, w/Partial Proximal Phalangectomy, Excluding First Metatarsal (eg, Clayton type procedure)'), +(1764, '28116', 'Ostectomy, Excision of Tarsal Coalition'), +(1765, '28118', 'Ostectomy, Calcaneus'), +(1766, '28119', 'Ostectomy Heel Spur'), +(1767, '28120', 'Partial Excision Bone Talus/Calcaneus'), +(1768, '28122', 'Partial Excision (craterization, saucerization, sequestrectomy, or diaphysectomy) Bone (eg, osteomyelitis or bossing); Tarsal or Metatarsal Bone, Except Talus or Calcaneus'), +(1769, '28124', 'Excision Partial Phalanx of Toe'), +(1770, '28126', 'Resection, Partial or Complete, Phalangeal Base, Each Toe'), +(1771, '28130', 'Talectomy (astragalectomy)'), +(1772, '28140', 'Metatarsectomy'), +(1773, '28150', 'Phalangectomy, Toe, Each Toe'), +(1774, '28153', 'Resection Condyle Distal End Phalanx Each Toe'), +(1775, '28160', 'Hemiphalangectomy/Interphalangeal Joint Exc Toe'), +(1776, '28171', 'Resection of Tumor or Bone Tarsal'), +(1777, '28173', 'Radical Resection of Tumor; Metatarsal'), +(1778, '28175', 'Resecion Bone Phalanx'), +(1779, '28190', 'Removal, Foreign Body, Foot; Subq'), +(1780, '28192', 'Removal of foreign body, foot; deep'), +(1781, '28193', 'Removal Foreign Body Foot Complicated'), +(1782, '28200', 'Repair of Foot Tendon'), +(1783, '28202', 'Repair, Tendon, Flexor, Foot; Secondary w/Free Graft, Each Tendon'), +(1784, '28208', 'Repair Tendon, Extensor, Foot'), +(1785, '28210', 'Repair, Tendon, Extensor, Foot; Secondary w/Free Graft, Each Tendon'), +(1786, '28220', 'Tenolysis, Flexor, Foot; Single Tendon'), +(1787, '28222', 'Tenolysis, Flexor, Foot; Multiple Tendons'), +(1788, '28225', 'Tenolysis, Extensor, Foot; Single Tendon'), +(1789, '28226', 'Tenolysis, Extensor, Foot; Multiple Tendons'), +(1790, '28230', 'Tenotomy, Open, Tendon Flexor; Foot, Single or mMultiple Tendon(s)'), +(1791, '28232', 'Flexor Tenotomy (Open) of Toe, Single Tendon'), +(1792, '28234', 'Tenotomy Open Extensor Foot/Toe Each Tendon'), +(1793, '28238', 'Reconstruction (advancement), Posterior Tibial Tendon w/Excision of Accessory Tarsal Navicular Bone (eg, Kidner type procedure)'), +(1794, '28240', 'Tenotomy, Lengthening, or Release, Abductor Hallucis Muscle'), +(1795, '28250', 'Division of Plantar Fascia and Muscle (eg, Steindler stripping)'), +(1796, '28260', 'Capsulotomy, Midfoot; Medial Release Only'), +(1797, '28261', 'Capsulotomy, Midfoot; w/Tendon Lengthening'), +(1798, '28262', 'Capsul Midfoot w/Pst Talotibl Capsul & Tdn Length'), +(1799, '28264', 'Capsulotomy, Midtarsal (eg, Heyman type procedure)'), +(1800, '28270', 'Capsulotomy; Metatarsophalangeal Joint, w/ or w/Out Tenorrhaphy, Each Joint'), +(1801, '28272', 'Capsulotomy; Interphalangeal Joint, Each Joint'), +(1802, '28280', 'Syndactylization Toes'), +(1803, '28285', 'Repair of Hammertoe'), +(1804, '28286', 'Correction, Cock-Up Fifth Toe, w/Plastic Skin Closure (eg, Ruiz-Mora type procedure)'), +(1805, '28288', 'Ostc Ortl Exostc/Condylc Metar Head'), +(1806, '28289', 'Hallux Rigidus w/Cheilectomy'), +(1807, '28290', 'Corrj Hallux Valgus w/ & w/Out Sesmdc Smpl Exostectomy'), +(1808, '28292', 'Correction of Bunion'), +(1809, '28293', 'Corrj Hallux Valgus w/ & w/Out Sesmdc Rescj jt w/Implt'), +(1810, '28294', 'Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; w/Tendon Transplants (eg, Joplin type procedure)'), +(1811, '28296', 'Austin Bunionectomy- Modified'), +(1812, '28297', 'Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; Lapidus-Type Procedure'), +(1813, '28298', 'Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; by Phalanx Osteotomy'), +(1814, '28299', 'Correction, Hallux Valgus (bunion), w/ or w/Out Sesamoidectomy; by Double Osteotomy'), +(1815, '28300', 'Osteotomy; Calcaneus (eg, Dwyer or Chambers type procedure), w/ or w/Out Internal Fixation'), +(1816, '28302', 'Osteotomy; Talus'), +(1817, '28304', 'Osteotomy, Tarsal Bones, Other than Calcaneus or Talus'), +(1818, '28305', 'Osteotomy, Tarsal Bones, Other than Calcaneus or Talus; w/Autograft'), +(1819, '28306', 'Metatarsal Osteotomy (1st Only)'), +(1820, '28307', 'Osteotomy, w/ or w/Out Lengthening, Shortening or Angular Correction, Metatarsal; First Metatarsal w/Autograft'), +(1821, '28308', 'Metatarsal Osteotomy (Except 1st)'), +(1822, '28309', 'Osteotomy, w/ or w/Out Lengthening, Shortening or Angular Correction, Metatarsal; Multiple (eg, Swanson type cavus foot procedure)'), +(1823, '28310', 'Osteotomy, Shortening, Angular or Rotational Correction; Proximal Phalanx, First Toe'), +(1824, '28312', 'Osteotomy, Shortening, Angular or Rotational Correction; Other Phalanges, Any Toe'), +(1825, '28313', 'Reconstruction, Angular Deformity of Toe, Soft Tissue Procedures Only (eg, overlapping second toe, fifth toe, curly toes)'), +(1826, '28315', 'Removal of Sesamoid Bone First Toe'), +(1827, '28320', 'Repair, Nonunion or Malunion; Tarsal Bones'), +(1828, '28322', 'Repair, Nonunion or Malunion; Metatarsal, w/ or w/Out Bone Graft'), +(1829, '28340', 'Reconstruction, Toe, Macrodactyly; Soft Tissue Resection'), +(1830, '28341', 'Reconstruction, Toe, Macrodactyly; Requiring Bone Resection'), +(1831, '28344', 'Reconstruction, Toe(s); Polydactyly'), +(1832, '28345', 'Reconstruction, Toe(s); Syndactyly, w/ or w/Out Skin Graft(s), Each Web'), +(1833, '28360', 'Reconstruction, Cleft Foot'), +(1834, '28400', 'Closed Treatment of Calcaneal Fracture; w/Out Manipulation'), +(1835, '28405', 'Closed Treatment of Calcaneal Fracture; w/Manipulation'), +(1836, '28406', 'Percutaneous Skeletal Fixation of Calcaneal Fracture, w/Manipulation'), +(1837, '28415', 'Open Treatment of Calcaneal Fracture, Includes Internal Fixation, when Performed'), +(1838, '28420', 'Open Treatment of Calcaneal Fracture, Includes Internal Fixation, when Performed; w/Primary Iliac or Other Autogenous Bone Graft'), +(1839, '28430', 'Closed Treatment of Talus Fracture; w/Out Manipulation'), +(1840, '28435', 'Closed Treatment of Talus Fracture; w/Manipulation'), +(1841, '28436', 'Percutaneous Skeletal Fixation of Talus Fracture, w/Manipulation'), +(1842, '28445', 'Open Treatment of Talus Fracture, Includes Internal Fixation, when Performed'), +(1843, '28446', 'Open Osteochondral Autograft, Talus'), +(1844, '28450', 'Treatment of Tarsal bone Fracture (except talus and calcaneus); w/Out Manipulation, Each'), +(1845, '28455', 'Treatment of Tarsal bone Fracture (except talus and calcaneus); w/Manipulation, Each'), +(1846, '28456', 'Percutaneous Skeletal Fixation of Tarsal Bone Fracture (except talus and calcaneus), w/Manipulation, Each'), +(1847, '28465', 'Open Treatment of Tarsal Bone Fracture (except talus and calcaneus), Includes Internal Fixation, when Performed, Each'), +(1848, '28470', 'Closed Treatment of Metatarsal Fracture; w/Out Manipulation, Each'), +(1849, '28475', 'Closed Treatment of Metatarsal Fracture; w/Manipulation, Each'), +(1850, '28476', 'Percutaneous Skeletal Fixation of Metatarsal Fracture, w/Manipulation, Each'), +(1851, '28485', 'Fracture Metatarsal Open w/Fixation'), +(1852, '28490', 'Closed Treatment of Fracture Great Toe, Phalanx or Phalanges; w/Out Manipulation'), +(1853, '28495', 'Closed Treatment of Fracture Great Toe, Phalanx or Phalanges; w/Manipulation'), +(1854, '28496', 'Percutaneous Skeletal Fixation of Fracture Great toe, Phalanx or Phalanges, w/Manipulation'), +(1855, '28505', 'Open Treatment of Fracture, Great Toe, Phalanx or Phalanges, Includes Internal Fixation, when Performed'), +(1856, '28510', 'Closed Treatment of Fracture, Phalanx or Phalanges, Other than Great Toe; w/Out Manipulation, Each'), +(1857, '28515', 'Closed Treatment of Fracture, Phalanx or Phalanges, Other than Great Toe; w/Manipulation, Each'), +(1858, '28525', 'Open Treatment Fracture Phalanx/Phalanges Not Great Toe'), +(1859, '30130', 'Excision Inferior Turbinate, pPrtial or Complete, Any Method'), +(1860, '30140', 'Submucous Resection Inferior Turbinate, Partial or Complete, Any Method'), +(1861, '30150', 'Rhinectomy; Partial'), +(1862, '30160', 'Rhinectomy; Total'), +(1863, '30200', 'Injection Into Turbinate(s), Therapeutic'), +(1864, '30210', 'Displacement Therapy (Proetz type)'), +(1865, '30220', 'Insertion, Nasal Septal Prosthesis (button)'), +(1866, '30300', 'Remove Nasal Foreign Body'), +(1867, '30310', 'Removal Foreign Body, Intranasal; Requiring General Anesthesia'), +(1868, '30320', 'Removal Foreign Body, Intranasal; by Lateral Rhinotomy'), +(1869, '30400', 'Rhinoplasty, Primary; Lateral & Alar Cartilages and/or Elevation of Nasal Tip'), +(1870, '30410', 'Rhinoplasty, Primary; Complete, External Parts Including Bony Pyramid, Lateral & Alar Aartilages, and/or Elevation of Nasal Tip'), +(1871, '30420', 'Rhinoplasty, Primary; Including Major Septal Repair'), +(1872, '30430', 'Rhinoplasty, Secondary; Minor Revision (small amount of nasal tip work)'), +(1873, '30435', 'Rhinoplasty, Secondary; Intermediate Revision (bony work with osteotomies)'), +(1874, '30450', 'Rhinoplasty, Secondary; Major Revision (nasal tip work and osteotomies)'), +(1875, '30460', 'Rhinoplasty for Nasal Deformity Secondary to Congenital Cleft Lip and/or Palate, Including Columellar Lengthening; Tip Only'), +(1876, '30462', 'Rhinoplasty for Nasal Deformity Secondary to Congenital Cleft Lip and/or Palate, Including Columellar Lengthening; Tip, Septum, Osteotomies'), +(1877, '30465', 'Repair of Nasal Vestibular Stenosis (eg, spreader grafting, lateral nasal wall reconstruction)'), +(1878, '30520', 'Septoplasty or Submucous Resection, w/ or w/Out Cartilage Scoring, Contouring or Replacement w/Graft'), +(1879, '30540', 'Repair Choanal Atresia; Intranasal'), +(1880, '30545', 'Repair Choanal Atresia; Transpalatine'), +(1881, '30560', 'Release of Nasal Adhesions'), +(1882, '30580', 'Repair Fistula; Oromaxillary'), +(1883, '30600', 'Repair Fistula; Oronasal'), +(1884, '30620', 'Septal or Other Intranasal Dermatoplasty'), +(1885, '30630', 'Repair Nasal Septal Perforations'); +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(1886, '30801', 'Ablation, Soft Tissue of Inferior Turbinates, Unilateral or Bilateral, Any Method (eg, electrocautery, radiofrequency ablation, or tissue volume reduction); Superficial'), +(1887, '30802', 'Ablation, Soft Tissue of iInferior Turbinates, Unilateral or Bilateral, Any Method (eg, electrocautery, radiofrequency ablation, or tissue volume reduction); Intramural (ie, submucosal)'), +(1888, '30901', 'Nasal Hemor'), +(1889, '30903', 'Nasal Hemor-Complex'), +(1890, '31254', 'Nasal/Sinus Endoscopy, Surgical; w/Ethmoidectomy, Partial (anterior)'), +(1891, '31255', 'Nasal/Sinus Endoscopy, Surgical; w/Ethmoidectomy, Total (anterior and posterior)'), +(1892, '31256', 'Nasal/Sinus Endoscopy, Surgical, w/Maxillary Antrostomy'), +(1893, '31267', 'Nasal/Sinus Endoscopy, Surgical, w/Maxillary Antrostomy; w/Removal of Tissue From Maxillary Sinus'), +(1894, '31276', 'Nasal/Sinus Endoscopy, Surgical w/Frontal Sinus Exploration, w/ or w/o Removal of Tissue From Frontal Sinus'), +(1895, '31287', 'Nasal/Sinus Endoscopy, Surgical, w/Sphenoidotomy'), +(1896, '31288', 'Nasal/Sinus Endoscopy, Surgical, w/Sphenoidotomy; w/Removal of Tissue From the Sphenoid Sinus'), +(1897, '31290', 'Nasal/Sinus Endoscopy, Surgical, w/Repair of Cerebrospinal Fluid Leak; Ethmoid Region'), +(1898, '31291', 'Nasal/Sinus Endoscopy, Surgical, w/Repair of Cerebrospinal Fluid Leak; Sphenoid Region'), +(1899, '31292', 'Nasal/Sinus Endoscopy, Surgical; w/Medial or Inferior Orbital Wall Decompression'), +(1900, '31293', 'Nasal/Sinus Endoscopy, Surgical; w/Medial Orbital Wall & Inferior Orbital Wall Decompression'), +(1901, '31294', 'Nasal/Sinus Endoscopy, Surgical; w/Optic Nerve Decompression'), +(1902, '31295', 'Nasal/Sinus Endoscopy, Surgical; w/Dilation of Maxillary Sinus Ostium (eg, balloon dilation), Transnasal or via Canine Fossa'), +(1903, '31296', 'Nasal/Sinus Endoscopy, Surgical; w/Dilation of Frontal Sinus Ostium (eg, balloon dilation)'), +(1904, '31297', 'Nasal/Sinus Endoscopy, Surgical; w/Dilation of Sphenoid Sinus Ostium (eg, balloon dilation)'), +(1905, '31299', 'Unlisted Procedure, Accessory Sinuses'), +(1906, '31300', 'Laryngotomy (thyrotomy, laryngofissure); w/Removal of Tumor or Laryngocele, Cordectomy'), +(1907, '31320', 'Laryngotomy (thyrotomy, laryngofissure); Diagnostic'), +(1908, '31360', 'Laryngectomy; Total, w/o Tadical Neck Dissection'), +(1909, '31365', 'Laryngectomy; Total, w/Radical Neck Dissection'), +(1910, '31367', 'Laryngectomy; Subtotal Supraglottic, w/Out Radical Neck Dissection'), +(1911, '31368', 'Laryngectomy; Subtotal Supraglottic, w/Radical Neck Dissection'), +(1912, '31370', 'Partial Laryngectomy (hemilaryngectomy); Horizontal'), +(1913, '31375', 'Partial Laryngectomy (hemilaryngectomy); Laterovertical'), +(1914, '31380', 'Partial Laryngectomy (hemilaryngectomy); Anterovertical'), +(1915, '31382', 'Partial Laryngectomy (hemilaryngectomy); Antero-Latero-Vertical'), +(1916, '31390', 'Pharyngolaryngectomy, w/Radical Neck Dissection; w/o Reconstruction'), +(1917, '31395', 'Pharyngolaryngectomy, w/Radical Neck Dissection; w/Reconstruction'), +(1918, '31400', 'Arytenoidectomy or Arytenoidopexy, External Approach'), +(1919, '31420', 'Epiglottidectomy'), +(1920, '31500', 'Intubation, Endotracheal, Emergency Procedure'), +(1921, '31502', 'Change of Windpipe Airway'), +(1922, '31505', 'Laryngoscopy, Indirect; Diagnostic'), +(1923, '31510', 'Laryngoscopy, Indirect; w/Biopsy'), +(1924, '31511', 'Remove Foreign Body Larynx'), +(1925, '31512', 'Laryngoscopy, Indirect; w/Removal of Lesion'), +(1926, '31513', 'Laryngoscopy, Indirect; w/Vocal Cord Injection'), +(1927, '31515', 'Laryngoscopy Direct, w/ or w/Out Tracheoscopy; for Aspiration'), +(1928, '35905', 'Excision of infected graft; thorax'), +(1929, '35907', 'Excision of infected graft; abdomen'), +(1930, '36000', 'Introduction of Needle or Intracatheter, Vein'), +(1931, '36002', 'Injection Procedures (eg, thrombin) for Percutaneous Treatment of Extremity Pseudoaneurysm'), +(1932, '36005', 'Injection Procedure for Extremity Venography'), +(1933, '36010', 'Introduction of catheter, superior or inferior vena cava'), +(1934, '36011', 'Selective catheter placement, venous system; first order branch (eg, renal vein, jugular vein)'), +(1935, '36012', 'Selective catheter placement, venous system; second order, or more selective, branch (eg, left adrenal vein, petrosal sinus)'), +(1936, '36013', 'Introduction of catheter, right heart or main pulmonary artery'), +(1937, '36014', 'Selective catheter placement, left or right pulmonary artery'), +(1938, '36015', 'Selective catheter placement, segmental or subsegmental pulmonary artery'), +(1939, '36100', 'Introduction of needle or intracatheter, carotid or vertebral artery'), +(1940, '36120', 'Introduction of needle or intracatheter; retrograde brachial artery'), +(1941, '36140', 'Introduction of needle or intracatheter; extremity artery'), +(1942, '36147', 'Introduction of needle and/or catheter, arteriovenous shunt created for dialysis (graft/fistula); initial access with complete radiological evaluation of dialysis access, including fluoroscopy, image documentation and report (includes access of shunt, injection[s] of contrast, and all necessary imaging from the arterial anastomosis and adjacent artery through entire venous outflow including the inferior or superior vena cava)'), +(1943, '36148', 'Introduction of needle and/or catheter, arteriovenous shunt created for dialysis (graft/fistula); additional access for therapeutic intervention (List separately in addition to code for primary procedure)'), +(1944, '36160', 'Introduction of needle or intracatheter, aortic, translumbar'), +(1945, '36200', 'Introduction of catheter, aorta'), +(1946, '36215', 'Selective catheter placement, arterial system; each first order thoracic or brachiocephalic branch, within a vascular family'), +(1947, '36216', 'Selective catheter placement, arterial system; initial second order thoracic or brachiocephalic branch, within a vascular family'), +(1948, '36217', 'Selective catheter placement, arterial system; initial third order or more selective thoracic or brachiocephalic branch, within a vascular family'), +(1949, '36218', 'Selective catheter placement, arterial system; additional second order, third order, and beyond, thoracic or brachiocephalic branch, within a vascular family (List in addition to code for initial second or third order vessel as appropriate)'), +(1950, '36221', 'Non-selective catheter placement, thoracic aorta, with angiography of the extracranial carotid, vertebral, and/or intracranial vessels, unilateral or bilateral, and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed'), +(1951, '36222', 'Selective catheter placement, common carotid or innominate artery, unilateral, any approach, with angiography of the ipsilateral extracranial carotid circulation and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed'), +(1952, '36223', 'Selective catheter placement, common carotid or innominate artery, unilateral, any approach, with angiography of the ipsilateral intracranial carotid circulation and all associated radiological supervision and interpretation, includes angiography of the extracranial carotid and cervicocerebral arch, when performed'), +(1953, '36224', 'Selective catheter placement, internal carotid artery, unilateral, with angiography of the ipsilateral intracranial carotid circulation and all associated radiological supervision and interpretation, includes angiography of the extracranial carotid and cervicocerebral arch, when performed'), +(1954, '36225', 'Selective catheter placement, subclavian or innominate artery, unilateral, with angiography of the ipsilateral vertebral circulation and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed'), +(1955, '36226', 'Selective catheter placement, vertebral artery, unilateral, with angiography of the ipsilateral vertebral circulation and all associated radiological supervision and interpretation, includes angiography of the cervicocerebral arch, when performed'), +(1956, '36227', 'Selective catheter placement, external carotid artery, unilateral, with angiography of the ipsilateral external carotid circulation and all associated radiological supervision and interpretation (List separately in addition to code for primary procedure)'), +(1957, '36228', 'Selective catheter placement, each intracranial branch of the internal carotid or vertebral arteries, unilateral, with angiography of the selected vessel circulation and all associated radiological supervision and interpretation (eg, middle cerebral artery, posterior inferior cerebellar artery) (List separately in addition to code for primary procedure)'), +(1958, '36245', 'Selective catheter placement, arterial system; each first order abdominal, pelvic, or lower extremity artery branch, within a vascular family'), +(1959, '36246', 'Selective catheter placement, arterial system; initial second order abdominal, pelvic, or lower extremity artery branch, within a vascular family'), +(1960, '36247', 'Selective catheter placement, arterial system; initial third order or more selective abdominal, pelvic, or lower extremity artery branch, within a vascular family'), +(1961, '36248', 'Selective catheter placement, arterial system; additional second order, third order, and beyond, abdominal, pelvic, or lower extremity artery branch, within a vascular family (List in addition to code for initial second or third order vessel as appropriate)'), +(1962, '36251', 'Selective catheter placement (first-order), main renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture and catheter placement(s), fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; unilateral'), +(1963, '36252', 'Selective catheter placement (first-order), main renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture and catheter placement(s), fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; bilateral'), +(1964, '36253', 'Superselective catheter placement (one or more second order or higher renal artery branches) renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture, catheterization, fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; unilateral'), +(1965, '36254', 'Superselective catheter placement (one or more second order or higher renal artery branches) renal artery and any accessory renal artery(s) for renal angiography, including arterial puncture, catheterization, fluoroscopy, contrast injection(s), image postprocessing, permanent recording of images, and radiological supervision and interpretation, including pressure gradient measurements when performed, and flush aortogram when performed; bilateral'), +(1966, '36260', 'Insertion of implantable intra-arterial infusion pump (eg, for chemotherapy of liver)'), +(1967, '37181', 'Venous anastomosis, open; splenorenal, distal (selective decompression of esophagogastric varices, any technique)'), +(1968, '37182', 'Insertion of transvenous intrahepatic portosystemic shunt(s) (TIPS) (includes venous access, hepatic and portal vein catheterization, portography with hemodynamic evaluation, intrahepatic tract formation/dilatation, stent placement and all associated imaging guidance and documentation)'), +(1969, '37183', 'Revision of transvenous intrahepatic portosystemic shunt(s) (TIPS) (includes venous access, hepatic and portal vein catheterization, portography with hemodynamic evaluation, intrahepatic tract recanulization/dilatation, stent placement and all associated imaging guidance and documentation)'), +(1970, '37184', 'Primary percutaneous transluminal mechanical thrombectomy, noncoronary, arterial or arterial bypass graft, including fluoroscopic guidance and intraprocedural pharmacological thrombolytic injection(s); initial vessel'), +(1971, '37185', 'Primary percutaneous transluminal mechanical thrombectomy, noncoronary, arterial or arterial bypass graft, including fluoroscopic guidance and intraprocedural pharmacological thrombolytic injection(s); second and all subsequent vessel(s) within the same vascular family (List separately in addition to code for primary mechanical thrombectomy procedure)'), +(1972, '37186', 'Secondary percutaneous transluminal thrombectomy (eg, nonprimary mechanical, snare basket, suction technique), noncoronary, arterial or arterial bypass graft, including fluoroscopic guidance and intraprocedural pharmacological thrombolytic injections, provided in conjunction with another percutaneous intervention other than primary mechanical thrombectomy (List separately in addition to code for primary procedure)'), +(1973, '37187', 'Percutaneous transluminal mechanical thrombectomy, vein(s), including intraprocedural pharmacological thrombolytic injections and fluoroscopic guidance'), +(1974, '37188', 'Percutaneous transluminal mechanical thrombectomy, vein(s), including intraprocedural pharmacological thrombolytic injections and fluoroscopic guidance, repeat treatment on subsequent day during course of thrombolytic therapy'), +(1975, '37191', 'Insertion of intravascular vena cava filter, endovascular approach including vascular access, vessel selection, and radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance (ultrasound and fluoroscopy), when performed'), +(1976, '37192', 'Repositioning of intravascular vena cava filter, endovascular approach including vascular access, vessel selection, and radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance (ultrasound and fluoroscopy), when performed'), +(1977, '37193', 'Retrieval (removal) of intravascular vena cava filter, endovascular approach including vascular access, vessel selection, and radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance (ultrasound and fluoroscopy), when performed'), +(1978, '37195', 'Thrombolysis, cerebral, by intravenous infusion'), +(1979, '37197', 'Transcatheter retrieval, percutaneous, of intravascular foreign body (eg, fractured venous or arterial catheter), includes radiological supervision and interpretation, and imaging guidance (ultrasound or fluoroscopy), when performed'), +(1980, '37200', 'Transcatheter biopsy'), +(1981, '37202', 'Transcatheter therapy, infusion other than for thrombolysis, any type (eg, spasmolytic, vasoconstrictive)'), +(1982, '37211', 'Transcatheter therapy, arterial infusion for thrombolysis other than coronary, any method, including radiological supervision and interpretation, initial treatment day'), +(1983, '37212', 'Transcatheter therapy, venous infusion for thrombolysis, any method, including radiological supervision and interpretation, initial treatment day'), +(1984, '37213', 'Transcatheter therapy, arterial or venous infusion for thrombolysis other than coronary, any method, including radiological supervision and interpretation, continued treatment on subsequent day during course of thrombolytic therapy, including follow-up catheter contrast injection, position change, or exchange, when performed;'), +(1985, '37214', 'Transcatheter therapy, arterial or venous infusion for thrombolysis other than coronary, any method, including radiological supervision and interpretation, continued treatment on subsequent day during course of thrombolytic therapy, including follow-up catheter contrast injection, position change, or exchange, when performed; cessation of thrombolysis including removal of catheter and vessel closure by any method'), +(1986, '37215', 'Transcatheter placement of intravascular stent(s), cervical carotid artery, open or percutaneous, including angioplasty, when performed, and radiological supervision and interpretation; with distal embolic protection'), +(1987, '37216', 'Transcatheter placement of intravascular stent(s), cervical carotid artery, open or percutaneous, including angioplasty, when performed, and radiological supervision and interpretation; without distal embolic protection'), +(1988, '37217', 'Transcatheter placement of intravascular stent(s), intrathoracic common carotid artery or innominate artery by retrograde treatment, open ipsilateral cervical carotid artery exposure, including angioplasty, when performed, and radiological supervision and interpretation'), +(1989, '37218', 'Transcatheter placement of intravascular stent(s), intrathoracic common carotid artery or innominate artery, open or percutaneous antegrade approach, including angioplasty, when performed, and radiological supervision and interpretation'), +(1990, '37220', 'Revascularization, endovascular, open or percutaneous, iliac artery, unilateral, initial vessel; with transluminal angioplasty'), +(1991, '37221', 'Revascularization, endovascular, open or percutaneous, iliac artery, unilateral, initial vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed'), +(1992, '37222', 'Revascularization, endovascular, open or percutaneous, iliac artery, each additional ipsilateral iliac vessel; with transluminal angioplasty (List separately in addition to code for primary procedure)'), +(1993, '37223', 'Revascularization, endovascular, open or percutaneous, iliac artery, each additional ipsilateral iliac vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)'), +(1994, '37224', 'Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with transluminal angioplasty'), +(1995, '37225', 'Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with atherectomy, includes angioplasty within the same vessel, when performed'), +(1996, '37226', 'Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed'), +(1997, '37227', 'Revascularization, endovascular, open or percutaneous, femoral, popliteal artery(s), unilateral; with transluminal stent placement(s) and atherectomy, includes angioplasty within the same vessel, when performed'), +(1998, '37228', 'Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with transluminal angioplasty'), +(1999, '37229', 'Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with atherectomy, includes angioplasty within the same vessel, when performed'), +(2000, '37230', 'Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed'), +(2001, '37231', 'Revascularization, endovascular, open or percutaneous, tibial, peroneal artery, unilateral, initial vessel; with transluminal stent placement(s) and atherectomy, includes angioplasty within the same vessel, when performed'), +(2002, '37232', 'Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with transluminal angioplasty (List separately in addition to code for primary procedure)'), +(2003, '37233', 'Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with atherectomy, includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)'), +(2004, '37234', 'Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with transluminal stent placement(s), includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)'), +(2005, '37235', 'Revascularization, endovascular, open or percutaneous, tibial/peroneal artery, unilateral, each additional vessel; with transluminal stent placement(s) and atherectomy, includes angioplasty within the same vessel, when performed (List separately in addition to code for primary procedure)'), +(2006, '37236', 'Transcatheter placement of an intravascular stent(s) (except lower extremity artery(s) for occlusive disease, cervical carotid, extracranial vertebral or intrathoracic carotid, intracranial, or coronary), open or percutaneous, including radiological supervision and interpretation and including all angioplasty within the same vessel, when performed; initial artery'), +(2007, '37237', 'Transcatheter placement of an intravascular stent(s) (except lower extremity artery(s) for occlusive disease, cervical carotid, extracranial vertebral or intrathoracic carotid, intracranial, or coronary), open or percutaneous, including radiological supervision and interpretation and including all angioplasty within the same vessel, when performed; each additional artery (List separately in addition to code for primary procedure)'), +(2008, '37238', 'Transcatheter placement of an intravascular stent(s), open or percutaneous, including radiological supervision and interpretation and including angioplasty within the same vessel, when performed; initial vein'), +(2009, '37239', 'Transcatheter placement of an intravascular stent(s), open or percutaneous, including radiological supervision and interpretation and including angioplasty within the same vessel, when performed; each additional vein (List separately in addition to code for primary procedure)'), +(2010, '37241', 'Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; venous, other than hemorrhage (eg, congenital or acquired venous malformations, venous and capillary hemangiomas, varices, varicoceles)'), +(2011, '37242', 'Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; arterial, other than hemorrhage or tumor (eg, congenital or acquired arterial malformations, arteriovenous malformations, arteriovenous fistulas, aneurysms, pseudoaneurysms)'), +(2012, '37243', 'Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; for tumors, organ ischemia, or infarction'), +(2013, '37244', 'Vascular embolization or occlusion, inclusive of all radiological supervision and interpretation, intraprocedural roadmapping, and imaging guidance necessary to complete the intervention; for arterial or venous hemorrhage or lymphatic extravasation'), +(2014, '37250', 'Intravascular ultrasound (non-coronary vessel) during diagnostic evaluation and/or therapeutic intervention; initial vessel (List separately in addition to code for primary procedure)'), +(2015, '37251', 'Intravascular ultrasound (non-coronary vessel) during diagnostic evaluation and/or therapeutic intervention; each additional vessel (List separately in addition to code for primary procedure)'), +(2016, '37500', 'Vascular endoscopy, surgical, with ligation of perforator veins, subfascial (SEPS)'), +(2017, '37501', 'Unlisted vascular endoscopy procedure'), +(2018, '37565', 'Ligation, internal jugular vein'), +(2019, '37600', 'Ligation; external carotid artery'), +(2020, '37605', 'Ligation; internal or common carotid artery'), +(2021, '37606', 'Ligation; internal or common carotid artery, with gradual occlusion, as with Selverstone or Crutchfield clamp'), +(2022, '37607', 'Ligation or banding of angioaccess arteriovenous fistula'), +(2023, '39400', 'Mediastinoscopy, includes biopsy(ies), when performed'), +(2024, '39499', 'Unlisted procedure, mediastinum'), +(2025, '39501', 'Repair, laceration of diaphragm, any approach'), +(2026, '39503', 'Repair, neonatal diaphragmatic hernia, with or without chest tube insertion and with or without creation of ventral hernia'), +(2027, '39540', 'Repair, diaphragmatic hernia (other than neonatal), traumatic; acute'), +(2028, '39541', 'Repair, diaphragmatic hernia (other than neonatal), traumatic; chronic'), +(2029, '39545', 'Imbrication of diaphragm for eventration, transthoracic or transabdominal, paralytic or nonparalytic'), +(2030, '39560', 'Resection, diaphragm; with simple repair (eg, primary suture)'), +(2031, '39561', 'Resection, diaphragm; with complex repair (eg, prosthetic material, local muscle flap)'), +(2032, '39599', 'Unlisted procedure, diaphragm'), +(2033, '40490', 'Biopsy of Lip'), +(2034, '40500', 'Vermilionectomy (lip shave), w/Mucosal Advancement'), +(2035, '40510', 'Excision of Lip; Transverse Wedge Excision w/Primary Closure'), +(2036, '40520', 'Excision of Lip; V-Excision w/Primary Direct Linear Closure'), +(2037, '40525', 'Excision of Lip; Full Thickness, Reconstruction w/Local Flap (eg, Estlander or fan)'), +(2038, '40527', 'Excision of Lip; Full Thickness, Reconstruction w/Cross Lip Flap (Abbe-Estlander)'), +(2039, '40530', 'Resection of Lip, More Than One-Fourth, w/Out Reconstruction'), +(2040, '40650', 'Repair Lip, Full Thickness; Vermilion Only'), +(2041, '40652', 'Repair Lip, Full Thickness; Up to Half Vertical Height'), +(2042, '40654', 'Repair Lip, Full Thickness; Over One-Half Vertical Height, or Complex'), +(2043, '40700', 'Plastic Repair of Cleft Lip/Nasal Deformity; Primary, Partial or Complete, Unilateral'), +(2044, '40701', 'Plastic Repair of Cleft Lip/Nasal Deformity; Primary Bilateral, 1-Stage Procedure'), +(2045, '40702', 'Plastic Repair of Cleft Lip/Nasal Deformity; Primary Bilateral, 1 of 2 Stages'), +(2046, '40720', 'Plastic Repair of Cleft Lip/Nasal Deformity; Secondary, by Recreation of Defect & Reclosure'), +(2047, '40761', 'Plastic Repair of Cleft Lip/Nasal Deformity; w/Cross Lip Pedicle Flap (Abbe-Estlander type), Including Sectioning & Inserting of Pedicle'), +(2048, '40799', 'Unlisted Procedure, Lips'), +(2049, '40800', 'Drainage of Abscess, Cyst, Hematoma, Vestibule of Mouth; Simple'), +(2050, '40801', 'Drainage of Abscess, Cyst, Hematoma, Vestibule of Mouth; Complicated'), +(2051, '40804', 'Removal of Embedded Foreign Body, Vestibule of Mouth; Simple'), +(2052, '40805', 'Removal of Embedded Foreign Body, Vestibule of Mouth; Complicated'), +(2053, '40806', 'Incision of Labial Frenum (frenotomy)'), +(2054, '40808', 'Biopsy, Vestibule of Mouth'), +(2055, '40810', 'Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; w/Out Repair'), +(2056, '40812', 'Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; w/Simple Repair'), +(2057, '40814', 'Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; w/Complex Repair'), +(2058, '40816', 'Excision of Lesion of Mucosa & Submucosa, Vestibule of Mouth; Complex, w/Excision of Underlying Muscle'), +(2059, '40818', 'Excision of Mucosa of Vestibule of Mouth as Donor Graft'), +(2060, '40819', 'Excision of Frenum, Labial or Buccal (frenumectomy, frenulectomy, frenectomy)'), +(2061, '40820', 'Destruction of Lesion or Scar of Vestibule of Mouth by Physical Methods (eg, laser, thermal, cryo, chemical)'), +(2062, '40830', 'Closure of Laceration, Vestibule of Mouth; 2.5 cm or Less'), +(2063, '40831', 'Closure of Laceration, Vestibule of Mouth; Over 2.5 cm or Complex'), +(2064, '40840', 'Vestibuloplasty; Anterior'), +(2065, '40842', 'Vestibuloplasty; Posterior, Unilateral'), +(2066, '40843', 'Vestibuloplasty; Posterior, Bilateral'), +(2067, '40844', 'Vestibuloplasty; Entire Arch'), +(2068, '40845', 'Vestibuloplasty; Complex (including ridge extension, muscle repositioning)'), +(2069, '40899', 'Unlisted Procedure, Vestibule of Mouth'), +(2070, '41000', 'Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Lingual'), +(2071, '41005', 'Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Sublingual, Superficial'), +(2072, '41006', 'Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Sublingual, Deep, Supramylohyoid'), +(2073, '41007', 'Intraoral Incision & Rrainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Submental Space'), +(2074, '41008', 'Intraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Submandibular Space'), +(2075, '41009', 'Intraoral Incision and Drainage of Abscess, Cyst, or Hematoma of Tongue or Floor of Mouth; Masticator Space'), +(2076, '41010', 'Incision of Lingual Frenum (frenotomy)'), +(2077, '41015', 'Extraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Sublingual'), +(2078, '41016', 'Extraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Submental'), +(2079, '41017', 'Extraoral Incision & Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Submandibular'), +(2080, '41018', 'Extraoral Incision and Drainage of Abscess, Cyst, or Hematoma of Floor of Mouth; Masticator Space'), +(2081, '41019', 'Placement of Needles, Catheters, or Other Device(s) Into the Head and/or Neck Region (percutaneous, transoral, or transnasal) for Subsequent Interstitial Radioelement Application'), +(2082, '41100', 'Biopsy of Tongue; Anterior Two-Thirds'), +(2083, '43229', 'Esophagoscopy, Flexible, Transoral; w/Ablation of Tumor(s), Polyp(s), or Other Lesion(s) (includes pre- and post-dilation and guide wire passage, when performed)'), +(2084, '43231', 'Esophagoscopy, Flexible, Transoral; w/Endoscopic Ultrasound Examination'), +(2085, '43232', 'Esophagoscopy, Flexible, Transoral; w/Transendoscopic Ultrasound-Guided Intramural or Transmural Fine Needle Aspiration/Biopsy(s)'), +(2086, '43233', 'Esophagogastroduodenoscopy, Flexible, Transoral; w/Dilation of Esophagus w/Balloon (30 mm diameter or larger) (includes fluoroscopic guidance, when performed)'), +(2087, '43235', 'Esophagogastroduodenoscopy, Flexible, Transoral; Diagnostic, Including Collection of Specimen(s) by Brushing or Washing, When Performed'), +(2088, '43236', 'Esophagogastroduodenoscopy, Flexible, Transoral; w/Directed Submucosal Injection(s), Any Substance'), +(2089, '43237', 'Esophagogastroduodenoscopy, flexible, transoral; with endoscopic ultrasound examination limited to the esophagus, stomach or duodenum, and adjacent structures'), +(2090, '43238', 'Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic ultrasound-guided intramural or transmural fine needle aspiration/biopsy(s), (includes endoscopic ultrasound examination limited to the esophagus, stomach or duodenum, and adjacent structures)'), +(2091, '43239', 'Esophagogastroduodenoscopy, flexible, transoral; with biopsy, single or multiple'), +(2092, '43240', 'Esophagogastroduodenoscopy, flexible, transoral; with transmural drainage of pseudocyst (includes placement of transmural drainage catheter[s]/stent[s], when performed, and endoscopic ultrasound, when performed)'), +(2093, '43241', 'Esophagogastroduodenoscopy, flexible, transoral; with insertion of intraluminal tube or catheter'), +(2094, '43242', 'Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic ultrasound-guided intramural or transmural fine needle aspiration/biopsy(s) (includes endoscopic ultrasound examination of the esophagus, stomach, and either the duodenum or a surgically altered stomach where the jejunum is examined distal to the anastomosis)'), +(2095, '43243', 'Esophagogastroduodenoscopy, flexible, transoral; with injection sclerosis of esophageal/gastric varices'), +(2096, '43244', 'Esophagogastroduodenoscopy, flexible, transoral; with band ligation of esophageal/gastric varices'), +(2097, '43245', 'Esophagogastroduodenoscopy, flexible, transoral; with dilation of gastric/duodenal stricture(s) (eg, balloon, bougie)'), +(2098, '43246', 'Esophagogastroduodenoscopy, flexible, transoral; with directed placement of percutaneous gastrostomy tube'), +(2099, '43247', 'Esophagogastroduodenoscopy, flexible, transoral; with removal of foreign body(s)'), +(2100, '43248', 'Esophagogastroduodenoscopy, flexible, transoral; with insertion of guide wire followed by passage of dilator(s) through esophagus over guide wire'), +(2101, '43249', 'Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic balloon dilation of esophagus (less than 30 mm diameter)'), +(2102, '43250', 'Esophagogastroduodenoscopy, flexible, transoral; with removal of tumor(s), polyp(s), or other lesion(s) by hot biopsy forceps'), +(2103, '43251', 'Esophagogastroduodenoscopy, flexible, transoral; with removal of tumor(s), polyp(s), or other lesion(s) by snare technique'), +(2104, '43252', 'Esophagogastroduodenoscopy, flexible, transoral; with optical endomicroscopy'), +(2105, '43253', 'Esophagogastroduodenoscopy, flexible, transoral; with transendoscopic ultrasound-guided transmural injection of diagnostic or therapeutic substance(s) (eg, anesthetic, neurolytic agent) or fiducial marker(s) (includes endoscopic ultrasound examination of the esophagus, stomach, and either the duodenum or a surgically altered stomach where the jejunum is examined distal to the anastomosis)'), +(2106, '43254', 'Esophagogastroduodenoscopy, flexible, transoral; with endoscopic mucosal resection'), +(2107, '43255', 'Esophagogastroduodenoscopy, flexible, transoral; with control of bleeding, any method'), +(2108, '43257', 'Esophagogastroduodenoscopy, flexible, transoral; with delivery of thermal energy to the muscle of lower esophageal sphincter and/or gastric cardia, for treatment of gastroesophageal reflux disease'), +(2109, '43259', 'Esophagogastroduodenoscopy, flexible, transoral; with endoscopic ultrasound examination, including the esophagus, stomach, and either the duodenum or a surgically altered stomach where the jejunum is examined distal to the anastomosis'), +(2110, '43260', 'Endoscopic retrograde cholangiopancreatography (ERCP); diagnostic, including collection of specimen(s) by brushing or washing, when performed (separate procedure)'), +(2111, '43261', 'Endoscopic retrograde cholangiopancreatography (ERCP); with biopsy, single or multiple'), +(2112, '43262', 'Endoscopic retrograde cholangiopancreatography (ERCP); with sphincterotomy/papillotomy'), +(2113, '43263', 'Endoscopic retrograde cholangiopancreatography (ERCP); with pressure measurement of sphincter of Oddi'), +(2114, '43264', 'Endoscopic retrograde cholangiopancreatography (ERCP); with removal of calculi/debris from biliary/pancreatic duct(s)'), +(2115, '43265', 'Endoscopic retrograde cholangiopancreatography (ERCP); with destruction of calculi, any method (eg, mechanical, electrohydraulic, lithotripsy)'), +(2116, '43266', 'Esophagogastroduodenoscopy, flexible, transoral; with placement of endoscopic stent (includes pre- and post-dilation and guide wire passage, when performed)'), +(2117, '43270', 'Esophagogastroduodenoscopy, flexible, transoral; with ablation of tumor(s), polyp(s), or other lesion(s) (includes pre- and post-dilation and guide wire passage, when performed)'), +(2118, '43273', 'Endoscopic cannulation of papilla with direct visualization of pancreatic/common bile duct(s) (List separately in addition to code(s) for primary procedure)'), +(2119, '43274', 'Endoscopic retrograde cholangiopancreatography (ERCP); with placement of endoscopic stent into biliary or pancreatic duct, including pre- and post-dilation and guide wire passage, when performed, including sphincterotomy, when performed, each stent'), +(2120, '43275', 'Endoscopic retrograde cholangiopancreatography (ERCP); with removal of foreign body(s) or stent(s) from biliary/pancreatic duct(s)'), +(2121, '43276', 'Endoscopic retrograde cholangiopancreatography (ERCP); with removal and exchange of stent(s), biliary or pancreatic duct, including pre- and post-dilation and guide wire passage, when performed, including sphincterotomy, when performed, each stent exchanged'), +(2122, '43277', 'Endoscopic retrograde cholangiopancreatography (ERCP); with trans-endoscopic balloon dilation of biliary/pancreatic duct(s) or of ampulla (sphincteroplasty), including sphincterotomy, when performed, each duct'), +(2123, '43278', 'Endoscopic retrograde cholangiopancreatography (ERCP); with ablation of tumor(s), polyp(s), or other lesion(s), including pre- and post-dilation and guide wire passage, when performed'), +(2124, '43279', 'Laparoscopy, surgical, esophagomyotomy (Heller type), with fundoplasty, when performed'), +(2125, '43280', 'Laparoscopy, surgical, esophagogastric fundoplasty (eg, Nissen, Toupet procedures)'), +(2126, '43281', 'Laparoscopy, surgical, repair of paraesophageal hernia, includes fundoplasty, when performed; without implantation of mesh'), +(2127, '43282', 'Laparoscopy, surgical, repair of paraesophageal hernia, includes fundoplasty, when performed; with implantation of mesh'), +(2128, '43283', 'Laparoscopy, surgical, esophageal lengthening procedure (eg, Collis gastroplasty or wedge gastroplasty) (List separately in addition to code for primary procedure)'), +(2129, '43289', 'Unlisted laparoscopy procedure, esophagus'), +(2130, '43300', 'Esophagoplasty (plastic repair or reconstruction), cervical approach; without repair of tracheoesophageal fistula'), +(2131, '43305', 'Esophagoplasty (plastic repair or reconstruction), cervical approach; with repair of tracheoesophageal fistula'), +(2132, '43310', 'Esophagoplasty (plastic repair or reconstruction), thoracic approach; without repair of tracheoesophageal fistula'), +(2133, '43312', 'Esophagoplasty (plastic repair or reconstruction), thoracic approach; with repair of tracheoesophageal fistula'), +(2134, '43313', 'Esophagoplasty for congenital defect (plastic repair or reconstruction), thoracic approach; without repair of congenital tracheoesophageal fistula'), +(2135, '43314', 'Esophagoplasty for congenital defect (plastic repair or reconstruction), thoracic approach; with repair of congenital tracheoesophageal fistula'), +(2136, '43320', 'Esophagogastrostomy (cardioplasty), with or without vagotomy and pyloroplasty, transabdominal or transthoracic approach'), +(2137, '43325', 'Esophagogastric fundoplasty; with fundic patch (Thal-Nissen procedure)'), +(2138, '43327', 'Esophagogastric fundoplasty partial or complete; laparotomy'), +(2139, '43328', 'Esophagogastric fundoplasty partial or complete; thoracotomy'), +(2140, '43330', 'Esophagomyotomy (Heller type); abdominal approach'), +(2141, '43331', 'Esophagomyotomy (Heller type); thoracic approach'), +(2142, '43332', 'Repair, paraesophageal hiatal hernia (including fundoplication), via laparotomy, except neonatal; without implantation of mesh or other prosthesis'), +(2143, '43333', 'Repair, paraesophageal hiatal hernia (including fundoplication), via laparotomy, except neonatal; with implantation of mesh or other prosthesis'), +(2144, '43334', 'Repair, paraesophageal hiatal hernia (including fundoplication), via thoracotomy, except neonatal; without implantation of mesh or other prosthesis'), +(2145, '43335', 'Repair, paraesophageal hiatal hernia (including fundoplication), via thoracotomy, except neonatal; with implantation of mesh or other prosthesis'), +(2146, '43336', 'Repair, paraesophageal hiatal hernia, (including fundoplication), via thoracoabdominal incision, except neonatal; without implantation of mesh or other prosthesis'), +(2147, '43337', 'Repair, paraesophageal hiatal hernia, (including fundoplication), via thoracoabdominal incision, except neonatal; with implantation of mesh or other prosthesis'), +(2148, '43338', 'Esophageal lengthening procedure (eg, Collis gastroplasty or wedge gastroplasty) (List separately in addition to code for primary procedure)'), +(2149, '43340', 'Esophagojejunostomy (without total gastrectomy); abdominal approach'), +(2150, '43341', 'Esophagojejunostomy (without total gastrectomy); thoracic approach'), +(2151, '43351', 'Esophagostomy, fistulization of esophagus, external; thoracic approach'), +(2152, '43352', 'Esophagostomy, fistulization of esophagus, external; cervical approach'), +(2153, '43360', 'Gastrointestinal reconstruction for previous esophagectomy, for obstructing esophageal lesion or fistula, or for previous esophageal exclusion; with stomach, with or without pyloroplasty'), +(2154, '43361', 'Gastrointestinal reconstruction for previous esophagectomy, for obstructing esophageal lesion or fistula, or for previous esophageal exclusion; with colon interposition or small intestine reconstruction, including intestine mobilization, preparation, and anastomosis(es)'), +(2155, '43400', 'Ligation, direct, esophageal varices'), +(2156, '43401', 'Transection of esophagus with repair, for esophageal varices'), +(2157, '43405', 'Ligation or stapling at gastroesophageal junction for pre-existing esophageal perforation'), +(2158, '43410', 'Suture of esophageal wound or injury; cervical approach'), +(2159, '43415', 'Suture of esophageal wound or injury; transthoracic or transabdominal approach'), +(2160, '43420', 'Closure of esophagostomy or fistula; cervical approach'), +(2161, '43425', 'Closure of esophagostomy or fistula; transthoracic or transabdominal approach'), +(2162, '43450', 'Dilation of esophagus, by unguided sound or bougie, single or multiple passes'), +(2163, '43453', 'Dilation of esophagus, over guide wire'), +(2164, '43460', 'Esophagogastric tamponade, with balloon (Sengstaken type)'), +(2165, '43496', 'Free jejunum transfer with microvascular anastomosis'), +(2166, '43499', 'Unlisted procedure, esophagus'), +(2167, '43500', 'Gastrotomy; with exploration or foreign body removal'), +(2168, '43501', 'Gastrotomy; with suture repair of bleeding ulcer'), +(2169, '43502', 'Gastrotomy; with suture repair of pre-existing esophagogastric laceration (eg, Mallory-Weiss)'), +(2170, '43510', 'Gastrotomy; with esophageal dilation and insertion of permanent intraluminal tube (eg, Celestin or Mousseaux-Barbin)'), +(2171, '43520', 'Pyloromyotomy, cutting of pyloric muscle (Fredet-Ramstedt type operation)'), +(2172, '43605', 'Biopsy of stomach, by laparotomy'), +(2173, '43610', 'Excision, local; ulcer or benign tumor of stomach'), +(2174, '43611', 'Excision, local; malignant tumor of stomach'), +(2175, '43620', 'Gastrectomy, total; with esophagoenterostomy'), +(2176, '43621', 'Gastrectomy, total; with Roux-en-Y reconstruction'), +(2177, '43622', 'Gastrectomy, total; with formation of intestinal pouch, any type'), +(2178, '43631', 'Gastrectomy, partial, distal; with gastroduodenostomy'), +(2179, '43632', 'Gastrectomy, partial, distal; with gastrojejunostomy'), +(2180, '43633', 'Gastrectomy, partial, distal; with Roux-en-Y reconstruction'), +(2181, '43634', 'Gastrectomy, partial, distal; with formation of intestinal pouch'), +(2182, '43635', 'Vagotomy when performed with partial distal gastrectomy (List separately in addition to code[s] for primary procedure)'), +(2183, '43640', 'Vagotomy including pyloroplasty, with or without gastrostomy; truncal or selective'), +(2184, '43641', 'Vagotomy including pyloroplasty, with or without gastrostomy; parietal cell (highly selective)'), +(2185, '43644', 'Laparoscopy, surgical, gastric restrictive procedure; with gastric bypass and Roux-en-Y gastroenterostomy (roux limb 150 cm or less)'), +(2186, '43645', 'Laparoscopy, surgical, gastric restrictive procedure; with gastric bypass and small intestine reconstruction to limit absorption'), +(2187, '43647', 'Laparoscopy, surgical; implantation or replacement of gastric neurostimulator electrodes, antrum'), +(2188, '43648', 'Laparoscopy, surgical; revision or removal of gastric neurostimulator electrodes, antrum'), +(2189, '43651', 'Laparoscopy, surgical; transection of vagus nerves, truncal'), +(2190, '43652', 'Laparoscopy, surgical; transection of vagus nerves, selective or highly selective'), +(2191, '43653', 'Laparoscopy, surgical; gastrostomy, without construction of gastric tube (eg, Stamm procedure) (separate procedure)'), +(2192, '43659', 'Unlisted laparoscopy procedure, stomach'), +(2193, '57555', 'Excision of Cervical Stump, Vaginal Approach; w/Anterior and/or Posterior Repair'), +(2194, '57556', 'Excision of Cervical Stump, Vaginal Approach; w/Repair of Enterocele'), +(2195, '57558', 'Dilation & Curettage of Cervical Stump'), +(2196, '57700', 'Cerclage of Uterine Cervix, Nonobstetrical'), +(2197, '57720', 'Trachelorrhaphy, Plastic Repair of Uterine Cervix, Vaginal Approach'), +(2198, '57800', 'Dilation of Cervical Canal, Instrumental'), +(2199, '58100', 'Endometrial Sampling (biopsy) w/ or w/Out Endocervical Sampling (biopsy), w/Out Cervical Dilation, Any Method'), +(2200, '58110', 'Endometrial Sampling (biopsy) Performed in Conjunction w/Colposcopy'), +(2201, '58120', 'Dilation & Curettage, Diagnostic and/or Therapeutic (nonobstetrical)'), +(2202, '58140', 'Myomectomy, Excision of Fibroid Tumor(s) of Uterus, 1 to 4 Intramural Myoma(s) w/Total Weight of 250 g or Less and/or Removal of Surface Myomas; Abdominal Approach'), +(2203, '58145', 'Myomectomy, Excision of Fibroid Tumor(s) of Uterus, 1 to 4 Intramural Myoma(s) w/Total Weight of 250 g or Less and/or Removal of Surface Myomas; Vaginal Approach'), +(2204, '58146', 'Myomectomy, Excision of Fibroid Tumor(s) of Uterus, 5 or More Intramural Myomas and/or Intramural Myomas w/Total Weight Greater Than 250 g, Abdominal Approach'), +(2205, '58150', 'Total abdominal hysterectomy (corpus and cervix), with or without removal of tube(s), with or without removal of ovary(s);'), +(2206, '58152', 'Total abdominal hysterectomy (corpus and cervix), with or without removal of tube(s), with or without removal of ovary(s); with colpo-urethrocystopexy (eg, Marshall-Marchetti-Krantz, Burch)'), +(2207, '58180', 'Supracervical abdominal hysterectomy (subtotal hysterectomy), with or without removal of tube(s), with or without removal of ovary(s)'), +(2208, '58200', 'Total abdominal hysterectomy, including partial vaginectomy, with para-aortic and pelvic lymph node sampling, with or without removal of tube(s), with or without removal of ovary(s)'), +(2209, '58210', 'Radical abdominal hysterectomy, with bilateral total pelvic lymphadenectomy and para-aortic lymph node sampling (biopsy), with or without removal of tube(s), with or without removal of ovary(s)'), +(2210, '58240', 'Pelvic exenteration for gynecologic malignancy, with total abdominal hysterectomy or cervicectomy, with or without removal of tube(s), with or without removal of ovary(s), with removal of bladder and ureteral transplantations, and/or abdominoperineal resection of rectum and colon and colostomy, or any combination thereof'), +(2211, '58260', 'Vaginal Hysterectomy, for Uterus 250 g or Less'), +(2212, '59120', 'Surgical treatment of ectopic pregnancy; tubal or ovarian, requiring salpingectomy and/or oophorectomy, abdominal or vaginal approach'), +(2213, '59121', 'Surgical treatment of ectopic pregnancy; tubal or ovarian, without salpingectomy and/or oophorectomy'), +(2214, '59130', 'Surgical treatment of ectopic pregnancy; abdominal pregnancy'), +(2215, '59135', 'Surgical treatment of ectopic pregnancy; interstitial, uterine pregnancy requiring total hysterectomy'), +(2216, '59136', 'Surgical treatment of ectopic pregnancy; interstitial, uterine pregnancy with partial resection of uterus'), +(2217, '59140', 'Surgical treatment of ectopic pregnancy; cervical, with evacuation'), +(2218, '59150', 'Laparoscopic treatment of ectopic pregnancy; without salpingectomy and/or oophorectomy'), +(2219, '59151', 'Laparoscopic treatment of ectopic pregnancy; with salpingectomy and/or oophorectomy'), +(2220, '59160', 'Curettage, postpartum'), +(2221, '59200', 'Insertion of cervical dilator (eg, laminaria, prostaglandin) (separate procedure)'), +(2222, '59300', 'Episiotomy or vaginal repair, by other than attending'), +(2223, '59320', 'Cerclage of cervix, during pregnancy; vaginal'), +(2224, '59325', 'Cerclage of cervix, during pregnancy; abdominal'), +(2225, '59350', 'Hysterorrhaphy of ruptured uterus'), +(2226, '59400', 'Routine obstetric care including antepartum care, vaginal delivery (with or without episiotomy, and/or forceps) and postpartum care'), +(2227, '59409', 'Vaginal delivery only (with or without episiotomy and/or forceps);'), +(2228, '59410', 'Vaginal delivery only (with or without episiotomy and/or forceps); including postpartum care'), +(2229, '59412', 'External cephalic version, with or without tocolysis'), +(2230, '59414', 'Delivery of placenta (separate procedure)'), +(2231, '59425', 'Antepartum care only; 4-6 visits'), +(2232, '59426', 'Antepartum care only; 7 or more visits'), +(2233, '59430', 'Postpartum care only (separate procedure)'), +(2234, '59510', 'Routine obstetric care including antepartum care, cesarean delivery, and postpartum care'), +(2235, '59514', 'Cesarean delivery only;'), +(2236, '59515', 'Cesarean delivery only; including postpartum care'), +(2237, '59525', 'Subtotal or total hysterectomy after cesarean delivery (List separately in addition to code for primary procedure)'), +(2238, '59610', 'Routine obstetric care including antepartum care, vaginal delivery (with or without episiotomy, and/or forceps) and postpartum care, after previous cesarean delivery'), +(2239, '59612', 'Vaginal delivery only, after previous cesarean delivery (with or without episiotomy and/or forceps);'), +(2240, '59614', 'Vaginal delivery only, after previous cesarean delivery (with or without episiotomy and/or forceps); including postpartum care'), +(2241, '59618', 'Routine obstetric care including antepartum care, cesarean delivery, and postpartum care, following attempted vaginal delivery after previous cesarean delivery'), +(2242, '59620', 'Cesarean delivery only, following attempted vaginal delivery after previous cesarean delivery;'), +(2243, '59622', 'Cesarean delivery only, following attempted vaginal delivery after previous cesarean delivery; including postpartum care'), +(2244, '59812', 'Treatment of Incomplete Abortion, Any Trimester, Completed Surgically'), +(2245, '59820', 'Treatment of Missed Abortion, Completed Surgically; First Trimester'); +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(2246, '59821', 'Treatment of Missed Abortion, Completed Surgically; Second Trimester'), +(2247, '59830', 'Treatment of Septic Abortion, Completed Surgically'), +(2248, '59840', 'Induced Abortion, by Dilation & Curettage'), +(2249, '59841', 'Induced Abortion, by Dilation & Evacuation'), +(2250, '59850', 'Induced Abortion, by 1 or More Intra-Amniotic Injections (amniocentesis-injections), Including Hospital Admission & Visits, Delivery of Fetus & Secundines'), +(2251, '59851', 'Induced Abortion, by 1 or More Intra-Amniotic Injections (amniocentesis-injections), iIncluding Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Dilation & Curettage and/or Evacuation'), +(2252, '59852', 'Induced Abortion, by 1 or More Intra-Amniotic Injections (amniocentesis-injections), Including Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Hysterotomy (failed intra-amniotic injection)'), +(2253, '59855', 'Induced Abortion, by 1 or More Vaginal Suppositories (eg, prostaglandin) w/ or w/Out Cervical Dilation (eg, laminaria), Including Hospital Admission & Visits, Delivery of Fetus & Secundines'), +(2254, '59856', 'Induced Abortion, by 1 or More Vaginal Suppositories (eg, prostaglandin) w/ or w/Out cervical dilation (eg, laminaria), Including Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Dilation & Curettage and/or Evacuation'), +(2255, '59857', 'Induced Abortion, by 1 or More Vaginal Suppositories (eg, prostaglandin) w/ or w/Out Cervical Dilation (eg, laminaria), Including Hospital Admission & Visits, Delivery of Fetus & Secundines; w/Hysterotomy (failed medical evacuation)'), +(2256, '59866', 'Multifetal Pregnancy Reduction(s) (MPR)'), +(2257, '59870', 'Uterine Evacuation & Curettage for Hydatidiform Mole'), +(2258, '59871', 'Removal of cerclage suture under anesthesia (other than local)'), +(2259, '59897', 'Unlisted Fetal Invasive Procedure, Including Ultrasound Guidance, When Performed'), +(2260, '59898', 'Unlisted laparoscopy procedure, maternity care and delivery'), +(2261, '59899', 'Unlisted procedure, maternity care and delivery'), +(2262, '60000', 'Incision & Drainage of Thyroglossal Duct Cyst, Infected'), +(2263, '60100', 'Biopsy Thyroid Per Core Needle'), +(2264, '60200', 'Excision of Cyst or Adenoma of Thyroid, or Transection of Isthmus'), +(2265, '60210', 'Partial Thyroid Lobectomy, Unilateral; w/ or w/Out Isthmusectomy'), +(2266, '60212', 'Partial Thyroid Lobectomy, Unilateral; w/Contralateral Subtotal Lobectomy, Including Isthmusectomy'), +(2267, '60220', 'Total Thyroid Lobectomy, Unilateral; w/ or w/Out Isthmusectomy'), +(2268, '60225', 'Total Thyroid Lobectomy, Unilateral; w/Contralateral Subtotal Lobectomy, Including Isthmusectomy'), +(2269, '60240', 'Thyroidectomy, Total or Complete'), +(2270, '60252', 'Thyroidectomy, Total or Subtotal for Malignancy; w/Limited Neck Dissection'), +(2271, '60254', 'Thyroidectomy, Total or Subtotal for Malignancy; w/Radical Neck Dissection'), +(2272, '60260', 'Thyroidectomy, Removal of All Remaining Thyroid tissue Following Previous Removal of a Portion of Thyroid'), +(2273, '60270', 'Thyroidectomy, Including Substernal Thyroid; Sternal Split or Transthoracic Approach'), +(2274, '60271', 'Thyroidectomy, Including Substernal Thyroid; Cervical Approach'), +(2275, '60280', 'Excision of Thyroglossal Duct Cyst or Sinus'), +(2276, '60281', 'Excision of Thyroglossal Duct Cyst or Sinus; Recurrent'), +(2277, '61305', 'Craniectomy or craniotomy, exploratory; infratentorial (posterior fossa)'), +(2278, '61312', 'Craniectomy or craniotomy for evacuation of hematoma, supratentorial; extradural or subdural'), +(2279, '61313', 'Craniectomy or craniotomy for evacuation of hematoma, supratentorial; intracerebral'), +(2280, '61314', 'Craniectomy or craniotomy for evacuation of hematoma, infratentorial; extradural or subdural'), +(2281, '61315', 'Craniectomy or craniotomy for evacuation of hematoma, infratentorial; intracerebellar'), +(2282, '61316', 'Incision and subcutaneous placement of cranial bone graft (List separately in addition to code for primary procedure)'), +(2283, '61320', 'Craniectomy or craniotomy, drainage of intracranial abscess; supratentorial'), +(2284, '61321', 'Craniectomy or craniotomy, drainage of intracranial abscess; infratentorial'), +(2285, '61322', 'Craniectomy or craniotomy, decompressive, with or without duraplasty, for treatment of intracranial hypertension, without evacuation of associated intraparenchymal hematoma; without lobectomy'), +(2286, '61323', 'Craniectomy or craniotomy, decompressive, with or without duraplasty, for treatment of intracranial hypertension, without evacuation of associated intraparenchymal hematoma; with lobectomy'), +(2287, '61330', 'Decompression of orbit only, transcranial approach'), +(2288, '61332', 'Exploration of orbit (transcranial approach); with biopsy'), +(2289, '61333', 'Exploration of orbit (transcranial approach); with removal of lesion'), +(2290, '61340', 'Subtemporal cranial decompression (pseudotumor cerebri, slit ventricle syndrome)'), +(2291, '61343', 'Craniectomy, suboccipital with cervical laminectomy for decompression of medulla and spinal cord, with or without dural graft (eg, Arnold-Chiari malformation)'), +(2292, '61345', 'Other cranial decompression, posterior fossa'), +(2293, '61450', 'Craniectomy, subtemporal, for section, compression, or decompression of sensory root of gasserian ganglion'), +(2294, '61458', 'Craniectomy, suboccipital; for exploration or decompression of cranial nerves'), +(2295, '61460', 'Craniectomy, suboccipital; for section of 1 or more cranial nerves'), +(2296, '61480', 'Craniectomy, suboccipital; for mesencephalic tractotomy or pedunculotomy'), +(2297, '61500', 'Craniectomy; with excision of tumor or other bone lesion of skull'), +(2298, '61501', 'Craniectomy; for osteomyelitis'), +(2299, '61510', 'Craniectomy, trephination, bone flap craniotomy; for excision of brain tumor, supratentorial, except meningioma'), +(2300, '61512', 'Craniectomy, trephination, bone flap craniotomy; for excision of meningioma, supratentorial'), +(2301, '61514', 'Craniectomy, trephination, bone flap craniotomy; for excision of brain abscess, supratentorial'), +(2302, '61516', 'Craniectomy, trephination, bone flap craniotomy; for excision or fenestration of cyst, supratentorial'), +(2303, '61517', 'Implantation of brain intracavitary chemotherapy agent (List separately in addition to code for primary procedure)'), +(2304, '61518', 'Craniectomy for excision of brain tumor, infratentorial or posterior fossa; except meningioma, cerebellopontine angle tumor, or midline tumor at base of skull'), +(2305, '61519', 'Craniectomy for excision of brain tumor, infratentorial or posterior fossa; meningioma'), +(2306, '61520', 'Craniectomy for excision of brain tumor, infratentorial or posterior fossa; cerebellopontine angle tumor'), +(2307, '61521', 'Craniectomy for excision of brain tumor, infratentorial or posterior fossa; midline tumor at base of skull'), +(2308, '61522', 'Craniectomy, infratentorial or posterior fossa; for excision of brain abscess'), +(2309, '61524', 'Craniectomy, infratentorial or posterior fossa; for excision or fenestration of cyst'), +(2310, '61526', 'Craniectomy, bone flap craniotomy, transtemporal (mastoid) for excision of cerebellopontine angle tumor;'), +(2311, '61530', 'Craniectomy, bone flap craniotomy, transtemporal (mastoid) for excision of cerebellopontine angle tumor; combined with middle/posterior fossa craniotomy/craniectomy'), +(2312, '61531', 'Subdural implantation of strip electrodes through 1 or more burr or trephine hole(s) for long-term seizure monitoring'), +(2313, '61533', 'Craniotomy with elevation of bone flap; for subdural implantation of an electrode array, for long-term seizure monitoring'), +(2314, '61534', 'Craniotomy with elevation of bone flap; for excision of epileptogenic focus without electrocorticography during surgery'), +(2315, '61535', 'Craniotomy with elevation of bone flap; for removal of epidural or subdural electrode array, without excision of cerebral tissue (separate procedure)'), +(2316, '61536', 'Craniotomy with elevation of bone flap; for excision of cerebral epileptogenic focus, with electrocorticography during surgery (includes removal of electrode array)'), +(2317, '61537', 'Craniotomy with elevation of bone flap; for lobectomy, temporal lobe, without electrocorticography during surgery'), +(2318, '61538', 'Craniotomy with elevation of bone flap; for lobectomy, temporal lobe, with electrocorticography during surgery'), +(2319, '61539', 'Craniotomy with elevation of bone flap; for lobectomy, other than temporal lobe, partial or total, with electrocorticography during surgery'), +(2320, '61540', 'Craniotomy with elevation of bone flap; for lobectomy, other than temporal lobe, partial or total, without electrocorticography during surgery'), +(2321, '61541', 'Craniotomy with elevation of bone flap; for transection of corpus callosum'), +(2322, '61686', 'Surgery of intracranial arteriovenous malformation; infratentorial, complex'), +(2323, '61690', 'Surgery of intracranial arteriovenous malformation; dural, simple'), +(2324, '61692', 'Surgery of intracranial arteriovenous malformation; dural, complex'), +(2325, '61697', 'Surgery of complex intracranial aneurysm, intracranial approach; carotid circulation'), +(2326, '61698', 'Surgery of complex intracranial aneurysm, intracranial approach; vertebrobasilar circulation'), +(2327, '61700', 'Surgery of simple intracranial aneurysm, intracranial approach; carotid circulation'), +(2328, '61702', 'Surgery of simple intracranial aneurysm, intracranial approach; vertebrobasilar circulation'), +(2329, '61703', 'Surgery of intracranial aneurysm, cervical approach by application of occluding clamp to cervical carotid artery (Selverstone-Crutchfield type)'), +(2330, '61705', 'Surgery of aneurysm, vascular malformation or carotid-cavernous fistula; by intracranial and cervical occlusion of carotid artery'), +(2331, '61708', 'Surgery of aneurysm, vascular malformation or carotid-cavernous fistula; by intracranial electrothrombosis'), +(2332, '61710', 'Surgery of aneurysm, vascular malformation or carotid-cavernous fistula; by intra-arterial embolization, injection procedure, or balloon catheter'), +(2333, '61711', 'Anastomosis, arterial, extracranial-intracranial (eg, middle cerebral/cortical) arteries'), +(2334, '61720', 'Creation of lesion by stereotactic method, including burr hole(s) and localizing and recording techniques, single or multiple stages; globus pallidus or thalamus'), +(2335, '61735', 'Creation of lesion by stereotactic method, including burr hole(s) and localizing and recording techniques, single or multiple stages; subcortical structure(s) other than globus pallidus or thalamus'), +(2336, '61750', 'Stereotactic biopsy, aspiration, or excision, including burr hole(s), for intracranial lesion;'), +(2337, '61751', 'Stereotactic biopsy, aspiration, or excision, including burr hole(s), for intracranial lesion; with computed tomography and/or magnetic resonance guidance'), +(2338, '61760', 'Stereotactic implantation of depth electrodes into the cerebrum for long-term seizure monitoring'), +(2339, '61770', 'Stereotactic localization, including burr hole(s), with insertion of catheter(s) or probe(s) for placement of radiation source'), +(2340, '61781', 'Stereotactic computer-assisted (navigational) procedure; cranial, intradural (List separately in addition to code for primary procedure)'), +(2341, '61782', 'Stereotactic computer-assisted (navigational) procedure; cranial, extradural (List separately in addition to code for primary procedure)'), +(2342, '61783', 'Stereotactic computer-assisted (navigational) procedure; spinal (List separately in addition to code for primary procedure)'), +(2343, '61790', 'Creation of lesion by stereotactic method, percutaneous, by neurolytic agent (eg, alcohol, thermal, electrical, radiofrequency); gasserian ganglion'), +(2344, '61791', 'Creation of lesion by stereotactic method, percutaneous, by neurolytic agent (eg, alcohol, thermal, electrical, radiofrequency); trigeminal medullary tract'), +(2345, '61796', 'Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); 1 simple cranial lesion'), +(2346, '61797', 'Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); each additional cranial lesion, simple (List separately in addition to code for primary procedure)'), +(2347, '61798', 'Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); 1 complex cranial lesion'), +(2348, '61799', 'Stereotactic radiosurgery (particle beam, gamma ray, or linear accelerator); each additional cranial lesion, complex (List separately in addition to code for primary procedure)'), +(2349, '61800', 'Application of stereotactic headframe for stereotactic radiosurgery (List separately in addition to code for primary procedure)'), +(2350, '61850', 'Twist drill or burr hole(s) for implantation of neurostimulator electrodes, cortical'), +(2351, '61860', 'Craniectomy or craniotomy for implantation of neurostimulator electrodes, cerebral, cortical'), +(2352, '61863', 'Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), without use of intraoperative microelectrode recording; first array'), +(2353, '61864', 'Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), without use of intraoperative microelectrode recording; each additional array (List separately in addition to primary procedure)'), +(2354, '61867', 'Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), with use of intraoperative microelectrode recording; first array'), +(2355, '61868', 'Twist drill, burr hole, craniotomy, or craniectomy with stereotactic implantation of neurostimulator electrode array in subcortical site (eg, thalamus, globus pallidus, subthalamic nucleus, periventricular, periaqueductal gray), with use of intraoperative microelectrode recording; each additional array (List separately in addition to primary procedure)'), +(2356, '61870', 'Craniectomy for implantation of neurostimulator electrodes, cerebellar, cortical'), +(2357, '61880', 'Revision or removal of intracranial neurostimulator electrodes'), +(2358, '61885', 'Insertion or replacement of cranial neurostimulator pulse generator or receiver, direct or inductive coupling; with connection to a single electrode array'), +(2359, '61886', 'Insertion or replacement of cranial neurostimulator pulse generator or receiver, direct or inductive coupling; with connection to 2 or more electrode arrays'), +(2360, '61888', 'Revision or removal of cranial neurostimulator pulse generator or receiver'), +(2361, '62000', 'Elevation of depressed skull fracture; simple, extradural'), +(2362, '62005', 'Elevation of depressed skull fracture; compound or comminuted, extradural'), +(2363, '62010', 'Elevation of depressed skull fracture; with repair of dura and/or debridement of brain'), +(2364, '62100', 'Craniotomy for repair of dural/cerebrospinal fluid leak, including surgery for rhinorrhea/otorrhea'), +(2365, '62115', 'Reduction of craniomegalic skull (eg, treated hydrocephalus); not requiring bone grafts or cranioplasty'), +(2366, '62117', 'Reduction of craniomegalic skull (eg, treated hydrocephalus); requiring craniotomy and reconstruction with or without bone graft (includes obtaining grafts)'), +(2367, '62120', 'Repair of encephalocele, skull vault, including cranioplasty'), +(2368, '62121', 'Craniotomy for repair of encephalocele, skull base'), +(2369, '62140', 'Cranioplasty for skull defect; up to 5 cm diameter'), +(2370, '62141', 'Cranioplasty for skull defect; larger than 5 cm diameter'), +(2371, '62142', 'Removal of bone flap or prosthetic plate of skull'), +(2372, '62143', 'Replacement of bone flap or prosthetic plate of skull'), +(2373, '62145', 'Cranioplasty for skull defect with reparative brain surgery'), +(2374, '62146', 'Cranioplasty with autograft (includes obtaining bone grafts); up to 5 cm diameter'), +(2375, '62147', 'Cranioplasty with autograft (includes obtaining bone grafts); larger than 5 cm diameter'), +(2376, '62148', 'Incision and retrieval of subcutaneous cranial bone graft for cranioplasty (List separately in addition to code for primary procedure)'), +(2377, '62160', 'Neuroendoscopy, intracranial, for placement or replacement of ventricular catheter and attachment to shunt system or external drainage (List separately in addition to code for primary procedure)'), +(2378, '62161', 'Neuroendoscopy, intracranial; with dissection of adhesions, fenestration of septum pellucidum or intraventricular cysts (including placement, replacement, or removal of ventricular catheter)'), +(2379, '62162', 'Neuroendoscopy, intracranial; with fenestration or excision of colloid cyst, including placement of external ventricular catheter for drainage'), +(2380, '62163', 'Neuroendoscopy, intracranial; with retrieval of foreign body'), +(2381, '62164', 'Neuroendoscopy, intracranial; with excision of brain tumor, including placement of external ventricular catheter for drainage'), +(2382, '62165', 'Neuroendoscopy, intracranial; with excision of pituitary tumor, transnasal or trans-sphenoidal approach'), +(2383, '62180', 'Ventriculocisternostomy (Torkildsen type operation)'), +(2384, '62190', 'Creation of shunt; subarachnoid/subdural-atrial, -jugular, -auricular'), +(2385, '62192', 'Creation of shunt; subarachnoid/subdural-peritoneal, -pleural, other terminus'), +(2386, '62194', 'Replacement or irrigation, subarachnoid/subdural catheter'), +(2387, '62200', 'Ventriculocisternostomy, third ventricle;'), +(2388, '62201', 'Ventriculocisternostomy, third ventricle; stereotactic, neuroendoscopic method'), +(2389, '62220', 'Creation of shunt; ventriculo-atrial, -jugular, -auricular'), +(2390, '62223', 'Creation of shunt; ventriculo-peritoneal, -pleural, other terminus'), +(2391, '62225', 'Replacement or irrigation, ventricular catheter'), +(2392, '62230', 'Replacement or revision of cerebrospinal fluid shunt, obstructed valve, or distal catheter in shunt system'), +(2393, '62252', 'Reprogramming of programmable cerebrospinal shunt'), +(2394, '62256', 'Removal of complete cerebrospinal fluid shunt system; without replacement'), +(2395, '62258', 'Removal of complete cerebrospinal fluid shunt system; with replacement by similar or other shunt at same operation'), +(2396, '62263', 'Percutaneous Lysis of Epidural Adhesions Using Solution Injection (eg, hypertonic saline, enzyme) or Mechanical Means (eg, catheter) Including Radiologic Localization (includes contrast when administered), Multiple Adhesiolysis Sessions; 2 or More Days'), +(2397, '62264', 'Percutaneous Lysis of Epidural Adhesions Using Solution Injection (eg, hypertonic saline, enzyme) or Mechanical Means (eg, catheter) Including Radiologic Localization (includes contrast when administered), Multiple Adhesiolysis Sessions; 1 Day'), +(2398, '62267', 'Percutaneous Aspiration Within the Nucleus Pulposus, Intervertebral Disc, or Paravertebral Tissue For Diagnostic Purposes'), +(2399, '62268', 'Percutaneous Aspiration, Spinal Cord Cyst or Syrinx'), +(2400, '62269', 'Biopsy of Spinal Ccord, Percutaneous Needle'), +(2401, '62270', 'Spinal Fluid Tap Diagnostic'), +(2402, '62272', 'Spinal Fluid Tap Therapeutic'), +(2403, '62273', 'Injection Lumbar EPI Blood or Clot Patch'), +(2404, '62280', 'Injection/infusion of neurolytic substance (eg, alcohol, phenol, iced saline solutions), with or without other therapeutic substance; subarachnoid'), +(2405, '62281', 'Injection/infusion of neurolytic substance (eg, alcohol, phenol, iced saline solutions), with or without other therapeutic substance; epidural, cervical or thoracic'), +(2406, '62282', 'Injection/infusion of neurolytic substance (eg, alcohol, phenol, iced saline solutions), with or without other therapeutic substance; epidural, lumbar, sacral (caudal)'), +(2407, '62284', 'Injection Procedure for Myelography and/or Computed Tomography, Lumbar'), +(2408, '62287', 'Decompression procedure, percutaneous, of nucleus pulposus of intervertebral disc, any method utilizing needle based technique to remove disc material under fluoroscopic imaging or other form of indirect visualization, with the use of an endoscope, with discography and/or epidural injection(s) at the treated level(s), when performed, single or multiple levels, lumbar'), +(2409, '62290', 'Injection Discography Each Level Lumbar'), +(2410, '62291', 'Injection Discography Each Level Cervical/Thoracic'), +(2411, '62292', 'Injection Procedure for Chemonucleolysis, Including Discography, Intervertebral Disc, Single or Multiple Levels, Lumbar'), +(2412, '62294', 'Injection Procedure, Arterial, for Occlusion of Arteriovenous Malformation, Spinal'), +(2413, '62302', 'Myelography Lumbar'), +(2414, '62303', 'Myelography Thoracic'), +(2415, '62304', 'Myelography Lumbosacral'), +(2416, '62305', 'Myelography 2 or More Regions'), +(2417, '62310', 'Injection Epidural w/ & w/Out Contrast Cervical/Thoracic'), +(2418, '62311', 'Injection Epidural w/ & w/Out Contrast Lumbar/Sacral'), +(2419, '62318', 'Injection(s), Including Indwelling Catheter Placement, Continuous Infusion or Intermittent Bolus, of Diagnostic or Therapeutic Substance(s) (including anesthetic, antispasmodic, opioid, steroid, other solution), Not Including Neurolytic Substances, Includes Contrast for Localization When Performed, Epidural or Subarachnoid; Cervical or Thoracic'), +(2420, '62319', 'Injection(s), Including Indwelling Catheter Placement, Continuous Infusion or Intermittent Bolus, of Diagnostic or Therapeutic Substance(s) (including anesthetic, antispasmodic, opioid, steroid, other solution), Not Including Neurolytic Substances, Includes Contrast for Localization When Performed, Epidural or Subarachnoid; Lumbar or Sacral (caudal)'), +(2421, '62350', 'Implantation, Revision or Repositioning of Tunneled Intrathecal or Epidural Catheter, for Long-Term Medication Administration via an External Pump or Implantable Reservoir/Infusion Pump; w/Out Laminectomy'), +(2422, '62351', 'Implantation, Revision or Repositioning of Tunneled Intrathecal or Epidural Catheter, for Long-Term Medication Administration via an External Pump or Implantable Reservoir/Infusion Pump; w/Laminectomy'), +(2423, '62355', 'Removal of Previously Implanted Intrathecal or Epidural Catheter'), +(2424, '64400', 'Injection, Anesthetic Agent; Trigeminal Nerve, Any Division or Branch'), +(2425, '64402', 'Injection, Anesthetic Agent; Facial Nerve'), +(2426, '64405', 'Injection Anesthetic Agent Facial Nerve'), +(2427, '64408', 'Injection, Anesthetic Agent; Vagus Nerve'), +(2428, '64410', 'Injection, Anesthetic Agent; Phrenic Nerve'), +(2429, '64412', 'Injection, Anesthetic Agent; Spinal Accessory Nerve'), +(2430, '64413', 'Injection, Anesthetic Agent; Cervical Plexus'), +(2431, '64415', 'Injection, Anesthetic Agent; Brachial Plexus, Single'), +(2432, '64416', 'Injection, Anesthetic Agent; Brachial Plexus, Continuous Infusion by Catheter (including catheter placement)'), +(2433, '64417', 'Injection, Anesthetic Agent; Axillary Nerve'), +(2434, '64418', 'Injection, Anesthetic Agent; Suprascapular Nerve'), +(2435, '64420', 'Injection Intercostal Nerve'), +(2436, '64421', 'Injection, Anesthetic Agent; Intercostal Nerves, Multiple, Regional Block'), +(2437, '64425', 'Injection, Anesthetic Agent; Ilioinguinal, Iliohypogastric Nerves'), +(2438, '64430', 'Injection, Anesthetic Agent; Pudendal Nerve'), +(2439, '64435', 'Injection, Anesthetic Agent; Paracervical (uterine) Nerve'), +(2440, '64445', 'Injection, Anesthetic Agent; Sciatic Nerve, Single'), +(2441, '64446', 'Injection, Anesthetic Agent; Sciatic Nerve, Continuous Infusion by Catheter (including catheter placement)'), +(2442, '64447', 'Injection, Anesthetic Agent; Femoral Nerve, Single'), +(2443, '64448', 'Injection, Anesthetic Agent; Femoral Nerve, Continuous Infusion by Catheter (including catheter placement)'), +(2444, '64449', 'Injection, Anesthetic Agent; Lumbar Plexus, Posterior Approach, Continuous Infusion by Catheter (including catheter placement)'), +(2445, '64450', 'Injection Anesthesia Peripheral Nerve'), +(2446, '64479', 'Injection Epidural Cervical'), +(2447, '64480', 'Injection(s), Anesthetic Agent and/or Steroid, Transforaminal Epidural, w/Imaging Guidance (fluoroscopy or CT); Cervical or Thoracic, Each Addtl Level'), +(2448, '64483', 'Injection Epidural Lumbar'), +(2449, '64484', 'Injection(s), Anesthetic Agent and/or Steroid, Transforaminal Epidural, w/Imaging Guidance (fluoroscopy or CT); Lumbar or Sacral, Each Addtl Level'), +(2450, '64486', 'Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Unilateral; by Injection(s) (includes imaging guidance, when performed)'), +(2451, '64487', 'Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Unilateral; by Continuous Infusion(s) (includes imaging guidance, when performed)'), +(2452, '64488', 'Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Bilateral; by Injections (includes imaging guidance, when performed)'), +(2453, '64489', 'Transversus Abdominis Plane (TAP) Block (abdominal plane block, rectus sheath block) Bilateral; by Continuous Infusions (includes imaging guidance, when performed)'), +(2454, '64490', 'Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Cervical or Thoracic; Single Level'), +(2455, '64491', 'Injection Paravertebral CT Add On'), +(2456, '64492', 'Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Cervical or Thoracic; Third & Any Addtl Level(s)'), +(2457, '64493', 'Injection Paravertebral'), +(2458, '64494', 'Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Lumbar or Sacral; Second Level'), +(2459, '64495', 'Injection(s), Diagnostic or Therapeutic Agent, Paravertebral Facet (zygapophyseal) Joint (or nerves innervating that joint) w/Image Guidance (fluoroscopy or CT), Lumbar or Sacral; Third & Any Addtl Level(s)'), +(2460, '64505', 'Injection, Anesthetic Agent; Sphenopalatine Ganglion'), +(2461, '64508', 'Injection, Anesthetic Agent; Carotid Sinus'), +(2462, '64510', 'Injcection Anesthetic Stellate Ganglion'), +(2463, '64517', 'Injection, Anesthetic Agent; Superior Hypogastric Plexus'), +(2464, '64520', 'Injection, Anesthetic Agent; Lumbar or Thoracic (paravertebral sympathetic)'), +(2465, '64530', 'Injection Anesthetic Celiac Plexus'), +(2466, '64550', 'Application of Surface (transcutaneous) Neurostimulator'), +(2467, '64553', 'Percutaneous Implantation of Neurostimulator Electrode Array; Cranial Nerve'), +(2468, '64555', 'Percutaneous Implantation of Neurostimulator Electrode Array; Peripheral Nerve (excludes sacral nerve)'), +(2469, '64561', 'Percutaneous Implantation of Neurostimulator Electrode Array; Sacral Nerve (transforaminal placement) Including Image Guidance, if Performed'), +(2470, '64565', 'Percutaneous Implantation of Neurostimulator Electrode Array; Neuromuscular'), +(2471, '64566', 'Posterior Tibial Neurostimulation, Percutaneous Needle Electrode, Single Treatment, Includes Programming'), +(2472, '64568', 'Incision for Implantation of Cranial Nerve (eg, vagus nerve) Neurostimulator Electrode Array & Pulse Generator'), +(2473, '64569', 'Revision or Replacement of Cranial Nerve (eg, vagus nerve) Neurostimulator Electrode Array, Including Connection to Existing Pulse Generator'), +(2474, '64570', 'Removal of Cranial Nerve (eg, vagus nerve) Neurostimulator Electrode Array & Pulse Generator'), +(2475, '64575', 'Incision for Implantation of Neurostimulator Electrode Array; Peripheral Nerve (excludes sacral nerve)'), +(2476, '64580', 'Incision for Implantation of Neurostimulator Electrode Array; Neuromuscular'), +(2477, '64581', 'Incision for Implantation of Neurostimulator Electrode Array; Sacral Nerve (transforaminal placement)'), +(2478, '64585', 'Revision or Removal of Peripheral Neurostimulator Electrode Array'), +(2479, '64590', 'Insertion or Replacement of Peripheral or Gastric Neurostimulator Pulse Generator or Receiver, Direct or Inductive Coupling'), +(2480, '64595', 'Revision or Removal of Peripheral or Gastric Neurostimulator Pulse Generator or Receiver'), +(2481, '64600', 'Destruction by Neurolytic Agent, Trigeminal Nerve; Supraorbital, Infraorbital, Mental, or Inferior Alveolar Branch'), +(2482, '64605', 'Destruction by Neurolytic Agent, Trigeminal Nerve; Second & Third Division Branches at Foramen Ovale'), +(2483, '64610', 'Destruction by Neurolytic Agent, Trigeminal Nerve; Second & Third Division Branches at Foramen Ovale Under Radiologic Monitoring'), +(2484, '64611', 'Chemodenervation of Parotid & Submandibular Salivary Glands, Bilateral'), +(2485, '64612', 'Chemodenervation of Muscle(s); Muscle(s) Innervated by Facial Nerve, Unilateral (eg, for blepharospasm, hemifacial spasm)'), +(2486, '64615', 'Chemodenervation of Muscle(s); Muscle(s) Innervated by Facial, Trigeminal, Cervical Spinal & Accessory Nerves, Bilateral (eg, for chronic migraine)'), +(2487, '64616', 'Chemodenervation of Muscle(s); Neck Muscle(s), Excluding Muscles of the Larynx, Unilateral (eg, for cervical dystonia, spasmodic torticollis)'), +(2488, '64617', 'Chemodenervation of Muscle(s); Larynx, Unilateral, Percutaneous (eg, for spasmodic dysphonia), Includes Guidance by Needle Electromyography, When Performed'), +(2489, '64620', 'Destruction by Neurolytic Agent, Intercostal Nerve'), +(2490, '64630', 'Destruction by Neurolytic Agent; Pudendal Nerve'), +(2491, '64632', 'Destruction by Neurolytic Plantar Common Digital Nerve'), +(2492, '64633', 'Destruction Neurolytic Paravertebral Cerv/Thoracic'), +(2493, '64634', 'Destruction Neurolytic Paravertebral Cerv/Thor Addtl'), +(2494, '64635', 'Destruction Neurolytic Paravertebral Limb/Sacral'), +(2495, '64636', 'Destruction Neurolytic Paravertebral Limb/Sacral Addtl'), +(2496, '64640', 'Destruction Neurologic Agent Peripheral Nerve'), +(2497, '64642', 'Chemodenervation of One Extremity; 1-4 Muscle(s)'), +(2498, '64643', 'Chemodenervation of One Extremity; Each Addtl Extremity, 1-4 Muscle(s)'), +(2499, '64644', 'Chemodenervation of One Extremity; 5 or More Muscles'), +(2500, '64645', 'Chemodenervation of One Extremity; Each Addtl Extremity, 5 or More Muscles'), +(2501, '64646', 'Chemodenervation of Trunk Muscle(s); 1-5 Muscle(s)'), +(2502, '64647', 'Chemodenervation of Trunk Muscle(s); 6 or More Muscles'), +(2503, '64650', 'Chemodenervation of Eccrine Glands; Both Axillae'), +(2504, '64653', 'Chemodenervation of Eccrine Glands; Other Area(s) (eg, scalp, face, neck), Per Day'), +(2505, '64680', 'Destruction by Neurolytic Agent, w/ or w/o Radiologic Monitoring; Celiac Plexus'), +(2506, '64681', 'Destruction by Neurolytic Agent, w/ or w/o Radiologic Monitoring; Superior Hypogastric Plexus'), +(2507, '64702', 'Neuroplasty; Digital, 1 or Both, Same Digit'), +(2508, '64704', 'Neuroplasty; Nerve of Hand or Foot'), +(2509, '64708', 'Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Other Than Specified'), +(2510, '64712', 'Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Sciatic Nerve'), +(2511, '64713', 'Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Brachial Plexus'), +(2512, '64714', 'Neuroplasty, Major Peripheral Nerve, Arm or Leg, Open; Lumbar Plexus'), +(2513, '64716', 'Neuroplasty and/or Transposition; Cranial Nerve'), +(2514, '64718', 'Neuroplasty and/or Transposition; Ulnar Nerve at Elbow'), +(2515, '64719', 'Neuroplasty and/or Transposition; Ulnar Nerve at Wrist'), +(2516, '64721', 'Neuroplasty and/or Transposition; Median Nerve at Carpal Tunnel'), +(2517, '64722', 'Decompression; Unspecified Nerve(s)'), +(2518, '64726', 'Decompression; Plantar Digital Nerve'), +(2519, '64727', 'Internal Neurolysis, Requiring Use of Operating Microscope (Neuroplasty includes external neurolysis)'), +(2520, '64732', 'Transection or Avulsion of; Supraorbital Nerve'), +(2521, '64734', 'Transection or Avulsion of; Infraorbital Nerve'), +(2522, '64736', 'Transection or Avulsion of; Mental Nerve'), +(2523, '64738', 'Transection or Avulsion of; Inferior Alveolar Nerve by Osteotomy'), +(2524, '64740', 'Transection or Avulsion of; Lingual Nerve'), +(2525, '64742', 'Transection or Avulsion of; Facial Nerve, Differential or Complete'), +(2526, '64744', 'Transection or Avulsion of; Greater Occipital Nerve'), +(2527, '64746', 'Transection or Avulsion of; Phrenic Nerve'), +(2528, '64755', 'Transection or Avulsion of; Vagus Nerves Limited to Proximal Stomach (selective proximal vagotomy, proximal gastric vagotomy, parietal cell vagotomy, supra- or highly selective vagotomy)'), +(2529, '64760', 'Transection or Avulsion of; Vagus Nerve (vagotomy), Abdominal'), +(2530, '64763', 'Transection or Avulsion of Obturator Nerve, Extrapelvic, w/ or w/Out Adductor Tenotomy'), +(2531, '64766', 'Transection or Avulsion of Obturator Nerve, Intrapelvic, w/ or w/Out Adductor Tenotomy'), +(2532, '64771', 'Transection or Avulsion of Other Cranial Nerve, Extradural'), +(2533, '64772', 'Transection or Avulsion of Other Spinal Nerve, Extradural'), +(2534, '64774', 'Excision of Neuroma; Cutaneous Nerve, Surgically Identifiable'), +(2535, '64776', 'Excision of Neuroma; Digital Nerve, 1 or Both, Same Digit'), +(2536, '64778', 'Excision of Neuroma; Digital Nerve, Each Addtl Digit'), +(2537, '64782', 'Excision of Neuroma; Hand or Foot, Except Digital Nerve'), +(2538, '64783', 'Excision of Neuroma; Hand or Foot, Each Addtl Nerve, Except Same Digit'), +(2539, '64784', 'Excision of Neuroma; Major Peripheral Nerve, Except Sciatic'), +(2540, '64786', 'Excision of Neuroma; Sciatic Nerve'), +(2541, '64787', 'Implantation of Nerve End Into Bone or Muscle'), +(2542, '64788', 'Excision of Neurofibroma or Neurolemmoma; Cutaneous Nerve'), +(2543, '64790', 'Excision of Neurofibroma or Neurolemmoma; Major Peripheral Nerve'), +(2544, '64792', 'Excision of Neurofibroma or Neurolemmoma; Extensive (including malignant type)'), +(2545, '64795', 'Biopsy of Nerve'), +(2546, '64802', 'Sympathectomy, Cervical'), +(2547, '64804', 'Sympathectomy, Cervicothoracic'), +(2548, '64809', 'Sympathectomy, Thoracolumbar'), +(2549, '64818', 'Sympathectomy, Lumbar'), +(2550, '64820', 'Sympathectomy; Digital Arteries, Each Digit'), +(2551, '64821', 'Sympathectomy; Radial Artery'), +(2552, '64822', 'Sympathectomy; Ulnar Artery'), +(2553, '64823', 'Sympathectomy; Superficial Palmar Arch'), +(2554, '64831', 'Suture of Digital Nerve, Hand or Foot; 1 Nerve'), +(2555, '64832', 'Suture of Digital Nerve, Hand or Foot; Each Addtl Digital Nerve'), +(2556, '64834', 'Suture of 1 Nerve; Hand or Foot, Common Sensory Nerve'), +(2557, '64835', 'Suture of 1 Nerve; Median Motor Thenar'), +(2558, '64836', 'Suture of 1 Nerve; Ulnar Motor'), +(2559, '64837', 'Suture of Each Addtl Nerve, Hand or Foot'), +(2560, '64840', 'Suture of Posterior Tibial Nerve'), +(2561, '64856', 'Suture of Major Peripheral Nerve, Arm or Leg, Except Sciatic; Including Transposition'), +(2562, '64857', 'Suture of Major Peripheral Nerve, Arm or Leg, Except Sciatic; w/Out Transposition'), +(2563, '64858', 'Suture of Sciatic Nerve'), +(2564, '64859', 'Suture of Each Addtl Major Peripheral Nerve'), +(2565, '64861', 'Suture of; Brachial Plexus'), +(2566, '64862', 'Suture of; Lumbar Plexus'), +(2567, '64864', 'Suture of Facial Nerve; Extracranial'), +(2568, '64865', 'Suture of Facial Nerve; Infratemporal, w/ or w/Out Grafting'), +(2569, '64866', 'Anastomosis; facial-spinal accessory'), +(2570, '64868', 'Anastomosis; facial-hypoglossal'), +(2571, '64872', 'Suture of nerve; requiring secondary or delayed suture (List separately in addition to code for primary neurorrhaphy)'), +(2572, '64874', 'Suture of nerve; requiring extensive mobilization, or transposition of nerve (List separately in addition to code for nerve suture)'), +(2573, '64876', 'Suture of nerve; requiring shortening of bone of extremity (List separately in addition to code for nerve suture)'), +(2574, '64885', 'Nerve graft (includes obtaining graft), head or neck; up to 4 cm in length'), +(2575, '64886', 'Nerve graft (includes obtaining graft), head or neck; more than 4 cm length'), +(2576, '64890', 'Nerve graft (includes obtaining graft), single strand, hand or foot; up to 4 cm length'), +(2577, '64891', 'Nerve graft (includes obtaining graft), single strand, hand or foot; more than 4 cm length'), +(2578, '64892', 'Nerve graft (includes obtaining graft), single strand, arm or leg; up to 4 cm length'), +(2579, '64893', 'Nerve graft (includes obtaining graft), single strand, arm or leg; more than 4 cm length'), +(2580, '64895', 'Nerve graft (includes obtaining graft), multiple strands (cable), hand or foot; up to 4 cm length'), +(2581, '64896', 'Nerve graft (includes obtaining graft), multiple strands (cable), hand or foot; more than 4 cm length'), +(2582, '64897', 'Nerve graft (includes obtaining graft), multiple strands (cable), arm or leg; up to 4 cm length'), +(2583, '64898', 'Nerve graft (includes obtaining graft), multiple strands (cable), arm or leg; more than 4 cm length'), +(2584, '64901', 'Nerve graft, each additional nerve; single strand (List separately in addition to code for primary procedure)'), +(2585, '64902', 'Nerve graft, each additional nerve; multiple strands (cable) (List separately in addition to code for primary procedure)'), +(2586, '64905', 'Nerve pedicle transfer; first stage'), +(2587, '64907', 'Nerve pedicle transfer; second stage'), +(2588, '64910', 'Nerve repair; with synthetic conduit or vein allograft (eg, nerve tube), each nerve'), +(2589, '64911', 'Nerve repair; with autogenous vein graft (includes harvest of vein graft), each nerve'), +(2590, '64999', 'Unlisted procedure, nervous system'), +(2591, '65091', 'Evisceration of Ocular Contents; w/Out Implant'), +(2592, '65093', 'Evisceration of Ocular Contents; w/Implant'), +(2593, '65101', 'Enucleation of Eye; w/Out Implant'), +(2594, '65103', 'Enucleation of Eye; w/Implant, Muscles Not Attached to Implant'), +(2595, '65105', 'Enucleation of Eye; w/Implant, Muscles Attached to Implant'), +(2596, '65110', 'Exenteration of orbit (does not include skin graft), removal of orbital contents; only'), +(2597, '65112', 'Exenteration of orbit (does not include skin graft), removal of orbital contents; with therapeutic removal of bone'), +(2598, '65114', 'Exenteration of orbit (does not include skin graft), removal of orbital contents; with muscle or myocutaneous flap'), +(2599, '65125', 'Modification of Ocular Implant w/Placement or Replacement of Pegs (eg, drilling receptacle for prosthesis appendage)'), +(2600, '65130', 'Insertion of Ocular Implant Secondary; After Evisceration, in Scleral Shell'), +(2601, '65135', 'Insertion of Ocular Implant Secondary; After Enucleation, Muscles Not Attached to Implant'), +(2602, '65140', 'Insertion of Ocular Implant Secondary; After Enucleation, Muscles Attached to Implant'), +(2603, '65150', 'Reinsertion of Ocular Implant; w/ or w/Out Conjunctival Graft'), +(2604, '65155', 'Reinsertion of Ocular Implant; w/Use of Foreign Material for Reinforcement and/or Attachment of Muscles to Implant'), +(2605, '65175', 'Removal of Ocular Implant'), +(2606, '65205', 'Removal of Foreign Body, External Eye; Conjunctival Superficial'), +(2607, '65210', 'Removal of Foreign Body, External Eye; Conjunctival Embedded (includes concretions), Subconjunctival, or Scleral Nonperforating'), +(2608, '65220', 'Removal of Foreign Body, External Eye; Corneal, w/Out Slit Lamp'), +(2609, '65222', 'Removal of Foreign Body, External Eye; Corneal, w/Slit Lamp'), +(2610, '65235', 'Removal of Foreign Body, Intraocular; From Anterior Chamber of Eye or Lens'), +(2611, '65260', 'Removal of Foreign Body, Intraocular; From Posterior Segment, Magnetic Extraction, Anterior or Posterior Route'), +(2612, '65265', 'Removal of Foreign Body, Intraocular; From Posterior Segment, Nonmagnetic Extraction'), +(2613, '65270', 'Repair of Laceration; Conjunctiva, w/ or w/Out Nonperforating Laceration Sclera, Direct Closure'), +(2614, '65272', 'Repair of Laceration; Conjunctiva, by Mobilization & Rearrangement, w/Out Hospitalization'), +(2615, '65273', 'Repair of Laceration; Conjunctiva, by Mobilization & Rearrangement, w/Hospitalization'), +(2616, '65275', 'Repair of Laceration; Cornea, Nonperforating, w/ or w/Out Removal Foreign Body'), +(2617, '65280', 'Repair of Laceration; Cornea and/or Sclera, Perforating, Not Involving Uveal Tissue'), +(2618, '65285', 'Repair of Laceration; Cornea and/or Sclera, Perforating, w/Reposition or Resection of Uveal Tissue'), +(2619, '65286', 'Repair of Laceration; Application of Tissue Glue, Wounds of Cornea and/or Sclera'), +(2620, '65400', 'Excision of Lesion, Cornea (keratectomy, lamellar, partial), Except Pterygium'), +(2621, '65410', 'Biopsy of Cornea'), +(2622, '65420', 'Excision or Transposition of Pterygium; w/Out Graft'), +(2623, '65426', 'Excision or Transposition of Pterygium; w/Graft'), +(2624, '65430', 'Scraping of Cornea, Diagnostic, for Smear and/or Culture'), +(2625, '65435', 'Removal of Corneal Epithelium; w/ or w/Out Chemocauterization (abrasion, curettage)'), +(2626, '65436', 'Removal of Corneal Epithelium; w/Application of Chelating Agent (eg, EDTA)'), +(2627, '65450', 'Destruction of Lesion of Cornea by Cryotherapy, Photocoagulation or Thermocauterization'), +(2628, '65600', 'Multiple Punctures of Anterior Cornea (eg, for corneal erosion, tattoo)'), +(2629, '65710', 'Keratoplasty (corneal transplant); Anterior Lamellar'), +(2630, '65730', 'Keratoplasty (corneal transplant); Penetrating (except in aphakia or pseudophakia)'), +(2631, '65750', 'Keratoplasty (corneal transplant); Penetrating (in aphakia)'), +(2632, '65755', 'Keratoplasty (corneal transplant); Penetrating (in pseudophakia)'), +(2633, '65756', 'Keratoplasty (corneal transplant); Endothelial'), +(2634, '65757', 'Backbench Preparation of Corneal Endothelial Allograft Prior to Transplantation'), +(2635, '65760', 'Keratomileusis'), +(2636, '65765', 'Keratophakia'), +(2637, '65767', 'Epikeratoplasty'), +(2638, '65770', 'Keratoprosthesis'), +(2639, '65771', 'Radial Keratotomy'), +(2640, '65772', 'Corneal Relaxing Incision for Correction of Surgically Induced Astigmatism'), +(2641, '65775', 'Corneal Wedge Resection for Correction of Surgically Induced Astigmatism'), +(2642, '65778', 'Placement of Amniotic Membrane on the Ocular Surface; w/Out Sutures'), +(2643, '65779', 'Placement of Amniotic Membrane on the Ocular Surface; Single Layer, Sutured'), +(2644, '65780', 'Ocular Surface Reconstruction; Amniotic Membrane Transplantation, Multiple Layers'), +(2645, '65781', 'Ocular Surface Reconstruction; Limbal Stem Cell Allograft (eg, cadaveric or living donor)'), +(2646, '65782', 'Ocular Surface Reconstruction; Limbal Conjunctival Autograft'), +(2647, '65800', 'Paracentesis of Anterior Chamber of Eye; w/Removal of Qqueous'), +(2648, '65810', 'Paracentesis of Anterior Chamber of Eye; w/Removal of Vitreous and/or Discission of Anterior Hyaloid Membrane, w/ or w/Out Air Injection'), +(2649, '65815', 'Paracentesis of Anterior Chamber of Eye; w/Removal of Blood, w/ or w/Out Irrigation and/or Air Injection'), +(2650, '65820', 'Goniotomy'), +(2651, '65850', 'Trabeculotomy ab Externo'), +(2652, '65855', 'Trabeculoplasty by Laser Surgery, 1 or More Sessions (defined treatment series)'), +(2653, '65860', 'Severing Adhesions of Anterior Segment, Laser Technique'), +(2654, '65865', 'Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Goniosynechiae'), +(2655, '65870', 'Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Anterior Synechiae, Except Goniosynechiae'), +(2656, '65875', 'Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Posterior Synechiae'), +(2657, '65880', 'Severing Adhesions of Anterior Segment of Eye, Incisional Technique (with or without injection of air or liquid); Corneovitreal Adhesions'), +(2658, '65900', 'Removal of Epithelial Downgrowth, Anterior Chamber of Eye'), +(2659, '65920', 'Removal of Implanted Material, Anterior Segment of Eye'), +(2660, '65930', 'Removal of Blood Clot, Anterior Segment of Eye'), +(2661, '66020', 'Injection, Anterior Chamber of Eye; Air or Liquid'), +(2662, '66030', 'Injection, Anterior Chamber of Eye; Medication'), +(2663, '66130', 'Excision of Lesion, Sclera'), +(2664, '66150', 'Fistulization of Sclera for Glaucoma; Trephination w/Iridectomy'), +(2665, '66155', 'Fistulization of Sclera for Glaucoma; Thermocauterization w/Iridectomy'), +(2666, '66160', 'Fistulization of Sclera for Glaucoma; Sclerectomy w/Punch or Scissors, w/Iridectomy'), +(2667, '66170', 'Fistulization of Sclera for Glaucoma; Trabeculectomy ab Externo in Absence of Previous Surgery'), +(2668, '66172', 'Fistulization of Sclera for Glaucoma; Trabeculectomy ab Externo w/Scarring From Previous Ocular Surgery or Trauma (includes injection of antifibrotic agents)'), +(2669, '66174', 'Transluminal Dilation of Aqueous Outflow Canal; w/o Retention of Device or Stent'), +(2670, '66175', 'Transluminal Dilation of Aqueous Outflow Canal; w/Retention of Device or Stent'), +(2671, '66179', 'Aqueous Shunt to Extraocular Equatorial Plate Reservoir, External Approach; w/Out Graft'), +(2672, '66180', 'Aqueous Shunt to Extraocular Equatorial Plate Reservoir, External Approach; w/Graft'), +(2673, '66183', 'Insertion of Anterior Segment Aqueous Drainage Device, w/Out Extraocular Reservoir, External Approach'), +(2674, '66184', 'Revision of Aqueous Shunt to Extraocular Equatorial Plate Reservoir; w/Out Graft'), +(2675, '66185', 'Revision of Aqueous Shunt to Extraocular Equatorial Plate Reservoir; w/Graft'), +(2676, '66220', 'Repair of Scleral Staphyloma; w/Out Graft'), +(2677, '66225', 'Repair of Scleral Staphyloma; w/Graft'), +(2678, '66250', 'Revision or Repair of Operative Wound of Anterior Segment, Any Type, Early or Late, Major or Minor Procedure'), +(2679, '66500', 'Iridotomy by Stab Incision; Except Transfixion'), +(2680, '66505', 'Iridotomy by Stab Incision; w/Transfixion as for Iris Bombe'), +(2681, '66600', 'Iridectomy, w/Corneoscleral or Corneal Section; for Removal of Lesion'), +(2682, '66605', 'Iridectomy, w/Corneoscleral or Corneal Section; w/Cyclectomy'), +(2683, '66625', 'Iridectomy, w/Corneoscleral or Corneal Section; Peripheral for Glaucoma'), +(2684, '66630', 'Iridectomy, w/Corneoscleral or Corneal Section; Sector for Glaucoma'), +(2685, '66635', 'Iridectomy, w/Corneoscleral or Corneal Section; Optical'), +(2686, '66680', 'Repair of Iris, Ciliary Body (as for iridodialysis)'), +(2687, '66682', 'Suture of Iris, Ciliary Body w/Retrieval of Suture Through Small Incision (eg, McCannel suture)'), +(2688, '66700', 'Ciliary Body Destruction; Diathermy'), +(2689, '66710', 'Ciliary Body Destruction; Cyclophotocoagulation, Transscleral'), +(2690, '66711', 'Ciliary Body Destruction; Cyclophotocoagulation, Endoscopic'), +(2691, '66720', 'Ciliary Body Destruction; Cryotherapy'), +(2692, '66740', 'Ciliary Body Destruction; Cyclodialysis'), +(2693, '66761', 'Iridotomy/Iridectomy by Laser Surgery (eg, for glaucoma) (per session)'), +(2694, '66762', 'Iridoplasty by Photocoagulation (1 or more sessions) (eg, for improvement of vision, for widening of anterior chamber angle)'), +(2695, '66770', 'Destruction of Cyst or Lesion Iris or Ciliary Body (nonexcisional procedure)'), +(2696, '66820', 'Discission of Secondary Membranous Cataract (opacified posterior lens capsule and/or anterior hyaloid); Stab Incision Technique (Ziegler or Wheeler knife)'), +(2697, '66821', 'Discission of Secondary Membranous Cataract (opacified posterior lens capsule and/or anterior hyaloid); Laser Surgery (eg, YAG laser) (1 or more stages)'), +(2698, '66825', 'Repositioning of Intraocular Lens Prosthesis, Requiring an Incision'), +(2699, '66830', 'Removal of Secondary Membranous Cataract (opacified posterior lens capsule and/or anterior hyaloid) w/Corneo-Scleral Section, w/ or w/Out Iridectomy (iridocapsulotomy, iridocapsulectomy)'), +(2700, '66840', 'Removal of Lens Material; Aspiration Technique, 1 or More Stages'), +(2701, '66850', 'Removal of Lens Material; Phacofragmentation Technique (mechanical or ultrasonic) (eg, phacoemulsification), w/Aspiration'), +(2702, '66852', 'Removal of Lens Material; Pars Plana Approach, w/ or w/Out Vitrectomy'), +(2703, '66920', 'Removal of Lens mMterial; Intracapsular'), +(2704, '66930', 'Removal of Lens Material; Intracapsular, for Dislocated Lens'), +(2705, '66940', 'Removal of Lens Material; Extracapsular'), +(2706, '66982', 'Extracapsular Cataract Removal w/Insertion of Intraocular Lens Prosthesis (1-stage procedure), Manual or Mechanical Technique (eg, irrigation and aspiration or phacoemulsification), Complex, Requiring Devices or Techniques Not Generally Used in Routine Cataract Surgery (eg, iris expansion device, suture support for intraocular lens, or primary posterior capsulorrhexis) or Performed on Patients in the Amblyogenic Developmental Stage'), +(2707, '66983', 'Intracapsular Cataract Extraction w/Insertion of Intraocular Lens Prosthesis (1 stage procedure)'), +(2708, '66984', 'Extracapsular Cataract Removal w/Insertion of Intraocular Lens Prosthesis (1 stage procedure), Manual or Mechanical Technique (eg, irrigation and aspiration or phacoemulsification)'), +(2709, '66985', 'Insertion of Intraocular Lens Prosthesis (secondary implant), Not Associated w/Concurrent Cataract Removal'), +(2710, '66986', 'Exchange of Intraocular Lens'), +(2711, '66990', 'Use of Ophthalmic Endoscope'), +(2712, '66999', 'Unlisted procedure, anterior segment of eye'), +(2713, '67005', 'Removal of Vitreous, Anterior Approach (open sky technique or limbal incision); Partial Removal'), +(2714, '67010', 'Removal of Vitreous, Anterior Approach (open sky technique or limbal incision); Subtotal Removal w/Mechanical Vitrectomy'), +(2715, '67015', 'Aspiration or Release of Vitreous, Subretinal or Choroidal Fluid, Pars Plana Approach (posterior sclerotomy)'), +(2716, '67025', 'Injection of Vitreous Substitute, Pars Plana or Limbal Approach (fluid-gas exchange), w/ or w/Out Aspiration'), +(2717, '67027', 'Implantation of Intravitreal Drug Delivery System (eg, ganciclovir implant), Includes Concomitant Removal of Vitreous'), +(2718, '67028', 'Intravitreal Injection of a Pharmacologic Agent'); +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(2719, '67030', 'Discission of Vitreous Strands (without removal), Pars Plana Approach'), +(2720, '67031', 'Severing of Vitreous Strands, Vitreous Face Adhesions, Sheets, Membranes or Opacities, Laser Surgery (1 or more stages)'), +(2721, '67036', 'Vitrectomy, Mechanical, Pars Plana Approach'), +(2722, '67039', 'Vitrectomy, Mechanical, Pars Plana Approach; w/Focal Endolaser Photocoagulation'), +(2723, '67040', 'Vitrectomy, Mechanical, Pars Plana Approach; w/Endolaser Panretinal Photocoagulation'), +(2724, '67041', 'Vitrectomy, Mechanical, Pars Plana Approach; w/Removal of Preretinal Cellular Membrane (eg, macular pucker)'), +(2725, '67042', 'Vitrectomy, Mechanical, Pars Plana Approach; w/Removal of Internal Limiting Membrane of Retina (eg, for repair of macular hole, diabetic macular edema), Includes, if Performed, Intraocular Tamponade (ie, air, gas or silicone oil)'), +(2726, '67043', 'Vitrectomy, Mechanical, Pars Plana Approach; w/Removal of Subretinal Membrane (eg, choroidal neovascularization), Includes, if Performed, Intraocular Tamponade (ie, air, gas or silicone oil) & Laser Photocoagulation'), +(2727, '67101', 'Repair of Retinal Detachment, 1 or More Sessions; Cryotherapy or Diathermy, w/ or w/Out Drainage of Subretinal Fluid'), +(2728, '67105', 'Repair of Retinal Detachment, 1 or More Sessions; Photocoagulation, w/ or w/Out Drainage of Subretinal Fluid'), +(2729, '67107', 'Repair of Retinal Detachment; Scleral Buckling (such as lamellar scleral dissection, imbrication or encircling procedure), w/ or w/Out Implant, w/ or w/Out Cryotherapy, Photocoagulation, & Drainage of Subretinal Fluid'), +(2730, '67108', 'Repair of Retinal Detachment; w/Vitrectomy, Any Method, w/ or w/Out Air or Gas Tamponade, Focal Endolaser Photocoagulation, Cryotherapy, Drainage of Subretinal Fluid, Scleral Buckling, and/or Removal of Lens by Same Technique'), +(2731, '67110', 'Repair of Retinal Detachment; by Injection of Air or Other Gas (eg, pneumatic retinopexy)'), +(2732, '67112', 'Repair of Retinal Detachment; by Scleral Buckling or Vitrectomy, on Patient Having Previous Ipsilateral Retinal Detachment Repair(s) Using Scleral Buckling or Vitrectomy Techniques'), +(2733, '67113', 'Repair of Complex Retinal Detachment (eg, proliferative vitreoretinopathy, stage C-1 or greater, diabetic traction retinal detachment, retinopathy of prematurity, retinal tear of greater than 90 degrees), w/Vitrectomy & Membrane Peeling, May Include Air, Gas, or Silicone Oil Tamponade, Cryotherapy, Endolaser Photocoagulation, Drainage of Subretinal Fluid, Scleral Buckling, and/or Removal of Lens'), +(2734, '67115', 'Release of Encircling Material (posterior segment)'), +(2735, '67120', 'Removal of Implanted Material, Posterior Segment; Extraocular'), +(2736, '67121', 'Removal of Implanted Material, Posterior Segment; Intraocular'), +(2737, '67141', 'Prophylaxis of Retinal Detachment (eg, retinal break, lattice degeneration) w/o Drainage, 1 or More Sessions; Cryotherapy, Diathermy'), +(2738, '67145', 'Prophylaxis of Retinal Detachment (eg, retinal break, lattice degeneration) w/o Drainage, 1 or More Sessions; Photocoagulation (laser or xenon arc)'), +(2739, '67208', 'Destruction of Localized Lesion of Retina (eg, macular edema, tumors), 1 or More Sessions; Cryotherapy, Diathermy'), +(2740, '67210', 'Destruction of Localized Lesion of Retina (eg, macular edema, tumors), 1 or More Sessions; Photocoagulation'), +(2741, '67218', 'Destruction of Localized Lesion of Retina (eg, macular edema, tumors), 1 or More Sessions; Radiation by Implantation of Source (includes removal of source)'), +(2742, '67220', 'Destruction of Localized Lesion of Choroid (eg, choroidal neovascularization); Photocoagulation (eg, laser), 1 or More Sessions'), +(2743, '67221', 'Destruction of Localized Lesion of Choroid (eg, choroidal neovascularization); Photodynamic Therapy (includes intravenous infusion)'), +(2744, '67225', 'Destruction of Localized Lesion of Choroid (eg, choroidal neovascularization); Photodynamic Therapy, Second eye, at Single Session'), +(2745, '67227', 'Destruction of Extensive or Progressive Retinopathy (eg, diabetic retinopathy), 1 or More Sessions, Cryotherapy, Diathermy'), +(2746, '67228', 'Treatment of Extensive or Progressive Retinopathy, 1 or More Sessions; (eg, diabetic retinopathy), Photocoagulation'), +(2747, '67229', 'Treatment of Extensive or Progressive Retinopathy, 1 or More Sessions; Preterm Infant (less than 37 weeks gestation at birth), Performed From Birth Up to 1 Year of Age (eg, retinopathy of prematurity), Photocoagulation or Cryotherapy'), +(2748, '67250', 'Scleral Reinforcement; w/Out Graft'), +(2749, '67255', 'Scleral Reinforcement; w/Graft'), +(2750, '67299', 'Unlisted Procedure, Posterior Segment'), +(2751, '67311', 'Strabismus Surgery, Recession or Resection Procedure; 1 Horizontal Muscle'), +(2752, '67312', 'Strabismus Surgery, Recession or Resection Procedure; 2 Horizontal Muscles'), +(2753, '67314', 'Strabismus Surgery, Recession or Resection Procedure; 1 Vertical Muscle (excluding superior oblique)'), +(2754, '67316', 'Strabismus Surgery, Recession or Resection Procedure; 2 or More Vertical Muscles (excluding superior oblique)'), +(2755, '67318', 'Strabismus Surgery, Any Procedure, Superior Oblique Muscle'), +(2756, '67320', 'Transposition Procedure (eg, for paretic extraocular muscle), Any Extraocular Muscle'), +(2757, '67331', 'Strabismus Surgery on Patient w/Previous Eye Surgery or Injury That Did Not Involve the Extraocular Muscles'), +(2758, '67332', 'Strabismus Surgery on Patient w/Scarring of Extraocular Muscles (eg, prior ocular injury, strabismus or retinal detachment surgery) or Restrictive Myopathy (eg, dysthyroid ophthalmopathy)'), +(2759, '67334', 'Strabismus Surgery by Posterior Fixation Suture Technique, w/ or w/Out Muscle Recession'), +(2760, '67335', 'Placement of Adjustable Suture(s) During Strabismus Surgery, Including Postoperative Adjustment(s) of Suture(s)'), +(2761, '67340', 'Strabismus Surgery Involving Exploration and/or Repair of Detached Extraocular Muscle(s)'), +(2762, '67343', 'Release of Extensive Scar Tissue w/Out Detaching Extraocular Muscle'), +(2763, '67345', 'Chemodenervation of Extraocular Muscle'), +(2764, '67346', 'Biopsy of Extraocular Muscle'), +(2765, '67399', 'Unlisted Procedure, Extraocular Muscle'), +(2766, '67400', 'Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); For Exploration, w/ or w/Out Biopsy'), +(2767, '67405', 'Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Drainage Only'), +(2768, '67412', 'Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Removal of Lesion'), +(2769, '67413', 'Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Removal of Foreign Body'), +(2770, '67414', 'Orbitotomy w/Out Bone Flap (frontal or transconjunctival approach); w/Removal of Bone For Decompression'), +(2771, '67415', 'Fine Needle Aspiration of Orbital Contents'), +(2772, '67420', 'Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Removal of Lesion'), +(2773, '67430', 'Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Removal of Foreign Body'), +(2774, '67440', 'Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Drainage'), +(2775, '67445', 'Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); w/Removal of Bone For Decompression'), +(2776, '67450', 'Orbitotomy w/Bone Flap or Window, Lateral Approach (eg, Kroenlein); For Exploration, w/ or w/Out Biopsy'), +(2777, '67500', 'Retrobulbar Injection; Medication'), +(2778, '67505', 'Retrobulbar Injection; Alcohol'), +(2779, '67550', 'Orbital Implant (implant outside muscle cone); Insertion'), +(2780, '67560', 'Orbital Implant (implant outside muscle cone); Removal or Revision'), +(2781, '67570', 'Optic Nerve Decompression (eg, incision or fenestration of optic nerve sheath)'), +(2782, '67599', 'Unlisted Procedure, Orbit'), +(2783, '68811', 'Probing of Nasolacrimal Duct, w/ or w/Out Irrigation; Requiring General Anesthesia'), +(2784, '68815', 'Probing of Nasolacrimal Duct, w/ or w/Out Irrigation; w/Insertion of Tube or Stent'), +(2785, '68816', 'Probing of Nasolacrimal Duct, w/ or w/Out Irrigation; w/Transluminal Balloon Catheter Dilation'), +(2786, '68840', 'Probing of Lacrimal Canaliculi, w/ or w/Out Irrigation'), +(2787, '68850', 'Injection of Contrast Medium for Dacryocystography'), +(2788, '68899', 'Unlisted Procedure, Lacrimal System'), +(2789, '69000', 'Drainage External Ear, Abscess or Hematoma; Simple'), +(2790, '69005', 'Drainage External Ear, Abscess or Hematoma; Complicated'), +(2791, '69020', 'Drainage External Auditory Canal, Abscess'), +(2792, '69090', 'Ear Piercing'), +(2793, '69100', 'Biopsy External Ear'), +(2794, '69105', 'Biopsy External Auditory Canal'), +(2795, '69110', 'Excision External Ear; Partial, Simple Repair'), +(2796, '69120', 'Excision External Ear; Complete Amputation'), +(2797, '69140', 'Excision Exostosis(es), External Auditory Canal'), +(2798, '69145', 'Excision Soft Tissue Lesion, External Auditory Canal'), +(2799, '69150', 'Radical Excision External Auditory Canal Lesion; w/Out Neck Dissection'), +(2800, '69155', 'Radical Excision External Auditory Canal Lesion; w/Neck Dissection'), +(2801, '69200', 'Removal Foreign Body From External Auditory Canal; w/Out General Anesthesia'), +(2802, '69205', 'Removal Foreign Body From External Auditory Canal; w/General Anesthesia'), +(2803, '69209', 'Removal impacted cerumen using irrigation/lavage, unilateral'), +(2804, '69210', 'Remove Impacted Ear Wax'), +(2805, '69220', 'Debridement Mastoid Cavity Simple'), +(2806, '69222', 'Debridement Mastoid Cavity Complex'), +(2807, '69300', 'Otoplasty, Protruding Ear, w/ or w/Out Size Reduction'), +(2808, '69310', 'Reconstruction of External Auditory Canal (meatoplasty) (eg, for stenosis due to injury, infection)'), +(2809, '69320', 'Reconstruction External Auditory Canal For Congenital Atresia, Single Stage'), +(2810, '69399', 'Unlisted Procedure, External Ear'), +(2811, '69405', 'Eustachian Tube Catheterization, Transtympanic'), +(2812, '69420', 'Myringotomy Including Aspiration and/or Eustachian Tube Inflation'), +(2813, '69421', 'Myringotomy Including Aspiration and/or Eustachian Tube Inflation Requiring General Anesthesia'), +(2814, '69424', 'Ventilating Tube Removal Requiring General Anesthesia'), +(2815, '69433', 'Tympanostomy (requiring insertion of ventilating tube), Local or Topical Anesthesia'), +(2816, '69436', 'Tympanostomy (requiring insertion of ventilating tube), General Anesthesia'), +(2817, '69440', 'Middle Ear Exploration Through Postauricular or Ear Canal Incision'), +(2818, '69450', 'Tympanolysis, Transcanal'), +(2819, '69501', 'Transmastoid Antrotomy (simple mastoidectomy)'), +(2820, '69502', 'Mastoidectomy; Complete'), +(2821, '69505', 'Mastoidectomy; Modified Radical'), +(2822, '69511', 'Mastoidectomy; Radical'), +(2823, '69530', 'Petrous Apicectomy Including Radical Mastoidectomy'), +(2824, '69535', 'Resection Temporal Bone, External Approach'), +(2825, '69540', 'Excision Aural Polyp'), +(2826, '69550', 'Excision Aural Glomus Tumor; Transcanal'), +(2827, '69552', 'Excision Aural Glomus Tumor; Transmastoid'), +(2828, '69554', 'Excision Aural Glomus Tumor; Extended (extratemporal)'), +(2829, '69601', 'Revision Mastoidectomy; Resulting in Complete Mastoidectomy'), +(2830, '3281F', 'Hemoglobin level less than 11 g/dL (CKD, ESRD)'), +(2831, '3284F', 'Intraocular pressure (IOP) reduced by a value of greater than or equal to 15% from the pre-intervention level (EC)'), +(2832, '3285F', 'Intraocular pressure (IOP) reduced by a value less than 15% from the pre-intervention level (EC)'), +(2833, '3288F', 'Falls risk assessment documented (GER)'), +(2834, '3290F', 'Patient is D (Rh) negative and unsensitized (Pre-Cr)'), +(2835, '3291F', 'Patient is D (Rh) positive or sensitized (Pre-Cr)'), +(2836, '3292F', 'HIV testing ordered or documented and reviewed during the first or second prenatal visit (Pre-Cr)'), +(2837, '3293F', 'ABO and Rh blood typing documented as performed (Pre-Cr)'), +(2838, '3294F', 'Group B Streptococcus (GBS) screening documented as performed during week 35-37 gestation (Pre-Cr)'), +(2839, '3300F', 'American Joint Committee on Cancer (AJCC) stage documented and reviewed (ONC)'), +(2840, '3301F', 'Cancer stage documented in medical record as metastatic and reviewed (ONC)'), +(2841, '3315F', 'Estrogen receptor (ER) or progesterone receptor (PR) positive breast cancer (ONC)'), +(2842, '3316F', 'Estrogen receptor (ER) and progesterone receptor (PR) negative breast cancer (ONC)'), +(2843, '3317F', 'Pathology report confirming malignancy documented in the medical record and reviewed prior to the initiation of chemotherapy (ONC)'), +(2844, '3318F', 'Pathology report confirming malignancy documented in the medical record and reviewed prior to the initiation of radiation therapy (ONC)'), +(2845, '3319F', '1 of the following diagnostic imaging studies ordered: chest x-ray, CT, Ultrasound, MRI, PET, or nuclear medicine scans (ML)'), +(2846, '3320F', 'None of the following diagnostic imaging studies ordered: chest X-ray, CT, Ultrasound, MRI, PET, or nuclear medicine scans (ML)'), +(2847, '3321F', 'AJCC Cancer Stage 0 or IA Melanoma, documented (ML)'), +(2848, '3322F', 'Melanoma greater than AJCC Stage 0 or IA (ML)'), +(2849, '3323F', 'Clinical tumor, node and metastases (TNM) staging documented and reviewed prior to surgery (Lung/Esop Cx)'), +(2850, '3324F', 'MRI or CT scan ordered, reviewed or requested (EPI)'), +(2851, '3325F', 'Preoperative assessment of functional or medical indication(s) for surgery prior to the cataract surgery with intraocular lens placement (must be performed within 12 months prior to cataract surgery) (EC)'), +(2852, '3328F', 'Performance status documented and reviewed within 2 weeks prior to surgery (Lung/Esop Cx)'), +(2853, '3330F', 'Imaging study ordered (BkP)'), +(2854, '3331F', 'Imaging study not ordered (BkP)'), +(2855, '3340F', 'Mammogram assessment category of \"incomplete: need additional imaging evaluation\" documented (RAD)'), +(2856, '3341F', 'Mammogram assessment category of \"negative,\" documented (RAD)'), +(2857, '3342F', 'Mammogram assessment category of \"benign,\" documented (RAD)'), +(2858, '3343F', 'Mammogram assessment category of \"probably benign,\" documented (RAD)'), +(2859, '3344F', 'Mammogram assessment category of \"suspicious,\" documented (RAD)'), +(2860, '3345F', 'Mammogram assessment category of \"highly suggestive of malignancy,\" documented (RAD)'), +(2861, '3350F', 'Mammogram assessment category of \"known biopsy proven malignancy,\" documented (RAD)'), +(2862, '3351F', 'Negative screen for depressive symptoms as categorized by using a standardized depression screening/assessment tool (MDD)'), +(2863, '3352F', 'No significant depressive symptoms as categorized by using a standardized depression assessment tool (MDD)'), +(2864, '3353F', 'Mild to moderate depressive symptoms as categorized by using a standardized depression screening/assessment tool (MDD)'), +(2865, '3354F', 'Clinically significant depressive symptoms as categorized by using a standardized depression screening/assessment tool (MDD)'), +(2866, '3370F', 'AJCC Breast Cancer Stage 0 documented (ONC)'), +(2867, '3372F', 'AJCC Breast Cancer Stage I: T1mic, T1a or T1b (tumor size 1 cm to 2 cm) documented (ONC)'), +(2869, '3376F', 'AJCC Breast Cancer Stage II documented (ONC)'), +(2870, '3378F', 'AJCC Breast Cancer Stage III documented (ONC)'), +(2871, '3380F', 'AJCC Breast Cancer Stage IV documented (ONC)'), +(2872, '3382F', 'AJCC colon cancer, Stage 0 documented (ONC)'), +(2873, '3384F', 'AJCC colon cancer, Stage I documented (ONC)'), +(2874, '3386F', 'AJCC colon cancer, Stage II documented (ONC)'), +(2875, '3388F', 'AJCC colon cancer, Stage III documented (ONC)'), +(2876, '3390F', 'AJCC colon cancer, Stage IV documented (ONC)'), +(2877, '3394F', 'Quantitative HER2 immunohistochemistry (IHC) evaluation of breast cancer consistent with the scoring system defined in the ASCO/CAP guidelines (PATH)'), +(2878, '3395F', 'Quantitative non-HER2 immunohistochemistry (IHC) evaluation of breast cancer (eg, testing for estrogen or progesterone receptors [ER/PR]) performed (PATH)'), +(2879, '3450F', 'Dyspnea screened, no dyspnea or mild dyspnea (Pall Cr)'), +(2880, '3451F', 'Dyspnea screened, moderate or severe dyspnea (Pall Cr)'), +(2881, '3452F', 'Dyspnea not screened (Pall Cr)'), +(2882, '3455F', 'TB screening performed and results interpreted within six months prior to initiation of first-time biologic disease modifying anti-rheumatic drug therapy for RA (RA)'), +(2883, '3470F', 'Rheumatoid arthritis (RA) disease activity, low (RA)'), +(2884, '3471F', 'Rheumatoid arthritis (RA) disease activity, moderate (RA)'), +(2885, '3472F', 'Rheumatoid arthritis (RA) disease activity, high (RA)'), +(2886, '3475F', 'Disease prognosis for rheumatoid arthritis assessed, poor prognosis documented (RA)'), +(2887, '3476F', 'Disease prognosis for rheumatoid arthritis assessed, good prognosis documented (RA)'), +(2888, '3490F', 'History of AIDS-defining condition (HIV)'), +(2889, '3491F', 'HIV indeterminate (infants of undetermined HIV status born of HIV-infected mothers) (HIV)'), +(2890, '3492F', 'History of nadir CD4+ cell count <350 cells/mm3 (HIV)'), +(2891, '3493F', 'No history of nadir CD4+ cell count <350 cells/mm3 and no history of AIDS-defining condition (HIV)'), +(2892, '3494F', 'CD4+ cell count <200 cells/mm3 (HIV)'), +(2893, '3495F', 'CD4+ cell count 200 - 499 cells/mm3 (HIV)'), +(2894, '3496F', 'CD4+ cell count >/=500 cells/mm3 (HIV)'), +(2895, '3497F', 'CD4+ cell percentage <15% (HIV)'), +(2896, '3498F', 'CD4+ cell percentage >/=15% (HIV)'), +(2897, '3500F', 'CD4+ cell count or CD4+ cell percentage documented as performed (HIV)'), +(2898, '3502F', 'HIV RNA viral load below limits of quantification (HIV)'), +(2899, '3503F', 'HIV RNA viral load not below limits of quantification (HIV)'), +(2900, '4271F', 'Patient receiving potent antiretroviral therapy for less than 6 months or not receiving potent antiretroviral therapy (HIV)'), +(2901, '4274F', 'Influenza immunization administered or previously received (HIV) (P-ESRD)'), +(2902, '4276F', 'Potent antiretroviral therapy prescribed (HIV)'), +(2903, '4279F', 'Pneumocystis jiroveci pneumonia prophylaxis prescribed (HIV)'), +(2904, '4280F', 'Pneumocystis jiroveci pneumonia prophylaxis prescribed within 3 months of low CD4+ cell count or percentage (HIV)'), +(2905, '4290F', 'Patient screened for injection drug use (HIV)'), +(2906, '4541F', 'Patient offered treatment for pseudobulbar affect, sialorrhea, or ALS-related symptoms (ALS)'), +(2907, '4550F', 'Options for noninvasive respiratory support discussed with patient (ALS)'), +(2908, '4551F', 'Nutritional support offered (ALS)'), +(2909, '4552F', 'Patient offered referral to a speech language pathologist (ALS)'), +(2910, '4553F', 'Patient offered assistance in planning for end of life issues (ALS)'), +(2911, '4554F', 'Patient received inhalational anesthetic agent (Peri2)'), +(2912, '4555F', 'Patient did not receive inhalational anesthetic agent (Peri2)'), +(2913, '4556F', 'Patient exhibits 3 or more risk factors for post-operative nausea and vomiting (Peri2)'), +(2914, '4557F', 'Patient does not exhibit 3 or more risk factors for post-operative nausea and vomiting (Peri2)'), +(2915, '4558F', 'Patient received at least 2 prophylactic pharmacologic anti-emetic agents of different classes preoperatively and intraoperatively (Peri2)'), +(2916, '4559F', 'At least 1 body temperature measurement equal to or greater than 35.5 degrees Celsius (or 95.9 degrees Fahrenheit) recorded within the 30 minutes immediately before or the 15 minutes immediately after anesthesia end time (Peri2)'), +(2917, '4560F', 'Anesthesia technique did not involve general or neuraxial anesthesia (Peri2)'), +(2918, '4561F', 'Patient has a coronary artery stent (Peri2)'), +(2919, '4562F', 'Patient does not have a coronary artery stent (Peri2)'), +(2920, '4563F', 'Patient received aspirin within 24 hours prior to anesthesia start time (Peri2)'), +(2921, '5005F', 'Patient counseled on self-examination for new or changing moles (ML)'), +(2922, '5010F', 'Findings of dilated macular or fundus exam communicated to the physician or other qualified health care professional managing the diabetes care (EC)'), +(2923, '5015F', 'Documentation of communication that a fracture occurred and that the patient was or should be tested or treated for osteoporosis (OP)'), +(2924, '5020F', 'Treatment summary report communicated to physician(s) or other qualified health care professional(s) managing continuing care and to the patient within 1 month of completing treatment (ONC)'), +(2925, '5050F', 'Treatment plan communicated to provider(s) managing continuing care within 1 month of diagnosis (ML)'), +(2926, '5062F', 'Findings from diagnostic mammogram communicated to the patient within 5 days of exam interpretation (RAD)'), +(2927, '5100F', 'Potential risk for fracture communicated to the referring physician or other qualified health care professional within 24 hours of completion of the imaging study (NUC_MED)'), +(2928, '5200F', 'Consideration of referral for a neurological evaluation of appropriateness for surgical therapy for intractable epilepsy within the past 3 years (EPI)'), +(2929, '5250F', 'Asthma discharge plan provided to patient (Asthma)'), +(2930, '6005F', 'Rationale (eg, severity of illness and safety) for level of care (eg, home, hospital) documented (CAP)'), +(2931, '6010F', 'Dysphagia screening conducted prior to order for or receipt of any foods, fluids, or medication by mouth (STR)'), +(2932, '6015F', 'Patient receiving or eligible to receive foods, fluids, or medication by mouth (STR)'), +(2933, '6020F', 'NPO (nothing by mouth) ordered (STR)'), +(2934, '6030F', 'All elements of maximal sterile barrier technique followed including: cap and mask and sterile gown and sterile gloves and a large sterile sheet and hand hygiene and 2% chlorhexidine for cutaneous antisepsis (or acceptable alternative antiseptics, per current guideline) (CRIT)'), +(2935, '6040F', 'Use of appropriate radiation dose reduction devices OR manual techniques for appropriate moderation of exposure, documented (RAD)'), +(2936, '6045F', 'Radiation exposure or exposure time in final report for procedure using fluoroscopy, documented (RAD)'), +(2937, '6070F', 'Patient queried and counseled about anti-epileptic drug (AED) side effects (EPI)'), +(2938, '6080F', 'Patient (or caregiver) queried about falls (Prkns, DSP)'), +(2939, '6100F', 'Timeout to verify correct patient, correct site, and correct procedure, documented (PATH)'), +(2940, '6101F', 'Safety counseling for dementia provided (DEM)'), +(2941, '0071T', 'Focused ultrasound ablation of uterine leiomyomata, including MR guidance; total leiomyomata volume less than 200 cc of tissue'), +(2942, '0072T', 'Focused ultrasound ablation of uterine leiomyomata, including MR guidance; total leiomyomata volume greater or equal to 200 cc of tissue'), +(2943, '0075T', 'Transcatheter placement of extracranial vertebral artery stent(s), including radiologic supervision and interpretation, open or percutaneous; initial vessel'), +(2944, '0076T', 'Transcatheter placement of extracranial vertebral artery stent(s), including radiologic supervision and interpretation, open or percutaneous; each additional vessel (List separately in addition to code for primary procedure)'), +(2945, '0085T', 'Breath test for heart transplant rejection'), +(2946, '0095T', 'Removal of total disc arthroplasty (artificial disc), anterior approach, each additional interspace, cervical (List separately in addition to code for primary procedure)'), +(2947, '0098T', 'Revision including replacement of total disc arthroplasty (artificial disc), anterior approach, each additional interspace, cervical (List separately in addition to code for primary procedure)'), +(2948, '0099T', 'Implantation of intrastromal corneal ring segments'), +(2949, '0100T', 'Placement of a subconjunctival retinal prosthesis receiver and pulse generator, and implantation of intra-ocular retinal electrode array, with vitrectomy'), +(2950, '0101T', 'Extracorporeal shock wave involving musculoskeletal system, not otherwise specified, high energy'), +(2951, '0102T', 'Extracorporeal shock wave, high energy, performed by a physician, requiring anesthesia other than local, involving lateral humeral epicondyle'), +(2952, '0103T', 'Holotranscobalamin, quantitative'), +(2953, '0106T', 'Quantitative sensory testing (QST), testing and interpretation per extremity; using touch pressure stimuli to assess large diameter sensation'), +(2954, '0107T', 'Quantitative sensory testing (QST), testing and interpretation per extremity; using vibration stimuli to assess large diameter fiber sensation'), +(2955, '0184T', 'Excision of rectal tumor, transanal endoscopic microsurgical approach (ie, TEMS), including muscularis propria (ie, full thickness)'), +(2956, '0188T', 'Remote real-time interactive video-conferenced critical care, evaluation and management of the critically ill or critically injured patient; first 30-74 minutes'), +(2957, '0189T', 'Remote real-time interactive video-conferenced critical care, evaluation and management of the critically ill or critically injured patient; each additional 30 minutes (List separately in addition to code for primary service)'), +(2958, '0190T', 'Placement of intraocular radiation source applicator (List separately in addition to primary procedure)'), +(2959, '0191T', 'Insertion of anterior segment aqueous drainage device, without extraocular reservoir, internal approach, into the trabecular meshwork; initial insertion'), +(2960, '0195T', 'Arthrodesis, pre-sacral interbody technique, disc space preparation, discectomy, without instrumentation, with image guidance, includes bone graft when performed; L5-S1 interspace'), +(2961, '0196T', 'Arthrodesis, pre-sacral interbody technique, disc space preparation, discectomy, without instrumentation, with image guidance, includes bone graft when performed; L4-L5 interspace (List separately in addition to code for primary procedure)'), +(2962, '0198T', 'Measurement of ocular blood flow by repetitive intraocular pressure sampling, with interpretation and report'), +(2963, '0200T', 'Percutaneous sacral augmentation (sacroplasty), unilateral injection(s), including the use of a balloon or mechanical device, when used, 1 or more needles, includes imaging guidance and bone biopsy, when performed'), +(2964, '0201T', 'Percutaneous sacral augmentation (sacroplasty), bilateral injections, including the use of a balloon or mechanical device, when used, 2 or more needles, includes imaging guidance and bone biopsy, when performed'), +(2965, '0202T', 'Posterior vertebral joint(s) arthroplasty (eg, facet joint[s] replacement), including facetectomy, laminectomy, foraminotomy, and vertebral column fixation, injection of bone cement, when performed, including fluoroscopy, single level, lumbar spine'), +(2966, '0205T', 'Intravascular catheter-based coronary vessel or graft spectroscopy (eg, infrared) during diagnostic evaluation and/or therapeutic intervention including imaging supervision, interpretation, and report, each vessel (List separately in addition to code for primary procedure)'), +(2967, '0206T', 'Computerized database analysis of multiple cycles of digitized cardiac electrical data from two or more ECG leads, including transmission to a remote center, application of multiple nonlinear mathematical transformations, with coronary artery obstruction severity assessment'), +(2968, '0207T', 'Evacuation of meibomian glands, automated, using heat and intermittent pressure, unilateral'), +(2969, '0208T', 'Pure tone audiometry (threshold), automated; air only'), +(2970, '0209T', 'Pure tone audiometry (threshold), automated; air and bone'), +(2971, '0210T', 'Speech audiometry threshold, automated;'), +(2972, '0211T', 'Speech audiometry threshold, automated; with speech recognition'), +(2973, '0212T', 'Comprehensive audiometry threshold evaluation and speech recognition (0209T, 0211T combined), automated'), +(2974, '0213T', 'Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, cervical or thoracic; single level'), +(2975, '0214T', 'Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, cervical or thoracic; second level (List separately in addition to code for primary procedure)'), +(2976, '0215T', 'Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, cervical or thoracic; third and any additional level(s) (List separately in addition to code for primary procedure)'), +(2977, '0216T', 'Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, lumbar or sacral; single level'), +(2978, '0217T', 'Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, lumbar or sacral; second level (List separately in addition to code for primary procedure)'), +(2979, '0218T', 'Injection(s), diagnostic or therapeutic agent, paravertebral facet (zygapophyseal) joint (or nerves innervating that joint) with ultrasound guidance, lumbar or sacral; third and any additional level(s) (List separately in addition to code for primary procedure)'), +(2980, '0219T', 'Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; cervical'), +(2981, '0220T', 'Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; thoracic'), +(2982, '0221T', 'Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; lumbar'), +(2983, '0222T', 'Placement of a posterior intrafacet implant(s), unilateral or bilateral, including imaging and placement of bone graft(s) or synthetic device(s), single level; each additional vertebral segment (List separately in addition to code for primary procedure)'), +(2984, '0223T', 'Acoustic cardiography, including automated analysis of combined acoustic and electrical intervals; single, with interpretation and report'), +(2985, '0224T', 'Acoustic cardiography, including automated analysis of combined acoustic and electrical intervals; multiple, including serial trended analysis and limited reprogramming of device parameter, AV or VV delays only, with interpretation and report'), +(2986, '0225T', 'Acoustic cardiography, including automated analysis of combined acoustic and electrical intervals; multiple, including serial trended analysis and limited reprogramming of device parameter, AV and VV delays, with interpretation and report'), +(2987, '0228T', 'Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, cervical or thoracic; single level'), +(2988, '0229T', 'Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, cervical or thoracic; each additional level (List separately in addition to code for primary procedure)'), +(2989, '0230T', 'Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, lumbar or sacral; single level'), +(2990, '0231T', 'Injection(s), anesthetic agent and/or steroid, transforaminal epidural, with ultrasound guidance, lumbar or sacral; each additional level (List separately in addition to code for primary procedure)'), +(2991, '0232T', 'Injection(s), platelet rich plasma, any site, including image guidance, harvesting and preparation when performed'), +(2992, '0233T', 'Skin advanced glycation endproducts (AGE) measurement by multi-wavelength fluorescent spectroscopy'), +(2993, '0234T', 'Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; renal artery'), +(2994, '0235T', 'Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; visceral artery (except renal), each vessel'), +(2995, '0236T', 'Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; abdominal aorta'), +(2996, '0237T', 'Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; brachiocephalic trunk and branches, each vessel'), +(2997, '0238T', 'Transluminal peripheral atherectomy, open or percutaneous, including radiological supervision and interpretation; iliac artery, each vessel'), +(2998, '0240T', 'Esophageal motility (manometric study of the esophagus and/or gastroesophageal junction) study with interpretation and report; with high resolution esophageal pressure topography'), +(2999, '0241T', 'Esophageal motility (manometric study of the esophagus and/or gastroesophageal junction) study with interpretation and report; with stimulation or perfusion during high resolution esophageal pressure topography study (eg, stimulant, acid or alkali perfusion) (List separately in addition to code for primary procedure)'), +(3000, '0243T', 'Intermittent measurement of wheeze rate for bronchodilator or bronchial-challenge diagnostic evaluation(s), with interpretation and report'), +(3001, '0244T', 'Continuous measurement of wheeze rate during treatment assessment or during sleep for documentation of nocturnal wheeze and cough for diagnostic evaluation 3 to 24 hours, with interpretation and report'), +(3002, '0249T', 'Ligation, hemorrhoidal vascular bundle(s), including ultrasound guidance'), +(3003, '0253T', 'Insertion of anterior segment aqueous drainage device, without extraocular reservoir, internal approach, into the suprachoroidal space'), +(3004, '0254T', 'Endovascular repair of iliac artery bifurcation (eg, aneurysm, pseudoaneurysm, arteriovenous malformation, trauma) using bifurcated endoprosthesis from the common iliac artery into both the external and internal iliac artery, unilateral;'), +(3005, '0255T', 'Endovascular repair of iliac artery bifurcation (eg, aneurysm, pseudoaneurysm, arteriovenous malformation, trauma) using bifurcated endoprosthesis from the common iliac artery into both the external and internal iliac artery, unilateral; radiological supervision and interpretation'), +(3006, '0262T', 'Implantation of catheter-delivered prosthetic pulmonary valve, endovascular approach'), +(3007, '0263T', 'Intramuscular autologous bone marrow cell therapy, with preparation of harvested cells, multiple injections, one leg, including ultrasound guidance, if performed; complete procedure including unilateral or bilateral bone marrow harvest'), +(3008, '0264T', 'Intramuscular autologous bone marrow cell therapy, with preparation of harvested cells, multiple injections, one leg, including ultrasound guidance, if performed; complete procedure excluding bone marrow harvest'), +(3009, '0265T', 'Intramuscular autologous bone marrow cell therapy, with preparation of harvested cells, multiple injections, one leg, including ultrasound guidance, if performed; unilateral or bilateral bone marrow harvest only for intramuscular autologous bone marrow cell therapy'), +(3010, '0266T', 'Implantation or replacement of carotid sinus baroreflex activation device; total system (includes generator placement, unilateral or bilateral lead placement, intra-operative interrogation, programming, and repositioning, when performed)'), +(3011, '0267T', 'Implantation or replacement of carotid sinus baroreflex activation device; lead only, unilateral (includes intra-operative interrogation, programming, and repositioning, when performed)'), +(3012, '0268T', 'Implantation or replacement of carotid sinus baroreflex activation device; pulse generator only (includes intra-operative interrogation, programming, and repositioning, when performed)'), +(3013, '0269T', 'Revision or removal of carotid sinus baroreflex activation device; total system (includes generator placement, unilateral or bilateral lead placement, intra-operative interrogation, programming, and repositioning, when performed)'), +(3014, '0270T', 'Revision or removal of carotid sinus baroreflex activation device; lead only, unilateral (includes intra-operative interrogation, programming, and repositioning, when performed)'), +(3015, '0271T', 'Revision or removal of carotid sinus baroreflex activation device; pulse generator only (includes intra-operative interrogation, programming, and repositioning, when performed)'), +(3016, '0272T', 'Interrogation device evaluation (in person), carotid sinus baroreflex activation system, including telemetric iterative communication with the implantable device to monitor device diagnostics and programmed therapy values, with interpretation and report (eg, battery status, lead impedance, pulse amplitude, pulse width, therapy frequency, pathway mode, burst mode, therapy start/stop times each day);'), +(3017, '0273T', 'Interrogation device evaluation (in person), carotid sinus baroreflex activation system, including telemetric iterative communication with the implantable device to monitor device diagnostics and programmed therapy values, with interpretation and report (eg, battery status, lead impedance, pulse amplitude, pulse width, therapy frequency, pathway mode, burst mode, therapy start/stop times each day); with programming'), +(3018, '0274T', 'Percutaneous laminotomy/laminectomy (interlaminar approach) for decompression of neural elements, (with or without ligamentous resection, discectomy, facetectomy and/or foraminotomy), any method, under indirect image guidance (eg, fluoroscopic, CT), with or without the use of an endoscope, single or multiple levels, unilateral or bilateral; cervical or thoracic'), +(3019, '0275T', 'Percutaneous laminotomy/laminectomy (interlaminar approach) for decompression of neural elements, (with or without ligamentous resection, discectomy, facetectomy and/or foraminotomy), any method, under indirect image guidance (eg, fluoroscopic, CT), with or without the use of an endoscope, single or multiple levels, unilateral or bilateral; lumbar'), +(3020, '0278T', 'Transcutaneous electrical modulation pain reprocessing (eg, scrambler therapy), each treatment session (includes placement of electrodes)'), +(3021, '0281T', 'Percutaneous transcatheter closure of the left atrial appendage with implant, including fluoroscopy, transseptal puncture, catheter placement(s), left atrial angiography, left atrial appendage angiography, radiological supervision and interpretation'), +(3022, '0308T', 'Insertion of ocular telescope prosthesis including removal of crystalline lens'), +(3023, '0309T', 'Arthrodesis, pre-sacral interbody technique, including disc space preparation, discectomy, with posterior instrumentation, with image guidance, includes bone graft, when performed, lumbar, L4-L5 interspace (List separately in addition to code for primary procedure)'), +(3024, '0310T', 'Motor function mapping using non-invasive navigated transcranial magnetic stimulation (nTMS) for therapeutic treatment planning, upper and lower extremity'), +(3025, '0311T', 'Non-invasive calculation and analysis of central arterial pressure waveforms with interpretation and report'), +(3026, '0312T', 'Vagus nerve blocking therapy (morbid obesity); laparoscopic implantation of neurostimulator electrode array, anterior and posterior vagal trunks adjacent to esophagogastric junction (EGJ), with implantation of pulse generator, includes programming'), +(3027, '0313T', 'Vagus nerve blocking therapy (morbid obesity); laparoscopic revision or replacement of vagal trunk neurostimulator electrode array, including connection to existing pulse generator'), +(3028, '0314T', 'Vagus nerve blocking therapy (morbid obesity); laparoscopic removal of vagal trunk neurostimulator electrode array and pulse generator'), +(3029, '0315T', 'Vagus nerve blocking therapy (morbid obesity); removal of pulse generator'), +(3030, '0316T', 'Vagus nerve blocking therapy (morbid obesity); replacement of pulse generator'), +(3031, '0317T', 'Vagus nerve blocking therapy (morbid obesity); neurostimulator pulse generator electronic analysis, includes reprogramming when performed'), +(3032, '0329T', 'Monitoring of intraocular pressure for 24 hours or longer, unilateral or bilateral, with interpretation and report'), +(3033, '0330T', 'Tear film imaging, unilateral or bilateral, with interpretation and report'), +(3034, '0331T', 'Myocardial sympathetic innervation imaging, planar qualitative and quantitative assessment;'), +(3035, '0332T', 'Myocardial sympathetic innervation imaging, planar qualitative and quantitative assessment; with tomographic SPECT'), +(3036, '0333T', 'Visual evoked potential, screening of visual acuity, automated'), +(3037, '0335T', 'Extra-osseous subtalar joint implant for talotarsal stabilization'), +(3038, '0336T', 'Laparoscopy, surgical, ablation of uterine fibroid(s), including intraoperative ultrasound guidance and monitoring, radiofrequency'), +(3039, '0337T', 'Endothelial function assessment, using peripheral vascular response to reactive hyperemia, non-invasive (eg, brachial artery ultrasound, peripheral artery tonometry), unilateral or bilateral'), +(3040, '0338T', 'Transcatheter renal sympathetic denervation, percutaneous approach including arterial puncture, selective catheter placement(s) renal artery(ies), fluoroscopy, contrast injection(s), intraprocedural roadmapping and radiological supervision and interpretation, including pressure gradient measurements, flush aortogram and diagnostic renal angiography when performed; unilateral'), +(3041, '0339T', 'Transcatheter renal sympathetic denervation, percutaneous approach including arterial puncture, selective catheter placement(s) renal artery(ies), fluoroscopy, contrast injection(s), intraprocedural roadmapping and radiological supervision and interpretation, including pressure gradient measurements, flush aortogram and diagnostic renal angiography when performed; bilateral'), +(3042, '0340T', 'Ablation, pulmonary tumor(s), including pleura or chest wall when involved by tumor extension, percutaneous, cryoablation, unilateral, includes imaging guidance'), +(3043, '0341T', 'Quantitative pupillometry with interpretation and report, unilateral or bilateral'), +(3044, '0342T', 'Therapeutic apheresis with selective HDL delipidation and plasma reinfusion'), +(3045, '0345T', 'Transcatheter mitral valve repair percutaneous approach via the coronary sinus'), +(3046, '0346T', 'Ultrasound, elastography (List separately in addition to code for primary procedure)'), +(3047, '0347T', 'Placement of interstitial device(s) in bone for radiostereometric analysis (RSA)'), +(3048, '0348T', 'Radiologic examination, radiostereometric analysis (RSA); spine, (includes cervical, thoracic and lumbosacral, when performed)'), +(3049, '0349T', 'Radiologic examination, radiostereometric analysis (RSA); upper extremity(ies), (includes shoulder, elbow, and wrist, when performed)'), +(3050, '0350T', 'Radiologic examination, radiostereometric analysis (RSA); lower extremity(ies), (includes hip, proximal femur, knee, and ankle, when performed)'), +(3051, '0351T', 'Optical coherence tomography of breast or axillary lymph node, excised tissue, each specimen; real-time intraoperative'), +(3052, '0352T', 'Optical coherence tomography of breast or axillary lymph node, excised tissue, each specimen; interpretation and report, real-time or referred'), +(3053, '0353T', 'Optical coherence tomography of breast, surgical cavity; real-time intraoperative'), +(3054, '0354T', 'Optical coherence tomography of breast, surgical cavity; interpretation and report, real-time or referred'), +(3055, '0355T', 'Gastrointestinal tract imaging, intraluminal (eg, capsule endoscopy), colon, with interpretation and report'), +(3056, '0356T', 'Insertion of drug-eluting implant (including punctal dilation and implant removal when performed) into lacrimal canaliculus, each'), +(3057, '0357T', 'Cryopreservation; immature oocyte(s)'), +(3058, '0358T', 'Bioelectrical impedance analysis whole body composition assessment, supine position, with interpretation and report'), +(3059, '0359T', 'Behavior identification assessment, by the physician or other qualified health care professional, face-to-face with patient and caregiver(s), includes administration of standardized and non-standardized tests, detailed behavioral history, patient observation and caregiver interview, interpretation of test results, discussion of findings and recommendations with the primary guardian(s)/caregiver(s), and preparation of report'), +(3060, '0360T', 'Observational behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by one technician; first 30 minutes of technician time, face-to-face with the patient'), +(3061, '0361T', 'Observational behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by one technician; each additional 30 minutes of technician time, face-to-face with the patient (List separately in addition to code for primary service)'), +(3062, '0362T', 'Exposure behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by physician or other qualified health care professional with the assistance of one or more technicians; first 30 minutes of technician(s) time, face-to-face with the patient'), +(3063, '0363T', 'Exposure behavioral follow-up assessment, includes physician or other qualified health care professional direction with interpretation and report, administered by physician or other qualified health care professional with the assistance of one or more technicians; each additional 30 minutes of technician(s) time, face-to-face with the patient (List separately in addition to code for primary procedure)'), +(3064, '0364T', 'Adaptive behavior treatment by protocol, administered by technician, face-to-face with one patient; first 30 minutes of technician time'), +(3065, '0365T', 'Adaptive behavior treatment by protocol, administered by technician, face-to-face with one patient; each additional 30 minutes of technician time (List separately in addition to code for primary procedure)'), +(3066, '0366T', 'Group adaptive behavior treatment by protocol, administered by technician, face-to-face with two or more patients; first 30 minutes of technician time'), +(3067, '73552', 'X-Ray Femur, 2 Views'), +(3068, '74018', 'Radiologic Examination, abdomen'), +(3069, '77067', 'Screening Mammography, Bilateral (2-view study of each breast), w/Computer-Aided Detection (CAD) When Performed'), +(3070, '80306', 'Drug test(s), presumptive, any number of drug classes, any number of devices or procedures (eg, immunoassay); read by instrument assisted direct optical observation (eg, dipsticks, cups, cards, cartridges), includes sample validation when performed, per date of service'), +(3071, '87620', 'HPV Detection by DNA or RNA, Direct Probe Technique'), +(3072, '87621', 'HPV Detection by DNA or RNA, Amplified Probe Technique'), +(3073, '87622', 'HPV Quantification'), +(3074, '90470', 'H1N1 Immunization Administration (intramuscular, intranasal), w/Counseling When Performed'), +(3075, '90620', ' Meningococcal Recombinant Protein & Outer Membrane Vesicle Vaccine, Serogroup B (MenB), 2 Dose Schedule, for Intramuscular Use'), +(3076, '90621', 'Meningococcal Recombinant Lipoprotein Vaccine, Serogroup B (MenB), 3 Dose Schedule, for Intramuscular Use'), +(3077, '90697', 'Diphtheria, Tetanus Toxoids, Acellular Pertussis Vaccine, Inactivated Poliovirus Vaccine, Haemophilus Influenzae Type B PRP-OMP Conjugate Vaccine, & Hepatitis B Vaccine (DTaP-IPV-Hib-HepB), for Intramuscular Use'), +(3078, '99177', 'Instrument-Based Ocular Screening (eg, photoscreening, automated-refraction), Bilateral; w/On-Site Analysis'), +(3079, '0403T', 'Preventive Behavior Change, Intensive Program of Prevention of Diabetes Using a Standardized Diabetes Prevention Program Curriculum, Provided to Individuals in a Group Setting, Minimum 60 min, per Day'), +(3080, 'A0021', 'Ambulance Service, Outside State Per Mile, Transport (medicaid only)'), +(3081, 'A0080', 'Non-Emergency Transportation, Per Mile -Vehicle Provided by Volunteer (individual or organization), w/No Vested Interest'), +(3082, 'A0090', 'Non-Emergency Transportation, Per Mile -Vehicle Provided by Individual (family member, self, neighbor) w/Vested Interest'), +(3083, 'A0100', 'Non-Emergency Transportation; Taxi'), +(3084, 'A0110', 'Non-Emergency Transportation & Bus, Intra/Inter State Carrier'), +(3085, 'A0120', 'Non-Emergency Transportation: Mini-Bus, Mountain Area Transports/Other Transportation Systems'), +(3086, 'A0130', 'Non-Emergency Transportation: Wheel-Chair Van'), +(3087, 'A0140', 'Non-Emergency Transportation & Air Travel (private or commercial) Intra/Inter State'), +(3088, 'A0160', 'Non-Emergency Transportation: Per Mile -Case Worker/Social Worker'), +(3089, 'A0170', 'Transportation Ancillary: Parking Fees, Tolls, Other'), +(3090, 'A0420', 'Ambulance Waiting 1/2 hr'), +(3091, 'A0422', 'Ambulance 02 Life Sustaining'), +(3092, 'A0424', 'Extra Ambulance Attendant'), +(3093, 'A0425', 'Ground Mileage'), +(3094, 'A0426', 'Als 1'), +(3095, 'A0427', 'Ambulance Service, Advanced Life Support, Emergency Transport, Level 1 (als1-emergency)'), +(3096, 'A0428', 'Basic Life Support, Non-Emergency Transport, Ambulance'), +(3097, 'A0429', 'Ambulance Service, Basic Life Support, Emergency Transport (bls-emergency)'), +(3098, 'A0430', 'Ambulance Service, Conventional Air Services, Transport, One Way (fixed wing)'), +(3099, 'A0431', 'Ambulance Service, Conventional Air Services, Transport, One Way (rotary wing)'), +(3100, 'A0432', 'Pi Volunteer Ambulance Company'), +(3101, 'A0433', 'Advanced Life Support, Level 2 (als 2)'), +(3102, 'A0434', 'Specialty Care Transport (sct)'), +(3103, 'A0435', 'Fixed Wing Air Mileage, per Statute Mile'), +(3104, 'A0436', 'Rotary Wing Air Mileage, per Statute Mile'), +(3105, 'A0800', 'Ambulance Transportation 7pm-7am'), +(3106, 'A0888', 'Non Covered Ambulance Mileage'); +INSERT INTO `cpt` (`id`, `code`, `description`) VALUES +(3107, 'A0998', 'Ambulance Response/Treatment, No Transport'), +(3108, 'A0999', 'Unlisted Ambulance Service'), +(3109, 'A4206', '1cc Sterile Syringe & Needle'), +(3110, 'A4207', '2cc Sterile Syringe & Needle'), +(3111, 'A4208', '3cc Sterile Syringe & Needle'), +(3112, 'A4209', '5+cc Sterile Syringe & Needle'), +(3113, 'A4210', 'Non-Needle Injection Device'), +(3114, 'A4211', 'Supplies for Self-Administered Injections'), +(3115, 'A4212', 'Non Coring Needle or Stylet'), +(3116, 'A4213', '20+cc Sterile Syringe Only'), +(3117, 'A4215', 'Sterile Needle'), +(3118, 'A4216', 'Sterile Water/Saline, 10 ml'), +(3119, 'A4217', 'Sterile Water/Saline, 500 ml'), +(3120, 'A4258', 'Spring Powered Lancet Device Each'), +(3121, 'A4259', 'Lancets Per Box of 100'), +(3122, 'A4260', 'Levonorgestrel Implant'), +(3123, 'A4261', 'Cervical Cap Contraceptive'), +(3124, 'A4262', 'Temporary Tear Duct Plug'), +(3125, 'A4263', 'Permanent Tear Duct Plug'), +(3126, 'A4264', 'Intratubal Occlusion Device'), +(3127, 'A4265', 'Paraffin'), +(3128, 'A4266', 'Diaphragm'), +(3129, 'A4267', 'Male Condom'), +(3130, 'A4268', 'Female Condom'), +(3131, 'A4269', 'Spermicide'), +(3132, 'A4270', 'Disposable Endoscope Sheath'), +(3133, 'A4280', 'Breast Prosthesis Adhesive Attachment'), +(3134, 'A4281', 'Replacement Breast Pump Tube'), +(3135, 'A4282', 'Replacement Breast Pump Adapter'), +(3136, 'A4283', 'Replacement Breast Pump Cap'), +(3137, 'A4284', 'Replacement Breast Pump Shield'), +(3138, 'A4285', 'Replacement Breast Pump Bottle'), +(3139, 'A4286', 'Replacement Breastpump Lock Ring'), +(3140, 'A4290', 'Sacral Nerve Stimulation Test Lead'), +(3141, 'A4300', 'Catheter Implantable Vasc Access Portal'), +(3142, 'A4301', 'Implantable Access Syst Perc'), +(3143, 'A4305', 'Drug Delivery System >=50 ml'), +(3144, 'A4306', 'Drug Delivery System <=50 ml'), +(3145, 'A4310', 'Insertion Tray w/Out Bag & Catheter'), +(3146, 'A4311', 'Catheter w/Out Bag 2-Way Latex'), +(3147, 'A4312', 'Catheter w/Out Bag 2-Way Silicone'), +(3148, 'A4313', 'Catheter w/Bag 3-Way'), +(3149, 'A4314', 'Catheter w/Drainage 2-Way Latex'), +(3150, 'A4315', 'Catheter w/Drainage 2-Way Silicone'), +(3151, 'A4316', 'Catheter w/Drainage 3-Way'), +(3152, 'A4320', 'Irrigation Tray'), +(3153, 'A4321', 'Catheter Therapeutic Irrigation Agent'), +(3154, 'A4322', 'Irrigation Syringe'), +(3155, 'A4324', 'Male External Catheter w/Adhesive Coating'), +(3156, 'A4325', 'Male External Catheter w/Adhesive Strip'), +(3157, 'A4326', 'Male External Catheter w/Integral Collection Chamber'), +(3158, 'A4327', 'Female Urinary Collection Device Cup'), +(3159, 'A4328', 'Female Urinary Collection Device Pouch'), +(3160, 'A4330', 'Stool Collection Pouch'), +(3161, 'A4331', 'Extension Drainage Tubing'), +(3162, 'A4332', 'Lube Sterile Packet'), +(3163, 'A4333', 'Urinary Catheter Anchoring Device'), +(3164, 'A4334', 'Urinary Catheter Leg Strap'), +(3165, 'A4335', 'Incontinence Supply'), +(3166, 'A4336', 'Urethral Insert'), +(3167, 'A4337', 'Incontinent Rectal Insert'), +(3168, 'A4338', 'Indwelling Catheter Latex'), +(3169, 'A4340', 'Indwelling Catheter Special'), +(3170, 'A4344', 'Catheter Indwelling Foley 2 Way Silicone'), +(3171, 'A4346', 'Indwelling Catheter; Foley Type, Three Way for Continuous Irrigation, Each'), +(3172, 'A4347', 'Male External Catheter w/ or w/Out Adhesive, w/ & w/Out Anti-Reflux'), +(3173, 'A4348', 'Male External Catheter Extended Wear'), +(3174, 'A4349', 'Disposable Male External Catheter'), +(3175, 'A4351', 'Straight Tip Urine Catheter'), +(3176, 'A4352', 'Coude Tip Urinary Catheter'), +(3177, 'A4353', 'Intermittent Urinary Catheter'), +(3178, 'A4354', 'Catheter Insertion Tray w/Bag w/Out Catheter'), +(3179, 'A4355', 'Bladder Irrigation Tubing'), +(3180, 'A4356', 'External Urethral Clamp or Compression Device'), +(3181, 'A4357', 'Bedside Drainage Bag'), +(3182, 'A4358', 'Urinary Drainage Bag, Leg or Abdomen'), +(3183, 'A4359', 'Urinary Suspensory w/Out Leg Bag'), +(3184, 'A4360', 'Disposable External Urethral Device w/Pad/Pouch'), +(3185, 'A4361', 'Ostomy Face Plate'), +(3186, 'A4362', 'Solid Skin Barrier 4x4'), +(3187, 'A4363', 'Ostomy Clamp, Replacement'), +(3188, 'A4364', 'Adhesive, Liquid or Equal, Per oz'), +(3189, 'A4365', 'Adhesive Remover Wipes'), +(3190, 'A4366', 'Ostomy Vent'), +(3191, 'A4390', 'Ostomy Drainable Pouch w/Extended Wear Barrier, w/Convexity'), +(3192, 'A4391', 'Ostomy Urinary Pouch w/Extended Wear Barrier Attached'), +(3193, 'A4392', 'Ostomy Urinary Pouch w/Attached Wear Barrier, w/Built-In Convexity'), +(3194, 'A4393', 'Ostomy Urinary Pouch w/Extended Barrier Convexity'), +(3195, 'A4394', 'Ostomy Deodorant for Pouch, Per Liquid Ounce'), +(3196, 'A4395', 'Ostomy Solid Deodorant for Pouch, Per Tablet'), +(3197, 'A4396', 'Ostomy Peristomal Hernia Support Belt'), +(3198, 'A4397', 'Irrigation Supply Sleeve'), +(3199, 'A4398', 'Ostomy Irrigation Bag'), +(3200, 'A4399', 'Ostomy Irrigation Cone/Catheter'), +(3201, 'A4400', 'Ostomy Irrigation Set'), +(3202, 'A4402', 'Lubricant Per Ounce'), +(3203, 'A4404', 'Ostomy Ring'), +(3204, 'A4405', 'Ostomy Skin Barrier, Non-Pectin Based Paste'), +(3205, 'A4406', 'Ostomy Skin Barrier, Pectin Based Paste'), +(3206, 'A4407', 'Ostomy Skin Barrier w/Flange, Extended Wear, w/Built-In Convexity, <=4x4\"'), +(3207, 'A4408', 'Ostomy Skin Barrier w/Flange, Extended Wear, w/Built-In Convexity, >4x4\"'), +(3208, 'A4409', 'Ostomy Skin Barrier w/Flange, Extended Wear, w/Out Built-In Convexity, <=4x4\"'), +(3209, 'A4410', 'Ostomy Skin Barrier w/Flange, Extended Wear, w/Out Built-In Convexity, >4x4\"'), +(3210, 'A4411', 'Ostomy Skin Barrier, Solid, Extended Wear w/Built-In Convexity =4x4\"'), +(3211, 'A4412', 'Ostomy Drainable Pouch, High Output, w/Out Filter'), +(3212, 'A4413', 'Ostomy Drainable Pouch, High Output, w/Filter'), +(3213, 'A4414', 'Ostomy Skin Barrier w/Flange, w/Out Built-In Convexity<=4x4\"'), +(3214, 'A4415', 'Ostomy Skin Barrier w/Flange, w/Out Built-In Convexity >4x4\"'), +(3215, 'A4416', 'Ostomy Pouch, Closed, w/Barrier w/Filter'), +(3216, 'A4417', 'Ostomy Pouch, Closed, w/Barrier, w/Built-In Convexity, w/Filter'), +(3217, 'A4418', 'Ostomy Pouch, closed w/Out Barrier, w/Filter'), +(3218, 'A4419', 'Ostomy Pouch, Closed, for Barrier w/Non-Locking Flange, w/Filter'), +(3219, 'A4420', 'Ostomy Pouch, Closed, for Barrier w/Locking Flange'), +(3220, 'A4421', 'Ostomy Miscellaneous Supply'), +(3221, 'A4422', 'Ostomy Pouch, Absorbent Material'), +(3222, 'A4423', 'Ostomy Pouch, Closed, for Barrier w/Locking Flange, w/Filter'), +(3223, 'A4424', 'Ostomy Drainable Pouch, w/Barrier, w/Filter'), +(3224, 'A4425', 'Ostomy Drainable Pouch for Barrier w/Non-Locking Flange, w/Filter'), +(3225, 'A4426', 'Ostomy Drainable Pouch for Barrier w/Locking Flange'), +(3226, 'A4427', 'Ostomy Drainable Pouch for Barrier w/Locking Flange w/Filter'), +(3227, 'A4428', 'Ostomy Urinary Pouch w/Extended Wear Barrier, w/Faucet, w/Valve'), +(3228, 'A4429', 'Ostomy Urinary Pouch w/Barrier, w/Built-In Convexity, w/Faucet, w/Valve'), +(3229, 'A4430', 'Ostomy Urinary Pouch w/Extended Wear Barrier, w/Built-In Convexity, w/Faucet, w/Valve'), +(3230, 'A4431', 'Ostomy Urinary Pouch w/Barrier, w/Faucet, w/Valve'), +(3231, 'A4432', 'Ostomy Urinary Pouch for Barrier w/Non-Locking Flange, w/Faucet, w/Valve'), +(3232, 'A4433', 'Ostomy Urinary Pouch for Barrier w/Locking Flange'), +(3233, 'A4434', 'Ostomy Urinary Pouch for Barrier w/Locking Flange, w/Faucet, w/Valve'), +(3234, 'A4435', 'Ostomy Drainable Pouch, High Output, w/Extended Wear Barrier'), +(3235, 'A4529', 'Child Diaper, Small/Medium'), +(3236, 'A4530', 'Child Diaper, Large'), +(3237, 'A4531', 'Child Brief, Small/Medium'), +(3238, 'A4532', 'Child Brief, Large'), +(3239, 'A4533', 'Youth Diaper'), +(3240, 'A4534', 'Youth Brief'), +(3241, 'A4535', 'Disposable Liner/Shield for Incontinence'), +(3242, 'A4536', 'Protective Underwear, Washable, Any Size'), +(3243, 'A4537', 'Under Pad Reusable, Any Size'), +(3244, 'A4538', 'Reusable Diaper from Diaper Service'), +(3245, 'A4550', 'Surgical Trays'), +(3246, 'A4554', 'Disposable Underpads'), +(3247, 'A4555', 'Electrode/Transducer w/Electrical Stimulation Device for Cancer Treatment, Replacement Only'), +(3248, 'A4556', 'Electrodes Per Pair'), +(3249, 'A4557', 'Lead Wires Per Pair'), +(3250, 'A4558', 'Conductive Gel or Paste Per oz'), +(3251, 'A4559', 'Coupling Gel or Paste Per oz'), +(3252, 'A4561', 'Pessary Rubber, Any Type'), +(3253, 'A4562', 'Pessary, Non Rubber, Any Type'), +(3254, 'A4565', 'Slings'), +(3255, 'A4566', 'Shoulder Sling or Vest Design, Abduction Restrainer, w/ or w/out Swathe Control, Prefabricated, w/Fitting & Adjustment'), +(3256, 'A4570', 'Splint'), +(3257, 'A4575', 'Hyperbaric o2 Chamber, Disposable'), +(3258, 'A4580', 'Cast Supplies'), +(3259, 'A4590', 'Special Casting Material'), +(3260, 'A4595', 'Electrical Stimulator Supplies, 2 Lead'), +(3261, 'A4600', 'Sleeve, Intermittent Limb Compression Device, Replacement'), +(3262, 'A4601', 'Lithium ion Battery, Rechargeable, Non-Prosthetic Use, Replacement'), +(3263, 'A4602', 'Replace Lithium Battery 1.5v, for External Infusion Pump'), +(3264, 'A4604', 'Tubing w/Heating Element for Use w/Positive Airway Pressure Device'), +(3265, 'A4633', 'Replacement Bulb for Ultraviolet Light Therapy System'), +(3266, 'A4634', 'Replacement Bulb, Tabletop Therapy Light Box'), +(3267, 'A4635', 'Replacement Underarm Crutch Pad'), +(3268, 'A4636', 'Replacement Handgrip for Cane, Crutch, or Walker'), +(3269, 'A4637', 'Replacement Tip, Cane, Crutch, Walker'), +(3270, 'A4638', 'Replacement Battery for Patient Ear Pulse Generator'), +(3271, 'A4639', 'Replacement Pad for Infrared Heating Pad System'), +(3272, 'A4640', 'Replacement Pad for Patient Alternating Pressure Pad'), +(3273, 'A4641', 'Radiopharmaceutical, Diagnosis, Not Classified'), +(3274, 'A4642', 'Indium in-111 Satumomab Pendetide, Diagnostic, Per Study Dose, up to 6 Millicuries'), +(3275, 'A4643', 'High Dose Contrast MRI'), +(3276, 'A4644', 'Contrast 100-199 MGs Iodine'), +(3277, 'A4645', 'Contrast 200-299 MGs Iodine'), +(3278, 'A4646', 'Contrast 300-399 MGs Iodine'), +(3279, 'A4647', 'Paramagnetic Contrast Material, Gadolinium'), +(3280, 'A4648', 'Implantable Tissue Marker'), +(3281, 'A4649', 'Surgical Supply; Miscellaneous'), +(3282, 'A4714', 'Treated Water (deionized, distilled, or reverse osmosis) for Peritoneal Dialysis, per Gallon'), +(3283, 'A4719', '\"y set\" Tubing for Peritoneal Dialysis'), +(3284, 'A4720', 'Dialysate Solution, Any Concentration of Dextrose, Fluid Volume Greater than 249cc, But Less Than or Equal to 999cc, for Peritoneal Dialysis'), +(3285, 'A6447', 'Conforming Bandage, Non-Elastic, Knitted/Woven, Sterile, Width >=5\"/yd'), +(3286, 'A6448', 'Light Compression Bandage, Elastic, Knitted/Woven, Width<3\"/yd'), +(3287, 'A6449', 'Light Compression Bandage, Elastic, Knitted/Woven, Width>=3\" <5\"/yd'), +(3288, 'A6450', 'Light Compression Bandage, Elastic, Knitted/Woven, Width>=5\"/yd'), +(3289, 'A6451', 'Moderate Compression Bandage, Elastic, Knitted/Woven, 1.25-1.34 Resistance, Width>=3\"<5\"/yd'), +(3290, 'A6452', 'High Compression Bandage, Elastic, Knitted/Woven, 1.35 Resistance, Width>=3\"<5\"yd'), +(3291, 'A6453', 'Self-Adherent Bandage, Elastic, Non-Knitted/Woven, Width<3\"/yd'), +(3292, 'A6454', 'Self-Adherent Bandage, Elastic, Non-Knitted/Woven, Width>=3\" <5\"/yd'), +(3293, 'A6455', 'Self-Adherent Bandage, Elastic, Non-Knitted/Woven, Width>=5\"/yd'), +(3294, 'A6456', 'Zinc Paste Bandage, Non-Elastic, Knitted/Woven, Width>=3\"<5\"/yd'), +(3295, 'A6457', 'Tubular Dressing'), +(3296, 'A6550', 'Wound Care Set, for Negative Pressure Wound Therapy Electrical Pump, w/All Supplies & Accessories'), +(3297, 'A6551', 'Canister Set for Negative Pressure Wound Therapy Electrical Pump, Stationary or Portable, Each'), +(3298, 'A7000', 'Canister, Disposable, Used w/Suction Pump, Each'), +(3299, 'A7001', 'Canister, Non-Disposable, Used w/Suction Pump, Each'), +(3300, 'A7002', 'Tubing, Used w/Suction Pump, Each'), +(3301, 'C9202', 'Injection, Suspension of Microspheres of Human Serum Albumin w/Octafluoropropane, per 3 ml'), +(3302, 'C9203', 'Injection, Perflexane Lipid Microspheres, per 10 ml Vial'), +(3303, 'C9205', 'Injection, Oxaliplatin, per 5 mg'), +(3304, 'C9206', 'Collagen-Glycosaminoglycan Bilayer Matrix, per CM2'), +(3305, 'C9207', 'Injection, Bortezomib, per 3.5 mg'), +(3306, 'C9208', 'Injection, Agalsidase Beta, per 1 mg'), +(3307, 'C9236', 'Injection, Eculizumab, 10 mg'), +(3308, 'C9237', 'Injection, Lanreotide Acetate, 1 mg'), +(3309, 'C9238', 'Injection, Levetiracetam, 10 mg'), +(3310, 'L7902', 'Tension Ring, for Vacuum Erection Device, Any Type, Replacement'), +(3311, 'L8000', 'Breast Prosthesis, Mastectomy Bra, w/out Integrated Breast Prosthesis Form, Any Type'), +(3312, 'L8001', 'Breast Prosthesis, Mastectomy Bra, w/Integrated Breast Prosthesis Form, Unilateral'), +(3313, 'L8002', 'Breast Prosthesis, Mastectomy Bra, w/Integrated Breast Prosthesis Form, Bilateral'), +(3314, 'L8150', 'Gradient Compression Stocking, Thigh Length, 40-50 MMHG, Each'), +(3315, 'L8160', 'Gradient Compression Stocking, Full Length/Chap Style, 18-30 MMHG, Each'), +(3316, 'L8170', 'Gradient Compression Stocking, Full Length/Chap Style, 30-40 MMHG, Each'), +(3317, 'L8180', 'Gradient Compression Stocking, Full Length/Chap Style, 40-50 MMHG, Each'), +(3318, 'S9368', 'Home Infusion Therapy, Total Parenteral Nutrition (tpn); More Than Three Liters Per Day, Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment Including Standard tpn Formula, Per Diem'), +(3319, 'S9370', 'Home Therapy, Intermittent Anti-Emetic Injection Therapy; Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem'), +(3320, 'S9372', 'Home Therapy; Intermittent Anticoagulant Injection Therapy; Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem'), +(3321, 'S9373', 'Home Infusion Therapy, Hydration Therapy; Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem'), +(3322, 'S9374', 'Home Infusion Therapy, Hydration Therapy; One Liter Per Day, Administrative Services, Professional Pharmacy Services, Care Coordination, w/All Necessary Supplies & Equipment, Per Diem'), +(3323, 'V5260', 'Hearing Aid, Digital, Binaural, ITE'), +(3324, 'V5261', 'Hearing Aid, Digital, Binaural, BTE'), +(3325, 'V5262', 'Hearing Aid, Disposable, Any Type, Monaural'), +(3326, 'V5263', 'Hearing Aid, Disposable, Any Type, Binaural'), +(3327, 'V5264', 'Ear Mold/Insert, Not Disposable, Any Type'), +(3328, 'V5265', 'Ear Mold/Insert, Disposable, Any Type'), +(3329, 'V5266', 'Battery for Use in Hearing Device'), +(3330, 'V5267', 'Hearing Aid/Assistive Listening Service/Supplies/Accessories, Not Specified'), +(3331, 'V5268', 'Assistive Listening Device, Telephone Amplifier, Any Type'), +(3332, 'V5269', 'Assistive Listening Device, Alerting, Any Type'), +(3333, 'V5270', 'Assistive Listening Device, Television Amplifier, Any Type'), +(3334, 'V5271', 'Assistive Listening Device, Television Caption Decoder'), +(3335, 'V5272', 'Assistive Listening Device, TDD'), +(3336, 'V5273', 'Assistive Listening Device, for use w/Cochlear Implant'), +(3337, 'V5274', 'Assistive Listening Device, Not Specified'), +(3338, 'V5275', 'Ear Impression, Sach'), +(3339, 'V5281', 'Assistive Listening Device, Personal FM/DM System, Monaural, (1 receiver, transmitter, microphone), Any Type'), +(3340, 'V5282', 'Assistive Listening Device, Personal FM/DM System, Binaural, (2 receivers, transmitter, microphone), Any Type'), +(3341, 'V5283', 'Assistive Listening Device, Personal FM/D Neck, Loop Induction Receiver'), +(3342, 'V5284', 'Assistive Listening Device, Personal FM/DM, Ear Level Receiver'), +(3343, 'V5285', 'Assistive Listening Device, Personal FM/DM, Direct Audio Input Receiver'), +(3344, 'V5286', 'Assistive Listening Device, Personal Blue Tooth FM/DM Receiver'), +(3345, 'V5287', 'Assistive Listening Device, Personal FM/DM Receiver, Not Specified'), +(3346, 'V5288', 'Assistive Listening Device, Personal FM/DM Transmitter Assistive Listening Device'), +(3347, 'V5289', 'Assistive Listening Device, Personal FM/DM Adapter/Boot Coupling Device for Receiver, Any Type'), +(3348, 'V5290', 'Assistive Listening Device, Transmitter Microphone, Any Type'), +(3349, 'V5298', 'Hearing Aid, Not Classified'), +(3350, 'V5299', 'Hearing Service, Miscellaneous'), +(3351, 'V5336', 'Repair/Modification of Augmentative Communicative System/Device'), +(3352, 'V5362', 'Speech Screening'), +(3353, 'V5363', 'Language Screening'), +(3354, 'V5364', 'Dysphagia Screening'), +(3355, '90587', 'Dengue vaccine, quadrivalent, live, 3 dose schedule, for subcutaneous use'), +(3356, '90673', 'Influenza virus vaccine, trivalent (RIV3), derived from recombinant DNA, hemagglutinin (HA) protein only, preservative and antibiotic free, for intramuscular use'), +(3357, '90674', 'Influenza virus vaccine, quadrivalent (ccIIV4), derived from cell cultures, subunit, preservative and antibiotic free, 0.5 mL dosage, for intramuscular use'), +(3358, '90682', 'Influenza virus vaccine, quadrivalent (RIV4), derived from recombinant DNA, hemagglutinin (HA) protein only, preservative and antibiotic free, for intramuscular use'), +(3359, '90689', 'Influenza virus vaccine, quadrivalent (IIV4), inactivated, adjuvanted, preservative free, 0.25 mL dosage, for intramuscular use'), +(3360, '90750', 'Zoster (shingles) vaccine (HZV), recombinant, subunit, adjuvanted, for intramuscular use'), +(3361, '90756', 'Influenza virus vaccine, quadrivalent (ccIIV4), derived from cell cultures, subunit, antibiotic free, 0.5 mL dosage, for intramuscular use'), +(3362, '97161', 'Physical therapy evaluation: low complexity, requiring these components: A history with no personal factors and/or comorbidities that impact the plan of care; An examination of body system(s) using standardized tests and measures addressing 1-2 elements from any of the following: body structures and functions, activity limitations, and/or participation restrictions; A clinical presentation with stable and/or uncomplicated characteristics; and Clinical decision making of low complexity using standardized patient assessment instrument and/or measurable assessment of functional outcome. Typically, 20 minutes are spent face-to-face with the patient and/or family.'), +(3363, '97162', 'Physical therapy evaluation: moderate complexity, requiring these components: A history of present problem with 1-2 personal factors and/or comorbidities that impact the plan of care; An examination of body systems using standardized tests and measures in addressing a total of 3 or more elements from any of the following: body structures and functions, activity limitations, and/or participation restrictions; An evolving clinical presentation with changing characteristics; and Clinical decision making of moderate complexity using standardized patient assessment instrument and/or measurable assessment of functional outcome. Typically, 30 minutes are spent face-to-face with the patient and/or family.'), +(3364, '97163', 'Physical therapy evaluation: high complexity, requiring these components: A history of present problem with 3 or more personal factors and/or comorbidities that impact the plan of care; An examination of body systems using standardized tests and measures addressing a total of 4 or more elements from any of the following: body structures and functions, activity limitations, and/or participation restrictions; A clinical presentation with unstable and unpredictable characteristics; and Clinical decision making of high complexity using standardized patient assessment instrument and/or measurable assessment of functional outcome. Typically, 45 minutes are spent face-to-face with the patient and/or family.'), +(3365, '30555', 'BioTe Intial Labs - Male'); + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `users` +-- + +CREATE TABLE `users` ( + `id` int(11) NOT NULL, + `email` varchar(255) NOT NULL, + `password` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Volcado de datos para la tabla `users` +-- + +INSERT INTO `users` (`id`, `email`, `password`) VALUES +(1, 'ruthbri@gmail.com', '123456'); + +-- +-- Índices para tablas volcadas +-- + +-- +-- Indices de la tabla `cpt` +-- +ALTER TABLE `cpt` + ADD PRIMARY KEY (`id`); + +-- +-- Indices de la tabla `users` +-- +ALTER TABLE `users` + ADD PRIMARY KEY (`id`); + +-- +-- AUTO_INCREMENT de las tablas volcadas +-- + +-- +-- AUTO_INCREMENT de la tabla `cpt` +-- +ALTER TABLE `cpt` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3366; + +-- +-- AUTO_INCREMENT de la tabla `users` +-- +ALTER TABLE `users` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/phpTest_20/index.php b/phpTest_20/index.php new file mode 100644 index 0000000..b3ad58f --- /dev/null +++ b/phpTest_20/index.php @@ -0,0 +1,9 @@ +render('template_login', ['name' => 'LoginTest']); + +?> \ No newline at end of file diff --git a/phpTest_20/js/internal.js b/phpTest_20/js/internal.js new file mode 100644 index 0000000..1b05845 --- /dev/null +++ b/phpTest_20/js/internal.js @@ -0,0 +1,100 @@ +$(document).ready(function() { + + + $("#sub_log").click(function() { + var userEm = $("#userEmail").val(); + var passUs = $("#userPass").val(); + var param = { + 'user': userEm, + 'pass': passUs + }; + if (userEm == "" || passUs == "") { + $("#msnResp").html(""); + } else { + $.ajax({ + data: param, + url: 'app/login.php', + type: 'post', + success: function(response) { + const re = eval(response); + }, + error: function(xhr, status) { + alert('Oops something happened'); + } + }); + } + }); + + $("#bye").click(function() { + $.ajax({ + data: { by: 1 }, + url: '../app/logout.php', + type: 'post', + success: function(response) { + const re = eval(response); + } + }); + }); + + $("#bntSumt").click(function() { + var file_data = $('#fileToUpload').prop('files')[0]; + $("#infoUp").html(""); + if (file_data != undefined) { + $("#infoUp").html('
Loading...
Loading...
'); + var form_data = new FormData(); + form_data.append('file', file_data); + $.ajax({ + type: 'POST', + url: '../app/controllerLoad.php', + contentType: false, + processData: false, + data: form_data, + success: function(response) { + $("#infoUp").html(response); + $.ajax({ + data: { body: response }, + url: '../app/controllerMail.php', + type: 'post' + }); + }, + error: function(xhr, status) { + alert('Something went wrong. Please try again.'); + } + }); + } else { + $("#infoUp").html(""); + $("#msnModal").html(""); + } + return false; + + + + }); + + $("#bntClos").click(function() { + $('#fileToUpload').val(''); + $("#infoUp").text(''); + location.reload(); + }); + + list(); + + function list() { + + var table = $('#tableCsv').DataTable({ + + "ajax": { + method: 'post', + url: '../app/controllerList.php' + }, + "columns": [ + { "data": "code" }, + { "data": "description" } + ] + + }); + + } + + +}); \ No newline at end of file diff --git a/phpTest_20/script_newUser/script_newUser.php b/phpTest_20/script_newUser/script_newUser.php new file mode 100644 index 0000000..02978ee --- /dev/null +++ b/phpTest_20/script_newUser/script_newUser.php @@ -0,0 +1,16 @@ + prepare($sql); +$query -> execute(); +echo "Usuario registrado con exito!"; +?> \ No newline at end of file diff --git a/phpTest_20/templates/layout_app.php b/phpTest_20/templates/layout_app.php new file mode 100644 index 0000000..3e45a45 --- /dev/null +++ b/phpTest_20/templates/layout_app.php @@ -0,0 +1,19 @@ + + + + + + PHP Test + + + +

Welcome to PHP Test!


+ section('form')?> + + + + + + + + \ No newline at end of file diff --git a/phpTest_20/templates/layout_load.php b/phpTest_20/templates/layout_load.php new file mode 100644 index 0000000..3037164 --- /dev/null +++ b/phpTest_20/templates/layout_load.php @@ -0,0 +1,35 @@ + + + + + + + File upload + + + + +
+
+
+
Logout
+

|

+
+
+ +
+
+ section('modal')?> +
+ section('table')?> + + + + + + + + + + + \ No newline at end of file diff --git a/phpTest_20/templates/template_load.php b/phpTest_20/templates/template_load.php new file mode 100644 index 0000000..f2b338d --- /dev/null +++ b/phpTest_20/templates/template_load.php @@ -0,0 +1,51 @@ +layout('layout_load') ?> +start('modal') ?> +
+ + +
+end() ?> + +start('table') ?> +
+
+ + + + + + + + + +
# CodeName
+
+
+end() ?> \ No newline at end of file diff --git a/phpTest_20/templates/template_login.php b/phpTest_20/templates/template_login.php new file mode 100644 index 0000000..ef76e15 --- /dev/null +++ b/phpTest_20/templates/template_login.php @@ -0,0 +1,20 @@ +layout('layout_app', ['title' => 'Welcome to PHP Test!']) ?> +start('form') ?> +
+
+
+
+
+ + +
+
+ + +
+ + +
+
+
+ end() ?> \ No newline at end of file diff --git a/phpTest_20/vendor/autoload.php b/phpTest_20/vendor/autoload.php new file mode 100644 index 0000000..4978dfa --- /dev/null +++ b/phpTest_20/vendor/autoload.php @@ -0,0 +1,12 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + /** @var ?string */ + private $vendorDir; + + // PSR-4 + /** + * @var array[] + * @psalm-var array> + */ + private $prefixLengthsPsr4 = array(); + /** + * @var array[] + * @psalm-var array> + */ + private $prefixDirsPsr4 = array(); + /** + * @var array[] + * @psalm-var array + */ + private $fallbackDirsPsr4 = array(); + + // PSR-0 + /** + * @var array[] + * @psalm-var array> + */ + private $prefixesPsr0 = array(); + /** + * @var array[] + * @psalm-var array + */ + private $fallbackDirsPsr0 = array(); + + /** @var bool */ + private $useIncludePath = false; + + /** + * @var string[] + * @psalm-var array + */ + private $classMap = array(); + + /** @var bool */ + private $classMapAuthoritative = false; + + /** + * @var bool[] + * @psalm-var array + */ + private $missingClasses = array(); + + /** @var ?string */ + private $apcuPrefix; + + /** + * @var self[] + */ + private static $registeredLoaders = array(); + + /** + * @param ?string $vendorDir + */ + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + } + + /** + * @return string[] + */ + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + /** + * @return array[] + * @psalm-return array> + */ + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + /** + * @return array[] + * @psalm-return array + */ + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + /** + * @return array[] + * @psalm-return array + */ + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + /** + * @return string[] Array of classname => path + * @psalm-return array + */ + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param string[] $classMap Class to filename map + * @psalm-param array $classMap + * + * @return void + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void + */ + public function add($prefix, $paths, $prepend = false) + { + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + (array) $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + (array) $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = (array) $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + (array) $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + (array) $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + (array) $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + (array) $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 base directories + * + * @return void + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + * + * @return void + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + * + * @return void + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + * + * @return void + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + * + * @return void + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return true|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + includeFile($file); + + return true; + } + + return null; + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders indexed by their corresponding vendor directories. + * + * @return self[] + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + /** + * @param string $class + * @param string $ext + * @return string|false + */ + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + * @private + */ +function includeFile($file) +{ + include $file; +} diff --git a/phpTest_20/vendor/composer/InstalledVersions.php b/phpTest_20/vendor/composer/InstalledVersions.php new file mode 100644 index 0000000..c6b54af --- /dev/null +++ b/phpTest_20/vendor/composer/InstalledVersions.php @@ -0,0 +1,352 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer; + +use Composer\Autoload\ClassLoader; +use Composer\Semver\VersionParser; + +/** + * This class is copied in every Composer installed project and available to all + * + * See also https://getcomposer.org/doc/07-runtime.md#installed-versions + * + * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final + */ +class InstalledVersions +{ + /** + * @var mixed[]|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null + */ + private static $installed; + + /** + * @var bool|null + */ + private static $canGetVendors; + + /** + * @var array[] + * @psalm-var array}> + */ + private static $installedByVendor = array(); + + /** + * Returns a list of all package names which are present, either by being installed, replaced or provided + * + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackages() + { + $packages = array(); + foreach (self::getInstalled() as $installed) { + $packages[] = array_keys($installed['versions']); + } + + if (1 === \count($packages)) { + return $packages[0]; + } + + return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); + } + + /** + * Returns a list of all package names with a specific type e.g. 'library' + * + * @param string $type + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackagesByType($type) + { + $packagesByType = array(); + + foreach (self::getInstalled() as $installed) { + foreach ($installed['versions'] as $name => $package) { + if (isset($package['type']) && $package['type'] === $type) { + $packagesByType[] = $name; + } + } + } + + return $packagesByType; + } + + /** + * Checks whether the given package is installed + * + * This also returns true if the package name is provided or replaced by another package + * + * @param string $packageName + * @param bool $includeDevRequirements + * @return bool + */ + public static function isInstalled($packageName, $includeDevRequirements = true) + { + foreach (self::getInstalled() as $installed) { + if (isset($installed['versions'][$packageName])) { + return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); + } + } + + return false; + } + + /** + * Checks whether the given package satisfies a version constraint + * + * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: + * + * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') + * + * @param VersionParser $parser Install composer/semver to have access to this class and functionality + * @param string $packageName + * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package + * @return bool + */ + public static function satisfies(VersionParser $parser, $packageName, $constraint) + { + $constraint = $parser->parseConstraints($constraint); + $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + + return $provided->matches($constraint); + } + + /** + * Returns a version constraint representing all the range(s) which are installed for a given package + * + * It is easier to use this via isInstalled() with the $constraint argument if you need to check + * whether a given version of a package is installed, and not just whether it exists + * + * @param string $packageName + * @return string Version constraint usable with composer/semver + */ + public static function getVersionRanges($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + $ranges = array(); + if (isset($installed['versions'][$packageName]['pretty_version'])) { + $ranges[] = $installed['versions'][$packageName]['pretty_version']; + } + if (array_key_exists('aliases', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); + } + if (array_key_exists('replaced', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); + } + if (array_key_exists('provided', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); + } + + return implode(' || ', $ranges); + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['version'])) { + return null; + } + + return $installed['versions'][$packageName]['version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getPrettyVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['pretty_version'])) { + return null; + } + + return $installed['versions'][$packageName]['pretty_version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference + */ + public static function getReference($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['reference'])) { + return null; + } + + return $installed['versions'][$packageName]['reference']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. + */ + public static function getInstallPath($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @return array + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} + */ + public static function getRootPackage() + { + $installed = self::getInstalled(); + + return $installed[0]['root']; + } + + /** + * Returns the raw installed.php data for custom implementations + * + * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. + * @return array[] + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} + */ + public static function getRawData() + { + @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = include __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + + return self::$installed; + } + + /** + * Returns the raw data of all installed.php which are currently loaded for custom implementations + * + * @return array[] + * @psalm-return list}> + */ + public static function getAllRawData() + { + return self::getInstalled(); + } + + /** + * Lets you reload the static array from another file + * + * This is only useful for complex integrations in which a project needs to use + * this class but then also needs to execute another project's autoloader in process, + * and wants to ensure both projects have access to their version of installed.php. + * + * A typical case would be PHPUnit, where it would need to make sure it reads all + * the data it needs from this class, then call reload() with + * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure + * the project in which it runs can then also use this class safely, without + * interference between PHPUnit's dependencies and the project's dependencies. + * + * @param array[] $data A vendor/composer/installed.php data set + * @return void + * + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data + */ + public static function reload($data) + { + self::$installed = $data; + self::$installedByVendor = array(); + } + + /** + * @return array[] + * @psalm-return list}> + */ + private static function getInstalled() + { + if (null === self::$canGetVendors) { + self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); + } + + $installed = array(); + + if (self::$canGetVendors) { + foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + if (isset(self::$installedByVendor[$vendorDir])) { + $installed[] = self::$installedByVendor[$vendorDir]; + } elseif (is_file($vendorDir.'/composer/installed.php')) { + $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; + if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { + self::$installed = $installed[count($installed) - 1]; + } + } + } + } + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = require __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + $installed[] = self::$installed; + + return $installed; + } +} diff --git a/phpTest_20/vendor/composer/LICENSE b/phpTest_20/vendor/composer/LICENSE new file mode 100644 index 0000000..f27399a --- /dev/null +++ b/phpTest_20/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/phpTest_20/vendor/composer/autoload_classmap.php b/phpTest_20/vendor/composer/autoload_classmap.php new file mode 100644 index 0000000..0fb0a2c --- /dev/null +++ b/phpTest_20/vendor/composer/autoload_classmap.php @@ -0,0 +1,10 @@ + $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/phpTest_20/vendor/composer/autoload_namespaces.php b/phpTest_20/vendor/composer/autoload_namespaces.php new file mode 100644 index 0000000..15a2ff3 --- /dev/null +++ b/phpTest_20/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($vendorDir . '/phpmailer/phpmailer/src'), + 'League\\Plates\\' => array($vendorDir . '/league/plates/src'), +); diff --git a/phpTest_20/vendor/composer/autoload_real.php b/phpTest_20/vendor/composer/autoload_real.php new file mode 100644 index 0000000..5e30914 --- /dev/null +++ b/phpTest_20/vendor/composer/autoload_real.php @@ -0,0 +1,38 @@ +register(true); + + return $loader; + } +} diff --git a/phpTest_20/vendor/composer/autoload_static.php b/phpTest_20/vendor/composer/autoload_static.php new file mode 100644 index 0000000..7b6cd35 --- /dev/null +++ b/phpTest_20/vendor/composer/autoload_static.php @@ -0,0 +1,44 @@ + + array ( + 'PHPMailer\\PHPMailer\\' => 20, + ), + 'L' => + array ( + 'League\\Plates\\' => 14, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'PHPMailer\\PHPMailer\\' => + array ( + 0 => __DIR__ . '/..' . '/phpmailer/phpmailer/src', + ), + 'League\\Plates\\' => + array ( + 0 => __DIR__ . '/..' . '/league/plates/src', + ), + ); + + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInit8b9739534f60d5f14c417c9401fa8b91::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit8b9739534f60d5f14c417c9401fa8b91::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit8b9739534f60d5f14c417c9401fa8b91::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/phpTest_20/vendor/composer/installed.json b/phpTest_20/vendor/composer/installed.json new file mode 100644 index 0000000..7cc78ec --- /dev/null +++ b/phpTest_20/vendor/composer/installed.json @@ -0,0 +1,154 @@ +{ + "packages": [ + { + "name": "league/plates", + "version": "v3.4.0", + "version_normalized": "3.4.0.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/plates.git", + "reference": "6d3ee31199b536a4e003b34a356ca20f6f75496a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/plates/zipball/6d3ee31199b536a4e003b34a356ca20f6f75496a", + "reference": "6d3ee31199b536a4e003b34a356ca20f6f75496a", + "shasum": "" + }, + "require": { + "php": "^7.0|^8.0" + }, + "require-dev": { + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "^3.5" + }, + "time": "2020-12-25T05:00:37+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "League\\Plates\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jonathan Reinink", + "email": "jonathan@reinink.ca", + "role": "Developer" + }, + { + "name": "RJ Garcia", + "email": "ragboyjr@icloud.com", + "role": "Developer" + } + ], + "description": "Plates, the native PHP template system that's fast, easy to use and easy to extend.", + "homepage": "https://platesphp.com", + "keywords": [ + "league", + "package", + "templates", + "templating", + "views" + ], + "support": { + "issues": "https://github.com/thephpleague/plates/issues", + "source": "https://github.com/thephpleague/plates/tree/v3.4.0" + }, + "install-path": "../league/plates" + }, + { + "name": "phpmailer/phpmailer", + "version": "v6.6.0", + "version_normalized": "6.6.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "e43bac82edc26ca04b36143a48bde1c051cfd5b1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/e43bac82edc26ca04b36143a48bde1c051cfd5b1", + "reference": "e43bac82edc26ca04b36143a48bde1c051cfd5b1", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.2", + "php-parallel-lint/php-console-highlighter": "^0.5.0", + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.6.2", + "yoast/phpunit-polyfills": "^1.0.0" + }, + "suggest": { + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" + }, + "time": "2022-02-28T15:31:21+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.0" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "install-path": "../phpmailer/phpmailer" + } + ], + "dev": true, + "dev-package-names": [] +} diff --git a/phpTest_20/vendor/composer/installed.php b/phpTest_20/vendor/composer/installed.php new file mode 100644 index 0000000..d9a1e9c --- /dev/null +++ b/phpTest_20/vendor/composer/installed.php @@ -0,0 +1,41 @@ + array( + 'name' => '__root__', + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev' => true, + ), + 'versions' => array( + '__root__' => array( + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'league/plates' => array( + 'pretty_version' => 'v3.4.0', + 'version' => '3.4.0.0', + 'reference' => '6d3ee31199b536a4e003b34a356ca20f6f75496a', + 'type' => 'library', + 'install_path' => __DIR__ . '/../league/plates', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'phpmailer/phpmailer' => array( + 'pretty_version' => 'v6.6.0', + 'version' => '6.6.0.0', + 'reference' => 'e43bac82edc26ca04b36143a48bde1c051cfd5b1', + 'type' => 'library', + 'install_path' => __DIR__ . '/../phpmailer/phpmailer', + 'aliases' => array(), + 'dev_requirement' => false, + ), + ), +); diff --git a/phpTest_20/vendor/composer/platform_check.php b/phpTest_20/vendor/composer/platform_check.php new file mode 100644 index 0000000..f79e574 --- /dev/null +++ b/phpTest_20/vendor/composer/platform_check.php @@ -0,0 +1,26 @@ += 70000)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 7.0.0". You are running ' . PHP_VERSION . '.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + } + } + trigger_error( + 'Composer detected issues in your platform: ' . implode(' ', $issues), + E_USER_ERROR + ); +} diff --git a/phpTest_20/vendor/league/plates/.github/workflows/docs.yml b/phpTest_20/vendor/league/plates/.github/workflows/docs.yml new file mode 100644 index 0000000..b58513b --- /dev/null +++ b/phpTest_20/vendor/league/plates/.github/workflows/docs.yml @@ -0,0 +1,26 @@ +name: docs + +on: + push: + branches: + - v3 + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.79.1' + + - name: Build + run: hugo --minify -s doc + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./doc/public \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/.github/workflows/php.yml b/phpTest_20/vendor/league/plates/.github/workflows/php.yml new file mode 100644 index 0000000..40288ee --- /dev/null +++ b/phpTest_20/vendor/league/plates/.github/workflows/php.yml @@ -0,0 +1,35 @@ +name: PHP + +on: [push] + +jobs: + run: + runs-on: 'ubuntu-latest' + strategy: + matrix: + php-versions: ['7.3', '7.4', '8.0'] + phpunit-versions: ['9.5'] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring, intl + ini-values: post_max_size=256M, max_execution_time=180 + coverage: xdebug + tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }} + + - name: Validate Composer + run: composer validate + - name: Install Composer Deps + run: composer install + - name: Run Tests + run: phpunit --testdox --coverage-text --coverage-clover=coverage.clover + - name: Upload Scrutinzer + continue-on-error: true + run: | + wget https://scrutinizer-ci.com/ocular.phar + php ocular.phar code-coverage:upload --format=php-clover coverage.clover \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/CONTRIBUTING.md b/phpTest_20/vendor/league/plates/CONTRIBUTING.md new file mode 100644 index 0000000..c2cc4f6 --- /dev/null +++ b/phpTest_20/vendor/league/plates/CONTRIBUTING.md @@ -0,0 +1,29 @@ +# Contributing + +Contributions are **welcome** and will be fully **credited**. + +We accept contributions via Pull Requests on [Github](https://github.com/thephpleague/plates). + +## Pull Requests + +- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer). +- **Add tests!** - Your patch won't be accepted if it doesn't have tests. +- **Document any change in behaviour** - Make sure the README and any other relevant documentation are kept up-to-date. +- **Consider our release cycle** - We try to follow semver. Randomly breaking public APIs is not an option. +- **Create topic branches** - Don't ask us to pull from your master branch. +- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests. +- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting. + +## Running Tests + +``` bash +$ phpunit +``` + +## Docs + +Docs are served with hugo running on version 0.79 or later. + +You can view the docs locally with `hugo -s doc server` + +**Happy coding**! \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/LICENSE b/phpTest_20/vendor/league/plates/LICENSE new file mode 100644 index 0000000..26357d4 --- /dev/null +++ b/phpTest_20/vendor/league/plates/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013 The League of Extraordinary Packages + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/README.md b/phpTest_20/vendor/league/plates/README.md new file mode 100644 index 0000000..1f76fd2 --- /dev/null +++ b/phpTest_20/vendor/league/plates/README.md @@ -0,0 +1,64 @@ +Plates +====== + +[![Maintainer](http://img.shields.io/badge/maintainer-@ragboyjr-blue.svg?style=flat-square)](https://twitter.com/ragboyjr) +[![Source Code](http://img.shields.io/badge/source-league/plates-blue.svg?style=flat-square)](https://github.com/thephpleague/plates) +[![Latest Version](https://img.shields.io/github/release/thephpleague/plates.svg?style=flat-square)](https://github.com/thephpleague/plates/releases) +[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) +[![Build Status](https://img.shields.io/github/workflow/status/thephpleague/plates/PHP/v3?style=flat-square)](https://github.com/thephpleague/plates/actions?query=workflow%3APHP+branch%3Av3) +[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/plates.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/plates/code-structure) +[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/plates.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/plates) +[![Total Downloads](https://img.shields.io/packagist/dt/league/plates.svg?style=flat-square)](https://packagist.org/packages/league/plates) + +Plates is a native PHP template system that's fast, easy to use and easy to extend. It's inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and strives to bring modern template language functionality to native PHP templates. Plates is designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Smarty. + +### Highlights + +- Native PHP templates, no new [syntax](https://platesphp.com/templates/syntax/) to learn +- Plates is a template system, not a template language +- Plates encourages the use of existing PHP functions +- Increase code reuse with template [layouts](https://platesphp.com/templates/layouts/) and [inheritance](https://platesphp.com/templates/inheritance/) +- Template [folders](https://platesphp.com/engine/folders/) for grouping templates into namespaces +- [Data](https://platesphp.com/templates/data/#preassigned-and-shared-data) sharing across templates +- Preassign [data](https://platesphp.com/templates/data/#preassigned-and-shared-data) to specific templates +- Built-in [escaping](https://platesphp.com/templates/escaping/) helpers +- Easy to extend using [functions](https://platesphp.com/engine/functions/) and [extensions](https://platesphp.com/engine/extensions/) +- Framework-agnostic, will work with any project +- Decoupled design makes templates easy to test +- Composer ready and PSR-2 compliant + +## Installation + +Plates is available via Composer: + +``` +composer require league/plates +``` + +## Documentation + +Full documentation can be found at [platesphp.com](https://platesphp.com/). + +## Testing + +```bash +phpunit +``` + +## Contributing + +Please see [CONTRIBUTING](https://github.com/thephpleague/plates/blob/master/CONTRIBUTING.md) for details. + +## Security + +If you discover any security related issues, please email ragboyjr@icloud.com instead of using the issue tracker. + +## Credits + +- [RJ Garcia](https://github.com/ragboyjr) (Current Maintainer) +- [Jonathan Reinink](https://github.com/reinink) (Original Author) +- [All Contributors](https://github.com/thephpleague/plates/contributors) + +## License + +The MIT License (MIT). Please see [License File](https://github.com/thephpleague/plates/blob/master/LICENSE) for more information. diff --git a/phpTest_20/vendor/league/plates/composer.json b/phpTest_20/vendor/league/plates/composer.json new file mode 100644 index 0000000..de9f1f7 --- /dev/null +++ b/phpTest_20/vendor/league/plates/composer.json @@ -0,0 +1,52 @@ +{ + "name": "league/plates", + "description": "Plates, the native PHP template system that's fast, easy to use and easy to extend.", + "keywords": [ + "league", + "package", + "templating", + "templates", + "views" + ], + "homepage": "https://platesphp.com", + "license": "MIT", + "authors" : [ + { + "name": "Jonathan Reinink", + "email": "jonathan@reinink.ca", + "role": "Developer" + }, + { + "name": "RJ Garcia", + "email": "ragboyjr@icloud.com", + "role": "Developer" + } + ], + "require" : { + "php": "^7.0|^8.0" + }, + "require-dev": { + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "^3.5" + }, + "autoload": { + "psr-4": { + "League\\Plates\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "League\\Plates\\Tests\\": "tests" + } + }, + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "scripts": { + "test": "phpunit --testdox", + "docs": "hugo -s doc server" + } +} diff --git a/phpTest_20/vendor/league/plates/doc/config.toml b/phpTest_20/vendor/league/plates/doc/config.toml new file mode 100644 index 0000000..8b7c107 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/config.toml @@ -0,0 +1,15 @@ +baseURL = "https://platesphp.com/" +languageCode = "en-us" +title = "Plates" + +pygmentsUseClasses = true + +googleAnalytics = "UA-46050814-2" + +[params] + tagline = "Native PHP Templates" + description = "Plates is a Twig inspired, native PHP template system that brings modern template language functionality to native PHP templates." + [params.images] + favicon = "favicon/favicon.ico" + appleTouch = "favicon/apple-touch-icon-precomposed.png" + logo = "images/logo.png" \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/_index.md b/phpTest_20/vendor/league/plates/doc/content/_index.md new file mode 100644 index 0000000..b132422 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/_index.md @@ -0,0 +1,39 @@ ++++ +title = "Introduction" +[menu.main] +parent = "getting-started" +weight = 1 ++++ + +[![Maintainer](http://img.shields.io/badge/maintainer-@ragboyjr-blue.svg?style=flat-square)](https://twitter.com/reinink) +[![Source Code](http://img.shields.io/badge/source-league/plates-blue.svg?style=flat-square)](https://github.com/thephpleague/plates) +[![Latest Version](https://img.shields.io/github/release/thephpleague/plates.svg?style=flat-square)](https://github.com/thephpleague/plates/releases) +[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/thephpleague/plates/blob/master/LICENSE) +{{}}
{{}} +[![Build Status](https://img.shields.io/github/workflow/status/thephpleague/plates/PHP/v3?style=flat-square)](https://github.com/thephpleague/plates/actions?query=workflow%3APHP+branch%3Av3) +[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/plates.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/plates/code-structure) +[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/plates.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/plates) +[![Total Downloads](https://img.shields.io/packagist/dt/league/plates.svg?style=flat-square)](https://packagist.org/packages/league/plates) + +## About + +Plates is a native PHP template system that's fast, easy to use and easy to extend. It's inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and strives to bring modern template language functionality to native PHP templates. Plates is designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Smarty. + +## Highlights + +- Native PHP templates, no new [syntax]({{< relref "templates/syntax.md" >}}) to learn +- Plates is a template system, not a template language +- Plates encourages the use of existing PHP functions +- Increase code reuse with template [layouts]({{< relref "templates/layouts.md" >}}) and [inheritance]({{< relref "templates/inheritance.md" >}}) +- Template [folders]({{< relref "engine/folders.md" >}}) for grouping templates into namespaces +- [Data]({{< relref "templates/data.md#preassigned-and-shared-data" >}}) sharing across templates +- Preassign [data]({{< relref "templates/data#preassigned-and-shared-data" >}}) to specific templates +- Built-in [escaping]({{< relref "templates/escaping.md" >}}) helpers +- Easy to extend using [functions]({{< relref "engine/functions.md" >}}) and [extensions]({{< relref "engine/extensions.md" >}}) +- Framework-agnostic, will work with any project +- Decoupled design makes templates easy to test +- Composer ready and PSR-2 compliant + +## Questions? + +Plates is maintained by [RJ Garcia](https://twitter.com/ragboyjr) and originally created by [Jonathan Reinink](https://twitter.com/reinink). Submit issues to [Github](https://github.com/thephpleague/plates/issues). diff --git a/phpTest_20/vendor/league/plates/doc/content/engine/_index.md b/phpTest_20/vendor/league/plates/doc/content/engine/_index.md new file mode 100644 index 0000000..a6f8de9 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/engine/_index.md @@ -0,0 +1,6 @@ ++++ +title = "The Engine" +[menu.main] +identifier = "engine" +weight = 2 ++++ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/engine/extensions.md b/phpTest_20/vendor/league/plates/doc/content/engine/extensions.md new file mode 100644 index 0000000..7d20671 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/engine/extensions.md @@ -0,0 +1,119 @@ ++++ +title = "Extensions" +linkTitle = "Engine Extensions" +[menu.main] +parent = "engine" +weight = 5 ++++ + +Creating extensions couldn't be easier, and can really make Plates sing for your specific project. Start by creating a class that implements `\League\Plates\Extension\ExtensionInterface`. Next, register your template [functions]({{< relref "engine/functions.md" >}}) within a `register()` method. + +## Simple extensions example + +~~~ php +use League\Plates\Engine; +use League\Plates\Extension\ExtensionInterface; + +class ChangeCase implements ExtensionInterface +{ + public function register(Engine $engine) + { + $engine->registerFunction('uppercase', [$this, 'uppercaseString']); + $engine->registerFunction('lowercase', [$this, 'lowercaseString']); + } + + public function uppercaseString($var) + { + return strtoupper($var); + } + + public function lowercaseString($var) + { + return strtolower($var); + } +} +~~~ + +To use this extension in your template, simply call your new functions: + +~~~ php +

Hello, e($this->uppercase($name))?>

+~~~ + +They can also be used in a [batch]({{< relref "templates/functions.md#batch-function-calls" >}}) compatible function: + +~~~ php +

Hello e($name, 'uppercase')

+~~~ + +## Single method extensions + +Alternatively, you may choose to expose the entire extension object to the template using a single function. This can make your templates more legible and also reduce the chance of conflicts with other extensions. + +~~~ php +use League\Plates\Engine; +use League\Plates\Extension\ExtensionInterface; + +class ChangeCase implements ExtensionInterface +{ + public function register(Engine $engine) + { + $engine->registerFunction('case', [$this, 'getObject']); + } + + public function getObject() + { + return $this; + } + + public function upper($var) + { + return strtoupper($var); + } + + public function lower($var) + { + return strtolower($var); + } +} +~~~ + +To use this extension in your template, first call the primary function, then the secondary functions: + +~~~ php +

Hello, e($this->case()->upper($name))?>

+~~~ + +## Loading extensions + +To enable an extension, load it into the [engine]({{< relref "engine/overview.md" >}}) object using the `loadExtension()` method. + +~~~ php +$engine->loadExtension(new ChangeCase()); +~~~ + +## Accessing the engine and template + +It may be desirable to access the `engine` or `template` objects from within your extension. Plates makes both of these objects available to you. The engine is automatically passed to the `register()` method, and the template is assigned as a parameter on each function call. + +~~~ php +use League\Plates\Engine; +use League\Plates\Extension\ExtensionInterface; + +class MyExtension implements ExtensionInterface +{ + protected $engine; + public $template; // must be public + + public function register(Engine $engine) + { + $this->engine = $engine; + + // Access template data: + $data = $this->template->data(); + + // Register functions + // ... + } +} +~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/engine/file-extensions.md b/phpTest_20/vendor/league/plates/doc/content/engine/file-extensions.md new file mode 100644 index 0000000..e58023b --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/engine/file-extensions.md @@ -0,0 +1,35 @@ ++++ +title = "File Extensions" +linkTitle = "Engine File Extensions" +[menu.main] +parent = "engine" +weight = 2 ++++ + +Plates does not enforce a specific template file extension. By default it assumes `.php`. This file extension is automatically appended to your template names when rendered. You are welcome to change the default extension using one of the following methods. + +## Constructor method + +~~~ php +// Create new engine and set the default file extension to ".tpl" +$template = new League\Plates\Engine('/path/to/templates', 'tpl'); +~~~ + +## Setter method + +~~~ php +// Sets the default file extension to ".tpl" after engine instantiation +$template->setFileExtension('tpl'); +~~~ + +## Manually assign + +If you prefer to manually set the file extension, simply set the default file extension to `null`. + +~~~ php +// Disable automatic file extensions +$template->setFileExtension(null); + +// Render template +echo $templates->render('home.php'); +~~~ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/engine/folders.md b/phpTest_20/vendor/league/plates/doc/content/engine/folders.md new file mode 100644 index 0000000..c90bfb0 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/engine/folders.md @@ -0,0 +1,49 @@ ++++ +title = "Folders" +linkTitle = "Engine Folders" +[menu.main] +parent = "engine" +weight = 3 ++++ + +Folders make it really easy to organize and access your templates. Folders allow you to group your templates under different namespaces, each of which having their own file system path. + +## Creating folders + +To create folders, use the `addFolder()` method: + +~~~ php +// Create new Plates instance +$templates = new League\Plates\Engine(); + +// Add folders +$templates->addFolder('admin', '/path/to/admin/templates'); +$templates->addFolder('emails', '/path/to/email/templates'); +~~~ + +## Using folders + +To use the folders you created within your project simply append the folder name with two colons before the template name. For example, to render a welcome email: + +~~~ php +$email = $templates->render('emails::welcome'); +~~~ + +This works with template functions as well, such as layouts or nested templates. For example: + +~~~ php +layout('shared::template') ?> +~~~ + +## Folder fallbacks + +When enabled, if a folder template is missing, Plates will automatically fallback and look for a template with the **same** name in the default folder. This can be helpful when using folders to manage themes. To enable fallbacks, simply pass `true` as the third parameter in the `addFolders()` method. + +~~~ php +// Create new Plates engine +$templates = new \League\Plates\Engine('/path/to/default/theme'); + +// Add themes +$templates->addFolder('theme1', '/path/to/theme/1', true); +$templates->addFolder('theme2', '/path/to/theme/2', true); +~~~ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/engine/functions.md b/phpTest_20/vendor/league/plates/doc/content/engine/functions.md new file mode 100644 index 0000000..cb9941b --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/engine/functions.md @@ -0,0 +1,33 @@ ++++ +title = "Functions" +linkTitle = "Engine Functions" +[menu.main] +parent = "engine" +weight = 4 ++++ + +While [extensions]({{< relref "engine/extensions.md" >}}) are awesome for adding additional reusable functionality to Plates, sometimes it's easier to just create a one-off function for a specific use case. Plates makes this easy to do. + +## Registering functions + +~~~ php +// Create new Plates engine +$templates = new \League\Plates\Engine('/path/to/templates'); + +// Register a one-off function +$templates->registerFunction('uppercase', function ($string) { + return strtoupper($string); +}); +~~~ + +To use this function in a template, simply call it like any other function: + +~~~ php +

Hello e($this->uppercase($name))

+~~~ + +It can also be used in a [batch]({{< relref "templates/functions#batch-function-calls">}}) compatible function: + +~~~ php +

Hello e($name, 'uppercase')

+~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/engine/overview.md b/phpTest_20/vendor/league/plates/doc/content/engine/overview.md new file mode 100644 index 0000000..b7db2ff --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/engine/overview.md @@ -0,0 +1,56 @@ ++++ +title = "Overview" +linkTitle = "Engine Overview" +aliases = ["/engine"] +[menu.main] +parent = "engine" +weight = 1 ++++ + +Plates uses a central object called the `Engine`, which is used to store the environment configuration, functions and extensions. It helps decouple your templates from the file system and other dependencies. For example, if you want to change the folder where your templates are stored, you can do so by simply changing the path in one location. + +## Basic usage + +~~~ php +// Create new Plates engine +$templates = new League\Plates\Engine('/path/to/templates'); + +// Add any additional folders +$templates->addFolder('emails', '/path/to/emails'); + +// Load any additional extensions +$templates->loadExtension(new League\Plates\Extension\Asset('/path/to/public')); + +// Create a new template +$template = $templates->make('emails::welcome'); +~~~ + +## Dependency Injection + +Plates is designed to be easily passed around your application and easily injected in your controllers or other application objects. Simply pass an instance of the `Engine` to any consuming objects, and then use either the `make()` method to create a new template, or the `render()` method to render it immediately. For example: + +~~~ php +class Controller +{ + private $templates; + + public function __construct(League\Plates\Engine $templates) + { + $this->templates = $templates; + } + + // Create a template object + public function getIndex() + { + $template = $this->templates->make('home'); + + return $template->render(); + } + + // Render a template directly + public function getIndex() + { + return $this->templates->render('home'); + } +} +~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/extensions/_index.md b/phpTest_20/vendor/league/plates/doc/content/extensions/_index.md new file mode 100644 index 0000000..bfe1007 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/extensions/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Extensions" +[menu.main] +identifier = "extensions" +weight = 4 ++++ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/extensions/asset.md b/phpTest_20/vendor/league/plates/doc/content/extensions/asset.md new file mode 100644 index 0000000..9d7d05f --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/extensions/asset.md @@ -0,0 +1,57 @@ ++++ +title = "Asset" +[menu.main] +parent = "extensions" +weight = 1 ++++ + +The asset extension can be used to quickly create "cache busted" asset URLs in your templates. This is particularly helpful for aggressively cached files that can potentially change in the future, such as CSS files, JavaScript files and images. It works by appending the timestamp of the file's last update to its URL. For example, `/css/all.css` becomes `/css/all.1373577602.css`. As long as the file does not change, the timestamp remains the same and caching occurs. However, if the file is changed, a new URL is automatically generated with a new timestamp, and visitors receive the new file. + +## Installing the asset extension + +The asset extension comes packaged with Plates but is not enabled by default, as it requires extra parameters passed to it at instantiation. + +~~~ php +// Load asset extension +$engine->loadExtension(new League\Plates\Extension\Asset('/path/to/public/assets/', true)); +~~~ + +The first constructor parameter is the file system path of the assets directory. The second is an optional `boolean` parameter that if set to true uses the filename caching method (ie. `file.1373577602.css`) instead of the default query string method (ie. `file.css?v=1373577602`). + +## Filename caching + +To make filename caching work, some URL rewriting is required: + +### Apache example +~~~ php + + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L] + +~~~ + +### Nginx example + +~~~ php +location ~* (.+)\.(?:\d+)\.(js|css|png|jpg|jpeg|gif)$ { + try_files $uri $1.$2; +} +~~~ + +## Using the asset extension + +~~~ php + + + Asset Extension Example + + + + + + + + + +~~~ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/extensions/community.md b/phpTest_20/vendor/league/plates/doc/content/extensions/community.md new file mode 100644 index 0000000..6282d3a --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/extensions/community.md @@ -0,0 +1,13 @@ ++++ +title = "Community" +[menu.main] +parent = "extensions" +weight = 3 ++++ + +This is a list of all the known community extensions for the Plates library. Please feel free to submit a [Pull Request](https://github.com/thephpleague/plates) to add your extension to this list. + +- [Laravel Provider](https://github.com/franzliedke/laravel-plates) +- [Attributes Rendering](https://github.com/RobinDev/platesAttributes) - Transforms arrays into html tag attributes. +- [Includer](https://github.com/odahcam/plates-includer) - Include your assets in an expert way. +- [Tapestry](https://github.com/tapestry-cloud/tapestry) - A blog aware, Plates based static site generator. diff --git a/phpTest_20/vendor/league/plates/doc/content/extensions/uri.md b/phpTest_20/vendor/league/plates/doc/content/extensions/uri.md new file mode 100644 index 0000000..1f3be1a --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/extensions/uri.md @@ -0,0 +1,81 @@ ++++ +title = "URI" +[menu.main] +parent = "extensions" +weight = 2 ++++ + +The URI extension is designed to make URI checks within templates easier. The most common use is marking the current page in a menu as "selected". It only has one function, `uri()`, but can do a number of helpful tasks depending on the parameters passed to it. + +## Installing the URI extension + +The URI extension comes packaged with Plates but is not enabled by default, as it requires an extra parameter passed to it at instantiation. + +~~~ php +// Load URI extension using global variable +$engine->loadExtension(new League\Plates\Extension\URI($_SERVER['PATH_INFO'])); + +// Load URI extension using a HttpFoundation's request object +$engine->loadExtension(new League\Plates\Extension\URI($request->getPathInfo())); +~~~ + +## URI example + +~~~ php +
    +
  • uri('/', 'class="selected"')?>>Home
  • +
  • uri('/about', 'class="selected"')?>>About
  • +
  • uri('/products', 'class="selected"')?>>Products
  • +
  • uri('/contact', 'class="selected"')?>>Contact
  • +
+~~~ + +## Using the URI extension + +Get the whole URI. + +~~~ php +uri()?> +~~~ + +Get a specified segment of the URI. + +~~~ php +uri(1)?> +~~~ + +Check if a specific segment of the URI (first parameter) equals a given string (second parameter). Returns `true` on success or `false` on failure. + +~~~ php +uri(1, 'home')): ?> +~~~ + +Check if a specific segment of the URI (first parameter) equals a given string (second parameter). Returns string (third parameter) on success or `false` on failure. + +~~~ php +uri(1, 'home', 'success')?> +~~~ + +Check if a specific segment of the URI (first parameter) equals a given string (second parameter). Returns string (third parameter) on success or string (fourth parameter) on failure. + +~~~ php +uri(1, 'home', 'success', 'fail')?> +~~~ + +Check if a regular expression string matches the current URI. Returns `true` on success or `false` on failure. + +~~~ php +uri('/home')): ?> +~~~ + +Check if a regular expression string (first parameter) matches the current URI. Returns string (second parameter) on success or `false` on failure. + +~~~ php +uri('/home', 'success')?> +~~~ + +Check if a regular expression string (first parameter) matches the current URI. Returns string (second parameter) on success or string (third parameter) on failure. + +~~~ php +uri('/home', 'success', 'fail')?> +~~~ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/getting-started/_index.md b/phpTest_20/vendor/league/plates/doc/content/getting-started/_index.md new file mode 100644 index 0000000..19d0b83 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/getting-started/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Getting Started" +[menu.main] +identifier = "getting-started" +weight = 1 ++++ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/getting-started/installation.md b/phpTest_20/vendor/league/plates/doc/content/getting-started/installation.md new file mode 100644 index 0000000..0e7c9c6 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/getting-started/installation.md @@ -0,0 +1,33 @@ ++++ +title = "Installation" +[menu.main] +parent = "getting-started" +weight = 3 ++++ + +## Using Composer + +Plates is available on [Packagist](https://packagist.org/packages/league/plates) and can be installed using [Composer](https://getcomposer.org/). This can be done by running the following command or by updating your `composer.json` file. + +~~~ bash +composer require league/plates +~~~ + +{{< code-filename composer.json >}} +~~~ javascript +{ + "require": { + "league/plates": "3.*" + } +} +~~~ + +Be sure to also include your Composer autoload file in your project: + +~~~ php +require 'vendor/autoload.php'; +~~~ + +## Downloading .zip file + +This project is also available for download as a `.zip` file on GitHub. Visit the [releases page](https://github.com/thephpleague/plates/releases), select the version you want, and click the "Source code (zip)" download button. \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/getting-started/simple-example.md b/phpTest_20/vendor/league/plates/doc/content/getting-started/simple-example.md new file mode 100644 index 0000000..1f17799 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/getting-started/simple-example.md @@ -0,0 +1,50 @@ ++++ +title = "Simple Example" +[menu.main] +parent = "getting-started" +weight = 2 ++++ + +Here is a simple example of how to use Plates. We will assume the following directory stucture: + +~~~ +`-- path + `-- to + `-- templates + |-- template.php + |-- profile.php +~~~ + +## Within your controller + +~~~ php +// Create new Plates instance +$templates = new League\Plates\Engine('/path/to/templates'); + +// Render a template +echo $templates->render('profile', ['name' => 'Jonathan']); +~~~ + +## The page template + +{{< code-filename profile.php >}} +~~~ php +layout('template', ['title' => 'User Profile']) ?> + +

User Profile

+

Hello, e($name)?>

+~~~ + +## The layout template + +{{< code-filename template.php >}} +~~~ php + + + <?=$this->e($title)?> + + + section('content')?> + + +~~~ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/_index.md b/phpTest_20/vendor/league/plates/doc/content/templates/_index.md new file mode 100644 index 0000000..19f973f --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Templates" +[menu.main] +identifier = "templates" +weight = 3 ++++ \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/data.md b/phpTest_20/vendor/league/plates/doc/content/templates/data.md new file mode 100644 index 0000000..4330eed --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/data.md @@ -0,0 +1,60 @@ ++++ +title = "Data" +linkTitle = "Templates Data" +[menu.main] +parent = "templates" +weight = 2 ++++ + +It's very common to share application data (variables) with a template. Data can be whatever you want: strings, arrays, objects, etc. Plates allows you set both template specific data as well as shared template data. + +## Assign data + +Assigning data is done from within your application code, such as a controller. There are a number of ways to assign the data, depending on how you structure your objects. + +~~~ php +// Create new Plates instance +$templates = new League\Plates\Engine('/path/to/templates'); + +// Assign via the engine's render method +echo $templates->render('profile', ['name' => 'Jonathan']); + +// Assign via the engine's make method +$template = $templates->make('profile', ['name' => 'Jonathan']); + +// Assign directly to a template object +$template = $templates->make('profile'); +$template->data(['name' => 'Jonathan']); +~~~ + +## Accessing data + +Template data is available as locally scoped variables at the time of rendering. Continuing with the example above, here is how you would [escape]({{< relref "templates/escaping.md" >}}) and output the "name" value in a template: + +~~~ php +

Hello e($name)?>

+~~~ + +

Prior to Plates 3.0, variables were accessed using the $this pseudo-variable. This is no longer possible. Use the locally scoped variables instead.

+ +## Preassigned and shared data + +If you have data that you want assigned to a specific template each time that template is rendered throughout your application, the `addData()` function can help organize that code in one place. + +~~~ php +$templates->addData(['name' => 'Jonathan'], 'emails::welcome'); +~~~ + +You can pressaign data to more than one template by passing an array of templates: + +~~~ php +$templates->addData(['name' => 'Jonathan'], ['login', 'template']); +~~~ + +To assign data to ALL templates, simply omit the second parameter: + +~~~ php +$templates->addData(['name' => 'Jonathan']); +~~~ + +Keep in mind that shared data is assigned to a template when it's first created, meaning any conflicting data assigned that's afterwards to a specific template will overwrite the shared data. This is generally desired behavior. diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/escaping.md b/phpTest_20/vendor/league/plates/doc/content/templates/escaping.md new file mode 100644 index 0000000..8cb44b2 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/escaping.md @@ -0,0 +1,49 @@ ++++ +title = "Escaping" +linkTitle = "Templates Escaping" +[menu.main] +parent = "templates" +weight = 8 ++++ + +Escaping is a form of [data filtering](http://www.phptherightway.com/#data_filtering) which sanitizes unsafe, user supplied input prior to outputting it as HTML. Plates provides two shortcuts to the `htmlspecialchars()` function. + +## Escaping example + +~~~ php +

Hello, escape($name)?>

+ + +

Hello, e($name)?>

+~~~ + +## Batch function calls + +The escape functions also support [batch]({{< relref "templates/functions.md#batch-function-calls" >}}) function calls, which allow you to apply multiple functions, including native PHP functions, to a variable at one time. + +~~~ php +

Welcome e($name, 'strip_tags|strtoupper')?>

+~~~ + +## Escaping HTML attributes + +

It's VERY important to always double quote HTML attributes that contain escaped variables, otherwise your template will still be open to injection attacks.

+ +Some [libraries](http://framework.zend.com/manual/2.1/en/modules/zend.escaper.escaping-html-attributes.html) go as far as having a special function for escaping HTML attributes. However, this is somewhat redundant considering that if a developer forgets to properly quote an HTML attribute, they will likely also forget to use this special function. Here is how you properly escape HTML attributes: + +~~~ php + +<?=$this->e($name)?> + + +<?=$this->e($name)?> + + +<?=$this-e($name)?>> +~~~ + +## Automatic escaping + +Probably the biggest drawbacks to native PHP templates is the inability to auto-escape variables properly. Template languages like Twig and Smarty can identify "echoed" variables during a parsing stage and automatically escape them. This cannot be done in native PHP as the language does not offer overloading functionality for it's output functions (ie. `print` and `echo`). + +Don't worry, escaping can still be done safely, it just means you are responsible for manually escaping each variable on output. Consider creating a snippet for one of the above, built-in escaping functions to make this process easier. diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/functions.md b/phpTest_20/vendor/league/plates/doc/content/templates/functions.md new file mode 100644 index 0000000..ba41bdb --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/functions.md @@ -0,0 +1,46 @@ ++++ +title = "Functions" +linkTitle = "Templates Functions" +[menu.main] +parent = "templates" +weight = 3 ++++ + +Template functions in Plates are accessed using the `$this` pseudo-variable. + +~~~ php +

Hello, escape($name)?>

+~~~ + + +## Custom fuctions + +In addition to the functions included with Plates, it's also possible to add [one-off functions]({{< relref "engine/functions.md" >}}), or even groups of functions, known as [extensions]({{< relref "engine/extensions.md" >}}). + +## Batch function calls + +Sometimes you need to apply more than function to a variable in your templates. This can become somewhat illegible. The `batch()` function helps by allowing you to apply multiple functions, including native PHP functions, to a variable at one time. + +~~~ php + +

Welcome escape(strtoupper(strip_tags($name)))?>

+ + +

Welcome batch($name, 'strip_tags|strtoupper|escape')?>

+~~~ + +The [escape]({{< relref "templates/escaping.md" >}}) functions also support batch function calls. + +~~~ php +

Welcome e($name, 'strip_tags|strtoupper')?>

+~~~ + +The batch functions works well for "piped" functions that accept one parameter, modify it, and then return it. It's important to note that they execute functions left to right and will favour extension functions over native PHP functions if there are conflicts. + +~~~ php + +batch('Jonathan', 'escape|strtolower|strtoupper')?> + + +batch('Jonathan', 'escape|strtoupper|strtolower')?> +~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/inheritance.md b/phpTest_20/vendor/league/plates/doc/content/templates/inheritance.md new file mode 100644 index 0000000..d0676e8 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/inheritance.md @@ -0,0 +1,63 @@ ++++ +title = "Inheritance" +linkTitle = "Templates Inheritance" +[menu.main] +parent = "templates" +weight = 7 ++++ + +By combining [layouts]({{< relref "templates/layouts.md" >}}) and [sections]({{< relref "templates/sections.md" >}}), Plates allows you to "build up" your pages using predefined sections. This is best understand using an example: + +## Inheritance example + +The following example illustrates a pretty standard website. Start by creating a site template, which includes your header and footer as well as any predefined content [sections]({{< relref "templates/sections.md" >}}). Notice how Plates makes it possible to even set default section content, in the event that a page doesn't define it. + +{{< code-filename template.php >}} + +~~~ php + + + <?=$this->e($title)?> + + + + + +
+ section('page')?> +
+ + + + + +~~~ + +With the template defined, any page can now "implement" this [layout]({{< relref "templates/layouts.md" >}}). Notice how each section of content is defined between the `start()` and `end()` functions. + +{{< code-filename profile.php >}} + +~~~ php +layout('template', ['title' => 'User Profile']) ?> + +start('page') ?> +

Welcome!

+

Hello e($name)?>

+stop() ?> + +start('sidebar') ?> + +stop() ?> +~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/layouts.md b/phpTest_20/vendor/league/plates/doc/content/templates/layouts.md new file mode 100644 index 0000000..88a2ad7 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/layouts.md @@ -0,0 +1,104 @@ ++++ +title = "Layouts" +linkTitle = "Templates Layouts" +[menu.main] +parent = "templates" +weight = 5 ++++ + +The `layout()` function allows you to define a layout template that a template will implement. It's like having separate header and footer templates in one file. + +## Define a layout + +The `layout()` function can be called anywhere in a template, since the layout template is actually rendered second. Typically it's placed at the top of the file. + +~~~ php +layout('template') ?> + +

User Profile

+

Hello, e($name)?>

+~~~ + +This function also works with [folders]({{< relref "engine/folders.md" >}}): + +~~~ php +layout('shared::template') ?> +~~~ + +## Assign data + +To assign data (variables) to a layout template, pass them as an array to the `layout()` function. This data will then be available as locally scoped variables within the layout template. + +~~~ php +layout('template', ['title' => 'User Profile']) ?> +~~~ + +## Accessing the content + +To access the rendered template content within the layout, use the `section()` function, passing `'content'` as the section name. This will return all outputted content from the template that hasn't been defined in a [section]({{< relref "templates/sections.md" >}}). + +~~~ php + + + <?=$this->e($title)?> + + + +section('content')?> + + + +~~~ + +## Stacked layouts + +Plates allows stacking of layouts, allowing even further simplification and organization of templates. Instead of just using one main layout, it's possible to break templates into more specific layouts, which themselves implement a main layout. Consider this example: + +### The main site layout + +{{< code-filename template.php >}} + +~~~ php + + + <?=$this->e($title)?> + + + +section('content')?> + + + +~~~ + +### The blog layout + +{{< code-filename blog.php >}} + +~~~ php +layout('template', ['title' => $title]) ?> + +

The Blog

+ +
+
+ section('content')?> +
+ +
+~~~ + +### A blog article + +{{< code-filename blog-article.php >}} + +~~~ php +layout('blog', ['title' => $article->title]) ?> + +

e($article->title)?>

+
+ e($article->content)?> +
+~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/nesting.md b/phpTest_20/vendor/league/plates/doc/content/templates/nesting.md new file mode 100644 index 0000000..6243a27 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/nesting.md @@ -0,0 +1,43 @@ ++++ +title = "Nesting" +linkTitle = "Templates Nesting" +[menu.main] +parent = "templates" +weight = 4 ++++ + +Including another template into the current template is done using the `insert()` function: + +~~~ php +insert('partials/header') ?> + +

Your content.

+ +insert('partials/footer') ?> +~~~ + +The `insert()` function also works with [folders]({{< relref "engine/folders.md" >}}): + +~~~ php +insert('partials::header') ?> +~~~ + +## Alternative syntax + +The `insert()` function automatically outputs the rendered template. If you prefer to manually output the response, use the `fetch()` function instead: + +~~~ php +fetch('partials/header')?> +~~~ + +## Assign data + +To assign data (variables) to a nested template, pass them as an array to the `insert()` or `fetch()` functions. This data will then be available as locally scoped variables within the nested template. + +~~~ php +insert('partials/header', ['name' => 'Jonathan']) ?> + +

Your content.

+ +insert('partials/footer') ?> +~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/overview.md b/phpTest_20/vendor/league/plates/doc/content/templates/overview.md new file mode 100644 index 0000000..e6c7c02 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/overview.md @@ -0,0 +1,72 @@ ++++ +title = "Overview" +linkTitle = "Templates Overview" +[menu.main] +parent = "templates" +weight = 1 ++++ + +Plates templates are very simple PHP objects. Generally you'll want to create these using the two factory methods, `make()` and `render()`, in the [engine]({{< relref "engine/overview.md" >}}). For example: + +~~~ php +// Create new Plates instance +$templates = new League\Plates\Engine('/path/to/templates'); + +// Render a template in a subdirectory +echo $templates->render('partials/header'); + +// Render a template +echo $templates->render('profile', ['name' => 'Jonathan']); +~~~ + +For more information about how Plates is designed to be easily added to your application, see the section on [dependency injection]({{< relref "engine/overview.md#dependency-injection" >}}). + +## Manually creating templates + +It's also possible to create templates manually. The only dependency they require is an instance of the [engine]({{< relref "engine/overview.md" >}}) object. For example: + +~~~ php +// Create new Plates instance +$templates = new League\Plates\Engine('/path/to/templates'); + +// Create a new template +$template = new League\Plates\Template\Template($templates, 'profile'); + +// Render the template +echo $template->render(['name' => 'Jonathan']); + +// You can also render the template using the toString() magic method +echo $template; +~~~ + +## Check if a template exists + +When dynamically loading templates, you may need to check if they exist. This can be done using the engine's `exists()` method: + +~~~ php +if ($templates->exists('articles::beginners_guide')) { + // It exists! +} +~~~ + +You can also run this check on an existing template: + +~~~ php +if ($template->exists()) { + // It exists! +} +~~~ + +## Get a template path + +To get a template path from its name, use the engine's `path()` method: + +~~~ php +$path = $templates->path('articles::beginners_guide'); +~~~ + +You can also get the path from an existing template: + +~~~ php +$path = $template->path(); +~~~ diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/sections.md b/phpTest_20/vendor/league/plates/doc/content/templates/sections.md new file mode 100644 index 0000000..06d4151 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/sections.md @@ -0,0 +1,83 @@ ++++ +title = "Sections" +linkTitle = "Templates Sections" +[menu.main] +parent = "templates" +weight = 6 ++++ + +The `start()` and `stop` functions allow you to build sections (or blocks) of content within your template, and instead of them being rendered directly, they are saved for use elsewhere. For example, in your [layout]({{< relref "templates/layouts.md" >}}) template. + +## Creating sections + +You define the name of the section with the `start()` function. To end a section call the `stop()` function. + +~~~ php +start('welcome') ?> + +

Welcome!

+

Hello e($name)?>

+ +stop() ?> +~~~ + +## Stacking section content + +By default, when you render a section its content will overwrite any existing content for that section. However, it's possible to append/prepend (or stack) the content instead using the `push()` or `unshift()` method respectively. This can be useful for specifying any JavaScript libraries or CSS files required by your child views. + +~~~ php +push('scripts') ?> + +end() ?> + +unshift('styles') ?> + +end() ?> +~~~ + +

The end() function is simply an alias of stop(). These functions can be used interchangeably.

+ +## Accessing section content + +Access rendered section content using the name you assigned in the `start()` method. This variable can be accessed from the current template and layout templates using the `section()` function. + +~~~ php +section('welcome')?> +~~~ + +

Prior to Plates 3.0, accessing template content was done using either the content() or child() functions. For consistency with sections, this is no longer possible.

+ +## Default section content + +In situations where a page doesn't implement a particular section, it's helpful to assign default content. There are a couple ways to do this: + +### Defining it inline + +If the default content can be defined in a single line of code, it's best to simply pass it as the second parameter of the `section()` function. + +~~~ php + +~~~ + +### Use an if statement + +If the default content requires more than a single line of code, it's best to use a simple if statement to check if a section exists, and otherwise display the default. + +~~~ php + +~~~ + diff --git a/phpTest_20/vendor/league/plates/doc/content/templates/syntax.md b/phpTest_20/vendor/league/plates/doc/content/templates/syntax.md new file mode 100644 index 0000000..6edf881 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/content/templates/syntax.md @@ -0,0 +1,49 @@ ++++ +title = "Syntax" +linkTitle = "Templates Syntax" +[menu.main] +parent = "templates" +weight = 9 ++++ + +While the actual syntax you use in your templates is entirely your choice (it's just PHP after all), we suggest the following syntax guidelines to help keep templates clean and legible. + +## Guidelines + +- Always use HTML with inline PHP. Never use blocks of PHP. +- Always escape potentially dangerous variables prior to outputting using the built-in escape functions. More on escaping [here]({{< relref "templates/escaping.md" >}}). +- Always use the short echo syntax (`layout('template', ['title' => 'User Profile']) ?> + +

Welcome!

+

Hello e($name)?>

+ +

Friends

+ + + +

Invitations

+

You have some friend invites!

+ +~~~ diff --git a/phpTest_20/vendor/league/plates/doc/layouts/_default/baseof.html b/phpTest_20/vendor/league/plates/doc/layouts/_default/baseof.html new file mode 100644 index 0000000..23003f3 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/layouts/_default/baseof.html @@ -0,0 +1,114 @@ + + + + + + + {{ if .IsHome }} + {{ .Site.Title }} - {{ .Site.Params.tagline }} + {{ else }} + {{ partial "title" . }} | {{ .Site.Title -}} + {{ end }} + {{ if .Site.Params.description }} + + {{ end }} + {{ if .Site.Params.Images.favicon }} + + {{ else }} + + {{ end }} + {{ if .Site.Params.Images.appleTouch }} + + {{ else }} + + {{ end }} + + + + + + + + Fork me on GitHub + + +
+ + The League of Extraordinary Packages + +

Our Packages:

+
    + +
+
+ +
+ + + Presented by The League of Extraordinary Packages + +
+ + + + +
+ + {{ $currentPage := . }} + {{ range .Site.Menus.main }} +

{{ .Name }}

+ + {{ end }} +
+
+ {{ template "main" . }} +
+
+ + + + + + + + + +{{ if .Site.GoogleAnalytics }} + +{{ end }} + + + \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/layouts/_default/list.html b/phpTest_20/vendor/league/plates/doc/layouts/_default/list.html new file mode 100644 index 0000000..bcd5d0b --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/layouts/_default/list.html @@ -0,0 +1,4 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} +{{ end }} \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/layouts/_default/single.html b/phpTest_20/vendor/league/plates/doc/layouts/_default/single.html new file mode 100644 index 0000000..bcd5d0b --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/layouts/_default/single.html @@ -0,0 +1,4 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} +{{ end }} \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/layouts/partials/title.html b/phpTest_20/vendor/league/plates/doc/layouts/partials/title.html new file mode 100644 index 0000000..7094d8d --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/layouts/partials/title.html @@ -0,0 +1,11 @@ +{{ $title := "" }} + +{{ if .Title }} + {{ $title = .Title }} +{{ else if and .IsSection .File }} + {{ $title = path.Base .File.Dir | humanize | title }} +{{ else if and .IsPage .File }} + {{ $title = .File.BaseFileName | humanize | title }} +{{ end }} + +{{ return $title }} \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/layouts/shortcodes/code-filename.html b/phpTest_20/vendor/league/plates/doc/layouts/shortcodes/code-filename.html new file mode 100644 index 0000000..0c22bc0 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/layouts/shortcodes/code-filename.html @@ -0,0 +1 @@ +
{{ index .Params 0 }}
\ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/layouts/shortcodes/html.html b/phpTest_20/vendor/league/plates/doc/layouts/shortcodes/html.html new file mode 100644 index 0000000..1b4165c --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/layouts/shortcodes/html.html @@ -0,0 +1,3 @@ +{{/* ref: https://anaulin.org/blog/hugo-raw-html-shortcode/ */}} + +{{.Inner}} \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/static/CNAME b/phpTest_20/vendor/league/plates/doc/static/CNAME new file mode 100644 index 0000000..1e00c34 --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/static/CNAME @@ -0,0 +1 @@ +platesphp.com \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/doc/static/css/custom.css b/phpTest_20/vendor/league/plates/doc/static/css/custom.css new file mode 100644 index 0000000..a0d462f --- /dev/null +++ b/phpTest_20/vendor/league/plates/doc/static/css/custom.css @@ -0,0 +1,23 @@ +.github { + position: absolute; + top: 0; + right: 0; + border: 0; + z-index: 1000; +} + +@media screen and (max-width: 1065px) { + .github { + display: none; + } +} + +*:focus { + outline: none; +} +.select2-container { + font-family: "Museo 300"; +} +.version-select { + margin: 8px 25px 0px 45px; +} diff --git a/phpTest_20/vendor/league/plates/doc/static/favicon/apple-touch-icon-precomposed.png b/phpTest_20/vendor/league/plates/doc/static/favicon/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..460a2ba Binary files /dev/null and b/phpTest_20/vendor/league/plates/doc/static/favicon/apple-touch-icon-precomposed.png differ diff --git a/phpTest_20/vendor/league/plates/doc/static/favicon/favicon.ico b/phpTest_20/vendor/league/plates/doc/static/favicon/favicon.ico new file mode 100644 index 0000000..44d7f3f Binary files /dev/null and b/phpTest_20/vendor/league/plates/doc/static/favicon/favicon.ico differ diff --git a/phpTest_20/vendor/league/plates/doc/static/images/logo.png b/phpTest_20/vendor/league/plates/doc/static/images/logo.png new file mode 100644 index 0000000..19cf68a Binary files /dev/null and b/phpTest_20/vendor/league/plates/doc/static/images/logo.png differ diff --git a/phpTest_20/vendor/league/plates/example/example.php b/phpTest_20/vendor/league/plates/example/example.php new file mode 100644 index 0000000..aaffe05 --- /dev/null +++ b/phpTest_20/vendor/league/plates/example/example.php @@ -0,0 +1,12 @@ +addData(['company' => 'The Company Name'], 'layout'); + +// Render a template +echo $templates->render('profile', ['name' => 'Jonathan']); diff --git a/phpTest_20/vendor/league/plates/example/templates/layout.php b/phpTest_20/vendor/league/plates/example/templates/layout.php new file mode 100644 index 0000000..5b5847c --- /dev/null +++ b/phpTest_20/vendor/league/plates/example/templates/layout.php @@ -0,0 +1,12 @@ + + + <?=$this->e($title)?> | <?=$this->e($company)?> + + + +section('content')?> + +section('scripts')?> + + + \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/example/templates/profile.php b/phpTest_20/vendor/league/plates/example/templates/profile.php new file mode 100644 index 0000000..0797e46 --- /dev/null +++ b/phpTest_20/vendor/league/plates/example/templates/profile.php @@ -0,0 +1,12 @@ +layout('layout', ['title' => 'User Profile']) ?> + +

User Profile

+

Hello, e($name)?>!

+ +insert('sidebar') ?> + +push('scripts') ?> + +end() ?> \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/example/templates/sidebar.php b/phpTest_20/vendor/league/plates/example/templates/sidebar.php new file mode 100644 index 0000000..13d9ea8 --- /dev/null +++ b/phpTest_20/vendor/league/plates/example/templates/sidebar.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/phpTest_20/vendor/league/plates/phpunit.xml.dist b/phpTest_20/vendor/league/plates/phpunit.xml.dist new file mode 100644 index 0000000..2184ac9 --- /dev/null +++ b/phpTest_20/vendor/league/plates/phpunit.xml.dist @@ -0,0 +1,36 @@ + + + + + + ./tests + + + + + + src + + + + + + + + + + diff --git a/phpTest_20/vendor/league/plates/src/Engine.php b/phpTest_20/vendor/league/plates/src/Engine.php new file mode 100644 index 0000000..6c89642 --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Engine.php @@ -0,0 +1,279 @@ +directory = new Directory($directory); + $this->fileExtension = new FileExtension($fileExtension); + $this->folders = new Folders(); + $this->functions = new Functions(); + $this->data = new Data(); + } + + /** + * Set path to templates directory. + * @param string|null $directory Pass null to disable the default directory. + * @return Engine + */ + public function setDirectory($directory) + { + $this->directory->set($directory); + + return $this; + } + + /** + * Get path to templates directory. + * @return string + */ + public function getDirectory() + { + return $this->directory->get(); + } + + /** + * Set the template file extension. + * @param string|null $fileExtension Pass null to manually set it. + * @return Engine + */ + public function setFileExtension($fileExtension) + { + $this->fileExtension->set($fileExtension); + + return $this; + } + + /** + * Get the template file extension. + * @return string + */ + public function getFileExtension() + { + return $this->fileExtension->get(); + } + + /** + * Add a new template folder for grouping templates under different namespaces. + * @param string $name + * @param string $directory + * @param boolean $fallback + * @return Engine + */ + public function addFolder($name, $directory, $fallback = false) + { + $this->folders->add($name, $directory, $fallback); + + return $this; + } + + /** + * Remove a template folder. + * @param string $name + * @return Engine + */ + public function removeFolder($name) + { + $this->folders->remove($name); + + return $this; + } + + /** + * Get collection of all template folders. + * @return Folders + */ + public function getFolders() + { + return $this->folders; + } + + /** + * Add preassigned template data. + * @param array $data; + * @param null|string|array $templates; + * @return Engine + */ + public function addData(array $data, $templates = null) + { + $this->data->add($data, $templates); + + return $this; + } + + /** + * Get all preassigned template data. + * @param null|string $template; + * @return array + */ + public function getData($template = null) + { + return $this->data->get($template); + } + + /** + * Register a new template function. + * @param string $name; + * @param callback $callback; + * @return Engine + */ + public function registerFunction($name, $callback) + { + $this->functions->add($name, $callback); + + return $this; + } + + /** + * Remove a template function. + * @param string $name; + * @return Engine + */ + public function dropFunction($name) + { + $this->functions->remove($name); + + return $this; + } + + /** + * Get a template function. + * @param string $name + * @return Func + */ + public function getFunction($name) + { + return $this->functions->get($name); + } + + /** + * Check if a template function exists. + * @param string $name + * @return boolean + */ + public function doesFunctionExist($name) + { + return $this->functions->exists($name); + } + + /** + * Load an extension. + * @param ExtensionInterface $extension + * @return Engine + */ + public function loadExtension(ExtensionInterface $extension) + { + $extension->register($this); + + return $this; + } + + /** + * Load multiple extensions. + * @param array $extensions + * @return Engine + */ + public function loadExtensions(array $extensions = array()) + { + foreach ($extensions as $extension) { + $this->loadExtension($extension); + } + + return $this; + } + + /** + * Get a template path. + * @param string $name + * @return string + */ + public function path($name) + { + $name = new Name($this, $name); + + return $name->getPath(); + } + + /** + * Check if a template exists. + * @param string $name + * @return boolean + */ + public function exists($name) + { + $name = new Name($this, $name); + + return $name->doesPathExist(); + } + + /** + * Create a new template. + * @param string $name + * @return Template + */ + public function make($name) + { + return new Template($this, $name); + } + + /** + * Create a new template and render it. + * @param string $name + * @param array $data + * @return string + */ + public function render($name, array $data = array()) + { + return $this->make($name)->render($data); + } +} diff --git a/phpTest_20/vendor/league/plates/src/Extension/Asset.php b/phpTest_20/vendor/league/plates/src/Extension/Asset.php new file mode 100644 index 0000000..1db5393 --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Extension/Asset.php @@ -0,0 +1,85 @@ +path = rtrim($path, '/'); + $this->filenameMethod = $filenameMethod; + } + + /** + * Register extension function. + * @param Engine $engine + * @return null + */ + public function register(Engine $engine) + { + $engine->registerFunction('asset', array($this, 'cachedAssetUrl')); + } + + /** + * Create "cache busted" asset URL. + * @param string $url + * @return string + */ + public function cachedAssetUrl($url) + { + $filePath = $this->path . '/' . ltrim($url, '/'); + + if (!file_exists($filePath)) { + throw new LogicException( + 'Unable to locate the asset "' . $url . '" in the "' . $this->path . '" directory.' + ); + } + + $lastUpdated = filemtime($filePath); + $pathInfo = pathinfo($url); + + if ($pathInfo['dirname'] === '.') { + $directory = ''; + } elseif ($pathInfo['dirname'] === DIRECTORY_SEPARATOR) { + $directory = '/'; + } else { + $directory = $pathInfo['dirname'] . '/'; + } + + if ($this->filenameMethod) { + return $directory . $pathInfo['filename'] . '.' . $lastUpdated . '.' . $pathInfo['extension']; + } + + return $directory . $pathInfo['filename'] . '.' . $pathInfo['extension'] . '?v=' . $lastUpdated; + } +} diff --git a/phpTest_20/vendor/league/plates/src/Extension/ExtensionInterface.php b/phpTest_20/vendor/league/plates/src/Extension/ExtensionInterface.php new file mode 100644 index 0000000..0164d1e --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Extension/ExtensionInterface.php @@ -0,0 +1,13 @@ +uri = $uri; + $this->parts = explode('/', $this->uri); + } + + /** + * Register extension functions. + * @param Engine $engine + * @return null + */ + public function register(Engine $engine) + { + $engine->registerFunction('uri', array($this, 'runUri')); + } + + /** + * Perform URI check. + * @param null|integer|string $var1 + * @param mixed $var2 + * @param mixed $var3 + * @param mixed $var4 + * @return mixed + */ + public function runUri($var1 = null, $var2 = null, $var3 = null, $var4 = null) + { + if (is_null($var1)) { + return $this->uri; + } + + if (is_numeric($var1) and is_null($var2)) { + return array_key_exists($var1, $this->parts) ? $this->parts[$var1] : null; + } + + if (is_numeric($var1) and is_string($var2)) { + return $this->checkUriSegmentMatch($var1, $var2, $var3, $var4); + } + + if (is_string($var1)) { + return $this->checkUriRegexMatch($var1, $var2, $var3); + } + + throw new LogicException('Invalid use of the uri function.'); + } + + /** + * Perform a URI segment match. + * @param integer $key + * @param string $string + * @param mixed $returnOnTrue + * @param mixed $returnOnFalse + * @return mixed + */ + protected function checkUriSegmentMatch($key, $string, $returnOnTrue = null, $returnOnFalse = null) + { + if (array_key_exists($key, $this->parts) && $this->parts[$key] === $string) { + return is_null($returnOnTrue) ? true : $returnOnTrue; + } + + return is_null($returnOnFalse) ? false : $returnOnFalse; + } + + /** + * Perform a regular express match. + * @param string $regex + * @param mixed $returnOnTrue + * @param mixed $returnOnFalse + * @return mixed + */ + protected function checkUriRegexMatch($regex, $returnOnTrue = null, $returnOnFalse = null) + { + if (preg_match('#^' . $regex . '$#', $this->uri) === 1) { + return is_null($returnOnTrue) ? true : $returnOnTrue; + } + + return is_null($returnOnFalse) ? false : $returnOnFalse; + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Data.php b/phpTest_20/vendor/league/plates/src/Template/Data.php new file mode 100644 index 0000000..aa4d1e1 --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Data.php @@ -0,0 +1,93 @@ +shareWithAll($data); + } + + if (is_array($templates)) { + return $this->shareWithSome($data, $templates); + } + + if (is_string($templates)) { + return $this->shareWithSome($data, array($templates)); + } + + throw new LogicException( + 'The templates variable must be null, an array or a string, ' . gettype($templates) . ' given.' + ); + } + + /** + * Add data shared with all templates. + * @param array $data; + * @return Data + */ + public function shareWithAll($data) + { + $this->sharedVariables = array_merge($this->sharedVariables, $data); + + return $this; + } + + /** + * Add data shared with some templates. + * @param array $data; + * @param array $templates; + * @return Data + */ + public function shareWithSome($data, array $templates) + { + foreach ($templates as $template) { + if (isset($this->templateVariables[$template])) { + $this->templateVariables[$template] = array_merge($this->templateVariables[$template], $data); + } else { + $this->templateVariables[$template] = $data; + } + } + + return $this; + } + + /** + * Get template data. + * @param null|string $template; + * @return array + */ + public function get($template = null) + { + if (isset($template, $this->templateVariables[$template])) { + return array_merge($this->sharedVariables, $this->templateVariables[$template]); + } + + return $this->sharedVariables; + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Directory.php b/phpTest_20/vendor/league/plates/src/Template/Directory.php new file mode 100644 index 0000000..f5de537 --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Directory.php @@ -0,0 +1,53 @@ +set($path); + } + + /** + * Set path to templates directory. + * @param string|null $path Pass null to disable the default directory. + * @return Directory + */ + public function set($path) + { + if (!is_null($path) and !is_dir($path)) { + throw new LogicException( + 'The specified path "' . $path . '" does not exist.' + ); + } + + $this->path = $path; + + return $this; + } + + /** + * Get path to templates directory. + * @return string + */ + public function get() + { + return $this->path; + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/FileExtension.php b/phpTest_20/vendor/league/plates/src/Template/FileExtension.php new file mode 100644 index 0000000..57646bd --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/FileExtension.php @@ -0,0 +1,45 @@ +set($fileExtension); + } + + /** + * Set the template file extension. + * @param null|string $fileExtension + * @return FileExtension + */ + public function set($fileExtension) + { + $this->fileExtension = $fileExtension; + + return $this; + } + + /** + * Get the template file extension. + * @return string + */ + public function get() + { + return $this->fileExtension; + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Folder.php b/phpTest_20/vendor/league/plates/src/Template/Folder.php new file mode 100644 index 0000000..01fcbdd --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Folder.php @@ -0,0 +1,109 @@ +setName($name); + $this->setPath($path); + $this->setFallback($fallback); + } + + /** + * Set the folder name. + * @param string $name + * @return Folder + */ + public function setName($name) + { + $this->name = $name; + + return $this; + } + + /** + * Get the folder name. + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Set the folder path. + * @param string $path + * @return Folder + */ + public function setPath($path) + { + if (!is_dir($path)) { + throw new LogicException('The specified directory path "' . $path . '" does not exist.'); + } + + $this->path = $path; + + return $this; + } + + /** + * Get the folder path. + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Set the folder fallback status. + * @param boolean $fallback + * @return Folder + */ + public function setFallback($fallback) + { + $this->fallback = $fallback; + + return $this; + } + + /** + * Get the folder fallback status. + * @return boolean + */ + public function getFallback() + { + return $this->fallback; + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Folders.php b/phpTest_20/vendor/league/plates/src/Template/Folders.php new file mode 100644 index 0000000..9bf266a --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Folders.php @@ -0,0 +1,75 @@ +exists($name)) { + throw new LogicException('The template folder "' . $name . '" is already being used.'); + } + + $this->folders[$name] = new Folder($name, $path, $fallback); + + return $this; + } + + /** + * Remove a template folder. + * @param string $name + * @return Folders + */ + public function remove($name) + { + if (!$this->exists($name)) { + throw new LogicException('The template folder "' . $name . '" was not found.'); + } + + unset($this->folders[$name]); + + return $this; + } + + /** + * Get a template folder. + * @param string $name + * @return Folder + */ + public function get($name) + { + if (!$this->exists($name)) { + throw new LogicException('The template folder "' . $name . '" was not found.'); + } + + return $this->folders[$name]; + } + + /** + * Check if a template folder exists. + * @param string $name + * @return boolean + */ + public function exists($name) + { + return isset($this->folders[$name]); + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Func.php b/phpTest_20/vendor/league/plates/src/Template/Func.php new file mode 100644 index 0000000..79141f4 --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Func.php @@ -0,0 +1,107 @@ +setName($name); + $this->setCallback($callback); + } + + /** + * Set the function name. + * @param string $name + * @return Func + */ + public function setName($name) + { + if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name) !== 1) { + throw new LogicException( + 'Not a valid function name.' + ); + } + + $this->name = $name; + + return $this; + } + + /** + * Get the function name. + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Set the function callback + * @param callable $callback + * @return Func + */ + public function setCallback($callback) + { + if (!is_callable($callback, true)) { + throw new LogicException( + 'Not a valid function callback.' + ); + } + + $this->callback = $callback; + + return $this; + } + + /** + * Get the function callback. + * @return callable + */ + public function getCallback() + { + return $this->callback; + } + + /** + * Call the function. + * @param Template $template + * @param array $arguments + * @return mixed + */ + public function call(Template $template = null, $arguments = array()) + { + if (is_array($this->callback) and + isset($this->callback[0]) and + $this->callback[0] instanceof ExtensionInterface + ) { + $this->callback[0]->template = $template; + } + + return call_user_func_array($this->callback, $arguments); + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Functions.php b/phpTest_20/vendor/league/plates/src/Template/Functions.php new file mode 100644 index 0000000..e0e4c2c --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Functions.php @@ -0,0 +1,78 @@ +exists($name)) { + throw new LogicException( + 'The template function name "' . $name . '" is already registered.' + ); + } + + $this->functions[$name] = new Func($name, $callback); + + return $this; + } + + /** + * Remove a template function. + * @param string $name; + * @return Functions + */ + public function remove($name) + { + if (!$this->exists($name)) { + throw new LogicException( + 'The template function "' . $name . '" was not found.' + ); + } + + unset($this->functions[$name]); + + return $this; + } + + /** + * Get a template function. + * @param string $name + * @return Func + */ + public function get($name) + { + if (!$this->exists($name)) { + throw new LogicException('The template function "' . $name . '" was not found.'); + } + + return $this->functions[$name]; + } + + /** + * Check if a template function exists. + * @param string $name + * @return boolean + */ + public function exists($name) + { + return isset($this->functions[$name]); + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Name.php b/phpTest_20/vendor/league/plates/src/Template/Name.php new file mode 100644 index 0000000..a866923 --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Name.php @@ -0,0 +1,206 @@ +setEngine($engine); + $this->setName($name); + } + + /** + * Set the engine. + * @param Engine $engine + * @return Name + */ + public function setEngine(Engine $engine) + { + $this->engine = $engine; + + return $this; + } + + /** + * Get the engine. + * @return Engine + */ + public function getEngine() + { + return $this->engine; + } + + /** + * Set the original name and parse it. + * @param string $name + * @return Name + */ + public function setName($name) + { + $this->name = $name; + + $parts = explode('::', $this->name); + + if (count($parts) === 1) { + $this->setFile($parts[0]); + } elseif (count($parts) === 2) { + $this->setFolder($parts[0]); + $this->setFile($parts[1]); + } else { + throw new LogicException( + 'The template name "' . $this->name . '" is not valid. ' . + 'Do not use the folder namespace separator "::" more than once.' + ); + } + + return $this; + } + + /** + * Get the original name. + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Set the parsed template folder. + * @param string $folder + * @return Name + */ + public function setFolder($folder) + { + $this->folder = $this->engine->getFolders()->get($folder); + + return $this; + } + + /** + * Get the parsed template folder. + * @return string + */ + public function getFolder() + { + return $this->folder; + } + + /** + * Set the parsed template file. + * @param string $file + * @return Name + */ + public function setFile($file) + { + if ($file === '') { + throw new LogicException( + 'The template name "' . $this->name . '" is not valid. ' . + 'The template name cannot be empty.' + ); + } + + $this->file = $file; + + if (!is_null($this->engine->getFileExtension())) { + $this->file .= '.' . $this->engine->getFileExtension(); + } + + return $this; + } + + /** + * Get the parsed template file. + * @return string + */ + public function getFile() + { + return $this->file; + } + + /** + * Resolve template path. + * @return string + */ + public function getPath() + { + if (is_null($this->folder)) { + return "{$this->getDefaultDirectory()}/{$this->file}"; + } + + $path = "{$this->folder->getPath()}/{$this->file}"; + + if ( + !is_file($path) + && $this->folder->getFallback() + && is_file("{$this->getDefaultDirectory()}/{$this->file}") + ) { + $path = "{$this->getDefaultDirectory()}/{$this->file}"; + } + + return $path; + } + + /** + * Check if template path exists. + * @return boolean + */ + public function doesPathExist() + { + return is_file($this->getPath()); + } + + /** + * Get the default templates directory. + * @return string + */ + protected function getDefaultDirectory() + { + $directory = $this->engine->getDirectory(); + + if (is_null($directory)) { + throw new LogicException( + 'The template name "' . $this->name . '" is not valid. '. + 'The default directory has not been defined.' + ); + } + + return $directory; + } +} diff --git a/phpTest_20/vendor/league/plates/src/Template/Template.php b/phpTest_20/vendor/league/plates/src/Template/Template.php new file mode 100644 index 0000000..64ee438 --- /dev/null +++ b/phpTest_20/vendor/league/plates/src/Template/Template.php @@ -0,0 +1,384 @@ +engine = $engine; + $this->name = new Name($engine, $name); + + $this->data($this->engine->getData($name)); + } + + /** + * Magic method used to call extension functions. + * @param string $name + * @param array $arguments + * @return mixed + */ + public function __call($name, $arguments) + { + return $this->engine->getFunction($name)->call($this, $arguments); + } + + /** + * Alias for render() method. + * @throws \Throwable + * @throws \Exception + * @return string + */ + public function __toString() + { + return $this->render(); + } + + /** + * Assign or get template data. + * @param array $data + * @return mixed + */ + public function data(array $data = null) + { + if (is_null($data)) { + return $this->data; + } + + $this->data = array_merge($this->data, $data); + } + + /** + * Check if the template exists. + * @return boolean + */ + public function exists() + { + return $this->name->doesPathExist(); + } + + /** + * Get the template path. + * @return string + */ + public function path() + { + return $this->name->getPath(); + } + + /** + * Render the template and layout. + * @param array $data + * @throws \Throwable + * @throws \Exception + * @return string + */ + public function render(array $data = array()) + { + $this->data($data); + unset($data); + extract($this->data); + + if (!$this->exists()) { + throw new LogicException( + 'The template "' . $this->name->getName() . '" could not be found at "' . $this->path() . '".' + ); + } + + try { + $level = ob_get_level(); + ob_start(); + + include $this->path(); + + $content = ob_get_clean(); + + if (isset($this->layoutName)) { + $layout = $this->engine->make($this->layoutName); + $layout->sections = array_merge($this->sections, array('content' => $content)); + $content = $layout->render($this->layoutData); + } + + return $content; + } catch (Throwable $e) { + while (ob_get_level() > $level) { + ob_end_clean(); + } + + throw $e; + } catch (Exception $e) { + while (ob_get_level() > $level) { + ob_end_clean(); + } + + throw $e; + } + } + + /** + * Set the template's layout. + * @param string $name + * @param array $data + * @return null + */ + public function layout($name, array $data = array()) + { + $this->layoutName = $name; + $this->layoutData = $data; + } + + /** + * Start a new section block. + * @param string $name + * @return null + */ + public function start($name) + { + if ($name === 'content') { + throw new LogicException( + 'The section name "content" is reserved.' + ); + } + + if ($this->sectionName) { + throw new LogicException('You cannot nest sections within other sections.'); + } + + $this->sectionName = $name; + + ob_start(); + } + + /** + * Start a new section block in APPEND mode. + * @param string $name + * @return null + */ + public function push($name) + { + $this->appendSection = true; /* for backward compatibility */ + $this->sectionMode = self::SECTION_MODE_APPEND; + $this->start($name); + } + + /** + * Start a new section block in PREPEND mode. + * @param string $name + * @return null + */ + public function unshift($name) + { + $this->appendSection = false; /* for backward compatibility */ + $this->sectionMode = self::SECTION_MODE_PREPEND; + $this->start($name); + } + + /** + * Stop the current section block. + * @return null + */ + public function stop() + { + if (is_null($this->sectionName)) { + throw new LogicException( + 'You must start a section before you can stop it.' + ); + } + + if (!isset($this->sections[$this->sectionName])) { + $this->sections[$this->sectionName] = ''; + } + + switch ($this->sectionMode) { + + case self::SECTION_MODE_REWRITE: + $this->sections[$this->sectionName] = ob_get_clean(); + break; + + case self::SECTION_MODE_APPEND: + $this->sections[$this->sectionName] .= ob_get_clean(); + break; + + case self::SECTION_MODE_PREPEND: + $this->sections[$this->sectionName] = ob_get_clean().$this->sections[$this->sectionName]; + break; + + } + $this->sectionName = null; + $this->sectionMode = self::SECTION_MODE_REWRITE; + $this->appendSection = false; /* for backward compatibility */ + } + + /** + * Alias of stop(). + * @return null + */ + public function end() + { + $this->stop(); + } + + /** + * Returns the content for a section block. + * @param string $name Section name + * @param string $default Default section content + * @return string|null + */ + public function section($name, $default = null) + { + if (!isset($this->sections[$name])) { + return $default; + } + + return $this->sections[$name]; + } + + /** + * Fetch a rendered template. + * @param string $name + * @param array $data + * @return string + */ + public function fetch($name, array $data = array()) + { + return $this->engine->render($name, $data); + } + + /** + * Output a rendered template. + * @param string $name + * @param array $data + * @return null + */ + public function insert($name, array $data = array()) + { + echo $this->engine->render($name, $data); + } + + /** + * Apply multiple functions to variable. + * @param mixed $var + * @param string $functions + * @return mixed + */ + public function batch($var, $functions) + { + foreach (explode('|', $functions) as $function) { + if ($this->engine->doesFunctionExist($function)) { + $var = call_user_func(array($this, $function), $var); + } elseif (is_callable($function)) { + $var = call_user_func($function, $var); + } else { + throw new LogicException( + 'The batch function could not find the "' . $function . '" function.' + ); + } + } + + return $var; + } + + /** + * Escape string. + * @param string $string + * @param null|string $functions + * @return string + */ + public function escape($string, $functions = null) + { + static $flags; + + if (!isset($flags)) { + $flags = ENT_QUOTES | (defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0); + } + + if ($functions) { + $string = $this->batch($string, $functions); + } + + return htmlspecialchars($string, $flags, 'UTF-8'); + } + + /** + * Alias to escape function. + * @param string $string + * @param null|string $functions + * @return string + */ + public function e($string, $functions = null) + { + return $this->escape($string, $functions); + } +} diff --git a/phpTest_20/vendor/phpmailer/phpmailer/COMMITMENT b/phpTest_20/vendor/phpmailer/phpmailer/COMMITMENT new file mode 100644 index 0000000..a687e0d --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/COMMITMENT @@ -0,0 +1,46 @@ +GPL Cooperation Commitment +Version 1.0 + +Before filing or continuing to prosecute any legal proceeding or claim +(other than a Defensive Action) arising from termination of a Covered +License, we commit to extend to the person or entity ('you') accused +of violating the Covered License the following provisions regarding +cure and reinstatement, taken from GPL version 3. As used here, the +term 'this License' refers to the specific Covered License being +enforced. + + However, if you cease all violation of this License, then your + license from a particular copyright holder is reinstated (a) + provisionally, unless and until the copyright holder explicitly + and finally terminates your license, and (b) permanently, if the + copyright holder fails to notify you of the violation by some + reasonable means prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is + reinstated permanently if the copyright holder notifies you of the + violation by some reasonable means, this is the first time you + have received notice of violation of this License (for any work) + from that copyright holder, and you cure the violation prior to 30 + days after your receipt of the notice. + +We intend this Commitment to be irrevocable, and binding and +enforceable against us and assignees of or successors to our +copyrights. + +Definitions + +'Covered License' means the GNU General Public License, version 2 +(GPLv2), the GNU Lesser General Public License, version 2.1 +(LGPLv2.1), or the GNU Library General Public License, version 2 +(LGPLv2), all as published by the Free Software Foundation. + +'Defensive Action' means a legal proceeding or claim that We bring +against you in response to a prior proceeding or claim initiated by +you or your affiliate. + +'We' means each contributor to this repository as of the date of +inclusion of this file, including subsidiaries of a corporate +contributor. + +This work is available under a Creative Commons Attribution-ShareAlike +4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/). diff --git a/phpTest_20/vendor/phpmailer/phpmailer/LICENSE b/phpTest_20/vendor/phpmailer/phpmailer/LICENSE new file mode 100644 index 0000000..f166cc5 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/LICENSE @@ -0,0 +1,502 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! \ No newline at end of file diff --git a/phpTest_20/vendor/phpmailer/phpmailer/README.md b/phpTest_20/vendor/phpmailer/phpmailer/README.md new file mode 100644 index 0000000..81b0897 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/README.md @@ -0,0 +1,227 @@ +![PHPMailer](https://raw.github.com/PHPMailer/PHPMailer/master/examples/images/phpmailer.png) + +# PHPMailer – A full-featured email creation and transfer class for PHP + +[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions) +[![codecov.io](https://codecov.io/gh/PHPMailer/PHPMailer/branch/master/graph/badge.svg?token=iORZpwmYmM)](https://codecov.io/gh/PHPMailer/PHPMailer) +[![Latest Stable Version](https://poser.pugx.org/phpmailer/phpmailer/v/stable.svg)](https://packagist.org/packages/phpmailer/phpmailer) +[![Total Downloads](https://poser.pugx.org/phpmailer/phpmailer/downloads)](https://packagist.org/packages/phpmailer/phpmailer) +[![License](https://poser.pugx.org/phpmailer/phpmailer/license.svg)](https://packagist.org/packages/phpmailer/phpmailer) +[![API Docs](https://github.com/phpmailer/phpmailer/workflows/Docs/badge.svg)](https://phpmailer.github.io/PHPMailer/) + +## Features +- Probably the world's most popular code for sending email from PHP! +- Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joomla! and many more +- Integrated SMTP support – send without a local mail server +- Send emails with multiple To, CC, BCC and Reply-to addresses +- Multipart/alternative emails for mail clients that do not read HTML email +- Add attachments, including inline +- Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings +- SMTP authentication with LOGIN, PLAIN, CRAM-MD5, and XOAUTH2 mechanisms over SMTPS and SMTP+STARTTLS transports +- Validates email addresses automatically +- Protects against header injection attacks +- Error messages in over 50 languages! +- DKIM and S/MIME signing support +- Compatible with PHP 5.5 and later, including PHP 8.1 +- Namespaced to prevent name clashes +- Much more! + +## Why you might need it +Many PHP developers need to send email from their code. The only PHP function that supports this directly is [`mail()`](https://www.php.net/manual/en/function.mail.php). However, it does not provide any assistance for making use of popular features such as encryption, authentication, HTML messages, and attachments. + +Formatting email correctly is surprisingly difficult. There are myriad overlapping (and conflicting) standards, requiring tight adherence to horribly complicated formatting and encoding rules – the vast majority of code that you'll find online that uses the `mail()` function directly is just plain wrong, if not unsafe! + +The PHP `mail()` function usually sends via a local mail server, typically fronted by a `sendmail` binary on Linux, BSD, and macOS platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP client allows email sending on all platforms without needing a local mail server. Be aware though, that the `mail()` function should be avoided when possible; it's both faster and [safer](https://exploitbox.io/paper/Pwning-PHP-Mail-Function-For-Fun-And-RCE.html) to use SMTP to localhost. + +*Please* don't be tempted to do it yourself – if you don't use PHPMailer, there are many other excellent libraries that +you should look at before rolling your own. Try [SwiftMailer](https://swiftmailer.symfony.com/) +, [Laminas/Mail](https://docs.laminas.dev/laminas-mail/), [ZetaComponents](https://github.com/zetacomponents/Mail) etc. + +## License +This software is distributed under the [LGPL 2.1](http://www.gnu.org/licenses/lgpl-2.1.html) license, along with the [GPL Cooperation Commitment](https://gplcc.github.io/gplcc/). Please read [LICENSE](https://github.com/PHPMailer/PHPMailer/blob/master/LICENSE) for information on the software availability and distribution. + +## Installation & loading +PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/phpmailer) (using semantic versioning), and installation via [Composer](https://getcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file: + +```json +"phpmailer/phpmailer": "^6.5" +``` + +or run + +```sh +composer require phpmailer/phpmailer +``` + +Note that the `vendor` folder and the `vendor/autoload.php` script are generated by Composer; they are not part of PHPMailer. + +If you want to use the Gmail XOAUTH2 authentication class, you will also need to add a dependency on the `league/oauth2-client` package in your `composer.json`. + +Alternatively, if you're not using Composer, you +can [download PHPMailer as a zip file](https://github.com/PHPMailer/PHPMailer/archive/master.zip), (note that docs and examples are not included in the zip file), then copy the contents of the PHPMailer folder into one of the `include_path` directories specified in your PHP configuration and load each class file manually: + +```php +SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output + $mail->isSMTP(); //Send using SMTP + $mail->Host = 'smtp.example.com'; //Set the SMTP server to send through + $mail->SMTPAuth = true; //Enable SMTP authentication + $mail->Username = 'user@example.com'; //SMTP username + $mail->Password = 'secret'; //SMTP password + $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption + $mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS` + + //Recipients + $mail->setFrom('from@example.com', 'Mailer'); + $mail->addAddress('joe@example.net', 'Joe User'); //Add a recipient + $mail->addAddress('ellen@example.com'); //Name is optional + $mail->addReplyTo('info@example.com', 'Information'); + $mail->addCC('cc@example.com'); + $mail->addBCC('bcc@example.com'); + + //Attachments + $mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments + $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name + + //Content + $mail->isHTML(true); //Set email format to HTML + $mail->Subject = 'Here is the subject'; + $mail->Body = 'This is the HTML message body in bold!'; + $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; + + $mail->send(); + echo 'Message has been sent'; +} catch (Exception $e) { + echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; +} +``` + +You'll find plenty to play with in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder, which covers many common scenarios including sending through gmail, building contact forms, sending to mailing lists, and more. + +If you are re-using the instance (e.g. when sending to a mailing list), you may need to clear the recipient list to avoid sending duplicate messages. See [the mailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples/mailing_list.phps) for further guidance. + +That's it. You should now be ready to use PHPMailer! + +## Localization +PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder you'll find many translations for PHPMailer error messages that you may encounter. Their filenames contain [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the translations, for example `fr` for French. To specify a language, you need to tell PHPMailer which one to use, like this: + +```php +//To load the French version +$mail->setLanguage('fr', '/optional/path/to/language/directory/'); +``` + +We welcome corrections and new languages – if you're looking for corrections, run the [PHPMailerLangTest.php](https://github.com/PHPMailer/PHPMailer/tree/master/test/PHPMailerLangTest.php) script in the tests folder and it will show any missing translations. + +## Documentation +Start reading at the [GitHub wiki](https://github.com/PHPMailer/PHPMailer/wiki). If you're having trouble, head for [the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting) as it's frequently updated. + +Examples of how to use PHPMailer for common scenarios can be found in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder. If you're looking for a good starting point, we recommend you start with [the Gmail example](https://github.com/PHPMailer/PHPMailer/tree/master/examples/gmail.phps). + +To reduce PHPMailer's deployed code footprint, examples are not included if you load PHPMailer via Composer or via [GitHub's zip file download](https://github.com/PHPMailer/PHPMailer/archive/master.zip), so you'll need to either clone the git repository or use the above links to get to the examples directly. + +Complete generated API documentation is [available online](https://phpmailer.github.io/PHPMailer/). + +You can generate complete API-level documentation by running `phpdoc` in the top-level folder, and documentation will appear in the `docs` folder, though you'll need to have [PHPDocumentor](http://www.phpdoc.org) installed. You may find [the unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailerTest.php) a good reference for how to do various operations such as encryption. + +If the documentation doesn't cover what you need, search the [many questions on Stack Overflow](http://stackoverflow.com/questions/tagged/phpmailer), and before you ask a question about "SMTP Error: Could not connect to SMTP host.", [read the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting). + +## Tests +[PHPMailer tests](https://github.com/PHPMailer/PHPMailer/tree/master/test/) use PHPUnit 9, with [a polyfill](https://github.com/Yoast/PHPUnit-Polyfills) to let 9-style tests run on older PHPUnit and PHP versions. + +[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions) + +If this isn't passing, is there something you can do to help? + +## Security +Please disclose any vulnerabilities found responsibly – report security issues to the maintainers privately. + +See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) and [PHPMailer's security advisories on GitHub](https://github.com/PHPMailer/PHPMailer/security). + +## Contributing +Please submit bug reports, suggestions and pull requests to the [GitHub issue tracker](https://github.com/PHPMailer/PHPMailer/issues). + +We're particularly interested in fixing edge-cases, expanding test coverage and updating translations. + +If you found a mistake in the docs, or want to add something, go ahead and amend the wiki – anyone can edit it. + +If you have git clones from prior to the move to the PHPMailer GitHub organisation, you'll need to update any remote URLs referencing the old GitHub location with a command like this from within your clone: + +```sh +git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git +``` + +Please *don't* use the SourceForge or Google Code projects any more; they are obsolete and no longer maintained. + +## Sponsorship +Development time and resources for PHPMailer are provided by [Smartmessages.net](https://info.smartmessages.net/), the world's only privacy-first email marketing system. + +Smartmessages.net privacy-first email marketing logo + +Donations are very welcome, whether in beer 🍺, T-shirts 👕, or cold, hard cash 💰. Sponsorship through GitHub is a simple and convenient way to say "thank you" to PHPMailer's maintainers and contributors – just click the "Sponsor" button [on the project page](https://github.com/PHPMailer/PHPMailer). If your company uses PHPMailer, consider taking part in Tidelift's enterprise support programme. + +## PHPMailer For Enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of PHPMailer and thousands of other packages are working with Tidelift to deliver commercial +support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and +improve code health, while paying the maintainers of the exact packages you +use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-phpmailer-phpmailer?utm_source=packagist-phpmailer-phpmailer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + +## Changelog +See [changelog](changelog.md). + +## History +- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](http://sourceforge.net/projects/phpmailer/). +- [Marcus Bointon](https://github.com/Synchro) (`coolbru` on SF) and Andy Prevost (`codeworxtech`) took over the project in 2004. +- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski. +- Marcus created [his fork on GitHub](https://github.com/Synchro/PHPMailer) in 2008. +- Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer in 2013. +- PHPMailer moves to [the PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013. + +### What's changed since moving from SourceForge? +- Official successor to the SourceForge and Google Code projects. +- Test suite. +- Continuous integration with Github Actions. +- Composer support. +- Public development. +- Additional languages and language strings. +- CRAM-MD5 authentication support. +- Preserves full repo history of authors, commits and branches from the original SourceForge project. diff --git a/phpTest_20/vendor/phpmailer/phpmailer/SECURITY.md b/phpTest_20/vendor/phpmailer/phpmailer/SECURITY.md new file mode 100644 index 0000000..035a87f --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/SECURITY.md @@ -0,0 +1,37 @@ +# Security notices relating to PHPMailer + +Please disclose any security issues or vulnerabilities found through [Tidelift's coordinated disclosure system](https://tidelift.com/security) or to the maintainers privately. + +PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the `$patternselect` parameter to `validateAddress()` is set to `'php'` (the default, defined by `PHPMailer::$validator`), and the global namespace contains a function called `php`, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names. Recorded as [CVE-2021-3603](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603). Reported by [Vikrant Singh Chauhan](mailto:vi@hackberry.xyz) via [huntr.dev](https://www.huntr.dev/). + +PHPMailer versions 6.4.1 and earlier contain a possible remote code execution vulnerability through the `$lang_path` parameter of the `setLanguage()` method. If the `$lang_path` parameter is passed unfiltered from user input, it can be set to [a UNC path](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths), and if an attacker is also able to persuade the server to load a file from that UNC path, a script file under their control may be executed. This vulnerability only applies to systems that resolve UNC paths, typically only Microsoft Windows. +PHPMailer 6.5.0 mitigates this by no longer treating translation files as PHP code, but by parsing their text content directly. This approach avoids the possibility of executing unknown code while retaining backward compatibility. This isn't ideal, so the current translation format is deprecated and will be replaced in the next major release. Recorded as [CVE-2021-34551](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-34551). Reported by [Jilin Diting Information Technology Co., Ltd](https://listensec.com) via Tidelift. + +PHPMailer versions between 6.1.8 and 6.4.0 contain a regression of the earlier CVE-2018-19296 object injection vulnerability as a result of [a fix for Windows UNC paths in 6.1.8](https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9). Recorded as [CVE-2020-36326](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-36326). Reported by Fariskhi Vidyan via Tidelift. 6.4.1 fixes this issue, and also enforces stricter checks for URL schemes in local path contexts. + +PHPMailer versions 6.1.5 and earlier contain an output escaping bug that occurs in `Content-Type` and `Content-Disposition` when filenames passed into `addAttachment` and other methods that accept attachment names contain double quote characters, in contravention of RFC822 3.4.1. No specific vulnerability has been found relating to this, but it could allow file attachments to bypass attachment filters that are based on matching filename extensions. Recorded as [CVE-2020-13625](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13625). Reported by Elar Lang of Clarified Security. + +PHPMailer versions prior to 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing `phar://` paths into `addAttachment()` and other functions that may receive unfiltered local paths, possibly leading to RCE. Recorded as [CVE-2018-19296](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19296). See [this article](https://knasmueller.net/5-answers-about-php-phar-exploitation) for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as `phar://`. Reported by Sehun Oh of cyberone.kr. + +PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, [CVE-2017-11503](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-11503). The `code_generator.phps` example did not filter user input prior to output. This file is distributed with a `.phps` extension, so it it not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project. + +PHPMailer versions prior to 5.2.22 (released January 9th 2017) have a local file disclosure vulnerability, [CVE-2017-5223](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5223). If content passed into `msgHTML()` is sourced from unfiltered user input, relative paths can map to absolute local file paths and added as attachments. Also note that `addAttachment` (just like `file_get_contents`, `passthru`, `unlink`, etc) should not be passed user-sourced params either! Reported by Yongxiang Li of Asiasecurity. + +PHPMailer versions prior to 5.2.20 (released December 28th 2016) are vulnerable to [CVE-2016-10045](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10045) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html), and patched by Paul Buonopane (@Zenexer). + +PHPMailer versions prior to 5.2.18 (released December 2016) are vulnerable to [CVE-2016-10033](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10033) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](http://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html). + +PHPMailer versions prior to 5.2.14 (released November 2015) are vulnerable to [CVE-2015-8476](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8476) an SMTP CRLF injection bug permitting arbitrary message sending. + +PHPMailer versions prior to 5.2.10 (released May 2015) are vulnerable to [CVE-2008-5619](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2008-5619), a remote code execution vulnerability in the bundled html2text library. This file was removed in 5.2.10, so if you are using a version prior to that and make use of the html2text function, it's vitally important that you upgrade and remove this file. + +PHPMailer versions prior to 2.0.7 and 2.2.1 are vulnerable to [CVE-2012-0796](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-0796), an email header injection attack. + +Joomla 1.6.0 uses PHPMailer in an unsafe way, allowing it to reveal local file paths, reported in [CVE-2011-3747](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3747). + +PHPMailer didn't sanitise the `$lang_path` parameter in `SetLanguage`. This wasn't a problem in itself, but some apps (PHPClassifieds, ATutor) also failed to sanitise user-provided parameters passed to it, permitting semi-arbitrary local file inclusion, reported in [CVE-2010-4914](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-4914), [CVE-2007-2021](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-2021) and [CVE-2006-5734](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-5734). + +PHPMailer 1.7.2 and earlier contained a possible DDoS vulnerability reported in [CVE-2005-1807](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-1807). + +PHPMailer 1.7 and earlier (June 2003) have a possible vulnerability in the `SendmailSend` method where shell commands may not be sanitised. Reported in [CVE-2007-3215](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-3215). + diff --git a/phpTest_20/vendor/phpmailer/phpmailer/VERSION b/phpTest_20/vendor/phpmailer/phpmailer/VERSION new file mode 100644 index 0000000..cd802a1 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/phpTest_20/vendor/phpmailer/phpmailer/composer.json b/phpTest_20/vendor/phpmailer/phpmailer/composer.json new file mode 100644 index 0000000..b13732b --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/composer.json @@ -0,0 +1,76 @@ +{ + "name": "phpmailer/phpmailer", + "type": "library", + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, + "require": { + "php": ">=5.5.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.2", + "php-parallel-lint/php-console-highlighter": "^0.5.0", + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.6.2", + "yoast/phpunit-polyfills": "^1.0.0" + }, + "suggest": { + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" + }, + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "PHPMailer\\Test\\": "test/" + } + }, + "license": "LGPL-2.1-only", + "scripts": { + "check": "./vendor/bin/phpcs", + "test": "./vendor/bin/phpunit --no-coverage", + "coverage": "./vendor/bin/phpunit", + "lint": [ + "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php,phps --exclude vendor --exclude .git --exclude build" + ] + } +} diff --git a/phpTest_20/vendor/phpmailer/phpmailer/get_oauth_token.php b/phpTest_20/vendor/phpmailer/phpmailer/get_oauth_token.php new file mode 100644 index 0000000..befdc34 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/get_oauth_token.php @@ -0,0 +1,146 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * Get an OAuth2 token from an OAuth2 provider. + * * Install this script on your server so that it's accessible + * as [https/http]:////get_oauth_token.php + * e.g.: http://localhost/phpmailer/get_oauth_token.php + * * Ensure dependencies are installed with 'composer install' + * * Set up an app in your Google/Yahoo/Microsoft account + * * Set the script address as the app's redirect URL + * If no refresh token is obtained when running this file, + * revoke access to your app and run the script again. + */ + +namespace PHPMailer\PHPMailer; + +/** + * Aliases for League Provider Classes + * Make sure you have added these to your composer.json and run `composer install` + * Plenty to choose from here: + * @see http://oauth2-client.thephpleague.com/providers/thirdparty/ + */ +//@see https://github.com/thephpleague/oauth2-google +use League\OAuth2\Client\Provider\Google; +//@see https://packagist.org/packages/hayageek/oauth2-yahoo +use Hayageek\OAuth2\Client\Provider\Yahoo; +//@see https://github.com/stevenmaguire/oauth2-microsoft +use Stevenmaguire\OAuth2\Client\Provider\Microsoft; + +if (!isset($_GET['code']) && !isset($_GET['provider'])) { + ?> + +Select Provider:
+Google
+Yahoo
+Microsoft/Outlook/Hotmail/Live/Office365
+ + + $clientId, + 'clientSecret' => $clientSecret, + 'redirectUri' => $redirectUri, + 'accessType' => 'offline' +]; + +$options = []; +$provider = null; + +switch ($providerName) { + case 'Google': + $provider = new Google($params); + $options = [ + 'scope' => [ + 'https://mail.google.com/' + ] + ]; + break; + case 'Yahoo': + $provider = new Yahoo($params); + break; + case 'Microsoft': + $provider = new Microsoft($params); + $options = [ + 'scope' => [ + 'wl.imap', + 'wl.offline_access' + ] + ]; + break; +} + +if (null === $provider) { + exit('Provider missing'); +} + +if (!isset($_GET['code'])) { + //If we don't have an authorization code then get one + $authUrl = $provider->getAuthorizationUrl($options); + $_SESSION['oauth2state'] = $provider->getState(); + header('Location: ' . $authUrl); + exit; + //Check given state against previously stored one to mitigate CSRF attack +} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) { + unset($_SESSION['oauth2state']); + unset($_SESSION['provider']); + exit('Invalid state'); +} else { + unset($_SESSION['provider']); + //Try to get an access token (using the authorization code grant) + $token = $provider->getAccessToken( + 'authorization_code', + [ + 'code' => $_GET['code'] + ] + ); + //Use this to interact with an API on the users behalf + //Use this to get a new access token if the old one expires + echo 'Refresh Token: ', $token->getRefreshToken(); +} diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php new file mode 100644 index 0000000..0b2a72d --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php @@ -0,0 +1,26 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'خطأ SMTP : لا يمكن تأكيد الهوية.'; +$PHPMAILER_LANG['connect_host'] = 'خطأ SMTP: لا يمكن الاتصال بالخادم SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'خطأ SMTP: لم يتم قبول المعلومات .'; +$PHPMAILER_LANG['empty_message'] = 'نص الرسالة فارغ'; +$PHPMAILER_LANG['encoding'] = 'ترميز غير معروف: '; +$PHPMAILER_LANG['execute'] = 'لا يمكن تنفيذ : '; +$PHPMAILER_LANG['file_access'] = 'لا يمكن الوصول للملف: '; +$PHPMAILER_LANG['file_open'] = 'خطأ في الملف: لا يمكن فتحه: '; +$PHPMAILER_LANG['from_failed'] = 'خطأ على مستوى عنوان المرسل : '; +$PHPMAILER_LANG['instantiate'] = 'لا يمكن توفير خدمة البريد.'; +$PHPMAILER_LANG['invalid_address'] = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.'; +$PHPMAILER_LANG['provide_address'] = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.'; +$PHPMAILER_LANG['recipients_failed'] = 'خطأ SMTP: الأخطاء التالية فشل في الارسال لكل من : '; +$PHPMAILER_LANG['signing'] = 'خطأ في التوقيع: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() غير ممكن.'; +$PHPMAILER_LANG['smtp_error'] = 'خطأ على مستوى الخادم SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'لا يمكن تعيين أو إعادة تعيين متغير: '; +$PHPMAILER_LANG['extension_missing'] = 'الإضافة غير موجودة: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php new file mode 100644 index 0000000..552167e --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela prijava.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Nije moguće spojiti se sa SMTP serverom.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznata kriptografija: '; +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje sa navedenih e-mail adresa nije uspjelo: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedene e-mail adrese nije uspjelo: '; +$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; +$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; +$PHPMAILER_LANG['provide_address'] = 'Definišite barem jednu adresu primaoca.'; +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP server nije uspjelo.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP greška: '; +$PHPMAILER_LANG['variable_set'] = 'Nije moguće postaviti varijablu ili je vratiti nazad: '; +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje ekstenzija: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php new file mode 100644 index 0000000..9e92dda --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Памылка SMTP: памылка ідэнтыфікацыі.'; +$PHPMAILER_LANG['connect_host'] = 'Памылка SMTP: нельга ўстанавіць сувязь з SMTP-серверам.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Памылка SMTP: звесткі непрынятыя.'; +$PHPMAILER_LANG['empty_message'] = 'Пустое паведамленне.'; +$PHPMAILER_LANG['encoding'] = 'Невядомая кадыроўка тэксту: '; +$PHPMAILER_LANG['execute'] = 'Нельга выканаць каманду: '; +$PHPMAILER_LANG['file_access'] = 'Няма доступу да файла: '; +$PHPMAILER_LANG['file_open'] = 'Нельга адкрыць файл: '; +$PHPMAILER_LANG['from_failed'] = 'Няправільны адрас адпраўніка: '; +$PHPMAILER_LANG['instantiate'] = 'Нельга прымяніць функцыю mail().'; +$PHPMAILER_LANG['invalid_address'] = 'Нельга даслаць паведамленне, няправільны email атрымальніка: '; +$PHPMAILER_LANG['provide_address'] = 'Запоўніце, калі ласка, правільны email атрымальніка.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' - паштовы сервер не падтрымліваецца.'; +$PHPMAILER_LANG['recipients_failed'] = 'Памылка SMTP: няправільныя атрымальнікі: '; +$PHPMAILER_LANG['signing'] = 'Памылка подпісу паведамлення: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Памылка сувязі з SMTP-серверам.'; +$PHPMAILER_LANG['smtp_error'] = 'Памылка SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Нельга ўстанавіць або перамяніць значэнне пераменнай: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php new file mode 100644 index 0000000..c41f675 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: Не може да се удостовери пред сървъра.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: Не може да се свърже с SMTP хоста.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: данните не са приети.'; +$PHPMAILER_LANG['empty_message'] = 'Съдържанието на съобщението е празно'; +$PHPMAILER_LANG['encoding'] = 'Неизвестно кодиране: '; +$PHPMAILER_LANG['execute'] = 'Не може да се изпълни: '; +$PHPMAILER_LANG['file_access'] = 'Няма достъп до файл: '; +$PHPMAILER_LANG['file_open'] = 'Файлова грешка: Не може да се отвори файл: '; +$PHPMAILER_LANG['from_failed'] = 'Следните адреси за подател са невалидни: '; +$PHPMAILER_LANG['instantiate'] = 'Не може да се инстанцира функцията mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Невалиден адрес: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' - пощенски сървър не се поддържа.'; +$PHPMAILER_LANG['provide_address'] = 'Трябва да предоставите поне един email адрес за получател.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: Следните адреси за Получател са невалидни: '; +$PHPMAILER_LANG['signing'] = 'Грешка при подписване: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP провален connect().'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP сървърна грешка: '; +$PHPMAILER_LANG['variable_set'] = 'Не може да се установи или възстанови променлива: '; +$PHPMAILER_LANG['extension_missing'] = 'Липсва разширение: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php new file mode 100644 index 0000000..3468485 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Error SMTP: No s’ha pogut autenticar.'; +$PHPMAILER_LANG['connect_host'] = 'Error SMTP: No es pot connectar al servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Dades no acceptades.'; +$PHPMAILER_LANG['empty_message'] = 'El cos del missatge està buit.'; +$PHPMAILER_LANG['encoding'] = 'Codificació desconeguda: '; +$PHPMAILER_LANG['execute'] = 'No es pot executar: '; +$PHPMAILER_LANG['file_access'] = 'No es pot accedir a l’arxiu: '; +$PHPMAILER_LANG['file_open'] = 'Error d’Arxiu: No es pot obrir l’arxiu: '; +$PHPMAILER_LANG['from_failed'] = 'La(s) següent(s) adreces de remitent han fallat: '; +$PHPMAILER_LANG['instantiate'] = 'No s’ha pogut crear una instància de la funció Mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Adreça d’email invalida: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no està suportat'; +$PHPMAILER_LANG['provide_address'] = 'S’ha de proveir almenys una adreça d’email com a destinatari.'; +$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Els següents destinataris han fallat: '; +$PHPMAILER_LANG['signing'] = 'Error al signar: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ha fallat el SMTP Connect().'; +$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'No s’ha pogut establir o restablir la variable: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php new file mode 100644 index 0000000..500c952 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP 错误:身份验证失败。'; +$PHPMAILER_LANG['connect_host'] = 'SMTP 错误: 不能连接SMTP主机。'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误: 数据不可接受。'; +//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; +$PHPMAILER_LANG['encoding'] = '未知编码:'; +$PHPMAILER_LANG['execute'] = '不能执行: '; +$PHPMAILER_LANG['file_access'] = '不能访问文件:'; +$PHPMAILER_LANG['file_open'] = '文件错误:不能打开文件:'; +$PHPMAILER_LANG['from_failed'] = '下面的发送地址邮件发送失败了: '; +$PHPMAILER_LANG['instantiate'] = '不能实现mail方法。'; +//$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' 您所选择的发送邮件的方法并不支持。'; +$PHPMAILER_LANG['provide_address'] = '您必须提供至少一个 收信人的email地址。'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误: 下面的 收件人失败了: '; +//$PHPMAILER_LANG['signing'] = 'Signing Error: '; +//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; +//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; +//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php new file mode 100644 index 0000000..e770a1a --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php @@ -0,0 +1,28 @@ + + * Rewrite and extension of the work by Mikael Stokkebro + * + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Login mislykkedes.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Forbindelse til SMTP serveren kunne ikke oprettes.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data blev ikke accepteret.'; +$PHPMAILER_LANG['empty_message'] = 'Meddelelsen er uden indhold'; +$PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: '; +$PHPMAILER_LANG['execute'] = 'Kunne ikke afvikle: '; +$PHPMAILER_LANG['file_access'] = 'Kunne ikke tilgå filen: '; +$PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: '; +$PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: '; +$PHPMAILER_LANG['instantiate'] = 'Email funktionen kunne ikke initialiseres.'; +$PHPMAILER_LANG['invalid_address'] = 'Udgyldig adresse: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.'; +$PHPMAILER_LANG['provide_address'] = 'Indtast mindst en modtagers email adresse.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere er forkerte: '; +$PHPMAILER_LANG['signing'] = 'Signeringsfejl: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fejlede.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP server fejl: '; +$PHPMAILER_LANG['variable_set'] = 'Kunne ikke definere eller nulstille variablen: '; +$PHPMAILER_LANG['extension_missing'] = 'Udvidelse mangler: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php new file mode 100644 index 0000000..e7e59d2 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php @@ -0,0 +1,28 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Error SMTP: Imposible autentificar.'; +$PHPMAILER_LANG['connect_host'] = 'Error SMTP: Imposible conectar al servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Datos no aceptados.'; +$PHPMAILER_LANG['empty_message'] = 'El cuerpo del mensaje está vacío.'; +$PHPMAILER_LANG['encoding'] = 'Codificación desconocida: '; +$PHPMAILER_LANG['execute'] = 'Imposible ejecutar: '; +$PHPMAILER_LANG['file_access'] = 'Imposible acceder al archivo: '; +$PHPMAILER_LANG['file_open'] = 'Error de Archivo: Imposible abrir el archivo: '; +$PHPMAILER_LANG['from_failed'] = 'La(s) siguiente(s) direcciones de remitente fallaron: '; +$PHPMAILER_LANG['instantiate'] = 'Imposible crear una instancia de la función Mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Imposible enviar: dirección de email inválido: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no está soportado.'; +$PHPMAILER_LANG['provide_address'] = 'Debe proporcionar al menos una dirección de email de destino.'; +$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Los siguientes destinos fallaron: '; +$PHPMAILER_LANG['signing'] = 'Error al firmar: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falló.'; +$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'No se pudo configurar la variable: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensión faltante: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php new file mode 100644 index 0000000..93addc9 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php @@ -0,0 +1,28 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.'; +$PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu'; +$PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: '; +$PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: '; +$PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: '; +$PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: '; +$PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: '; +$PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.'; +$PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: '; +$PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: '; +$PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: '; +$PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: '; +$PHPMAILER_LANG['extension_missing'] = 'Nõutud laiendus on puudu: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php new file mode 100644 index 0000000..295a47f --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php @@ -0,0 +1,28 @@ + + * @author Mohammad Hossein Mojtahedi + */ + +$PHPMAILER_LANG['authenticate'] = 'خطای SMTP: احراز هویت با شکست مواجه شد.'; +$PHPMAILER_LANG['connect_host'] = 'خطای SMTP: اتصال به سرور SMTP برقرار نشد.'; +$PHPMAILER_LANG['data_not_accepted'] = 'خطای SMTP: داده‌ها نا‌درست هستند.'; +$PHPMAILER_LANG['empty_message'] = 'بخش متن پیام خالی است.'; +$PHPMAILER_LANG['encoding'] = 'کد‌گذاری نا‌شناخته: '; +$PHPMAILER_LANG['execute'] = 'امکان اجرا وجود ندارد: '; +$PHPMAILER_LANG['file_access'] = 'امکان دسترسی به فایل وجود ندارد: '; +$PHPMAILER_LANG['file_open'] = 'خطای File: امکان بازکردن فایل وجود ندارد: '; +$PHPMAILER_LANG['from_failed'] = 'آدرس فرستنده اشتباه است: '; +$PHPMAILER_LANG['instantiate'] = 'امکان معرفی تابع ایمیل وجود ندارد.'; +$PHPMAILER_LANG['invalid_address'] = 'آدرس ایمیل معتبر نیست: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer پشتیبانی نمی‌شود.'; +$PHPMAILER_LANG['provide_address'] = 'باید حداقل یک آدرس گیرنده وارد کنید.'; +$PHPMAILER_LANG['recipients_failed'] = 'خطای SMTP: ارسال به آدرس گیرنده با خطا مواجه شد: '; +$PHPMAILER_LANG['signing'] = 'خطا در امضا: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'خطا در اتصال به SMTP.'; +$PHPMAILER_LANG['smtp_error'] = 'خطا در SMTP Server: '; +$PHPMAILER_LANG['variable_set'] = 'امکان ارسال یا ارسال مجدد متغیر‌ها وجود ندارد: '; +$PHPMAILER_LANG['extension_missing'] = 'افزونه موجود نیست: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php new file mode 100644 index 0000000..243c054 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php @@ -0,0 +1,28 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP feilur: Kundi ikki góðkenna.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP feilur: Kundi ikki knýta samband við SMTP vert.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP feilur: Data ikki góðkent.'; +//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; +$PHPMAILER_LANG['encoding'] = 'Ókend encoding: '; +$PHPMAILER_LANG['execute'] = 'Kundi ikki útføra: '; +$PHPMAILER_LANG['file_access'] = 'Kundi ikki tilganga fílu: '; +$PHPMAILER_LANG['file_open'] = 'Fílu feilur: Kundi ikki opna fílu: '; +$PHPMAILER_LANG['from_failed'] = 'fylgjandi Frá/From adressa miseydnaðist: '; +$PHPMAILER_LANG['instantiate'] = 'Kuni ikki instantiera mail funktión.'; +//$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' er ikki supporterað.'; +$PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Feilur: Fylgjandi móttakarar miseydnaðust: '; +//$PHPMAILER_LANG['signing'] = 'Signing Error: '; +//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; +//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; +//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php new file mode 100644 index 0000000..38a7a8e --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php @@ -0,0 +1,38 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Non puido ser autentificado.'; +$PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Non puido conectar co servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Datos non aceptados.'; +$PHPMAILER_LANG['empty_message'] = 'Corpo da mensaxe vacía'; +$PHPMAILER_LANG['encoding'] = 'Codificación descoñecida: '; +$PHPMAILER_LANG['execute'] = 'Non puido ser executado: '; +$PHPMAILER_LANG['file_access'] = 'Nob puido acceder ó arquivo: '; +$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: No puido abrir o arquivo: '; +$PHPMAILER_LANG['from_failed'] = 'A(s) seguinte(s) dirección(s) de remitente(s) deron erro: '; +$PHPMAILER_LANG['instantiate'] = 'Non puido crear unha instancia da función Mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Non puido envia-lo correo: dirección de email inválida: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer non está soportado.'; +$PHPMAILER_LANG['provide_address'] = 'Debe engadir polo menos unha dirección de email coma destino.'; +$PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Os seguintes destinos fallaron: '; +$PHPMAILER_LANG['signing'] = 'Erro ó firmar: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallou.'; +$PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Non puidemos axustar ou reaxustar a variábel: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php new file mode 100644 index 0000000..b123aa5 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.'; +$PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.'; +$PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק'; +$PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה: '; +$PHPMAILER_LANG['encoding'] = 'קידוד לא מוכר: '; +$PHPMAILER_LANG['execute'] = 'לא הצלחתי להפעיל את: '; +$PHPMAILER_LANG['file_access'] = 'לא ניתן לגשת לקובץ: '; +$PHPMAILER_LANG['file_open'] = 'שגיאת קובץ: לא ניתן לגשת לקובץ: '; +$PHPMAILER_LANG['from_failed'] = 'כתובות הנמענים הבאות נכשלו: '; +$PHPMAILER_LANG['instantiate'] = 'לא הצלחתי להפעיל את פונקציית המייל.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' אינה נתמכת.'; +$PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.'; +$PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: '; +$PHPMAILER_LANG['signing'] = 'שגיאת חתימה: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; +$PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php new file mode 100644 index 0000000..d973a35 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP त्रुटि: प्रामाणिकता की जांच नहीं हो सका। '; +$PHPMAILER_LANG['connect_host'] = 'SMTP त्रुटि: SMTP सर्वर से कनेक्ट नहीं हो सका। '; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP त्रुटि: डेटा स्वीकार नहीं किया जाता है। '; +$PHPMAILER_LANG['empty_message'] = 'संदेश खाली है। '; +$PHPMAILER_LANG['encoding'] = 'अज्ञात एन्कोडिंग प्रकार। '; +$PHPMAILER_LANG['execute'] = 'आदेश को निष्पादित करने में विफल। '; +$PHPMAILER_LANG['file_access'] = 'फ़ाइल उपलब्ध नहीं है। '; +$PHPMAILER_LANG['file_open'] = 'फ़ाइल त्रुटि: फाइल को खोला नहीं जा सका। '; +$PHPMAILER_LANG['from_failed'] = 'प्रेषक का पता गलत है। '; +$PHPMAILER_LANG['instantiate'] = 'मेल फ़ंक्शन कॉल नहीं कर सकता है।'; +$PHPMAILER_LANG['invalid_address'] = 'पता गलत है। '; +$PHPMAILER_LANG['mailer_not_supported'] = 'मेल सर्वर के साथ काम नहीं करता है। '; +$PHPMAILER_LANG['provide_address'] = 'आपको कम से कम एक प्राप्तकर्ता का ई-मेल पता प्रदान करना होगा।'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP त्रुटि: निम्न प्राप्तकर्ताओं को पते भेजने में विफल। '; +$PHPMAILER_LANG['signing'] = 'साइनअप त्रुटि:। '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP का connect () फ़ंक्शन विफल हुआ। '; +$PHPMAILER_LANG['smtp_error'] = 'SMTP सर्वर त्रुटि। '; +$PHPMAILER_LANG['variable_set'] = 'चर को बना या संशोधित नहीं किया जा सकता। '; +$PHPMAILER_LANG['extension_missing'] = 'एक्सटेन्षन गायब है: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php new file mode 100644 index 0000000..cacb6c3 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela autentikacija.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Ne mogu se spojiti na SMTP poslužitelj.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznati encoding: '; +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje s navedenih e-mail adresa nije uspjelo: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedenih e-mail adresa nije uspjelo: '; +$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; +$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; +$PHPMAILER_LANG['provide_address'] = 'Definirajte barem jednu adresu primatelja.'; +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP poslužitelj nije uspjelo.'; +$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP poslužitelja: '; +$PHPMAILER_LANG['variable_set'] = 'Ne mogu postaviti varijablu niti ju vratiti nazad: '; +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php new file mode 100644 index 0000000..e6b58b0 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP -ի սխալ: չհաջողվեց ստուգել իսկությունը.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP -ի սխալ: չհաջողվեց կապ հաստատել SMTP սերվերի հետ.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP -ի սխալ: տվյալները ընդունված չեն.'; +$PHPMAILER_LANG['empty_message'] = 'Հաղորդագրությունը դատարկ է'; +$PHPMAILER_LANG['encoding'] = 'Կոդավորման անհայտ տեսակ: '; +$PHPMAILER_LANG['execute'] = 'Չհաջողվեց իրականացնել հրամանը: '; +$PHPMAILER_LANG['file_access'] = 'Ֆայլը հասանելի չէ: '; +$PHPMAILER_LANG['file_open'] = 'Ֆայլի սխալ: ֆայլը չհաջողվեց բացել: '; +$PHPMAILER_LANG['from_failed'] = 'Ուղարկողի հետևյալ հասցեն սխալ է: '; +$PHPMAILER_LANG['instantiate'] = 'Հնարավոր չէ կանչել mail ֆունկցիան.'; +$PHPMAILER_LANG['invalid_address'] = 'Հասցեն սխալ է: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' փոստային սերվերի հետ չի աշխատում.'; +$PHPMAILER_LANG['provide_address'] = 'Անհրաժեշտ է տրամադրել գոնե մեկ ստացողի e-mail հասցե.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP -ի սխալ: չի հաջողվել ուղարկել հետևյալ ստացողների հասցեներին: '; +$PHPMAILER_LANG['signing'] = 'Ստորագրման սխալ: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP -ի connect() ֆունկցիան չի հաջողվել'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP սերվերի սխալ: '; +$PHPMAILER_LANG['variable_set'] = 'Չի հաջողվում ստեղծել կամ վերափոխել փոփոխականը: '; +$PHPMAILER_LANG['extension_missing'] = 'Հավելվածը բացակայում է: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php new file mode 100644 index 0000000..212a11f --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php @@ -0,0 +1,31 @@ + + * @author @januridp + * @author Ian Mustafa + */ + +$PHPMAILER_LANG['authenticate'] = 'Kesalahan SMTP: Tidak dapat mengotentikasi.'; +$PHPMAILER_LANG['connect_host'] = 'Kesalahan SMTP: Tidak dapat terhubung ke host SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Kesalahan SMTP: Data tidak diterima.'; +$PHPMAILER_LANG['empty_message'] = 'Isi pesan kosong'; +$PHPMAILER_LANG['encoding'] = 'Pengkodean karakter tidak dikenali: '; +$PHPMAILER_LANG['execute'] = 'Tidak dapat menjalankan proses: '; +$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses berkas: '; +$PHPMAILER_LANG['file_open'] = 'Kesalahan Berkas: Berkas tidak dapat dibuka: '; +$PHPMAILER_LANG['from_failed'] = 'Alamat pengirim berikut mengakibatkan kesalahan: '; +$PHPMAILER_LANG['instantiate'] = 'Tidak dapat menginisialisasi fungsi surel.'; +$PHPMAILER_LANG['invalid_address'] = 'Gagal terkirim, alamat surel tidak sesuai: '; +$PHPMAILER_LANG['invalid_hostentry'] = 'Gagal terkirim, entri host tidak sesuai: '; +$PHPMAILER_LANG['invalid_host'] = 'Gagal terkirim, host tidak sesuai: '; +$PHPMAILER_LANG['provide_address'] = 'Harus tersedia minimal satu alamat tujuan'; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tidak didukung'; +$PHPMAILER_LANG['recipients_failed'] = 'Kesalahan SMTP: Alamat tujuan berikut menyebabkan kesalahan: '; +$PHPMAILER_LANG['signing'] = 'Kesalahan dalam penandatangan SSL: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() gagal.'; +$PHPMAILER_LANG['smtp_error'] = 'Kesalahan pada pelayan SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Tidak dapat mengatur atau mengatur ulang variabel: '; +$PHPMAILER_LANG['extension_missing'] = 'Ekstensi PHP tidak tersedia: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php new file mode 100644 index 0000000..08a6b73 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php @@ -0,0 +1,28 @@ + + * @author Stefano Sabatini + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.'; +$PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto'; +$PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: '; +$PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: '; +$PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: '; +$PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: '; +$PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: '; +$PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail'; +$PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: '; +$PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente'; +$PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: '; +$PHPMAILER_LANG['signing'] = 'Errore nella firma: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.'; +$PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: '; +$PHPMAILER_LANG['extension_missing'] = 'Estensione mancante: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php new file mode 100644 index 0000000..c76f526 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php @@ -0,0 +1,29 @@ + + * @author Yoshi Sakai + * @author Arisophy + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。'; +$PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。'; +$PHPMAILER_LANG['empty_message'] = 'メール本文が空です。'; +$PHPMAILER_LANG['encoding'] = '不明なエンコーディング: '; +$PHPMAILER_LANG['execute'] = '実行できませんでした: '; +$PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: '; +$PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: '; +$PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: '; +$PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。'; +$PHPMAILER_LANG['invalid_address'] = '不正なメールアドレス: '; +$PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。'; +$PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: '; +$PHPMAILER_LANG['signing'] = '署名エラー: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP接続に失敗しました。'; +$PHPMAILER_LANG['smtp_error'] = 'SMTPサーバーエラー: '; +$PHPMAILER_LANG['variable_set'] = '変数が存在しません: '; +$PHPMAILER_LANG['extension_missing'] = '拡張機能が見つかりません: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php new file mode 100644 index 0000000..51fe403 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.'; +$PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: '; +$PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: '; +$PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: '; +$PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: '; +$PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: '; +$PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.'; +$PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: '; +$PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია'; +$PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: '; +$PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: '; +$PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: '; +$PHPMAILER_LANG['extension_missing'] = 'ბიბლიოთეკა არ არსებობს: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php new file mode 100644 index 0000000..8c97dd9 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.'; +$PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다'; +$PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: '; +$PHPMAILER_LANG['execute'] = '실행 불가: '; +$PHPMAILER_LANG['file_access'] = '파일 접근 불가: '; +$PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: '; +$PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: '; +$PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다'; +$PHPMAILER_LANG['invalid_address'] = '잘못된 주소: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.'; +$PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: '; +$PHPMAILER_LANG['signing'] = '서명 오류: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: '; +$PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: '; +$PHPMAILER_LANG['extension_missing'] = '확장자 없음: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php new file mode 100644 index 0000000..4f115b1 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP klaida: autentifikacija nepavyko.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP klaida: nepavyksta prisijungti prie SMTP stoties.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP klaida: duomenys nepriimti.'; +$PHPMAILER_LANG['empty_message'] = 'Laiško turinys tuščias'; +$PHPMAILER_LANG['encoding'] = 'Neatpažinta koduotė: '; +$PHPMAILER_LANG['execute'] = 'Nepavyko įvykdyti komandos: '; +$PHPMAILER_LANG['file_access'] = 'Byla nepasiekiama: '; +$PHPMAILER_LANG['file_open'] = 'Bylos klaida: Nepavyksta atidaryti: '; +$PHPMAILER_LANG['from_failed'] = 'Neteisingas siuntėjo adresas: '; +$PHPMAILER_LANG['instantiate'] = 'Nepavyko paleisti mail funkcijos.'; +$PHPMAILER_LANG['invalid_address'] = 'Neteisingas adresas: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' pašto stotis nepalaikoma.'; +$PHPMAILER_LANG['provide_address'] = 'Nurodykite bent vieną gavėjo adresą.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP klaida: nepavyko išsiųsti šiems gavėjams: '; +$PHPMAILER_LANG['signing'] = 'Prisijungimo klaida: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP susijungimo klaida'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP stoties klaida: '; +$PHPMAILER_LANG['variable_set'] = 'Nepavyko priskirti reikšmės kintamajam: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php new file mode 100644 index 0000000..679b18c --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP kļūda: Autorizācija neizdevās.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Kļūda: Nevar izveidot savienojumu ar SMTP serveri.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Kļūda: Nepieņem informāciju.'; +$PHPMAILER_LANG['empty_message'] = 'Ziņojuma teksts ir tukšs'; +$PHPMAILER_LANG['encoding'] = 'Neatpazīts kodējums: '; +$PHPMAILER_LANG['execute'] = 'Neizdevās izpildīt komandu: '; +$PHPMAILER_LANG['file_access'] = 'Fails nav pieejams: '; +$PHPMAILER_LANG['file_open'] = 'Faila kļūda: Nevar atvērt failu: '; +$PHPMAILER_LANG['from_failed'] = 'Nepareiza sūtītāja adrese: '; +$PHPMAILER_LANG['instantiate'] = 'Nevar palaist sūtīšanas funkciju.'; +$PHPMAILER_LANG['invalid_address'] = 'Nepareiza adrese: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' sūtītājs netiek atbalstīts.'; +$PHPMAILER_LANG['provide_address'] = 'Lūdzu, norādiet vismaz vienu adresātu.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP kļūda: neizdevās nosūtīt šādiem saņēmējiem: '; +$PHPMAILER_LANG['signing'] = 'Autorizācijas kļūda: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP savienojuma kļūda'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP servera kļūda: '; +$PHPMAILER_LANG['variable_set'] = 'Nevar piešķirt mainīgā vērtību: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php new file mode 100644 index 0000000..8a94f6a --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Hadisoana SMTP: Tsy nahomby ny fanamarinana.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Tsy afaka mampifandray amin\'ny mpampiantrano SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP diso: tsy voarakitra ny angona.'; +$PHPMAILER_LANG['empty_message'] = 'Tsy misy ny votoaty mailaka.'; +$PHPMAILER_LANG['encoding'] = 'Tsy fantatra encoding: '; +$PHPMAILER_LANG['execute'] = 'Tsy afaka manatanteraka ity baiko manaraka ity: '; +$PHPMAILER_LANG['file_access'] = 'Tsy nahomby ny fidirana amin\'ity rakitra ity: '; +$PHPMAILER_LANG['file_open'] = 'Hadisoana diso: Tsy afaka nanokatra ity file manaraka ity: '; +$PHPMAILER_LANG['from_failed'] = 'Ny adiresy iraka manaraka dia diso: '; +$PHPMAILER_LANG['instantiate'] = 'Tsy afaka nanomboka ny hetsika mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Tsy mety ny adiresy: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tsy manohana.'; +$PHPMAILER_LANG['provide_address'] = 'Alefaso azafady iray adiresy iray farafahakeliny.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Tsy mety ireo mpanaraka ireto: '; +$PHPMAILER_LANG['signing'] = 'Error nandritra ny sonia:'; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Tsy nahomby ny fifandraisana tamin\'ny server SMTP.'; +$PHPMAILER_LANG['smtp_error'] = 'Fahadisoana tamin\'ny server SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Tsy azo atao ny mametraka na mamerina ny variable: '; +$PHPMAILER_LANG['extension_missing'] = 'Tsy hita ny ampahany: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php new file mode 100644 index 0000000..71db338 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Ralat SMTP: Tidak dapat pengesahan.'; +$PHPMAILER_LANG['connect_host'] = 'Ralat SMTP: Tidak dapat menghubungi hos pelayan SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Ralat SMTP: Data tidak diterima oleh pelayan.'; +$PHPMAILER_LANG['empty_message'] = 'Tiada isi untuk mesej'; +$PHPMAILER_LANG['encoding'] = 'Pengekodan tidak diketahui: '; +$PHPMAILER_LANG['execute'] = 'Tidak dapat melaksanakan: '; +$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses fail: '; +$PHPMAILER_LANG['file_open'] = 'Ralat Fail: Tidak dapat membuka fail: '; +$PHPMAILER_LANG['from_failed'] = 'Berikut merupakan ralat dari alamat e-mel: '; +$PHPMAILER_LANG['instantiate'] = 'Tidak dapat memberi contoh fungsi e-mel.'; +$PHPMAILER_LANG['invalid_address'] = 'Alamat emel tidak sah: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' jenis penghantar emel tidak disokong.'; +$PHPMAILER_LANG['provide_address'] = 'Anda perlu menyediakan sekurang-kurangnya satu alamat e-mel penerima.'; +$PHPMAILER_LANG['recipients_failed'] = 'Ralat SMTP: Penerima e-mel berikut telah gagal: '; +$PHPMAILER_LANG['signing'] = 'Ralat pada tanda tangan: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() telah gagal.'; +$PHPMAILER_LANG['smtp_error'] = 'Ralat pada pelayan SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Tidak boleh menetapkan atau menetapkan semula pembolehubah: '; +$PHPMAILER_LANG['extension_missing'] = 'Sambungan hilang: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php new file mode 100644 index 0000000..65793ce --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php @@ -0,0 +1,26 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.'; +$PHPMAILER_LANG['buggy_php'] = 'PHP versie gededecteerd die onderhavig is aan een bug die kan resulteren in gecorrumpeerde berichten. Om dit te voorkomen, gebruik SMTP voor het verzenden van berichten, zet de mail.add_x_header optie in uw php.ini file uit, gebruik MacOS of Linux, of pas de gebruikte PHP versie aan naar versie 7.0.17+ or 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.'; +$PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg'; +$PHPMAILER_LANG['encoding'] = 'Onbekende codering: '; +$PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensie afwezig: '; +$PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: '; +$PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: '; +$PHPMAILER_LANG['from_failed'] = 'Het volgende afzendersadres is mislukt: '; +$PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.'; +$PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres: '; +$PHPMAILER_LANG['invalid_header'] = 'Ongeldige header naam of waarde'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Ongeldige hostentry: '; +$PHPMAILER_LANG['invalid_host'] = 'Ongeldige host: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.'; +$PHPMAILER_LANG['provide_address'] = 'Er moet minstens één ontvanger worden opgegeven.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: '; +$PHPMAILER_LANG['signing'] = 'Signeerfout: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP code: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Aanvullende SMTP informatie: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Verbinding mislukt.'; +$PHPMAILER_LANG['smtp_detail'] = 'Detail: '; +$PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: '; +$PHPMAILER_LANG['variable_set'] = 'Kan de volgende variabele niet instellen of resetten: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php new file mode 100644 index 0000000..23caa71 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Erro do SMTP: Não foi possível realizar a autenticação.'; +$PHPMAILER_LANG['connect_host'] = 'Erro do SMTP: Não foi possível realizar ligação com o servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Erro do SMTP: Os dados foram rejeitados.'; +$PHPMAILER_LANG['empty_message'] = 'A mensagem no e-mail está vazia.'; +$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; +$PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; +$PHPMAILER_LANG['file_access'] = 'Não foi possível aceder o ficheiro: '; +$PHPMAILER_LANG['file_open'] = 'Abertura do ficheiro: Não foi possível abrir o ficheiro: '; +$PHPMAILER_LANG['from_failed'] = 'Ocorreram falhas nos endereços dos seguintes remententes: '; +$PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Não foi enviado nenhum e-mail para o endereço de e-mail inválido: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; +$PHPMAILER_LANG['provide_address'] = 'Tem de fornecer pelo menos um endereço como destinatário do e-mail.'; +$PHPMAILER_LANG['recipients_failed'] = 'Erro do SMTP: O endereço do seguinte destinatário falhou: '; +$PHPMAILER_LANG['signing'] = 'Erro ao assinar: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; +$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensão em falta: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php new file mode 100644 index 0000000..5239865 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php @@ -0,0 +1,38 @@ + + * @author Lucas Guimarães + * @author Phelipe Alves + * @author Fabio Beneditto + * @author Geidson Benício Coelho + */ + +$PHPMAILER_LANG['authenticate'] = 'Erro de SMTP: Não foi possível autenticar.'; +$PHPMAILER_LANG['buggy_php'] = 'Sua versão do PHP é afetada por um bug que por resultar em messagens corrompidas. Para corrigir, mude para enviar usando SMTP, desative a opção mail.add_x_header em seu php.ini, mude para MacOS ou Linux, ou atualize seu PHP para versão 7.0.17+ ou 7.1.3+ '; +$PHPMAILER_LANG['connect_host'] = 'Erro de SMTP: Não foi possível conectar ao servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Erro de SMTP: Dados rejeitados.'; +$PHPMAILER_LANG['empty_message'] = 'Mensagem vazia'; +$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; +$PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensão não existe: '; +$PHPMAILER_LANG['file_access'] = 'Não foi possível acessar o arquivo: '; +$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: Não foi possível abrir o arquivo: '; +$PHPMAILER_LANG['from_failed'] = 'Os seguintes remetentes falharam: '; +$PHPMAILER_LANG['instantiate'] = 'Não foi possível instanciar a função mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Endereço de e-mail inválido: '; +$PHPMAILER_LANG['invalid_header'] = 'Nome ou valor de cabeçalho inválido'; +$PHPMAILER_LANG['invalid_hostentry'] = 'hostentry inválido: '; +$PHPMAILER_LANG['invalid_host'] = 'host inválido: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; +$PHPMAILER_LANG['provide_address'] = 'Você deve informar pelo menos um destinatário.'; +$PHPMAILER_LANG['recipients_failed'] = 'Erro de SMTP: Os seguintes destinatários falharam: '; +$PHPMAILER_LANG['signing'] = 'Erro de Assinatura: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; +$PHPMAILER_LANG['smtp_code'] = 'Código do servidor SMTP: '; +$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Informações adicionais do servidor SMTP: '; +$PHPMAILER_LANG['smtp_detail'] = 'Detalhes do servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php new file mode 100644 index 0000000..45bef91 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php @@ -0,0 +1,33 @@ + + * @author Foster Snowhill + */ + +$PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: ошибка авторизации.'; +$PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к SMTP-серверу.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.'; +$PHPMAILER_LANG['encoding'] = 'Неизвестная кодировка: '; +$PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: '; +$PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: '; +$PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удаётся открыть файл: '; +$PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: '; +$PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail().'; +$PHPMAILER_LANG['provide_address'] = 'Пожалуйста, введите хотя бы один email-адрес получателя.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' — почтовый сервер не поддерживается.'; +$PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: не удалась отправка таким адресатам: '; +$PHPMAILER_LANG['empty_message'] = 'Пустое сообщение'; +$PHPMAILER_LANG['invalid_address'] = 'Не отправлено из-за неправильного формата email-адреса: '; +$PHPMAILER_LANG['signing'] = 'Ошибка подписи: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ошибка соединения с SMTP-сервером'; +$PHPMAILER_LANG['smtp_error'] = 'Ошибка SMTP-сервера: '; +$PHPMAILER_LANG['variable_set'] = 'Невозможно установить или сбросить переменную: '; +$PHPMAILER_LANG['extension_missing'] = 'Расширение отсутствует: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php new file mode 100644 index 0000000..028f5bc --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php @@ -0,0 +1,30 @@ + + * @author Peter Orlický + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Chyba autentifikácie.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Nebolo možné nadviazať spojenie so SMTP serverom.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dáta neboli prijaté'; +$PHPMAILER_LANG['empty_message'] = 'Prázdne telo správy.'; +$PHPMAILER_LANG['encoding'] = 'Neznáme kódovanie: '; +$PHPMAILER_LANG['execute'] = 'Nedá sa vykonať: '; +$PHPMAILER_LANG['file_access'] = 'Súbor nebol nájdený: '; +$PHPMAILER_LANG['file_open'] = 'File Error: Súbor sa otvoriť pre čítanie: '; +$PHPMAILER_LANG['from_failed'] = 'Následujúca adresa From je nesprávna: '; +$PHPMAILER_LANG['instantiate'] = 'Nedá sa vytvoriť inštancia emailovej funkcie.'; +$PHPMAILER_LANG['invalid_address'] = 'Neodoslané, emailová adresa je nesprávna: '; +$PHPMAILER_LANG['invalid_hostentry'] = 'Záznam hostiteľa je nesprávny: '; +$PHPMAILER_LANG['invalid_host'] = 'Hostiteľ je nesprávny: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' emailový klient nieje podporovaný.'; +$PHPMAILER_LANG['provide_address'] = 'Musíte zadať aspoň jednu emailovú adresu príjemcu.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Adresy príjemcov niesu správne '; +$PHPMAILER_LANG['signing'] = 'Chyba prihlasovania: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zlyhalo.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP chyba serveru: '; +$PHPMAILER_LANG['variable_set'] = 'Nemožno nastaviť alebo resetovať premennú: '; +$PHPMAILER_LANG['extension_missing'] = 'Chýba rozšírenie: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php new file mode 100644 index 0000000..3e00c25 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php @@ -0,0 +1,36 @@ + + * @author Filip Š + * @author Blaž Oražem + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP napaka: Avtentikacija ni uspela.'; +$PHPMAILER_LANG['buggy_php'] = 'Na vašo PHP različico vpliva napaka, ki lahko povzroči poškodovana sporočila. Če želite težavo odpraviti, preklopite na pošiljanje prek SMTP, onemogočite možnost mail.add_x_header v vaši php.ini datoteki, preklopite na MacOS ali Linux, ali nadgradite vašo PHP zaličico na 7.0.17+ ali 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP napaka: Vzpostavljanje povezave s SMTP gostiteljem ni uspelo.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP napaka: Strežnik zavrača podatke.'; +$PHPMAILER_LANG['empty_message'] = 'E-poštno sporočilo nima vsebine.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznan tip kodiranja: '; +$PHPMAILER_LANG['execute'] = 'Operacija ni uspela: '; +$PHPMAILER_LANG['extension_missing'] = 'Manjkajoča razširitev: '; +$PHPMAILER_LANG['file_access'] = 'Nimam dostopa do datoteke: '; +$PHPMAILER_LANG['file_open'] = 'Ne morem odpreti datoteke: '; +$PHPMAILER_LANG['from_failed'] = 'Neveljaven e-naslov pošiljatelja: '; +$PHPMAILER_LANG['instantiate'] = 'Ne morem inicializirati mail funkcije.'; +$PHPMAILER_LANG['invalid_address'] = 'E-poštno sporočilo ni bilo poslano. E-naslov je neveljaven: '; +$PHPMAILER_LANG['invalid_header'] = 'Neveljavno ime ali vrednost glave'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Neveljaven vnos gostitelja: '; +$PHPMAILER_LANG['invalid_host'] = 'Neveljaven gostitelj: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer ni podprt.'; +$PHPMAILER_LANG['provide_address'] = 'Prosimo, vnesite vsaj enega naslovnika.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP napaka: Sledeči naslovniki so neveljavni: '; +$PHPMAILER_LANG['signing'] = 'Napaka pri podpisovanju: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP koda: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Dodatne informacije o SMTP: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ne morem vzpostaviti povezave s SMTP strežnikom.'; +$PHPMAILER_LANG['smtp_detail'] = 'Podrobnosti: '; +$PHPMAILER_LANG['smtp_error'] = 'Napaka SMTP strežnika: '; +$PHPMAILER_LANG['variable_set'] = 'Ne morem nastaviti oz. ponastaviti spremenljivke: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php new file mode 100644 index 0000000..0b5280f --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php @@ -0,0 +1,28 @@ + + * @author Miloš Milanović + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: аутентификација није успела.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: повезивање са SMTP сервером није успело.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: подаци нису прихваћени.'; +$PHPMAILER_LANG['empty_message'] = 'Садржај поруке је празан.'; +$PHPMAILER_LANG['encoding'] = 'Непознато кодирање: '; +$PHPMAILER_LANG['execute'] = 'Није могуће извршити наредбу: '; +$PHPMAILER_LANG['file_access'] = 'Није могуће приступити датотеци: '; +$PHPMAILER_LANG['file_open'] = 'Није могуће отворити датотеку: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP грешка: слање са следећих адреса није успело: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: слање на следеће адресе није успело: '; +$PHPMAILER_LANG['instantiate'] = 'Није могуће покренути mail функцију.'; +$PHPMAILER_LANG['invalid_address'] = 'Порука није послата. Неисправна адреса: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' мејлер није подржан.'; +$PHPMAILER_LANG['provide_address'] = 'Дефинишите бар једну адресу примаоца.'; +$PHPMAILER_LANG['signing'] = 'Грешка приликом пријаве: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Повезивање са SMTP сервером није успело.'; +$PHPMAILER_LANG['smtp_error'] = 'Грешка SMTP сервера: '; +$PHPMAILER_LANG['variable_set'] = 'Није могуће задати нити ресетовати променљиву: '; +$PHPMAILER_LANG['extension_missing'] = 'Недостаје проширење: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php new file mode 100644 index 0000000..6213832 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php @@ -0,0 +1,28 @@ + + * @author Miloš Milanović + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP greška: autentifikacija nije uspela.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP greška: povezivanje sa SMTP serverom nije uspelo.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP greška: podaci nisu prihvaćeni.'; +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznato kodiranje: '; +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP greška: slanje sa sledećih adresa nije uspelo: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP greška: slanje na sledeće adrese nije uspelo: '; +$PHPMAILER_LANG['instantiate'] = 'Nije moguće pokrenuti mail funkciju.'; +$PHPMAILER_LANG['invalid_address'] = 'Poruka nije poslata. Neispravna adresa: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' majler nije podržan.'; +$PHPMAILER_LANG['provide_address'] = 'Definišite bar jednu adresu primaoca.'; +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Povezivanje sa SMTP serverom nije uspelo.'; +$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP servera: '; +$PHPMAILER_LANG['variable_set'] = 'Nije moguće zadati niti resetovati promenljivu: '; +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php new file mode 100644 index 0000000..9872c19 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.'; +//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; +$PHPMAILER_LANG['encoding'] = 'Okänt encode-format: '; +$PHPMAILER_LANG['execute'] = 'Kunde inte köra: '; +$PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: '; +$PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: '; +$PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: '; +$PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.'; +$PHPMAILER_LANG['invalid_address'] = 'Felaktig adress: '; +$PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: '; +$PHPMAILER_LANG['signing'] = 'Signeringsfel: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() misslyckades.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP serverfel: '; +$PHPMAILER_LANG['variable_set'] = 'Kunde inte definiera eller återställa variabel: '; +$PHPMAILER_LANG['extension_missing'] = 'Tillägg ej tillgängligt: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php new file mode 100644 index 0000000..d15bed1 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php @@ -0,0 +1,28 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Hindi mapatotohanan.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Hindi makakonekta sa SMTP host.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Ang datos ay hindi naitanggap.'; +$PHPMAILER_LANG['empty_message'] = 'Walang laman ang mensahe'; +$PHPMAILER_LANG['encoding'] = 'Hindi alam ang encoding: '; +$PHPMAILER_LANG['execute'] = 'Hindi maisasagawa: '; +$PHPMAILER_LANG['file_access'] = 'Hindi ma-access ang file: '; +$PHPMAILER_LANG['file_open'] = 'File Error: Hindi mabuksan ang file: '; +$PHPMAILER_LANG['from_failed'] = 'Ang sumusunod na address ay nabigo: '; +$PHPMAILER_LANG['instantiate'] = 'Hindi maisimulan ang instance ng mail function.'; +$PHPMAILER_LANG['invalid_address'] = 'Hindi wasto ang address na naibigay: '; +$PHPMAILER_LANG['mailer_not_supported'] = 'Ang mailer ay hindi suportado.'; +$PHPMAILER_LANG['provide_address'] = 'Kailangan mong magbigay ng kahit isang email address na tatanggap.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Ang mga sumusunod na tatanggap ay nabigo: '; +$PHPMAILER_LANG['signing'] = 'Hindi ma-sign: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ang SMTP connect() ay nabigo.'; +$PHPMAILER_LANG['smtp_error'] = 'Ang server ng SMTP ay nabigo: '; +$PHPMAILER_LANG['variable_set'] = 'Hindi matatakda o ma-reset ang mga variables: '; +$PHPMAILER_LANG['extension_missing'] = 'Nawawala ang extension: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php new file mode 100644 index 0000000..f938f80 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php @@ -0,0 +1,31 @@ + + * @fixed by Boris Yurchenko + */ + +$PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.'; +$PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до SMTP-серверу.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийнято.'; +$PHPMAILER_LANG['encoding'] = 'Невідоме кодування: '; +$PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: '; +$PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: '; +$PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: '; +$PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: '; +$PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail().'; +$PHPMAILER_LANG['provide_address'] = 'Будь ласка, введіть хоча б одну email-адресу отримувача.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.'; +$PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: не вдалося відправлення для таких отримувачів: '; +$PHPMAILER_LANG['empty_message'] = 'Пусте повідомлення'; +$PHPMAILER_LANG['invalid_address'] = 'Не відправлено через неправильний формат email-адреси: '; +$PHPMAILER_LANG['signing'] = 'Помилка підпису: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання з SMTP-сервером'; +$PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: '; +$PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або скинути змінну: '; +$PHPMAILER_LANG['extension_missing'] = 'Розширення відсутнє: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php new file mode 100644 index 0000000..d65576e --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.'; +$PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.'; +$PHPMAILER_LANG['empty_message'] = 'Không có nội dung'; +$PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: '; +$PHPMAILER_LANG['execute'] = 'Không thực hiện được: '; +$PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin '; +$PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: '; +$PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: '; +$PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.'; +$PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.'; +$PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.'; +$PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: '; +$PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP'; +$PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp '; +$PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php new file mode 100644 index 0000000..35e4e70 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php @@ -0,0 +1,29 @@ + + * @author Peter Dave Hello <@PeterDaveHello/> + * @author Jason Chiang + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。'; +$PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。'; +$PHPMAILER_LANG['empty_message'] = '郵件內容為空'; +$PHPMAILER_LANG['encoding'] = '未知編碼: '; +$PHPMAILER_LANG['execute'] = '無法執行:'; +$PHPMAILER_LANG['file_access'] = '無法存取檔案:'; +$PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:'; +$PHPMAILER_LANG['from_failed'] = '發送地址錯誤:'; +$PHPMAILER_LANG['instantiate'] = '未知函數呼叫。'; +$PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: '; +$PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。'; +$PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:'; +$PHPMAILER_LANG['signing'] = '電子簽章錯誤: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: '; +$PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: '; +$PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: '; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php new file mode 100644 index 0000000..728a499 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php @@ -0,0 +1,29 @@ + + * @author young + * @author Teddysun + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。'; +$PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。'; +$PHPMAILER_LANG['empty_message'] = '邮件正文为空。'; +$PHPMAILER_LANG['encoding'] = '未知编码:'; +$PHPMAILER_LANG['execute'] = '无法执行:'; +$PHPMAILER_LANG['file_access'] = '无法访问文件:'; +$PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:'; +$PHPMAILER_LANG['from_failed'] = '发送地址错误:'; +$PHPMAILER_LANG['instantiate'] = '未知函数调用。'; +$PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:'; +$PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。'; +$PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:'; +$PHPMAILER_LANG['signing'] = '登录失败:'; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP服务器连接失败。'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP服务器出错:'; +$PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:'; +$PHPMAILER_LANG['extension_missing'] = '丢失模块 Extension:'; diff --git a/phpTest_20/vendor/phpmailer/phpmailer/src/Exception.php b/phpTest_20/vendor/phpmailer/phpmailer/src/Exception.php new file mode 100644 index 0000000..52eaf95 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/src/Exception.php @@ -0,0 +1,40 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +/** + * PHPMailer exception handler. + * + * @author Marcus Bointon + */ +class Exception extends \Exception +{ + /** + * Prettify error message output. + * + * @return string + */ + public function errorMessage() + { + return '' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "
\n"; + } +} diff --git a/phpTest_20/vendor/phpmailer/phpmailer/src/OAuth.php b/phpTest_20/vendor/phpmailer/phpmailer/src/OAuth.php new file mode 100644 index 0000000..c1d5b77 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/src/OAuth.php @@ -0,0 +1,139 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +use League\OAuth2\Client\Grant\RefreshToken; +use League\OAuth2\Client\Provider\AbstractProvider; +use League\OAuth2\Client\Token\AccessToken; + +/** + * OAuth - OAuth2 authentication wrapper class. + * Uses the oauth2-client package from the League of Extraordinary Packages. + * + * @see http://oauth2-client.thephpleague.com + * + * @author Marcus Bointon (Synchro/coolbru) + */ +class OAuth implements OAuthTokenProvider +{ + /** + * An instance of the League OAuth Client Provider. + * + * @var AbstractProvider + */ + protected $provider; + + /** + * The current OAuth access token. + * + * @var AccessToken + */ + protected $oauthToken; + + /** + * The user's email address, usually used as the login ID + * and also the from address when sending email. + * + * @var string + */ + protected $oauthUserEmail = ''; + + /** + * The client secret, generated in the app definition of the service you're connecting to. + * + * @var string + */ + protected $oauthClientSecret = ''; + + /** + * The client ID, generated in the app definition of the service you're connecting to. + * + * @var string + */ + protected $oauthClientId = ''; + + /** + * The refresh token, used to obtain new AccessTokens. + * + * @var string + */ + protected $oauthRefreshToken = ''; + + /** + * OAuth constructor. + * + * @param array $options Associative array containing + * `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements + */ + public function __construct($options) + { + $this->provider = $options['provider']; + $this->oauthUserEmail = $options['userName']; + $this->oauthClientSecret = $options['clientSecret']; + $this->oauthClientId = $options['clientId']; + $this->oauthRefreshToken = $options['refreshToken']; + } + + /** + * Get a new RefreshToken. + * + * @return RefreshToken + */ + protected function getGrant() + { + return new RefreshToken(); + } + + /** + * Get a new AccessToken. + * + * @return AccessToken + */ + protected function getToken() + { + return $this->provider->getAccessToken( + $this->getGrant(), + ['refresh_token' => $this->oauthRefreshToken] + ); + } + + /** + * Generate a base64-encoded OAuth token. + * + * @return string + */ + public function getOauth64() + { + //Get a new token if it's not available or has expired + if (null === $this->oauthToken || $this->oauthToken->hasExpired()) { + $this->oauthToken = $this->getToken(); + } + + return base64_encode( + 'user=' . + $this->oauthUserEmail . + "\001auth=Bearer " . + $this->oauthToken . + "\001\001" + ); + } +} diff --git a/phpTest_20/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php b/phpTest_20/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php new file mode 100644 index 0000000..1155507 --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php @@ -0,0 +1,44 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +/** + * OAuthTokenProvider - OAuth2 token provider interface. + * Provides base64 encoded OAuth2 auth strings for SMTP authentication. + * + * @see OAuth + * @see SMTP::authenticate() + * + * @author Peter Scopes (pdscopes) + * @author Marcus Bointon (Synchro/coolbru) + */ +interface OAuthTokenProvider +{ + /** + * Generate a base64-encoded OAuth token ensuring that the access token has not expired. + * The string to be base 64 encoded should be in the form: + * "user=\001auth=Bearer \001\001" + * + * @return string + */ + public function getOauth64(); +} diff --git a/phpTest_20/vendor/phpmailer/phpmailer/src/PHPMailer.php b/phpTest_20/vendor/phpmailer/phpmailer/src/PHPMailer.php new file mode 100644 index 0000000..718216b --- /dev/null +++ b/phpTest_20/vendor/phpmailer/phpmailer/src/PHPMailer.php @@ -0,0 +1,5071 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +/** + * PHPMailer - PHP email creation and transport class. + * + * @author Marcus Bointon (Synchro/coolbru) + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + */ +class PHPMailer +{ + const CHARSET_ASCII = 'us-ascii'; + const CHARSET_ISO88591 = 'iso-8859-1'; + const CHARSET_UTF8 = 'utf-8'; + + const CONTENT_TYPE_PLAINTEXT = 'text/plain'; + const CONTENT_TYPE_TEXT_CALENDAR = 'text/calendar'; + const CONTENT_TYPE_TEXT_HTML = 'text/html'; + const CONTENT_TYPE_MULTIPART_ALTERNATIVE = 'multipart/alternative'; + const CONTENT_TYPE_MULTIPART_MIXED = 'multipart/mixed'; + const CONTENT_TYPE_MULTIPART_RELATED = 'multipart/related'; + + const ENCODING_7BIT = '7bit'; + const ENCODING_8BIT = '8bit'; + const ENCODING_BASE64 = 'base64'; + const ENCODING_BINARY = 'binary'; + const ENCODING_QUOTED_PRINTABLE = 'quoted-printable'; + + const ENCRYPTION_STARTTLS = 'tls'; + const ENCRYPTION_SMTPS = 'ssl'; + + const ICAL_METHOD_REQUEST = 'REQUEST'; + const ICAL_METHOD_PUBLISH = 'PUBLISH'; + const ICAL_METHOD_REPLY = 'REPLY'; + const ICAL_METHOD_ADD = 'ADD'; + const ICAL_METHOD_CANCEL = 'CANCEL'; + const ICAL_METHOD_REFRESH = 'REFRESH'; + const ICAL_METHOD_COUNTER = 'COUNTER'; + const ICAL_METHOD_DECLINECOUNTER = 'DECLINECOUNTER'; + + /** + * Email priority. + * Options: null (default), 1 = High, 3 = Normal, 5 = low. + * When null, the header is not set at all. + * + * @var int|null + */ + public $Priority; + + /** + * The character set of the message. + * + * @var string + */ + public $CharSet = self::CHARSET_ISO88591; + + /** + * The MIME Content-type of the message. + * + * @var string + */ + public $ContentType = self::CONTENT_TYPE_PLAINTEXT; + + /** + * The message encoding. + * Options: "8bit", "7bit", "binary", "base64", and "quoted-printable". + * + * @var string + */ + public $Encoding = self::ENCODING_8BIT; + + /** + * Holds the most recent mailer error message. + * + * @var string + */ + public $ErrorInfo = ''; + + /** + * The From email address for the message. + * + * @var string + */ + public $From = ''; + + /** + * The From name of the message. + * + * @var string + */ + public $FromName = ''; + + /** + * The envelope sender of the message. + * This will usually be turned into a Return-Path header by the receiver, + * and is the address that bounces will be sent to. + * If not empty, will be passed via `-f` to sendmail or as the 'MAIL FROM' value over SMTP. + * + * @var string + */ + public $Sender = ''; + + /** + * The Subject of the message. + * + * @var string + */ + public $Subject = ''; + + /** + * An HTML or plain text message body. + * If HTML then call isHTML(true). + * + * @var string + */ + public $Body = ''; + + /** + * The plain-text message body. + * This body can be read by mail clients that do not have HTML email + * capability such as mutt & Eudora. + * Clients that can read HTML will view the normal Body. + * + * @var string + */ + public $AltBody = ''; + + /** + * An iCal message part body. + * Only supported in simple alt or alt_inline message types + * To generate iCal event structures, use classes like EasyPeasyICS or iCalcreator. + * + * @see http://sprain.ch/blog/downloads/php-class-easypeasyics-create-ical-files-with-php/ + * @see http://kigkonsult.se/iCalcreator/ + * + * @var string + */ + public $Ical = ''; + + /** + * Value-array of "method" in Contenttype header "text/calendar" + * + * @var string[] + */ + protected static $IcalMethods = [ + self::ICAL_METHOD_REQUEST, + self::ICAL_METHOD_PUBLISH, + self::ICAL_METHOD_REPLY, + self::ICAL_METHOD_ADD, + self::ICAL_METHOD_CANCEL, + self::ICAL_METHOD_REFRESH, + self::ICAL_METHOD_COUNTER, + self::ICAL_METHOD_DECLINECOUNTER, + ]; + + /** + * The complete compiled MIME message body. + * + * @var string + */ + protected $MIMEBody = ''; + + /** + * The complete compiled MIME message headers. + * + * @var string + */ + protected $MIMEHeader = ''; + + /** + * Extra headers that createHeader() doesn't fold in. + * + * @var string + */ + protected $mailHeader = ''; + + /** + * Word-wrap the message body to this number of chars. + * Set to 0 to not wrap. A useful value here is 78, for RFC2822 section 2.1.1 compliance. + * + * @see static::STD_LINE_LENGTH + * + * @var int + */ + public $WordWrap = 0; + + /** + * Which method to use to send mail. + * Options: "mail", "sendmail", or "smtp". + * + * @var string + */ + public $Mailer = 'mail'; + + /** + * The path to the sendmail program. + * + * @var string + */ + public $Sendmail = '/usr/sbin/sendmail'; + + /** + * Whether mail() uses a fully sendmail-compatible MTA. + * One which supports sendmail's "-oi -f" options. + * + * @var bool + */ + public $UseSendmailOptions = true; + + /** + * The email address that a reading confirmation should be sent to, also known as read receipt. + * + * @var string + */ + public $ConfirmReadingTo = ''; + + /** + * The hostname to use in the Message-ID header and as default HELO string. + * If empty, PHPMailer attempts to find one with, in order, + * $_SERVER['SERVER_NAME'], gethostname(), php_uname('n'), or the value + * 'localhost.localdomain'. + * + * @see PHPMailer::$Helo + * + * @var string + */ + public $Hostname = ''; + + /** + * An ID to be used in the Message-ID header. + * If empty, a unique id will be generated. + * You can set your own, but it must be in the format "", + * as defined in RFC5322 section 3.6.4 or it will be ignored. + * + * @see https://tools.ietf.org/html/rfc5322#section-3.6.4 + * + * @var string + */ + public $MessageID = ''; + + /** + * The message Date to be used in the Date header. + * If empty, the current date will be added. + * + * @var string + */ + public $MessageDate = ''; + + /** + * SMTP hosts. + * Either a single hostname or multiple semicolon-delimited hostnames. + * You can also specify a different port + * for each host by using this format: [hostname:port] + * (e.g. "smtp1.example.com:25;smtp2.example.com"). + * You can also specify encryption type, for example: + * (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465"). + * Hosts will be tried in order. + * + * @var string + */ + public $Host = 'localhost'; + + /** + * The default SMTP server port. + * + * @var int + */ + public $Port = 25; + + /** + * The SMTP HELO/EHLO name used for the SMTP connection. + * Default is $Hostname. If $Hostname is empty, PHPMailer attempts to find + * one with the same method described above for $Hostname. + * + * @see PHPMailer::$Hostname + * + * @var string + */ + public $Helo = ''; + + /** + * What kind of encryption to use on the SMTP connection. + * Options: '', static::ENCRYPTION_STARTTLS, or static::ENCRYPTION_SMTPS. + * + * @var string + */ + public $SMTPSecure = ''; + + /** + * Whether to enable TLS encryption automatically if a server supports it, + * even if `SMTPSecure` is not set to 'tls'. + * Be aware that in PHP >= 5.6 this requires that the server's certificates are valid. + * + * @var bool + */ + public $SMTPAutoTLS = true; + + /** + * Whether to use SMTP authentication. + * Uses the Username and Password properties. + * + * @see PHPMailer::$Username + * @see PHPMailer::$Password + * + * @var bool + */ + public $SMTPAuth = false; + + /** + * Options array passed to stream_context_create when connecting via SMTP. + * + * @var array + */ + public $SMTPOptions = []; + + /** + * SMTP username. + * + * @var string + */ + public $Username = ''; + + /** + * SMTP password. + * + * @var string + */ + public $Password = ''; + + /** + * SMTP auth type. + * Options are CRAM-MD5, LOGIN, PLAIN, XOAUTH2, attempted in that order if not specified. + * + * @var string + */ + public $AuthType = ''; + + /** + * An implementation of the PHPMailer OAuthTokenProvider interface. + * + * @var OAuthTokenProvider + */ + protected $oauth; + + /** + * The SMTP server timeout in seconds. + * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2. + * + * @var int + */ + public $Timeout = 300; + + /** + * Comma separated list of DSN notifications + * 'NEVER' under no circumstances a DSN must be returned to the sender. + * If you use NEVER all other notifications will be ignored. + * 'SUCCESS' will notify you when your mail has arrived at its destination. + * 'FAILURE' will arrive if an error occurred during delivery. + * 'DELAY' will notify you if there is an unusual delay in delivery, but the actual + * delivery's outcome (success or failure) is not yet decided. + * + * @see https://tools.ietf.org/html/rfc3461 See section 4.1 for more information about NOTIFY + */ + public $dsn = ''; + + /** + * SMTP class debug output mode. + * Debug output level. + * Options: + * @see SMTP::DEBUG_OFF: No output + * @see SMTP::DEBUG_CLIENT: Client messages + * @see SMTP::DEBUG_SERVER: Client and server messages + * @see SMTP::DEBUG_CONNECTION: As SERVER plus connection status + * @see SMTP::DEBUG_LOWLEVEL: Noisy, low-level data output, rarely needed + * + * @see SMTP::$do_debug + * + * @var int + */ + public $SMTPDebug = 0; + + /** + * How to handle debug output. + * Options: + * * `echo` Output plain-text as-is, appropriate for CLI + * * `html` Output escaped, line breaks converted to `
`, appropriate for browser output + * * `error_log` Output to error log as configured in php.ini + * By default PHPMailer will use `echo` if run from a `cli` or `cli-server` SAPI, `html` otherwise. + * Alternatively, you can provide a callable expecting two params: a message string and the debug level: + * + * ```php + * $mail->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";}; + * ``` + * + * Alternatively, you can pass in an instance of a PSR-3 compatible logger, though only `debug` + * level output is used: + * + * ```php + * $mail->Debugoutput = new myPsr3Logger; + * ``` + * + * @see SMTP::$Debugoutput + * + * @var string|callable|\Psr\Log\LoggerInterface + */ + public $Debugoutput = 'echo'; + + /** + * Whether to keep the SMTP connection open after each message. + * If this is set to true then the connection will remain open after a send, + * and closing the connection will require an explicit call to smtpClose(). + * It's a good idea to use this if you are sending multiple messages as it reduces overhead. + * See the mailing list example for how to use it. + * + * @var bool + */ + public $SMTPKeepAlive = false; + + /** + * Whether to split multiple to addresses into multiple messages + * or send them all in one message. + * Only supported in `mail` and `sendmail` transports, not in SMTP. + * + * @var bool + * + * @deprecated 6.0.0 PHPMailer isn't a mailing list manager! + */ + public $SingleTo = false; + + /** + * Storage for addresses when SingleTo is enabled. + * + * @var array + */ + protected $SingleToArray = []; + + /** + * Whether to generate VERP addresses on send. + * Only applicable when sending via SMTP. + * + * @see https://en.wikipedia.org/wiki/Variable_envelope_return_path + * @see http://www.postfix.org/VERP_README.html Postfix VERP info + * + * @var bool + */ + public $do_verp = false; + + /** + * Whether to allow sending messages with an empty body. + * + * @var bool + */ + public $AllowEmpty = false; + + /** + * DKIM selector. + * + * @var string + */ + public $DKIM_selector = ''; + + /** + * DKIM Identity. + * Usually the email address used as the source of the email. + * + * @var string + */ + public $DKIM_identity = ''; + + /** + * DKIM passphrase. + * Used if your key is encrypted. + * + * @var string + */ + public $DKIM_passphrase = ''; + + /** + * DKIM signing domain name. + * + * @example 'example.com' + * + * @var string + */ + public $DKIM_domain = ''; + + /** + * DKIM Copy header field values for diagnostic use. + * + * @var bool + */ + public $DKIM_copyHeaderFields = true; + + /** + * DKIM Extra signing headers. + * + * @example ['List-Unsubscribe', 'List-Help'] + * + * @var array + */ + public $DKIM_extraHeaders = []; + + /** + * DKIM private key file path. + * + * @var string + */ + public $DKIM_private = ''; + + /** + * DKIM private key string. + * + * If set, takes precedence over `$DKIM_private`. + * + * @var string + */ + public $DKIM_private_string = ''; + + /** + * Callback Action function name. + * + * The function that handles the result of the send email action. + * It is called out by send() for each email sent. + * + * Value can be any php callable: http://www.php.net/is_callable + * + * Parameters: + * bool $result result of the send action + * array $to email addresses of the recipients + * array $cc cc email addresses + * array $bcc bcc email addresses + * string $subject the subject + * string $body the email body + * string $from email address of sender + * string $extra extra information of possible use + * "smtp_transaction_id' => last smtp transaction id + * + * @var string + */ + public $action_function = ''; + + /** + * What to put in the X-Mailer header. + * Options: An empty string for PHPMailer default, whitespace/null for none, or a string to use. + * + * @var string|null + */ + public $XMailer = ''; + + /** + * Which validator to use by default when validating email addresses. + * May be a callable to inject your own validator, but there are several built-in validators. + * The default validator uses PHP's FILTER_VALIDATE_EMAIL filter_var option. + * + * @see PHPMailer::validateAddress() + * + * @var string|callable + */ + public static $validator = 'php'; + + /** + * An instance of the SMTP sender class. + * + * @var SMTP + */ + protected $smtp; + + /** + * The array of 'to' names and addresses. + * + * @var array + */ + protected $to = []; + + /** + * The array of 'cc' names and addresses. + * + * @var array + */ + protected $cc = []; + + /** + * The array of 'bcc' names and addresses. + * + * @var array + */ + protected $bcc = []; + + /** + * The array of reply-to names and addresses. + * + * @var array + */ + protected $ReplyTo = []; + + /** + * An array of all kinds of addresses. + * Includes all of $to, $cc, $bcc. + * + * @see PHPMailer::$to + * @see PHPMailer::$cc + * @see PHPMailer::$bcc + * + * @var array + */ + protected $all_recipients = []; + + /** + * An array of names and addresses queued for validation. + * In send(), valid and non duplicate entries are moved to $all_recipients + * and one of $to, $cc, or $bcc. + * This array is used only for addresses with IDN. + * + * @see PHPMailer::$to + * @see PHPMailer::$cc + * @see PHPMailer::$bcc + * @see PHPMailer::$all_recipients + * + * @var array + */ + protected $RecipientsQueue = []; + + /** + * An array of reply-to names and addresses queued for validation. + * In send(), valid and non duplicate entries are moved to $ReplyTo. + * This array is used only for addresses with IDN. + * + * @see PHPMailer::$ReplyTo + * + * @var array + */ + protected $ReplyToQueue = []; + + /** + * The array of attachments. + * + * @var array + */ + protected $attachment = []; + + /** + * The array of custom headers. + * + * @var array + */ + protected $CustomHeader = []; + + /** + * The most recent Message-ID (including angular brackets). + * + * @var string + */ + protected $lastMessageID = ''; + + /** + * The message's MIME type. + * + * @var string + */ + protected $message_type = ''; + + /** + * The array of MIME boundary strings. + * + * @var array + */ + protected $boundary = []; + + /** + * The array of available text strings for the current language. + * + * @var array + */ + protected $language = []; + + /** + * The number of errors encountered. + * + * @var int + */ + protected $error_count = 0; + + /** + * The S/MIME certificate file path. + * + * @var string + */ + protected $sign_cert_file = ''; + + /** + * The S/MIME key file path. + * + * @var string + */ + protected $sign_key_file = ''; + + /** + * The optional S/MIME extra certificates ("CA Chain") file path. + * + * @var string + */ + protected $sign_extracerts_file = ''; + + /** + * The S/MIME password for the key. + * Used only if the key is encrypted. + * + * @var string + */ + protected $sign_key_pass = ''; + + /** + * Whether to throw exceptions for errors. + * + * @var bool + */ + protected $exceptions = false; + + /** + * Unique ID used for message ID and boundaries. + * + * @var string + */ + protected $uniqueid = ''; + + /** + * The PHPMailer Version number. + * + * @var string + */ + const VERSION = '6.6.0'; + + /** + * Error severity: message only, continue processing. + * + * @var int + */ + const STOP_MESSAGE = 0; + + /** + * Error severity: message, likely ok to continue processing. + * + * @var int + */ + const STOP_CONTINUE = 1; + + /** + * Error severity: message, plus full stop, critical error reached. + * + * @var int + */ + const STOP_CRITICAL = 2; + + /** + * The SMTP standard CRLF line break. + * If you want to change line break format, change static::$LE, not this. + */ + const CRLF = "\r\n"; + + /** + * "Folding White Space" a white space string used for line folding. + */ + const FWS = ' '; + + /** + * SMTP RFC standard line ending; Carriage Return, Line Feed. + * + * @var string + */ + protected static $LE = self::CRLF; + + /** + * The maximum line length supported by mail(). + * + * Background: mail() will sometimes corrupt messages + * with headers headers longer than 65 chars, see #818. + * + * @var int + */ + const MAIL_MAX_LINE_LENGTH = 63; + + /** + * The maximum line length allowed by RFC 2822 section 2.1.1. + * + * @var int + */ + const MAX_LINE_LENGTH = 998; + + /** + * The lower maximum line length allowed by RFC 2822 section 2.1.1. + * This length does NOT include the line break + * 76 means that lines will be 77 or 78 chars depending on whether + * the line break format is LF or CRLF; both are valid. + * + * @var int + */ + const STD_LINE_LENGTH = 76; + + /** + * Constructor. + * + * @param bool $exceptions Should we throw external exceptions? + */ + public function __construct($exceptions = null) + { + if (null !== $exceptions) { + $this->exceptions = (bool) $exceptions; + } + //Pick an appropriate debug output format automatically + $this->Debugoutput = (strpos(PHP_SAPI, 'cli') !== false ? 'echo' : 'html'); + } + + /** + * Destructor. + */ + public function __destruct() + { + //Close any open SMTP connection nicely + $this->smtpClose(); + } + + /** + * Call mail() in a safe_mode-aware fashion. + * Also, unless sendmail_path points to sendmail (or something that + * claims to be sendmail), don't pass params (not a perfect fix, + * but it will do). + * + * @param string $to To + * @param string $subject Subject + * @param string $body Message Body + * @param string $header Additional Header(s) + * @param string|null $params Params + * + * @return bool + */ + private function mailPassthru($to, $subject, $body, $header, $params) + { + //Check overloading of mail function to avoid double-encoding + if (ini_get('mbstring.func_overload') & 1) { + $subject = $this->secureHeader($subject); + } else { + $subject = $this->encodeHeader($this->secureHeader($subject)); + } + //Calling mail() with null params breaks + $this->edebug('Sending with mail()'); + $this->edebug('Sendmail path: ' . ini_get('sendmail_path')); + $this->edebug("Envelope sender: {$this->Sender}"); + $this->edebug("To: {$to}"); + $this->edebug("Subject: {$subject}"); + $this->edebug("Headers: {$header}"); + if (!$this->UseSendmailOptions || null === $params) { + $result = @mail($to, $subject, $body, $header); + } else { + $this->edebug("Additional params: {$params}"); + $result = @mail($to, $subject, $body, $header, $params); + } + $this->edebug('Result: ' . ($result ? 'true' : 'false')); + return $result; + } + + /** + * Output debugging info via a user-defined method. + * Only generates output if debug output is enabled. + * + * @see PHPMailer::$Debugoutput + * @see PHPMailer::$SMTPDebug + * + * @param string $str + */ + protected function edebug($str) + { + if ($this->SMTPDebug <= 0) { + return; + } + //Is this a PSR-3 logger? + if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) { + $this->Debugoutput->debug($str); + + return; + } + //Avoid clash with built-in function names + if (is_callable($this->Debugoutput) && !in_array($this->Debugoutput, ['error_log', 'html', 'echo'])) { + call_user_func($this->Debugoutput, $str, $this->SMTPDebug); + + return; + } + switch ($this->Debugoutput) { + case 'error_log': + //Don't output, just log + /** @noinspection ForgottenDebugOutputInspection */ + error_log($str); + break; + case 'html': + //Cleans up output a bit for a better looking, HTML-safe output + echo htmlentities( + preg_replace('/[\r\n]+/', '', $str), + ENT_QUOTES, + 'UTF-8' + ), "
\n"; + break; + case 'echo': + default: + //Normalize line breaks + $str = preg_replace('/\r\n|\r/m', "\n", $str); + echo gmdate('Y-m-d H:i:s'), + "\t", + //Trim trailing space + trim( + //Indent for readability, except for trailing break + str_replace( + "\n", + "\n \t ", + trim($str) + ) + ), + "\n"; + } + } + + /** + * Sets message type to HTML or plain. + * + * @param bool $isHtml True for HTML mode + */ + public function isHTML($isHtml = true) + { + if ($isHtml) { + $this->ContentType = static::CONTENT_TYPE_TEXT_HTML; + } else { + $this->ContentType = static::CONTENT_TYPE_PLAINTEXT; + } + } + + /** + * Send messages using SMTP. + */ + public function isSMTP() + { + $this->Mailer = 'smtp'; + } + + /** + * Send messages using PHP's mail() function. + */ + public function isMail() + { + $this->Mailer = 'mail'; + } + + /** + * Send messages using $Sendmail. + */ + public function isSendmail() + { + $ini_sendmail_path = ini_get('sendmail_path'); + + if (false === stripos($ini_sendmail_path, 'sendmail')) { + $this->Sendmail = '/usr/sbin/sendmail'; + } else { + $this->Sendmail = $ini_sendmail_path; + } + $this->Mailer = 'sendmail'; + } + + /** + * Send messages using qmail. + */ + public function isQmail() + { + $ini_sendmail_path = ini_get('sendmail_path'); + + if (false === stripos($ini_sendmail_path, 'qmail')) { + $this->Sendmail = '/var/qmail/bin/qmail-inject'; + } else { + $this->Sendmail = $ini_sendmail_path; + } + $this->Mailer = 'qmail'; + } + + /** + * Add a "To" address. + * + * @param string $address The email address to send to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addAddress($address, $name = '') + { + return $this->addOrEnqueueAnAddress('to', $address, $name); + } + + /** + * Add a "CC" address. + * + * @param string $address The email address to send to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addCC($address, $name = '') + { + return $this->addOrEnqueueAnAddress('cc', $address, $name); + } + + /** + * Add a "BCC" address. + * + * @param string $address The email address to send to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addBCC($address, $name = '') + { + return $this->addOrEnqueueAnAddress('bcc', $address, $name); + } + + /** + * Add a "Reply-To" address. + * + * @param string $address The email address to reply to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addReplyTo($address, $name = '') + { + return $this->addOrEnqueueAnAddress('Reply-To', $address, $name); + } + + /** + * Add an address to one of the recipient arrays or to the ReplyTo array. Because PHPMailer + * can't validate addresses with an IDN without knowing the PHPMailer::$CharSet (that can still + * be modified after calling this function), addition of such addresses is delayed until send(). + * Addresses that have been added already return false, but do not throw exceptions. + * + * @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo' + * @param string $address The email address to send, resp. to reply to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + protected function addOrEnqueueAnAddress($kind, $address, $name) + { + $address = trim($address); + $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim + $pos = strrpos($address, '@'); + if (false === $pos) { + //At-sign is missing. + $error_message = sprintf( + '%s (%s): %s', + $this->lang('invalid_address'), + $kind, + $address + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + $params = [$kind, $address, $name]; + //Enqueue addresses with IDN until we know the PHPMailer::$CharSet. + if (static::idnSupported() && $this->has8bitChars(substr($address, ++$pos))) { + if ('Reply-To' !== $kind) { + if (!array_key_exists($address, $this->RecipientsQueue)) { + $this->RecipientsQueue[$address] = $params; + + return true; + } + } elseif (!array_key_exists($address, $this->ReplyToQueue)) { + $this->ReplyToQueue[$address] = $params; + + return true; + } + + return false; + } + + //Immediately add standard addresses without IDN. + return call_user_func_array([$this, 'addAnAddress'], $params); + } + + /** + * Add an address to one of the recipient arrays or to the ReplyTo array. + * Addresses that have been added already return false, but do not throw exceptions. + * + * @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo' + * @param string $address The email address to send, resp. to reply to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + protected function addAnAddress($kind, $address, $name = '') + { + if (!in_array($kind, ['to', 'cc', 'bcc', 'Reply-To'])) { + $error_message = sprintf( + '%s: %s', + $this->lang('Invalid recipient kind'), + $kind + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + if (!static::validateAddress($address)) { + $error_message = sprintf( + '%s (%s): %s', + $this->lang('invalid_address'), + $kind, + $address + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + if ('Reply-To' !== $kind) { + if (!array_key_exists(strtolower($address), $this->all_recipients)) { + $this->{$kind}[] = [$address, $name]; + $this->all_recipients[strtolower($address)] = true; + + return true; + } + } elseif (!array_key_exists(strtolower($address), $this->ReplyTo)) { + $this->ReplyTo[strtolower($address)] = [$address, $name]; + + return true; + } + + return false; + } + + /** + * Parse and validate a string containing one or more RFC822-style comma-separated email addresses + * of the form "display name
" into an array of name/address pairs. + * Uses the imap_rfc822_parse_adrlist function if the IMAP extension is available. + * Note that quotes in the name part are removed. + * + * @see http://www.andrew.cmu.edu/user/agreen1/testing/mrbs/web/Mail/RFC822.php A more careful implementation + * + * @param string $addrstr The address list string + * @param bool $useimap Whether to use the IMAP extension to parse the list + * @param string $charset The charset to use when decoding the address list string. + * + * @return array + */ + public static function parseAddresses($addrstr, $useimap = true, $charset = self::CHARSET_ISO88591) + { + $addresses = []; + if ($useimap && function_exists('imap_rfc822_parse_adrlist')) { + //Use this built-in parser if it's available + $list = imap_rfc822_parse_adrlist($addrstr, ''); + // Clear any potential IMAP errors to get rid of notices being thrown at end of script. + imap_errors(); + foreach ($list as $address) { + if ( + '.SYNTAX-ERROR.' !== $address->host && + static::validateAddress($address->mailbox . '@' . $address->host) + ) { + //Decode the name part if it's present and encoded + if ( + property_exists($address, 'personal') && + //Check for a Mbstring constant rather than using extension_loaded, which is sometimes disabled + defined('MB_CASE_UPPER') && + preg_match('/^=\?.*\?=$/s', $address->personal) + ) { + $origCharset = mb_internal_encoding(); + mb_internal_encoding($charset); + //Undo any RFC2047-encoded spaces-as-underscores + $address->personal = str_replace('_', '=20', $address->personal); + //Decode the name + $address->personal = mb_decode_mimeheader($address->personal); + mb_internal_encoding($origCharset); + } + + $addresses[] = [ + 'name' => (property_exists($address, 'personal') ? $address->personal : ''), + 'address' => $address->mailbox . '@' . $address->host, + ]; + } + } + } else { + //Use this simpler parser + $list = explode(',', $addrstr); + foreach ($list as $address) { + $address = trim($address); + //Is there a separate name part? + if (strpos($address, '<') === false) { + //No separate name, just use the whole thing + if (static::validateAddress($address)) { + $addresses[] = [ + 'name' => '', + 'address' => $address, + ]; + } + } else { + list($name, $email) = explode('<', $address); + $email = trim(str_replace('>', '', $email)); + $name = trim($name); + if (static::validateAddress($email)) { + //Check for a Mbstring constant rather than using extension_loaded, which is sometimes disabled + //If this name is encoded, decode it + if (defined('MB_CASE_UPPER') && preg_match('/^=\?.*\?=$/s', $name)) { + $origCharset = mb_internal_encoding(); + mb_internal_encoding($charset); + //Undo any RFC2047-encoded spaces-as-underscores + $name = str_replace('_', '=20', $name); + //Decode the name + $name = mb_decode_mimeheader($name); + mb_internal_encoding($origCharset); + } + $addresses[] = [ + //Remove any surrounding quotes and spaces from the name + 'name' => trim($name, '\'" '), + 'address' => $email, + ]; + } + } + } + } + + return $addresses; + } + + /** + * Set the From and FromName properties. + * + * @param string $address + * @param string $name + * @param bool $auto Whether to also set the Sender address, defaults to true + * + * @throws Exception + * + * @return bool + */ + public function setFrom($address, $name = '', $auto = true) + { + $address = trim($address); + $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim + //Don't validate now addresses with IDN. Will be done in send(). + $pos = strrpos($address, '@'); + if ( + (false === $pos) + || ((!$this->has8bitChars(substr($address, ++$pos)) || !static::idnSupported()) + && !static::validateAddress($address)) + ) { + $error_message = sprintf( + '%s (From): %s', + $this->lang('invalid_address'), + $address + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + $this->From = $address; + $this->FromName = $name; + if ($auto && empty($this->Sender)) { + $this->Sender = $address; + } + + return true; + } + + /** + * Return the Message-ID header of the last email. + * Technically this is the value from the last time the headers were created, + * but it's also the message ID of the last sent message except in + * pathological cases. + * + * @return string + */ + public function getLastMessageID() + { + return $this->lastMessageID; + } + + /** + * Check that a string looks like an email address. + * Validation patterns supported: + * * `auto` Pick best pattern automatically; + * * `pcre8` Use the squiloople.com pattern, requires PCRE > 8.0; + * * `pcre` Use old PCRE implementation; + * * `php` Use PHP built-in FILTER_VALIDATE_EMAIL; + * * `html5` Use the pattern given by the HTML5 spec for 'email' type form input elements. + * * `noregex` Don't use a regex: super fast, really dumb. + * Alternatively you may pass in a callable to inject your own validator, for example: + * + * ```php + * PHPMailer::validateAddress('user@example.com', function($address) { + * return (strpos($address, '@') !== false); + * }); + * ``` + * + * You can also set the PHPMailer::$validator static to a callable, allowing built-in methods to use your validator. + * + * @param string $address The email address to check + * @param string|callable $patternselect Which pattern to use + * + * @return bool + */ + public static function validateAddress($address, $patternselect = null) + { + if (null === $patternselect) { + $patternselect = static::$validator; + } + //Don't allow strings as callables, see SECURITY.md and CVE-2021-3603 + if (is_callable($patternselect) && !is_string($patternselect)) { + return call_user_func($patternselect, $address); + } + //Reject line breaks in addresses; it's valid RFC5322, but not RFC5321 + if (strpos($address, "\n") !== false || strpos($address, "\r") !== false) { + return false; + } + switch ($patternselect) { + case 'pcre': //Kept for BC + case 'pcre8': + /* + * A more complex and more permissive version of the RFC5322 regex on which FILTER_VALIDATE_EMAIL + * is based. + * In addition to the addresses allowed by filter_var, also permits: + * * dotless domains: `a@b` + * * comments: `1234 @ local(blah) .machine .example` + * * quoted elements: `'"test blah"@example.org'` + * * numeric TLDs: `a@b.123` + * * unbracketed IPv4 literals: `a@192.168.0.1` + * * IPv6 literals: 'first.last@[IPv6:a1::]' + * Not all of these will necessarily work for sending! + * + * @see http://squiloople.com/2009/12/20/email-address-validation/ + * @copyright 2009-2010 Michael Rushton + * Feel free to use and redistribute this code. But please keep this copyright notice. + */ + return (bool) preg_match( + '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)' . + '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)' . + '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)' . + '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*' . + '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)' . + '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}' . + '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:' . + '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}' . + '|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD', + $address + ); + case 'html5': + /* + * This is the pattern used in the HTML5 spec for validation of 'email' type form input elements. + * + * @see https://html.spec.whatwg.org/#e-mail-state-(type=email) + */ + return (bool) preg_match( + '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}' . + '[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/sD', + $address + ); + case 'php': + default: + return filter_var($address, FILTER_VALIDATE_EMAIL) !== false; + } + } + + /** + * Tells whether IDNs (Internationalized Domain Names) are supported or not. This requires the + * `intl` and `mbstring` PHP extensions. + * + * @return bool `true` if required functions for IDN support are present + */ + public static function idnSupported() + { + return function_exists('idn_to_ascii') && function_exists('mb_convert_encoding'); + } + + /** + * Converts IDN in given email address to its ASCII form, also known as punycode, if possible. + * Important: Address must be passed in same encoding as currently set in PHPMailer::$CharSet. + * This function silently returns unmodified address if: + * - No conversion is necessary (i.e. domain name is not an IDN, or is already in ASCII form) + * - Conversion to punycode is impossible (e.g. required PHP functions are not available) + * or fails for any reason (e.g. domain contains characters not allowed in an IDN). + * + * @see PHPMailer::$CharSet + * + * @param string $address The email address to convert + * + * @return string The encoded address in ASCII form + */ + public function punyencodeAddress($address) + { + //Verify we have required functions, CharSet, and at-sign. + $pos = strrpos($address, '@'); + if ( + !empty($this->CharSet) && + false !== $pos && + static::idnSupported() + ) { + $domain = substr($address, ++$pos); + //Verify CharSet string is a valid one, and domain properly encoded in this CharSet. + if ($this->has8bitChars($domain) && @mb_check_encoding($domain, $this->CharSet)) { + //Convert the domain from whatever charset it's in to UTF-8 + $domain = mb_convert_encoding($domain, self::CHARSET_UTF8, $this->CharSet); + //Ignore IDE complaints about this line - method signature changed in PHP 5.4 + $errorcode = 0; + if (defined('INTL_IDNA_VARIANT_UTS46')) { + //Use the current punycode standard (appeared in PHP 7.2) + $punycode = idn_to_ascii( + $domain, + \IDNA_DEFAULT | \IDNA_USE_STD3_RULES | \IDNA_CHECK_BIDI | + \IDNA_CHECK_CONTEXTJ | \IDNA_NONTRANSITIONAL_TO_ASCII, + \INTL_IDNA_VARIANT_UTS46 + ); + } elseif (defined('INTL_IDNA_VARIANT_2003')) { + //Fall back to this old, deprecated/removed encoding + $punycode = idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_2003); + } else { + //Fall back to a default we don't know about + $punycode = idn_to_ascii($domain, $errorcode); + } + if (false !== $punycode) { + return substr($address, 0, $pos) . $punycode; + } + } + } + + return $address; + } + + /** + * Create a message and send it. + * Uses the sending method specified by $Mailer. + * + * @throws Exception + * + * @return bool false on error - See the ErrorInfo property for details of the error + */ + public function send() + { + try { + if (!$this->preSend()) { + return false; + } + + return $this->postSend(); + } catch (Exception $exc) { + $this->mailHeader = ''; + $this->setError($exc->getMessage()); + if ($this->exceptions) { + throw $exc; + } + + return false; + } + } + + /** + * Prepare a message for sending. + * + * @throws Exception + * + * @return bool + */ + public function preSend() + { + if ( + 'smtp' === $this->Mailer + || ('mail' === $this->Mailer && (\PHP_VERSION_ID >= 80000 || stripos(PHP_OS, 'WIN') === 0)) + ) { + //SMTP mandates RFC-compliant line endings + //and it's also used with mail() on Windows + static::setLE(self::CRLF); + } else { + //Maintain backward compatibility with legacy Linux command line mailers + static::setLE(PHP_EOL); + } + //Check for buggy PHP versions that add a header with an incorrect line break + if ( + 'mail' === $this->Mailer + && ((\PHP_VERSION_ID >= 70000 && \PHP_VERSION_ID < 70017) + || (\PHP_VERSION_ID >= 70100 && \PHP_VERSION_ID < 70103)) + && ini_get('mail.add_x_header') === '1' + && stripos(PHP_OS, 'WIN') === 0 + ) { + trigger_error($this->lang('buggy_php'), E_USER_WARNING); + } + + try { + $this->error_count = 0; //Reset errors + $this->mailHeader = ''; + + //Dequeue recipient and Reply-To addresses with IDN + foreach (array_merge($this->RecipientsQueue, $this->ReplyToQueue) as $params) { + $params[1] = $this->punyencodeAddress($params[1]); + call_user_func_array([$this, 'addAnAddress'], $params); + } + if (count($this->to) + count($this->cc) + count($this->bcc) < 1) { + throw new Exception($this->lang('provide_address'), self::STOP_CRITICAL); + } + + //Validate From, Sender, and ConfirmReadingTo addresses + foreach (['From', 'Sender', 'ConfirmReadingTo'] as $address_kind) { + $this->$address_kind = trim($this->$address_kind); + if (empty($this->$address_kind)) { + continue; + } + $this->$address_kind = $this->punyencodeAddress($this->$address_kind); + if (!static::validateAddress($this->$address_kind)) { + $error_message = sprintf( + '%s (%s): %s', + $this->lang('invalid_address'), + $address_kind, + $this->$address_kind + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + } + + //Set whether the message is multipart/alternative + if ($this->alternativeExists()) { + $this->ContentType = static::CONTENT_TYPE_MULTIPART_ALTERNATIVE; + } + + $this->setMessageType(); + //Refuse to send an empty message unless we are specifically allowing it + if (!$this->AllowEmpty && empty($this->Body)) { + throw new Exception($this->lang('empty_message'), self::STOP_CRITICAL); + } + + //Trim subject consistently + $this->Subject = trim($this->Subject); + //Create body before headers in case body makes changes to headers (e.g. altering transfer encoding) + $this->MIMEHeader = ''; + $this->MIMEBody = $this->createBody(); + //createBody may have added some headers, so retain them + $tempheaders = $this->MIMEHeader; + $this->MIMEHeader = $this->createHeader(); + $this->MIMEHeader .= $tempheaders; + + //To capture the complete message when using mail(), create + //an extra header list which createHeader() doesn't fold in + if ('mail' === $this->Mailer) { + if (count($this->to) > 0) { + $this->mailHeader .= $this->addrAppend('To', $this->to); + } else { + $this->mailHeader .= $this->headerLine('To', 'undisclosed-recipients:;'); + } + $this->mailHeader .= $this->headerLine( + 'Subject', + $this->encodeHeader($this->secureHeader($this->Subject)) + ); + } + + //Sign with DKIM if enabled + if ( + !empty($this->DKIM_domain) + && !empty($this->DKIM_selector) + && (!empty($this->DKIM_private_string) + || (!empty($this->DKIM_private) + && static::isPermittedPath($this->DKIM_private) + && file_exists($this->DKIM_private) + ) + ) + ) { + $header_dkim = $this->DKIM_Add( + $this->MIMEHeader . $this->mailHeader, + $this->encodeHeader($this->secureHeader($this->Subject)), + $this->MIMEBody + ); + $this->MIMEHeader = static::stripTrailingWSP($this->MIMEHeader) . static::$LE . + static::normalizeBreaks($header_dkim) . static::$LE; + } + + return true; + } catch (Exception $exc) { + $this->setError($exc->getMessage()); + if ($this->exceptions) { + throw $exc; + } + + return false; + } + } + + /** + * Actually send a message via the selected mechanism. + * + * @throws Exception + * + * @return bool + */ + public function postSend() + { + try { + //Choose the mailer and send through it + switch ($this->Mailer) { + case 'sendmail': + case 'qmail': + return $this->sendmailSend($this->MIMEHeader, $this->MIMEBody); + case 'smtp': + return $this->smtpSend($this->MIMEHeader, $this->MIMEBody); + case 'mail': + return $this->mailSend($this->MIMEHeader, $this->MIMEBody); + default: + $sendMethod = $this->Mailer . 'Send'; + if (method_exists($this, $sendMethod)) { + return $this->$sendMethod($this->MIMEHeader, $this->MIMEBody); + } + + return $this->mailSend($this->MIMEHeader, $this->MIMEBody); + } + } catch (Exception $exc) { + if ($this->Mailer === 'smtp' && $this->SMTPKeepAlive == true) { + $this->smtp->reset(); + } + $this->setError($exc->getMessage()); + $this->edebug($exc->getMessage()); + if ($this->exceptions) { + throw $exc; + } + } + + return false; + } + + /** + * Send mail using the $Sendmail program. + * + * @see PHPMailer::$Sendmail + * + * @param string $header The message headers + * @param string $body The message body + * + * @throws Exception + * + * @return bool + */ + protected function sendmailSend($header, $body) + { + if ($this->Mailer === 'qmail') { + $this->edebug('Sending with qmail'); + } else { + $this->edebug('Sending with sendmail'); + } + $header = static::stripTrailingWSP($header) . static::$LE . static::$LE; + //This sets the SMTP envelope sender which gets turned into a return-path header by the receiver + //A space after `-f` is optional, but there is a long history of its presence + //causing problems, so we don't use one + //Exim docs: http://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_command_line.html + //Sendmail docs: http://www.sendmail.org/~ca/email/man/sendmail.html + //Qmail docs: http://www.qmail.org/man/man8/qmail-inject.html + //Example problem: https://www.drupal.org/node/1057954 + + //PHP 5.6 workaround + $sendmail_from_value = ini_get('sendmail_from'); + if (empty($this->Sender) && !empty($sendmail_from_value)) { + //PHP config has a sender address we can use + $this->Sender = ini_get('sendmail_from'); + } + //CVE-2016-10033, CVE-2016-10045: Don't pass -f if characters will be escaped. + if (!empty($this->Sender) && static::validateAddress($this->Sender) && self::isShellSafe($this->Sender)) { + if ($this->Mailer === 'qmail') { + $sendmailFmt = '%s -f%s'; + } else { + $sendmailFmt = '%s -oi -f%s -t'; + } + } else { + //allow sendmail to choose a default envelope sender. It may + //seem preferable to force it to use the From header as with + //SMTP, but that introduces new problems (see + //), and + //it has historically worked this way. + $sendmailFmt = '%s -oi -t'; + } + + $sendmail = sprintf($sendmailFmt, escapeshellcmd($this->Sendmail), $this->Sender); + $this->edebug('Sendmail path: ' . $this->Sendmail); + $this->edebug('Sendmail command: ' . $sendmail); + $this->edebug('Envelope sender: ' . $this->Sender); + $this->edebug("Headers: {$header}"); + + if ($this->SingleTo) { + foreach ($this->SingleToArray as $toAddr) { + $mail = @popen($sendmail, 'w'); + if (!$mail) { + throw new Exception($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + $this->edebug("To: {$toAddr}"); + fwrite($mail, 'To: ' . $toAddr . "\n"); + fwrite($mail, $header); + fwrite($mail, $body); + $result = pclose($mail); + $addrinfo = static::parseAddresses($toAddr, true, $this->CharSet); + $this->doCallback( + ($result === 0), + [[$addrinfo['address'], $addrinfo['name']]], + $this->cc, + $this->bcc, + $this->Subject, + $body, + $this->From, + [] + ); + $this->edebug("Result: " . ($result === 0 ? 'true' : 'false')); + if (0 !== $result) { + throw new Exception($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + } + } else { + $mail = @popen($sendmail, 'w'); + if (!$mail) { + throw new Exception($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + fwrite($mail, $header); + fwrite($mail, $body); + $result = pclose($mail); + $this->doCallback( + ($result === 0), + $this->to, + $this->cc, + $this->bcc, + $this->Subject, + $body, + $this->From, + [] + ); + $this->edebug("Result: " . ($result === 0 ? 'true' : 'false')); + if (0 !== $result) { + throw new Exception($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + } + + return true; + } + + /** + * Fix CVE-2016-10033 and CVE-2016-10045 by disallowing potentially unsafe shell characters. + * Note that escapeshellarg and escapeshellcmd are inadequate for our purposes, especially on Windows. + * + * @see https://github.com/PHPMailer/PHPMailer/issues/924 CVE-2016-10045 bug report + * + * @param string $string The string to be validated + * + * @return bool + */ + protected static function isShellSafe($string) + { + //It's not possible to use shell commands safely (which includes the mail() function) without escapeshellarg, + //but some hosting providers disable it, creating a security problem that we don't want to have to deal with, + //so we don't. + if (!function_exists('escapeshellarg') || !function_exists('escapeshellcmd')) { + return false; + } + + if ( + escapeshellcmd($string) !== $string + || !in_array(escapeshellarg($string), ["'$string'", "\"$string\""]) + ) { + return false; + } + + $length = strlen($string); + + for ($i = 0; $i < $length; ++$i) { + $c = $string[$i]; + + //All other characters have a special meaning in at least one common shell, including = and +. + //Full stop (.) has a special meaning in cmd.exe, but its impact should be negligible here. + //Note that this does permit non-Latin alphanumeric characters based on the current locale. + if (!ctype_alnum($c) && strpos('@_-.', $c) === false) { + return false; + } + } + + return true; + } + + /** + * Check whether a file path is of a permitted type. + * Used to reject URLs and phar files from functions that access local file paths, + * such as addAttachment. + * + * @param string $path A relative or absolute path to a file + * + * @return bool + */ + protected static function isPermittedPath($path) + { + //Matches scheme definition from https://tools.ietf.org/html/rfc3986#section-3.1 + return !preg_match('#^[a-z][a-z\d+.-]*://#i', $path); + } + + /** + * Check whether a file path is safe, accessible, and readable. + * + * @param string $path A relative or absolute path to a file + * + * @return bool + */ + protected static function fileIsAccessible($path) + { + if (!static::isPermittedPath($path)) { + return false; + } + $readable = file_exists($path); + //If not a UNC path (expected to start with \\), check read permission, see #2069 + if (strpos($path, '\\\\') !== 0) { + $readable = $readable && is_readable($path); + } + return $readable; + } + + /** + * Send mail using the PHP mail() function. + * + * @see http://www.php.net/manual/en/book.mail.php + * + * @param string $header The message headers + * @param string $body The message body + * + * @throws Exception + * + * @return bool + */ + protected function mailSend($header, $body) + { + $header = static::stripTrailingWSP($header) . static::$LE . static::$LE; + + $toArr = []; + foreach ($this->to as $toaddr) { + $toArr[] = $this->addrFormat($toaddr); + } + $to = implode(', ', $toArr); + + $params = null; + //This sets the SMTP envelope sender which gets turned into a return-path header by the receiver + //A space after `-f` is optional, but there is a long history of its presence + //causing problems, so we don't use one + //Exim docs: http://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_command_line.html + //Sendmail docs: http://www.sendmail.org/~ca/email/man/sendmail.html + //Qmail docs: http://www.qmail.org/man/man8/qmail-inject.html + //Example problem: https://www.drupal.org/node/1057954 + //CVE-2016-10033, CVE-2016-10045: Don't pass -f if characters will be escaped. + + //PHP 5.6 workaround + $sendmail_from_value = ini_get('sendmail_from'); + if (empty($this->Sender) && !empty($sendmail_from_value)) { + //PHP config has a sender address we can use + $this->Sender = ini_get('sendmail_from'); + } + if (!empty($this->Sender) && static::validateAddress($this->Sender)) { + if (self::isShellSafe($this->Sender)) { + $params = sprintf('-f%s', $this->Sender); + } + $old_from = ini_get('sendmail_from'); + ini_set('sendmail_from', $this->Sender); + } + $result = false; + if ($this->SingleTo && count($toArr) > 1) { + foreach ($toArr as $toAddr) { + $result = $this->mailPassthru($toAddr, $this->Subject, $body, $header, $params); + $addrinfo = static::parseAddresses($toAddr, true, $this->CharSet); + $this->doCallback( + $result, + [[$addrinfo['address'], $addrinfo['name']]], + $this->cc, + $this->bcc, + $this->Subject, + $body, + $this->From, + [] + ); + } + } else { + $result = $this->mailPassthru($to, $this->Subject, $body, $header, $params); + $this->doCallback($result, $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From, []); + } + if (isset($old_from)) { + ini_set('sendmail_from', $old_from); + } + if (!$result) { + throw new Exception($this->lang('instantiate'), self::STOP_CRITICAL); + } + + return true; + } + + /** + * Get an instance to use for SMTP operations. + * Override this function to load your own SMTP implementation, + * or set one with setSMTPInstance. + * + * @return SMTP + */ + public function getSMTPInstance() + { + if (!is_object($this->smtp)) { + $this->smtp = new SMTP(); + } + + return $this->smtp; + } + + /** + * Provide an instance to use for SMTP operations. + * + * @return SMTP + */ + public function setSMTPInstance(SMTP $smtp) + { + $this->smtp = $smtp; + + return $this->smtp; + } + + /** + * Send mail via SMTP. + * Returns false if there is a bad MAIL FROM, RCPT, or DATA input. + * + * @see PHPMailer::setSMTPInstance() to use a different class. + * + * @uses \PHPMailer\PHPMailer\SMTP + * + * @param string $header The message headers + * @param string $body The message body + * + * @throws Exception + * + * @return bool + */ + protected function smtpSend($header, $body) + { + $header = static::stripTrailingWSP($header) . static::$LE . static::$LE; + $bad_rcpt = []; + if (!$this->smtpConnect($this->SMTPOptions)) { + throw new Exception($this->lang('smtp_connect_failed'), self::STOP_CRITICAL); + } + //Sender already validated in preSend() + if ('' === $this->Sender) { + $smtp_from = $this->From; + } else { + $smtp_from = $this->Sender; + } + if (!$this->smtp->mail($smtp_from)) { + $this->setError($this->lang('from_failed') . $smtp_from . ' : ' . implode(',', $this->smtp->getError())); + throw new Exception($this->ErrorInfo, self::STOP_CRITICAL); + } + + $callbacks = []; + //Attempt to send to all recipients + foreach ([$this->to, $this->cc, $this->bcc] as $togroup) { + foreach ($togroup as $to) { + if (!$this->smtp->recipient($to[0], $this->dsn)) { + $error = $this->smtp->getError(); + $bad_rcpt[] = ['to' => $to[0], 'error' => $error['detail']]; + $isSent = false; + } else { + $isSent = true; + } + + $callbacks[] = ['issent' => $isSent, 'to' => $to[0], 'name' => $to[1]]; + } + } + + //Only send the DATA command if we have viable recipients + if ((count($this->all_recipients) > count($bad_rcpt)) && !$this->smtp->data($header . $body)) { + throw new Exception($this->lang('data_not_accepted'), self::STOP_CRITICAL); + } + + $smtp_transaction_id = $this->smtp->getLastTransactionID(); + + if ($this->SMTPKeepAlive) { + $this->smtp->reset(); + } else { + $this->smtp->quit(); + $this->smtp->close(); + } + + foreach ($callbacks as $cb) { + $this->doCallback( + $cb['issent'], + [[$cb['to'], $cb['name']]], + [], + [], + $this->Subject, + $body, + $this->From, + ['smtp_transaction_id' => $smtp_transaction_id] + ); + } + + //Create error message for any bad addresses + if (count($bad_rcpt) > 0) { + $errstr = ''; + foreach ($bad_rcpt as $bad) { + $errstr .= $bad['to'] . ': ' . $bad['error']; + } + throw new Exception($this->lang('recipients_failed') . $errstr, self::STOP_CONTINUE); + } + + return true; + } + + /** + * Initiate a connection to an SMTP server. + * Returns false if the operation failed. + * + * @param array $options An array of options compatible with stream_context_create() + * + * @throws Exception + * + * @uses \PHPMailer\PHPMailer\SMTP + * + * @return bool + */ + public function smtpConnect($options = null) + { + if (null === $this->smtp) { + $this->smtp = $this->getSMTPInstance(); + } + + //If no options are provided, use whatever is set in the instance + if (null === $options) { + $options = $this->SMTPOptions; + } + + //Already connected? + if ($this->smtp->connected()) { + return true; + } + + $this->smtp->setTimeout($this->Timeout); + $this->smtp->setDebugLevel($this->SMTPDebug); + $this->smtp->setDebugOutput($this->Debugoutput); + $this->smtp->setVerp($this->do_verp); + $hosts = explode(';', $this->Host); + $lastexception = null; + + foreach ($hosts as $hostentry) { + $hostinfo = []; + if ( + !preg_match( + '/^(?:(ssl|tls):\/\/)?(.+?)(?::(\d+))?$/', + trim($hostentry), + $hostinfo + ) + ) { + $this->edebug($this->lang('invalid_hostentry') . ' ' . trim($hostentry)); + //Not a valid host entry + continue; + } + //$hostinfo[1]: optional ssl or tls prefix + //$hostinfo[2]: the hostname + //$hostinfo[3]: optional port number + //The host string prefix can temporarily override the current setting for SMTPSecure + //If it's not specified, the default value is used + + //Check the host name is a valid name or IP address before trying to use it + if (!static::isValidHost($hostinfo[2])) { + $this->edebug($this->lang('invalid_host') . ' ' . $hostinfo[2]); + continue; + } + $prefix = ''; + $secure = $this->SMTPSecure; + $tls = (static::ENCRYPTION_STARTTLS === $this->SMTPSecure); + if ('ssl' === $hostinfo[1] || ('' === $hostinfo[1] && static::ENCRYPTION_SMTPS === $this->SMTPSecure)) { + $prefix = 'ssl://'; + $tls = false; //Can't have SSL and TLS at the same time + $secure = static::ENCRYPTION_SMTPS; + } elseif ('tls' === $hostinfo[1]) { + $tls = true; + //TLS doesn't use a prefix + $secure = static::ENCRYPTION_STARTTLS; + } + //Do we need the OpenSSL extension? + $sslext = defined('OPENSSL_ALGO_SHA256'); + if (static::ENCRYPTION_STARTTLS === $secure || static::ENCRYPTION_SMTPS === $secure) { + //Check for an OpenSSL constant rather than using extension_loaded, which is sometimes disabled + if (!$sslext) { + throw new Exception($this->lang('extension_missing') . 'openssl', self::STOP_CRITICAL); + } + } + $host = $hostinfo[2]; + $port = $this->Port; + if ( + array_key_exists(3, $hostinfo) && + is_numeric($hostinfo[3]) && + $hostinfo[3] > 0 && + $hostinfo[3] < 65536 + ) { + $port = (int) $hostinfo[3]; + } + if ($this->smtp->connect($prefix . $host, $port, $this->Timeout, $options)) { + try { + if ($this->Helo) { + $hello = $this->Helo; + } else { + $hello = $this->serverHostname(); + } + $this->smtp->hello($hello); + //Automatically enable TLS encryption if: + //* it's not disabled + //* we have openssl extension + //* we are not already using SSL + //* the server offers STARTTLS + if ($this->SMTPAutoTLS && $sslext && 'ssl' !== $secure && $this->smtp->getServerExt('STARTTLS')) { + $tls = true; + } + if ($tls) { + if (!$this->smtp->startTLS()) { + $message = $this->getSmtpErrorMessage('connect_host'); + throw new Exception($message); + } + //We must resend EHLO after TLS negotiation + $this->smtp->hello($hello); + } + if ( + $this->SMTPAuth && !$this->smtp->authenticate( + $this->Username, + $this->Password, + $this->AuthType, + $this->oauth + ) + ) { + throw new Exception($this->lang('authenticate')); + } + + return true; + } catch (Exception $exc) { + $lastexception = $exc; + $this->edebug($exc->getMessage()); + //We must have connected, but then failed TLS or Auth, so close connection nicely + $this->smtp->quit(); + } + } + } + //If we get here, all connection attempts have failed, so close connection hard + $this->smtp->close(); + //As we've caught all exceptions, just report whatever the last one was + if ($this->exceptions && null !== $lastexception) { + throw $lastexception; + } elseif ($this->exceptions) { + // no exception was thrown, likely $this->smtp->connect() failed + $message = $this->getSmtpErrorMessage('connect_host'); + throw new Exception($message); + } + + return false; + } + + /** + * Close the active SMTP session if one exists. + */ + public function smtpClose() + { + if ((null !== $this->smtp) && $this->smtp->connected()) { + $this->smtp->quit(); + $this->smtp->close(); + } + } + + /** + * Set the language for error messages. + * The default language is English. + * + * @param string $langcode ISO 639-1 2-character language code (e.g. French is "fr") + * Optionally, the language code can be enhanced with a 4-character + * script annotation and/or a 2-character country annotation. + * @param string $lang_path Path to the language file directory, with trailing separator (slash) + * Do not set this from user input! + * + * @return bool Returns true if the requested language was loaded, false otherwise. + */ + public function setLanguage($langcode = 'en', $lang_path = '') + { + //Backwards compatibility for renamed language codes + $renamed_langcodes = [ + 'br' => 'pt_br', + 'cz' => 'cs', + 'dk' => 'da', + 'no' => 'nb', + 'se' => 'sv', + 'rs' => 'sr', + 'tg' => 'tl', + 'am' => 'hy', + ]; + + if (array_key_exists($langcode, $renamed_langcodes)) { + $langcode = $renamed_langcodes[$langcode]; + } + + //Define full set of translatable strings in English + $PHPMAILER_LANG = [ + 'authenticate' => 'SMTP Error: Could not authenticate.', + 'buggy_php' => 'Your version of PHP is affected by a bug that may result in corrupted messages.' . + ' To fix it, switch to sending using SMTP, disable the mail.add_x_header option in' . + ' your php.ini, switch to MacOS or Linux, or upgrade your PHP to version 7.0.17+ or 7.1.3+.', + 'connect_host' => 'SMTP Error: Could not connect to SMTP host.', + 'data_not_accepted' => 'SMTP Error: data not accepted.', + 'empty_message' => 'Message body empty', + 'encoding' => 'Unknown encoding: ', + 'execute' => 'Could not execute: ', + 'extension_missing' => 'Extension missing: ', + 'file_access' => 'Could not access file: ', + 'file_open' => 'File Error: Could not open file: ', + 'from_failed' => 'The following From address failed: ', + 'instantiate' => 'Could not instantiate mail function.', + 'invalid_address' => 'Invalid address: ', + 'invalid_header' => 'Invalid header name or value', + 'invalid_hostentry' => 'Invalid hostentry: ', + 'invalid_host' => 'Invalid host: ', + 'mailer_not_supported' => ' mailer is not supported.', + 'provide_address' => 'You must provide at least one recipient email address.', + 'recipients_failed' => 'SMTP Error: The following recipients failed: ', + 'signing' => 'Signing Error: ', + 'smtp_code' => 'SMTP code: ', + 'smtp_code_ex' => 'Additional SMTP info: ', + 'smtp_connect_failed' => 'SMTP connect() failed.', + 'smtp_detail' => 'Detail: ', + 'smtp_error' => 'SMTP server error: ', + 'variable_set' => 'Cannot set or reset variable: ', + ]; + if (empty($lang_path)) { + //Calculate an absolute path so it can work if CWD is not here + $lang_path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR; + } + + //Validate $langcode + $foundlang = true; + $langcode = strtolower($langcode); + if ( + !preg_match('/^(?P[a-z]{2})(?P